:root {
  --bg: #e8e3d8;
  --paper: #f1ece2;
  --ink: #1f1d18;
  --ink-2: #5a564c;
  --ink-3: #8a8474;
  --rule: rgba(31, 29, 24, 0.18);
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  filter: sepia(10%) saturate(0.92) brightness(0.98);
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--ink);
  color: var(--bg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 32px;
  color: var(--ink);
  pointer-events: none;
  transition:
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    transform 0.35s ease;
}
.site-header[data-tone="dark"] {
  color: var(--paper);
}
.site-header[data-cover-light="1"] {
  color: var(--ink);
}
.site-header.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.site-header__nav {
  display: flex;
  gap: 36px;
}
.site-header__nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}
.site-header__nav a:hover {
  opacity: 0.65;
}
.site-header__nav a[aria-current="page"] {
  position: relative;
}
.site-header__nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 780px) {
  .site-header {
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .site-header__nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .site-header__nav a {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  .site-header__brand .name {
    font-size: 18px;
  }
}

.top-bar,
.center-logo,
.menu-overlay {
  display: none !important;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  pointer-events: none;
}
.top-bar > * {
  pointer-events: auto;
}
.play-sound {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.play-sound .ring {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slow-spin 12s linear infinite;
}
@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}
.play-sound .ring svg {
  width: 10px;
  height: 10px;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--paper);
  mix-blend-mode: difference;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.center-logo {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  text-align: center;
  color: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
}
.center-logo a {
  pointer-events: auto;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.center-logo .name {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
}
.center-logo .tag {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #1a1814;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.menu-overlay a {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 140px);
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.005em;
  transition: color 0.3s;
}
.menu-overlay a:hover {
  color: #a8b6a0;
}
.menu-overlay .close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 6px;
}

footer {
  position: relative;
  padding: 80px 32px 40px;
  color: var(--paper);
  overflow: hidden;
  background: #1a1814;
}
footer .wrap {
  max-width: 1760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
footer .brand {
  grid-column: 1/13;
  text-align: center;
  margin-bottom: 80px;
}
footer .brand .name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(64px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--paper);
}
footer .brand .tag {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 18px;
  color: rgba(241, 236, 226, 0.7);
}
footer .col {
  grid-column: span 4;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(241, 236, 226, 0.85);
}
footer .col h4 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 400;
  color: rgba(241, 236, 226, 0.55);
}
footer .col a {
  display: block;
  transition: color 0.3s;
}
footer .col a:hover {
  color: var(--paper);
  text-decoration: underline;
}
footer .meta {
  grid-column: 1/13;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(241, 236, 226, 0.14);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 236, 226, 0.55);
}

@media (max-width: 900px) {
  .top-bar {
    padding: 18px 20px;
  }
  .center-logo .name {
    font-size: 18px;
  }
  footer .col {
    grid-column: 1/13;
    text-align: center;
    margin-bottom: 32px;
  }
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ink);
  z-index: 200;
  transition: width 80ms linear;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .read-progress {
    transition: none;
  }
}

h1 em,
h2 em {
  position: relative;
  display: inline-block;
}
h1 em::after,
h2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.34em;
  height: 0.3em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M 1 5 Q 10 1, 20 5 T 40 5 T 60 5 T 80 5 T 99 5' stroke='%231f1d18' stroke-width='1.1' fill='none' stroke-linecap='round'/></svg>")
    center / 100% 100% no-repeat;
  opacity: 0.36;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  animation: squiggle-draw 5.5s ease-in-out 0.6s infinite;
}
@keyframes squiggle-draw {
  0%,
  100% {
    clip-path: inset(0 100% 0 0);
  }
  40%,
  60% {
    clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  h1 em::after,
  h2 em::after {
    animation: none;
    clip-path: none;
  }
}
/* Lighter squiggle on dark hero backgrounds */
.p-hero h1 em::after,
.home-slider__caption em::after,
.next h2 em::after,
.process h2 em::after,
.process .step h3 em::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M 1 5 Q 10 1, 20 5 T 40 5 T 60 5 T 80 5 T 99 5' stroke='%23f1ece2' stroke-width='1.1' fill='none' stroke-linecap='round'/></svg>")
    center / 100% 100% no-repeat;
  opacity: 0.45;
}
/* Skip underline on giant wordmarks where it'd be visually too noisy */
footer em::after,
.view-all h2 em::after,
.cta-band h2 em::after,
.deliverables h2 em::after,
.perspective h2 em::after,
.timeline__head h2 em::after {
  display: none;
}

.flourish {
  display: block;
  width: 240px;
  height: 60px;
  color: var(--ink);
  margin: 48px auto 0;
}
.flourish path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.65, 0.05, 0.36, 1) 0.2s;
}
.flourish.in path,
.in .flourish path {
  stroke-dashoffset: 0;
}
.flourish--light {
  color: var(--paper);
  opacity: 0.7;
}
.cta-band .flourish path {
  transition: none;
  animation: signature-loop 5.4s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
}
@keyframes signature-loop {
  0% {
    stroke-dashoffset: 600;
  }
  42% {
    stroke-dashoffset: 0;
  }
  58% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -600;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-band .flourish path {
    animation: none;
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .flourish path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
  display: block;
  transform: scale(0.96);
  transition:
    transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
  background: #1a1814;
}
.lightbox.is-open .lightbox__img {
  transform: scale(1);
}
.lightbox__img.is-swapping {
  opacity: 0;
  transform: scale(0.98);
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 500;
  z-index: 2;
}
.lightbox__close::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  cursor: pointer;
  padding: 18px 24px;
  opacity: 0.65;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 2;
  line-height: 1;
}
.lightbox__nav:hover {
  opacity: 1;
}
.lightbox__nav--prev {
  left: 24px;
}
.lightbox__nav--prev:hover {
  transform: translateY(-50%) translateX(-4px);
}
.lightbox__nav--next {
  right: 24px;
}
.lightbox__nav--next:hover {
  transform: translateY(-50%) translateX(4px);
}
.lightbox__caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(241, 236, 226, 0.85);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  max-width: 60ch;
  text-align: center;
  padding: 0 80px;
  letter-spacing: -0.005em;
}
.lightbox__counter {
  position: absolute;
  bottom: 36px;
  right: 32px;
  color: rgba(241, 236, 226, 0.55);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.lightbox__counter strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
  font-size: 1.4em;
  margin-right: 6px;
}
.proj-fig img,
.ss__media img,
.m-fig img {
  cursor: zoom-in;
}
@media (max-width: 700px) {
  .lightbox__nav {
    font-size: 24px;
    padding: 12px 16px;
  }
  .lightbox__caption {
    font-size: 14px;
    padding: 0 40px;
    bottom: 60px;
  }
  .lightbox__counter {
    bottom: 24px;
    right: 20px;
  }
  .lightbox__close {
    top: 20px;
    right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox__img {
    transition: none;
  }
}

.proj-gallery.proj-gallery {
  max-width: 1280px;
  padding: 48px 32px;
  margin: 0 auto;
}
.sticky-stack.sticky-stack {
  max-width: 1400px;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
}
.proj-fig.proj-fig.lg {
  grid-column: span 8;
  aspect-ratio: 16/10;
}
.proj-fig.proj-fig.md {
  grid-column: span 6;
  aspect-ratio: 4/3;
}
.proj-fig.proj-fig.sm {
  grid-column: span 4;
  aspect-ratio: 3/4;
}
.proj-fig.proj-fig.tall {
  grid-column: span 5;
  aspect-ratio: 3/4;
}
.proj-fig.proj-fig.wide {
  grid-column: span 7;
  aspect-ratio: 16/9;
}
.proj-gallery.proj-gallery .proj-gallery__grid {
  gap: 18px;
}

/* "View" tooltip on image hover */
.proj-fig,
.ss__media {
  position: relative;
}
.proj-fig::before,
.ss__media::before {
  content: "View";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(6px);
  background: rgba(26, 24, 20, 0.88);
  color: #f1ece2;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3;
  white-space: nowrap;
}
.proj-fig:hover::before,
.ss__fig:hover .ss__media::before {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}
@media (max-width: 900px) {
  .proj-gallery.proj-gallery {
    padding: 60px 20px;
  }
  .sticky-stack.sticky-stack {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 20px;
  }
  .proj-fig.proj-fig.lg,
  .proj-fig.proj-fig.md,
  .proj-fig.proj-fig.sm,
  .proj-fig.proj-fig.tall,
  .proj-fig.proj-fig.wide {
    grid-column: 1/13;
    aspect-ratio: 4/3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .proj-fig::before,
  .ss__media::before {
    transition: none;
  }
}

.cover.cover {
  min-height: 76vh;
  background: #1a1814;
  padding: 120px 40px 56px;
}
.cover.cover::before {
  content: "";
  position: absolute;
  inset: 96px 40px 88px 40px;
  background: #0e0d0a;
  z-index: 0;
}
.cover.cover .cover__media {
  inset: 96px 40px 88px 40px;
  overflow: hidden;
}
.cover.cover .cover__media img {
  animation: cover-kb-soft 24s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  filter: saturate(0.92) contrast(1.04);
}
@keyframes cover-kb-soft {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}
.cover.cover .cover__media::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0) 32%,
    rgba(0, 0, 0, 0) 56%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.cover.cover .cover__inner {
  padding: 0 28px 12px;
  max-width: 1480px;
}
.cover.cover .cover__plate {
  position: absolute;
  top: 54px;
  left: 56px;
  right: 56px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(241, 236, 226, 0.72);
  pointer-events: none;
}
.cover.cover .cover__plate .rule {
  flex: 1;
  height: 1px;
  background: rgba(241, 236, 226, 0.32);
  margin: 0 18px;
}
@media (max-width: 900px) {
  .cover.cover {
    min-height: 70vh;
    padding: 96px 16px 36px;
  }
  .cover.cover::before,
  .cover.cover .cover__media {
    inset: 80px 16px 60px 16px;
  }
  .cover.cover .cover__plate {
    top: 44px;
    left: 24px;
    right: 24px;
    font-size: 9px;
    letter-spacing: 0.26em;
  }
  .cover.cover .cover__plate .rule {
    margin: 0 10px;
  }
  .cover.cover .cover__inner {
    padding: 0 12px 8px;
  }
}

/* ─── MOBILE NAV — burger + side drawer ─── */
.site-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0;
  pointer-events: auto;
}
.site-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.site-drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 24, 0.32);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.site-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 360px);
  background: var(--paper);
  color: var(--ink);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: -20px 0 60px rgba(31, 29, 24, 0.18);
  z-index: 1;
}
.site-drawer.is-open {
  pointer-events: auto;
}
.site-drawer.is-open .site-drawer__scrim {
  opacity: 1;
}
.site-drawer.is-open .site-drawer__panel {
  transform: translateX(0);
}
.site-drawer__close {
  align-self: flex-end;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 4px;
}
.site-drawer__close:hover {
  color: var(--ink);
}
.site-drawer__close span {
  margin-left: 8px;
  font-size: 14px;
  letter-spacing: 0;
}
.site-drawer__brand {
  margin-top: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.site-drawer__brand .name {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.site-drawer__brand .tag {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.site-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
  flex: 1;
}
.site-drawer__nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  transition:
    color 0.3s,
    padding-left 0.3s;
}
.site-drawer__nav a:hover {
  color: var(--ink-2);
  padding-left: 6px;
}
.site-drawer__nav a[aria-current="page"] {
  font-style: italic;
  color: var(--ink-2);
}
.site-drawer__meta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.site-drawer__meta a:hover {
  color: var(--ink);
}

@media (max-width: 780px) {
  .site-header {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    justify-content: flex-end;
  }
  .site-header__nav {
    display: none;
  }
  .site-burger {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-drawer__scrim,
  .site-drawer__panel {
    transition: none;
  }
}
