:root {
  --ink: #100e0c;
  --ink-2: #1a1714;
  --paper: #f3ece1;
  --paper-dim: #c9bfb2;
  --copper: #d4843a;
  --copper-deep: #b86a24;
  --line: rgba(243, 236, 225, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Sora", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--copper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.65rem 6vw;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 2.6rem;
  max-height: 2.6rem;
  max-width: 13.5rem;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover {
  color: var(--copper);
}

.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--copper);
  color: var(--copper) !important;
  padding: 0.45rem 0.85rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--copper);
  color: var(--ink) !important;
}

.hero,
.practices,
.work,
.fit,
.approach,
.contact,
.site-footer {
  padding: 5.5rem 6vw;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(20rem, 1fr);
  gap: 2rem 4rem;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
  max-width: none;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -10vw;
  top: -20%;
  width: 60vw;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(212, 132, 58, 0.16),
    rgba(212, 132, 58, 0) 60%
  );
}

.hero-copy {
  position: relative;
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy .eyebrow {
  animation-delay: 0.06s;
}

.hero-copy h1 {
  animation-delay: 0.16s;
}

.hero-copy .lede {
  animation-delay: 0.28s;
}

.hero-copy .hero-actions {
  animation-delay: 0.4s;
}

.hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--ink-2);
  transform: rotate(-1.2deg);
  animation: rise-tilt 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(16, 14, 12, 0) 55%,
    rgba(16, 14, 12, 0.55) 100%
  );
}

.hero-visual img,
.hero-visual video {
  display: block;
  width: 128%;
  max-width: none;
  height: auto;
  animation: ken-pan-left 8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 32%,
    rgba(243, 236, 225, 0.1) 48%,
    transparent 64%
  );
  transform: translateX(-130%);
  animation: sheen 9s ease-in-out 1.4s infinite;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.8rem);
  font-weight: 500;
  max-width: 16ch;
}

.lede {
  max-width: 38rem;
  color: var(--paper-dim);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--copper);
  color: var(--ink);
}

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

.btn-ghost {
  border-color: var(--line);
  color: var(--paper);
  background: transparent;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-note {
  color: var(--paper-dim);
  margin-bottom: 0;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
}

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

.practice-list,
.fit-list,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.practice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.practice-lead h3 {
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
}

.practice-also {
  margin-top: 3.5rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.also-heading {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  max-width: 18ch;
}

.practice {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--ink-2);
  border-top: 2px solid var(--copper);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.practice:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.practice-media {
  display: block;
  width: calc(100% + 2.8rem);
  max-width: none;
  height: auto;
  margin: -1.5rem -1.4rem 1.4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.grow {
  position: relative;
  overflow: hidden;
}

.grow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
}

.grow-base {
  filter: brightness(0.38) saturate(0.6);
}

.grow-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grow-overlay .trace {
  fill: none;
  stroke-width: 1.2;
  stroke-opacity: 0.28;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.grow-overlay .flow {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 72;
  animation: flow 2.6s linear infinite;
}

.grow-overlay .flow-slow {
  animation-duration: 3.4s;
  animation-direction: normal;
}

.grow-overlay .signal {
  filter: drop-shadow(0 0 6px currentColor);
  color: inherit;
}

.grow-overlay .core-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: core-pulse 3s ease-out infinite;
}

.grow-overlay .core-pulse-2 {
  animation-delay: 1.5s;
}

.grow-overlay .hl {
  filter: drop-shadow(0 0 9px rgba(212, 132, 58, 0.85));
}

.grow-overlay .rank-num {
  font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-anchor: middle;
  fill-opacity: 0.85;
}

.grow-overlay .serp .line-title {
  stroke: none;
  fill-opacity: 0.38;
}

.grow-overlay .serp .line-snip {
  stroke: none;
  fill-opacity: 0.2;
}

.grow-reveal {
  animation: grow-diagonal 7.5s ease-in-out infinite;
}

.grow-ai .grow-reveal {
  animation-name: grow-radial;
  animation-duration: 8.5s;
}

.grow-app .grow-reveal {
  animation-name: grow-radial-app;
  animation-duration: 8s;
}

.practice-lead .practice {
  padding: 2rem 1.8rem 1.6rem;
}

.practice-lead .practice-media {
  width: calc(100% + 3.6rem);
  margin: -2rem -1.8rem 1.6rem;
}

.practice-also .practice {
  background: transparent;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(201, 191, 178, 0.55);
}

.practice-also .practice-media {
  aspect-ratio: 21 / 9;
  opacity: 0.9;
}

.service-num {
  font-family: var(--mono);
  color: var(--copper);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.practice h3,
.fit-list h3,
.steps h3 {
  font-size: 1.55rem;
  font-weight: 500;
}

.practice p,
.fit-list p,
.steps p {
  color: var(--paper-dim);
}

.practice ul {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.practice li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--paper);
}

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

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.work-list li {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--ink-2);
  border-top: 2px solid var(--copper);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.work-list li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.work-list h3 {
  font-size: 1.55rem;
  font-weight: 500;
}

.work-list p {
  color: var(--paper-dim);
  flex: 1;
}

.work-list a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.work-list a:hover {
  color: var(--paper);
}

.fit {
  background: var(--ink-2);
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fit-list li {
  padding-top: 0.2rem;
}

.approach-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.approach-intro .section-head {
  margin-bottom: 0;
}

.approach-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--ink-2);
}

.approach-visual::before {
  content: "";
  position: absolute;
  inset: auto -0.8rem -0.8rem auto;
  width: 40%;
  height: 40%;
  border-right: 1px solid var(--copper);
  border-bottom: 1px solid var(--copper);
  pointer-events: none;
}

.approach-visual img,
.approach-visual video {
  display: block;
  width: 124%;
  max-width: none;
  height: auto;
  animation: ken-pan-right 9s ease-in-out infinite alternate;
  will-change: transform;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  font-family: var(--mono);
  color: var(--copper);
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.contact-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  background: var(--ink-2);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.contact-form .full {
  grid-column: 1 / -1;
}

.optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper-dim);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.4rem;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.4em;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.form-status.error {
  color: #e8a090;
}

.form-status.ok {
  color: #b8d7a8;
}

.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.practice.reveal.is-in:hover,
.work-list li.reveal.is-in:hover {
  transform: translateY(-4px);
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

.reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

.reveal[data-delay="6"] {
  transition-delay: 0.48s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-tilt {
  from {
    opacity: 0;
    transform: translateY(1.4rem) rotate(-1.2deg);
  }
  to {
    opacity: 1;
    transform: rotate(-1.2deg);
  }
}

@keyframes sheen {
  0%,
  58% {
    transform: translateX(-130%);
  }
  78%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes ken-pan-left {
  from {
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(-9%, -3%, 0) scale(1.14);
  }
}

@keyframes ken-pan-right {
  from {
    transform: translate3d(-9%, 0, 0) scale(1.02);
  }
  to {
    transform: translate3d(0, -3%, 0) scale(1.14);
  }
}

@keyframes ken-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.18) translate3d(-5%, -4%, 0);
  }
}

@keyframes ken-pan-down {
  from {
    transform: translate3d(-3%, 0, 0) scale(1.06);
  }
  to {
    transform: translate3d(-3%, -8%, 0) scale(1.14);
  }
}

@keyframes grow-diagonal {
  0% {
    opacity: 0;
    clip-path: polygon(0 0, 22% 0, 0 100%, 0 100%);
  }
  6% {
    opacity: 1;
    clip-path: polygon(0 0, 22% 0, 0 100%, 0 100%);
  }
  62% {
    opacity: 1;
    clip-path: polygon(0 0, 150% 0, 110% 100%, 0 100%);
  }
  84% {
    opacity: 1;
    clip-path: polygon(0 0, 150% 0, 110% 100%, 0 100%);
  }
  94% {
    opacity: 0;
    clip-path: polygon(0 0, 150% 0, 110% 100%, 0 100%);
  }
  100% {
    opacity: 0;
    clip-path: polygon(0 0, 22% 0, 0 100%, 0 100%);
  }
}

@keyframes grow-radial {
  0% {
    opacity: 0;
    clip-path: circle(9% at 50% 50%);
  }
  6% {
    opacity: 1;
    clip-path: circle(9% at 50% 50%);
  }
  62% {
    opacity: 1;
    clip-path: circle(85% at 50% 50%);
  }
  84% {
    opacity: 1;
    clip-path: circle(85% at 50% 50%);
  }
  94% {
    opacity: 0;
    clip-path: circle(85% at 50% 50%);
  }
  100% {
    opacity: 0;
    clip-path: circle(9% at 50% 50%);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -82;
  }
}

@keyframes core-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.5);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes grow-radial-app {
  0% {
    opacity: 0;
    clip-path: circle(12% at 34% 46%);
  }
  6% {
    opacity: 1;
    clip-path: circle(12% at 34% 46%);
  }
  62% {
    opacity: 1;
    clip-path: circle(100% at 34% 46%);
  }
  84% {
    opacity: 1;
    clip-path: circle(100% at 34% 46%);
  }
  94% {
    opacity: 0;
    clip-path: circle(100% at 34% 46%);
  }
  100% {
    opacity: 0;
    clip-path: circle(12% at 34% 46%);
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: var(--paper-dim);
  font-size: 0.9rem;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 6vw 1.4rem;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .practice-list,
  .work-list,
  .fit-list,
  .steps,
  .contact,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero,
  .practices,
  .work,
  .fit,
  .approach,
  .contact {
    padding: 3.5rem 6vw;
  }

  .brand-logo {
    height: 2.2rem;
    max-height: 2.2rem;
    width: auto;
    max-width: min(12rem, calc(100vw - 7.5rem));
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .hero-visual {
    transform: none;
    animation-name: rise;
  }

  .work-list li:hover {
    transform: none;
  }

  .approach-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .practice:hover {
    transform: none;
  }
}
