:root {
  --bg: #0a0a0b;
  --bg-soft: #101011;
  --panel: #141416;
  --line: rgba(236, 230, 218, 0.1);
  --line-strong: rgba(236, 230, 218, 0.2);
  --text: #f2efe8;
  --muted: #a7a199;
  --dim: #8a8278;
  --accent: #f0b23f;
  --accent-2: #e07a52;
  --sage: #9ccf86;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman",
    serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ==========================================================
   BACKGROUND
   ========================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #0b0b0c 0%, #08080a 55%, #0a0a0b 100%);
}

.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.aurora-a {
  width: 840px;
  height: 840px;
  top: -390px;
  right: -180px;
  background: conic-gradient(
    from 210deg,
    #f2b544,
    #e07a52,
    #c4653f,
    #f2b544
  );
  opacity: 0.14;
  animation: drift-a 26s ease-in-out infinite alternate;
}

.aurora-b {
  width: 720px;
  height: 720px;
  top: 24%;
  left: -300px;
  background: conic-gradient(from 40deg, #e8a34c, #d98a55, #f2b544);
  opacity: 0.11;
  animation: drift-b 32s ease-in-out infinite alternate;
}

.aurora-c {
  width: 780px;
  height: 780px;
  bottom: -360px;
  right: 2%;
  background: conic-gradient(
    from 300deg,
    #e07a52,
    #f0b23f,
    #b3543a,
    #e07a52
  );
  opacity: 0.09;
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate3d(-80px, 100px, 0) rotate(45deg) scale(1.18);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(90px, -60px, 0) rotate(-35deg) scale(0.9);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-60px, -90px, 0) rotate(30deg) scale(1.1);
  }
}

.bg-grid {
  position: absolute;
  inset: -72px;
  background-image: linear-gradient(
      to right,
      rgba(236, 230, 218, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(236, 230, 218, 0.055) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 65% at 50% 0%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 90% 65% at 50% 0%,
    #000 0%,
    transparent 78%
  );
  animation: grid-slide 40s linear infinite;
}

@keyframes grid-slide {
  to {
    background-position: 88px 88px;
  }
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      125% 85% at 50% -8%,
      transparent 32%,
      rgba(6, 6, 7, 0.72) 100%
    ),
    linear-gradient(180deg, transparent 62%, rgba(6, 6, 7, 0.85) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection {
  background: rgba(240, 178, 63, 0.28);
  color: #fff;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
}

.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0b0b0c;
}
::-webkit-scrollbar-thumb {
  background: #26221c;
  border-radius: 99px;
  border: 2px solid #0b0b0c;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a342b;
}

/* ==========================================================
   PROGRESS + HEADER
   ========================================================== */

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

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.top.scrolled {
  background: rgba(10, 10, 11, 0.9);
  border-bottom-color: var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(240, 178, 63, 0.55);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.top-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.top-nav i {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--dim);
  transition: color 0.2s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.top-nav a.active {
  color: var(--text);
}

.top-nav a.active i {
  color: var(--accent);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #1a1206;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}

.top-cta:hover {
  background: #ffc861;
  transform: translateY(-1px);
}

/* icons */

.ico {
  width: 16px;
  height: 16px;
  flex: none;
}

.service-icon,
.stack-icon {
  display: inline-flex;
  flex: none;
  color: var(--accent);
}

.service-icon .ico,
.stack-icon .ico {
  width: 16px;
  height: 16px;
}

.big-mail .ico {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.contact-row .ico,
.copy-btn .ico {
  width: 14px;
  height: 14px;
}

.btn .ico {
  width: 16px;
  height: 16px;
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  flex-direction: column;
  padding: 0 0 26px;
}

.hero-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta-mid {
  text-align: center;
}

.avail {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(156, 207, 134, 0.35);
  border-radius: 999px;
  background: rgba(156, 207, 134, 0.08);
  color: #cfe6c2;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.avail i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(156, 207, 134, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 207, 134, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(156, 207, 134, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(156, 207, 134, 0);
  }
}

.display {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, min(12vw, 14vh), 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
}

.hero-pitch {
  margin: 0 0 14px;
  max-width: 680px;
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-pitch em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  margin: 0;
  max-width: 520px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.rotator {
  color: var(--accent);
  border-bottom: 1px solid rgba(240, 178, 63, 0.45);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  display: inline-block;
}

.rotator.out {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px -16px rgba(240, 178, 63, 0.9);
}

.btn-primary:hover {
  background: #ffc861;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 36px -16px rgba(240, 178, 63, 0.95);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(236, 230, 218, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(240, 178, 63, 0.55);
  background: rgba(240, 178, 63, 0.07);
  color: #fff;
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.2s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow,
.link-plain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-arrow {
  color: var(--text);
}

.link-plain {
  color: var(--muted);
}

.link-arrow span {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover,
.link-plain:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.link-arrow:hover span {
  transform: translate(2px, -2px);
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  filter: brightness(1.12) contrast(1.04) saturate(0.98);
}

.hero-figure img.hero-logo {
  max-width: 250px;
  border: none;
  background: none;
  filter: drop-shadow(0 14px 44px rgba(240, 178, 63, 0.14));
}

.hero-figure figcaption {
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono-label {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-side-text {
  margin: 0 0 24px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-side-text:last-child {
  margin-bottom: 0;
}

/* ---------- hero layout ---------- */

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 11px;
  border: 1px solid rgba(156, 207, 134, 0.35);
  border-radius: 999px;
  background: rgba(156, 207, 134, 0.08);
  color: #cfe6c2;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 0 rgba(156, 207, 134, 0.5);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 207, 134, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(156, 207, 134, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(156, 207, 134, 0);
  }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-fact p {
  margin: 7px 0 0;
  max-width: 300px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- profile card ---------- */

.profile-card {
  justify-self: end;
  width: 100%;
  max-width: 390px;
  padding: 20px;
  border: 1px solid rgba(240, 178, 63, 0.35);
  border-radius: 6px;
  background: radial-gradient(
      120% 80% at 50% 0%,
      rgba(240, 178, 63, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #15110b, #0c0b0a);
  box-shadow: 0 50px 110px -60px rgba(240, 178, 63, 0.5);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(156, 207, 134, 0.12);
}

.profile-year {
  margin-left: auto;
  color: var(--dim);
}

.profile-media {
  display: grid;
  place-items: center;
  margin: 18px 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: radial-gradient(
      circle at 50% 45%,
      rgba(240, 178, 63, 0.1),
      transparent 65%
    ),
    #0b0b0c;
}

.profile-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(240, 178, 63, 0.18));
}

.profile-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.95rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.profile-role {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.profile-tags span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.profile-foot {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-foot a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.profile-foot a:hover {
  color: var(--accent);
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.service {
  display: flex;
  gap: 14px;
  padding: 22px 28px 0 0;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border-right: none;
}

.service:not(:first-child) {
  padding-left: 28px;
}

.service-num {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.service h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: -0.015em;
}

.service p {
  margin: 0;
  max-width: 280px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ==========================================================
   TICKER
   ========================================================== */

.ticker {
  overflow: hidden;
  margin-top: 16px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.ticker-group span {
  position: relative;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.ticker-group span::after {
  content: "/";
  position: absolute;
  right: -21px;
  color: rgba(240, 178, 63, 0.45);
}

@keyframes ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ==========================================================
   SECTIONS
   ========================================================== */

.section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 0;
}

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

.sec-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
  margin-bottom: 58px;
}

.sec-num {
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.sec-note {
  justify-self: end;
  margin: 0;
  padding-top: 12px;
  max-width: 280px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================
   WORK — pinned horizontal gallery
   ========================================================== */

.work-pin {
  position: relative;
  min-height: 100vh;
}

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 92px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 11, 0.45),
    rgba(10, 10, 11, 0.9) 55%
  );
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.work-head-left {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.work-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.work-head-right {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.64rem;
}

.work-hint span {
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.work-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.work-track {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 34px 32px;
  will-change: transform;
}

.work-card {
  position: relative;
  flex: 0 0 clamp(300px, 34vw, 480px);
  height: min(62vh, 540px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(160deg, #121214, #0c0c0d);
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.35s var(--ease),
    background 0.3s ease;
}

.card-media {
  position: relative;
  height: 44%;
  min-height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0d0d0f;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 10, 11, 0.35));
}

.card-media.is-light::after {
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.2), rgba(10, 10, 11, 0.45));
}

.card-media.is-light img {
  filter: brightness(0.8) saturate(0.72) sepia(0.06) contrast(1.03);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(0.97);
  transition: transform 0.7s var(--ease);
}

.work-card:hover .card-media img,
.work-card:focus-visible .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 10, 11, 0.35));
}

.card-media.is-light::after {
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.2), rgba(10, 10, 11, 0.45));
}

.card-media.is-light img {
  filter: brightness(0.8) saturate(0.72) sepia(0.06) contrast(1.03);
}

.card-media img {
  transform: scale(1.05);
}

.card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 24px;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(240, 178, 63, 0.55);
  background: linear-gradient(160deg, #17130c, #0d0c0b);
  transform: translateY(-6px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.card-icon {
  display: inline-flex;
  color: var(--accent);
}

.card-icon .ico {
  width: 14px;
  height: 14px;
}

.modal-icon {
  display: inline-flex;
  vertical-align: -2px;
  margin-right: 2px;
  color: var(--accent);
}

.modal-icon .ico {
  width: 14px;
  height: 14px;
}

.card-title {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.work-card:hover .card-title {
  color: var(--accent);
}

.card-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.card-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.card-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text);
}

.card-open b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(240, 178, 63, 0.4);
  border-radius: 4px;
  font-weight: 400;
  color: var(--accent);
  transition: color 0.25s ease, background 0.25s ease,
    transform 0.25s var(--ease);
}

.work-card:hover .card-open b {
  background: var(--accent);
  color: #1a1206;
  transform: translate(2px, -2px);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(156, 207, 134, 0.12);
}

.work-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px 0 26px;
}

.work-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.work-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  display: block;
  background: var(--accent);
}

.work-foot-label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.work-cta {
  flex: 0 0 clamp(300px, 34vw, 480px);
  height: min(62vh, 540px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(240, 178, 63, 0.45);
  border-radius: 2px;
  background: radial-gradient(
      120% 90% at 100% 0%,
      rgba(240, 178, 63, 0.16),
      transparent 60%
    ),
    linear-gradient(160deg, #17120a, #0d0c0b);
  color: inherit;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.work-cta:hover,
.work-cta:focus-visible {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.cta-eyebrow {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cta-body {
  margin: auto 0;
}

.work-cta h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.work-cta p {
  margin: 0;
  max-width: 30ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.cta-link b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(240, 178, 63, 0.4);
  border-radius: 4px;
  font-weight: 400;
  color: var(--accent);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.work-cta:hover .cta-link {
  color: var(--accent);
}

.work-cta:hover .cta-link b {
  background: var(--accent);
  color: #1a1206;
  transform: translate(2px, -2px);
}

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

/* ==========================================================
   ABOUT — paper section
   ========================================================== */

.section-light {
  background: linear-gradient(180deg, #f4efe6 0%, #efe8dd 100%);
  color: #16130f;
  border-top: none;
}

.section-light + .section,
.work-pin + .section-light {
  border-top: none;
}

.section-light .sec-num {
  color: #a8641a;
}

.section-light h2 {
  color: #16130f;
}

.section-light .statement {
  color: #16130f;
}

.section-light .statement em {
  color: #a8641a;
}

.section-light .about-col p {
  color: #5d564c;
}

/* ==========================================================
   ABOUT
   ========================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 72px;
}

.statement {
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
}

.statement em {
  font-style: normal;
  color: var(--accent);
}

.about-col p {
  margin: 0 0 20px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

.about-col p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   TOOLBOX
   ========================================================== */

.stack {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stack-note {
  margin: 0 0 30px;
  max-width: 340px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}

.stack-current {
  max-width: 340px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stack-current p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.stack-groups {
  display: flex;
  flex-direction: column;
}

.stack-row {
  display: grid;
  grid-template-columns: 34px 190px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.stack-row:last-child {
  border-bottom: 1px solid var(--line);
}

.stack-row:hover {
  background: rgba(240, 178, 63, 0.025);
}

.stack-num {
  padding-top: 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.stack-label h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.stack-label p {
  margin: 6px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--dim);
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 6px;
}

.stack-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(236, 230, 218, 0.025);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.stack-tags span:hover {
  border-color: rgba(240, 178, 63, 0.5);
  background: rgba(240, 178, 63, 0.06);
  color: var(--text);
}

.stack-also {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.stack-also span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact {
  padding: 96px 0 80px;
}

.contact .sec-num {
  display: block;
  padding-top: 0;
  margin-bottom: 20px;
}

.contact-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.big-mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 2.6rem);
  letter-spacing: -0.015em;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.big-mail:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 48px;
}

.contact-row a,
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact-row a:hover,
.copy-btn:hover {
  color: var(--accent);
}

.copy-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(240, 178, 63, 0.45);
  border-radius: 6px;
  background: rgba(240, 178, 63, 0.06);
  color: var(--accent);
}

.copy-btn:hover {
  background: var(--accent);
  color: #1a1206;
}

.copy-btn.copied {
  color: var(--sage);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 32px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--accent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-top-link {
  color: var(--accent);
  transition: color 0.2s ease;
}

.footer-top-link:hover {
  color: #ffc861;
}

/* ==========================================================
   REVEAL
   ========================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   MODAL
   ========================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.25s ease;
}

.modal-panel {
  position: relative;
  width: min(660px, 94vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: linear-gradient(180deg, #111112, #0c0c0d);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  animation: modal-in 0.3s var(--ease);
}

.modal-panel:focus {
  outline: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(236, 230, 218, 0.22);
  border-radius: 3px;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-media {
  margin: -40px -40px 24px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.modal-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.modal-index {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.modal-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modal-tagline {
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.modal-body {
  margin: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.modal-points {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.modal-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.modal-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.modal-tags span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(240, 178, 63, 0.45);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-link:hover {
  background: var(--accent);
  color: #1a1206;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .top-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 40px;
    align-items: start;
  }

  .hero-lede-col {
    grid-column: 1 / -1;
    max-width: 640px;
  }

  .sec-head {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sec-note {
    grid-column: 2;
    justify-self: start;
    padding-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stack {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stack-note {
    max-width: 560px;
    font-size: 1.3rem;
  }

  .stack-current {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .top-inner {
    height: 60px;
  }

  .top-nav {
    display: none;
  }

  .top-cta {
    margin-left: auto;
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 18px 0;
  }

  .hero-meta-mid {
    display: none;
  }

  .avail {
    justify-self: start;
  }

  .display {
    margin: 40px 0 34px;
    font-size: clamp(3.6rem, 21vw, 6rem);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profile-card {
    justify-self: start;
    max-width: 420px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card {
    max-width: 100%;
  }

  .profile-media {
    max-height: 340px;
  }

  .services {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .service,
  .service:not(:first-child) {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: none;
  }

  .hero-figure img {
    max-width: 220px;
  }

  .section {
    padding: 76px 0;
  }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }

  .sec-num {
    padding-top: 0;
  }

  .sec-note {
    grid-column: 1;
    max-width: 100%;
  }

  .stack-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 18px 0;
  }

  .stack-num {
    padding-top: 3px;
  }

  .stack-tags {
    grid-column: 2;
    padding-top: 0;
  }

  .stack-label h3 {
    font-size: 1.3rem;
  }

  .stack-note {
    font-size: 1.2rem;
  }

  .contact {
    padding: 84px 0 76px;
  }

  .big-mail {
    font-size: clamp(1.05rem, 5.4vw, 1.5rem);
    margin-top: 32px;
  }

  .contact-row {
    gap: 20px;
    margin-top: 38px;
  }

  .footer {
    padding-bottom: 30px;
  }

  .modal-panel {
    padding: 30px 24px;
  }

  .modal-media {
    margin: -30px -24px 22px;
  }

  .modal-media img {
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================
   WORK — swipe fallback (no pin)
   ========================================================== */

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .work-pin {
    min-height: 0;
    height: auto !important;
    padding: 76px 0;
    border-top: 1px solid var(--line);
  }

  .work-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-top: 0;
    background: none;
  }

  .work-head {
    padding-bottom: 18px;
    margin-bottom: 8px;
  }

  .work-head-right {
    display: none;
  }

  .work-viewport {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .work-track {
    transform: none !important;
    padding: 22px 18px 10px;
    gap: 14px;
  }

  .work-card,
  .work-cta {
    flex: 0 0 82vw;
    height: auto;
    min-height: 500px;
    scroll-snap-align: start;
    transform: none;
  }

  .card-media {
    height: 200px;
    min-height: 0;
    flex: none;
  }

  .work-card::after {
    font-size: 5.5rem;
  }

  .work-foot {
    display: none;
  }
}
