:root {
  --paper: #efeeeb;
  --ink: #050505;
  --muted: #5f5b54;
  --line: rgba(5, 5, 5, 0.12);
  --accent: #b66922;
  --accent-2: #1b7f78;
  --accent-3: #7b3ff2;
  --panel: rgba(255, 255, 255, 0.48);
  --shadow: 0 24px 70px rgba(20, 18, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: var(--ink);
  color: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.cursor-dot {
  position: fixed;
  z-index: 30;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(5, 5, 5, 0.5);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-dot.is-active {
  width: 42px;
  height: 42px;
  border-color: rgba(182, 105, 34, 0.7);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 56px);
  mix-blend-mode: difference;
  color: white;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 13px;
  font-weight: 500;
}

nav a {
  position: relative;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 104px 20px 70px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(5, 5, 5, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 5, 5, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0, transparent 62%);
  animation: gridDrift 16s linear infinite;
}

.ring {
  position: absolute;
  width: clamp(280px, 42vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 999px;
  filter: blur(0.2px);
}

.ring-one {
  top: 15%;
  left: -12%;
  animation: floatOne 12s ease-in-out infinite;
}

.ring-two {
  right: -15%;
  bottom: 8%;
  border-color: rgba(27, 127, 120, 0.18);
  animation: floatTwo 13s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(900px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(82px, 12vw, 168px);
  font-style: italic;
  line-height: 0.72;
}

h1 {
  margin: 0;
  font-size: clamp(68px, 11vw, 142px);
  font-weight: 400;
  line-height: 0.82;
}

h1 span {
  display: inline-block;
}

.divider {
  width: 52px;
  height: 2px;
  margin: clamp(34px, 5vw, 58px) 0 30px;
  background: var(--accent);
  transform-origin: center;
}

.name {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 500;
}

.tagline {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: clamp(17px, 2.5vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.22);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px;
  height: 42px;
  border: 1px solid rgba(5, 5, 5, 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translateX(-50%);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 130px) 0;
}

.intro {
  display: grid;
  gap: 20px;
  max-width: 930px;
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.95;
}

.intro p:last-child,
.contact p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 34px;
}

.experience {
  padding-top: 0;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.experience-item {
  display: grid;
  align-content: start;
  min-height: 220px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 28px 28px 30px 0;
}

.experience-item + .experience-item {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.experience-role {
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.experience-item h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.experience-item p:last-child {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-link {
  margin-top: 28px;
}

.work-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 260ms ease, border-color 260ms ease;
}

.work-card::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(182, 105, 34, 0.16));
  content: "";
  transform: translateY(40%);
  transition: transform 260ms ease;
}

.work-card:hover {
  border-color: rgba(5, 5, 5, 0.36);
  transform: translateY(-8px);
}

.work-card:hover::before {
  transform: translateY(0);
}

.card-index {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-style: italic;
}

.work-card h3 {
  position: relative;
  margin: 106px 0 12px;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 500;
}

.work-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  animation: marquee 22s linear infinite;
}

.marquee span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 58px);
  font-style: italic;
  white-space: nowrap;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.service-row h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}

.service-row p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.contact {
  display: grid;
  justify-items: start;
  gap: 22px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-inline: clamp(22px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(27, 127, 120, 0.09));
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.site-footer p {
  margin: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes floatOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(8%, -4%, 0) rotate(12deg);
  }
}

@keyframes floatTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-7%, 5%, 0) rotate(-10deg);
  }
}

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 17px);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 14px;
  }

  nav {
    display: none;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-content {
    overflow: hidden;
  }

  .eyebrow {
    font-size: clamp(48px, 14vw, 56px);
    line-height: 0.88;
  }

  h1 {
    font-size: clamp(54px, 16vw, 64px);
    line-height: 0.86;
  }

  .tagline {
    max-width: 310px;
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    flex: 0 1 230px;
    width: min(230px, 100%);
  }

  .work-grid,
  .service-row,
  .experience-list {
    grid-template-columns: 1fr;
  }

  .experience-item + .experience-item {
    border-left: 0;
    padding-left: 0;
  }

  .work-card {
    min-height: 260px;
  }

  .work-card h3 {
    margin-top: 72px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .cursor-dot {
    display: none;
  }
}
