@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #080808;
  --bg-2: #0d0d0d;
  --card: #111111;
  --card-2: #161616;
  --text: #f5f3ed;
  --muted: #a7a39a;
  --gold: #d6a83f;
  --gold-2: #f2c75c;
  --line: #2a2926;
  --pad: clamp(24px, 4vw, 72px);
  --section: clamp(36px, 3.5vw, 52px);
  --nav: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 75% 0%, rgba(214, 168, 63, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.011em;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Contact / form fields still need typing, paste, and caret selection. */
input, textarea, select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
img, svg, video {
  -webkit-user-drag: none;
}

/* Soft guard when DevTools is already open (paste-URL / F1–F12 before page script). */
html.is-inspecting,
html.is-inspecting body {
  overflow: hidden !important;
}
html.is-inspecting body > *:not(.inspect-shield) {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.is-inspecting body::after {
  content: "Viewing source tools are not allowed on this page.";
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #080808;
  color: #f2c75c;
  font-family: Inter, sans-serif;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.14;
  background-image: url("../images/noise.png");
  background-size: 180px;
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: transparent; color: inherit; }
input::selection,
textarea::selection {
  background: var(--gold);
  color: #080808;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--gold);
  color: #080808;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.shell {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}
.kicker {
  margin: 0 0 20px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.kicker a { border-bottom: 1px solid transparent; }
.kicker a:hover { border-bottom-color: var(--gold); }
.display, .section-title, .hero-title, .work-title,
h1, h2, h3 {
  font-family: Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.12;
  text-transform: none;
  text-wrap: balance;
  margin: 0;
}
.section-title { font-size: clamp(36px, 4.4vw, 56px); }
.section-title span, .work-title span { display: block; }
.section-title-sub { font-size: 0.72em; color: var(--text); }
.metal {
  background-image: linear-gradient(180deg, #fff8df 0%, #f2c75c 34%, #d6a83f 62%, #9a7424 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.011em;
  max-width: 40rem;
  text-wrap: pretty;
}
.section { padding-block: var(--section); }
/* Keep hash/scroll targets clear of the fixed nav on phone → desktop. */
[id] {
  scroll-margin-top: calc(var(--nav) + 20px + env(safe-area-inset-top, 0px));
}
main > :first-child:not(.hero) { padding-top: clamp(120px, 16vh, 168px); }

.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 52;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.88);
  color: var(--gold-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.25s var(--ease), color 0.25s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
}
.to-top[hidden] {
  display: none !important;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--gold);
  color: #080808;
  outline: none;
}
.to-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 168, 63, 0.35);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  min-height: var(--nav);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  min-height: var(--nav);
}
.nav.is-scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
}
.nav-links a, .nav-cta, .menu-toggle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold-2); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 10px 16px;
}
.nav-cta:hover { background: var(--gold); color: #080808; }
.nav-cta span, .btn span { display: inline-block; transition: transform 0.3s var(--ease); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(16px);
  display: grid;
  align-content: safe center;
  justify-items: center;
  padding: calc(var(--nav) + 16px) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  overflow: auto;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: grid; gap: 6px; text-align: center; width: min(420px, 100%); }
.mobile-menu a {
  font-family: Inter, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(14px);
}
.mobile-menu.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.16s; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 0.24s; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 0.28s; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: 0.32s; }
.mobile-menu a:hover, .mobile-menu a:focus-visible,
.mobile-menu a.is-active { color: var(--gold-2); background: rgba(214, 168, 63, 0.08); }
.nav-cta.is-active { background: var(--gold); color: #080808; }

.hero { position: relative; overflow: hidden; }
.hero-motion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-motion-glow,
.hero-motion-grid,
.hero-motion-scan { position: absolute; inset: 0; }
.hero-motion-glow {
  background:
    radial-gradient(ellipse 42% 48% at 78% 42%, rgba(214, 168, 63, 0.22), transparent 68%),
    radial-gradient(ellipse 36% 40% at 18% 80%, rgba(214, 168, 63, 0.08), transparent 70%);
  animation: hero-drift 16s ease-in-out infinite alternate;
}
.hero-motion-grid {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(242, 199, 92, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 199, 92, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 72%);
  animation: hero-pan 22s linear infinite;
}
.hero-motion-scan {
  background: linear-gradient(180deg, transparent, rgba(242, 199, 92, 0.16), transparent);
  height: 18%;
  inset: auto 0 0;
  animation: hero-scan 7.5s ease-in-out infinite;
}
.hero-center {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav) + 28px);
  padding-bottom: 84px;
}
.hero-center .kicker { margin-bottom: 16px; }
.hero-center .role-line { margin-top: 16px; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .hero-title { font-size: clamp(48px, 6.4vw, 84px); }
.hero-title { font-size: clamp(44px, 6vw, 72px); }
.hero-name { letter-spacing: -0.04em; }
.hero-statement {
  margin: 18px 0 0;
  font-family: Inter, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.hero-frameworks { justify-content: center; margin-top: 22px; }
.hero-projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 52rem;
}
.hero-projects a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.006em;
  border-bottom: 1px solid rgba(214, 168, 63, 0.55);
}
.hero-projects a:hover { color: var(--gold-2); }
.hero-scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.hero-scroll span {
  width: 42px;
  height: 1px;
  background: var(--gold);
  transform-origin: left center;
  animation: hero-scroll-line 1.6s var(--ease) infinite;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .line { animation: rise 0.9s var(--ease) both; }
}
.line-mask:nth-child(2) .line { animation-delay: 0.12s; }
.line-mask:nth-child(3) .line { animation-delay: 0.24s; }
.role-line {
  margin: 28px 0 0;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: fade 0.8s 0.35s var(--ease) both;
}
.hero-lede { margin-top: 16px; max-width: 38rem; animation: fade 0.8s 0.45s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; animation: fade 0.8s 0.55s var(--ease) both; }

.hero-stage {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
  min-height: 360px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.78);
  border: 1px solid rgba(214, 168, 63, 0.55);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.hero-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-stage-top .kicker { margin: 0; }
.hero-stage-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-stage-live span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(214, 168, 63, 0.6);
  animation: hero-pulse 1.8s ease-out infinite;
}
.hero-stage-viewport { position: relative; flex: 1; margin-top: 28px; }
.hero-scene { display: none; }
.hero-scene.is-on { display: block; animation: fade 0.7s var(--ease) both; }
.hero-scene-kicker {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-scene-title {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-scene p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  max-width: 36rem;
}
.hero-stage-nav {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.hero-stage-nav button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}
.hero-stage-nav button.is-on,
.hero-stage-nav button[aria-selected="true"] {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  background: transparent;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-gold { border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: #080808; }
.btn[data-submit-btn] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 12.5rem;
}
.btn[data-submit-btn] .btn-spinner {
  display: none;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  flex-shrink: 0;
  animation: btn-spin 0.7s linear infinite;
}
.btn[data-submit-btn].is-loading {
  pointer-events: none;
  opacity: 0.78;
  cursor: wait;
}
.btn[data-submit-btn].is-loading .btn-spinner { display: inline-block; }
.btn[data-submit-btn].is-loading .btn-label { opacity: 0.92; }
.btn:active, .nav-cta:active, .menu-toggle:active { transform: scale(0.98); }
.btn-quiet { border-color: transparent; padding-inline: 8px; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.portrait {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
  aspect-ratio: 1 / 1;
  background: #080808;
  border: 1px solid rgba(214, 168, 63, 0.55);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 70px rgba(214, 168, 63, 0.12);
}
.portrait-hero {
  width: min(480px, 100%);
  animation: portrait-in 1.1s 0.15s var(--ease) both;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.portrait-poster {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  gap: 8px;
}
.portrait-kicker, .portrait-caption {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait-mark {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(140px, 18vw, 240px);
  line-height: 0.8;
  background-image: linear-gradient(180deg, #fff6d8, #d6a83f 45%, #6e5316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.portrait-frame {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(242, 199, 92, 0.45);
  pointer-events: none;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(214, 140, 40, 0.16), transparent 34%);
  pointer-events: none;
}
.seal {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  width: 92px;
  height: 92px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: #101010;
  box-shadow:
    0 0 0 5px rgba(8, 8, 8, 0.72),
    inset 0 0 0 4px #101010,
    inset 0 0 0 5px rgba(214, 168, 63, 0.85);
}
.seal strong {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 32px;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: #fff8df;
  display: block;
}
.seal span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.intro .section-title { font-size: clamp(32px, 3.2vw, 44px); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}
.intro-grid > * { min-width: 0; }
.intro-main .kicker { margin-bottom: 18px; }
.intro-side { display: grid; align-content: start; gap: 8px; }
.intro-copy { margin: 0; }
.aside-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
}
.aside-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.aside-list li:last-child { border-bottom: 1px solid var(--line); }
.aside-list li > p:only-child { grid-column: 1 / -1; }
.aside-list span {
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  padding-top: 3px;
}
.aside-list p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
}

.metrics { padding-block: var(--section); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric { padding: 20px 20px 20px 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }
.metric-value {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.metric-label {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.metric-label span { display: block; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
.section-intro {
  text-align: center;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}
.section-intro .kicker { margin-bottom: 16px; }
.section-intro .lede {
  max-width: none;
  margin: 22px 0 0;
  text-align: left;
}
.services .section-intro,
.expertise .section-intro,
.certificates .section-intro,
.study .section-intro { margin-bottom: 0; }
.section-head > * { min-width: 0; }
.work-head .lede,
.head-side .lede { margin: 0; max-width: none; }
.head-side { display: grid; align-content: start; gap: 8px; }
.work-stack { display: grid; gap: 40px; }
.work-card {
  position: sticky;
  top: 96px;
  z-index: 1;
}
.work-card:nth-child(2) { z-index: 2; }
.work-card:nth-child(3) { z-index: 3; }
.work-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(24px, 2.4vw, 40px);
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid rgba(214, 168, 63, 0.55);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.work-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14px 18px -16px;
  border: 1px solid rgba(214, 168, 63, 0.22);
  border-radius: 18px;
}
.work-card:hover { border-color: var(--gold-2); }
.work-card:hover .work-visual { transform: scale(1.02); }
.work-card:hover .work-title { transform: translateX(6px); }
.work-card:hover .text-link span { transform: translateX(6px); }
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}
.work-meta .kicker { margin: 0; }
.work-role {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.work-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--gold-2);
  transition: transform 0.3s var(--ease);
}
.work-summary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.011em;
  text-wrap: pretty;
}
.work-note {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 168, 63, 0.07);
}
.work-note p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}
.work-facts {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
}
.work-facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.work-facts dt {
  margin: 0;
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  padding-top: 3px;
}
.work-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
}
.caps { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 18px 0; list-style: none; }
.caps li { color: var(--text); font-size: 13px; }
.caps li::before { content: "– "; color: var(--gold); }
.pills, .pills span { display: flex; flex-wrap: wrap; gap: 8px; }
.pills { list-style: none; padding: 0; margin: 20px 0 0; }
.pills li, .service .pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding-block: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 500; line-height: 1; color: var(--gold-2); }
.text-link span { display: inline-block; transition: transform 0.3s var(--ease); }
.work-visual {
  position: relative;
  transition: transform 0.5s var(--ease);
  align-self: center;
}
.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, transparent 40%, rgba(214, 168, 63, 0.16));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.work-card:hover .work-visual::after { opacity: 1; }

.mock {
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
}
.mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mock-top span { width: 8px; height: 8px; border-radius: 50%; background: #2a2926; }
.mock-top span:first-child { background: var(--gold); }
.mock-top em { margin-left: 8px; font-style: normal; }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 210px; }
.mock-body aside { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 10px; align-content: start; }
.mock-body aside i { display: block; height: 8px; border-radius: 99px; background: #2a2926; }
.mock-body aside i.is-on { background: var(--gold); }
.mock-body > div { padding: 16px; }
.mock-app { display: grid; grid-template-columns: 118px 1fr; min-height: 240px; }
.mock-app nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.mock-app nav b {
  color: var(--text);
  font-weight: 600;
  margin-left: -12px;
  padding-left: 10px;
  border-left: 2px solid var(--gold);
}
.mock-app > div { padding: 14px; }
.mock-banner {
  margin: 0 0 12px;
  padding: 8px 10px;
  background: rgba(214, 168, 63, 0.08);
  border: 1px solid rgba(214, 168, 63, 0.28);
  color: var(--gold-2);
  font-size: 12px;
  line-height: 1.4;
}
.mock-rows, .mock-log, .mock-shop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.mock-rows li, .mock-log li, .mock-shop li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid var(--line);
  font-size: 13px;
}
.mock-rows em, .mock-log small, .mock-shop em, .mock-shop header span {
  color: var(--gold-2);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mock-rows em, .mock-shop em {
  border: 1px solid rgba(214, 168, 63, 0.4);
  border-radius: 99px;
  padding: 3px 8px;
}
.mock-log {
  padding: 14px;
  font-variant-numeric: tabular-nums;
}
.mock-log small { letter-spacing: 0.04em; }
.mock-log time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 42px;
}
.mock-log li span { flex: 1; }
.mock-shop { padding: 16px; display: grid; gap: 12px; }
.mock-shop header, .mock-shop p { margin: 0; }
.mock-shop header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.mock-shop header b { font-size: 18px; font-weight: 600; }
.mock-shop p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mock-shop .mock-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 48px;
  padding: 0;
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease);
}
.flow.is-in::before { transform: scaleX(1); }
.flow li {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.flow-compact { grid-template-columns: 1fr; margin-top: 20px; }
.flow-compact::before { display: none; }
.flow-compact li { text-align: left; border-left: 2px solid var(--gold); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.arch-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  grid-column: span 2;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.arch-card:nth-child(1), .arch-card:nth-child(2) { grid-column: span 3; }
.arch-card:hover, .arch-card.is-accent { border-color: rgba(214, 168, 63, 0.7); }
.arch-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}
.arch-card p { margin: 0; color: var(--muted); line-height: 1.6; text-wrap: pretty; }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(24px, 3vw, 36px); }
.stack-group {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stack-group h3 {
  margin: 0;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.stack-note { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.stack-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  align-items: center;
  gap: 8px;
}
.stack-group li {
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.service-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: clamp(24px, 3vw, 36px);
}
.service-platform {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  min-height: 100%;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  scroll-margin-top: 96px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-platform-head { display: grid; gap: 12px; }
.service-platform-name {
  margin: 0;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.service-platform-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}
.service-platform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-platform-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.service-platform-list li:last-child { border-bottom: 0; }
.service-item-no {
  color: var(--gold);
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding-top: 2px;
}
.service-item-body { display: grid; gap: 4px; min-width: 0; }
.service-item-title {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.service-item-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.service-platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-platform-cta span { transition: transform 0.3s var(--ease); }
.service-platform-cta:hover { color: var(--gold); }
.service-platform-cta:hover span { transform: translateX(4px); }

.philosophy-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--gold); }
.timeline li { padding: 0 0 36px 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-no { color: var(--gold-2); letter-spacing: 0.16em; font-size: 12px; font-weight: 500; }
.timeline h3 { margin: 8px 0 10px; font-size: 22px; line-height: 1.25; }
.timeline p { margin: 0; color: var(--muted); max-width: 40rem; line-height: 1.65; text-wrap: pretty; }

.career {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.resume-sheet .career-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 22px;
  padding: 0 0 28px;
  background: none;
  border: 0;
}
.career-index {
  font-family: Inter, sans-serif;
  font-size: 48px;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.career-timeline {
  position: relative;
  list-style: none;
  width: min(980px, 100%);
  margin: 12px auto 0;
  padding: 8px 0 0;
}
.career-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transform-origin: top center;
}
.js .career-timeline::before {
  transform: translateX(-50%) scaleY(0);
  transition: transform 1.35s var(--ease);
}
.js .career-timeline.is-in::before { transform: translateX(-50%) scaleY(1); }
.career-timeline .career-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 0 12px;
  align-items: start;
  padding: 0 0 52px;
  background: none;
  border: 0;
}
.career-timeline .career-item:nth-child(odd) .career-body { grid-column: 1; text-align: right; }
.career-timeline .career-item:nth-child(odd) .career-body > p:last-of-type { margin-left: auto; }
.career-timeline .career-item:nth-child(odd) .career-dot { grid-column: 2; grid-row: 1; }
.career-timeline .career-item:nth-child(odd) .pills { justify-content: flex-end; }
.career-timeline .career-item:nth-child(even) .career-body { grid-column: 3; text-align: left; }
.career-timeline .career-item:nth-child(even) .career-dot { grid-column: 2; grid-row: 1; }
.career-timeline .career-item:nth-child(even) .pills { justify-content: flex-start; }
.career-dot {
  width: 14px;
  height: 14px;
  margin-top: 8px;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(214, 168, 63, 0.16);
  position: relative;
  z-index: 1;
}
.js .career-timeline .career-item {
  opacity: 0;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .career-timeline .career-item:nth-child(odd) { transform: translateX(-64px); }
.js .career-timeline .career-item:nth-child(even) { transform: translateX(64px); }
.js .career-timeline .career-item.is-in {
  opacity: 1;
  transform: none;
}
.js .career-timeline .career-item:not(.is-in) .career-dot {
  background: var(--bg);
  box-shadow: none;
}
.career-timeline time,
.career-item time {
  display: block;
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.career-body h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.career-org {
  margin: 10px 0 0;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.career-body > p:last-of-type { margin: 12px 0 0; color: var(--muted); max-width: 42rem; line-height: 1.65; text-wrap: pretty; }

.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}
.certificates .study-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.study-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  padding: 28px;
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.study-year {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.study-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.study-address {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.study-card .text-link { margin-top: 16px; }
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}
.cert-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: linear-gradient(180deg, #141414, #0e0e0e);
  border: 1px solid rgba(214, 168, 63, 0.55);
  border-radius: 18px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cert-card .text-link { margin-top: auto; padding-top: 18px; }
.cert-dates {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cert-card h3 {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-wrap: balance;
}
.cert-org { margin: 12px 0 0; color: var(--text); font-weight: 500; letter-spacing: -0.006em; }
.cert-card p:last-of-type { margin: 12px 0 0; color: var(--muted); line-height: 1.6; text-wrap: pretty; }

.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 4vw, 72px); align-items: center; }
.about-grid > :first-child,
.contact-grid > :first-child { display: flex; flex-direction: column; align-items: flex-start; }
.about-grid .lede,
.contact-grid .lede,
.case-hero .lede,
.resume-sheet > .lede { margin-top: 24px; }
.portrait-about { max-width: 420px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 32px 0 0; width: 100%; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { color: var(--gold-2); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.facts dd { margin: 8px 0 0; line-height: 1.45; letter-spacing: -0.006em; }
.about-links { display: flex; flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.about-links a { border-bottom: 1px solid var(--gold); }
.is-unset { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 4vw, 72px); align-items: start; }
.contact-panel {
  background: var(--card);
  border: 1px solid rgba(214, 168, 63, 0.45);
  border-radius: 18px;
  padding: clamp(22px, 2.4vw, 32px);
}
.form { display: grid; gap: 16px; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.field-hint { margin: 0; color: var(--muted); font-size: 13px; }
.field-error { margin: 0; color: #ffc7b0; font-size: 14px; }
.form-status {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  line-height: 1.45;
}
.form-status.is-visible { display: grid; gap: 4px; }
.form-status .form-status-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-status .form-status-text {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}
.form-status.is-success {
  border-color: rgba(214, 168, 63, 0.55);
  background: rgba(214, 168, 63, 0.1);
  color: var(--gold-2);
}
.form-status.is-error {
  border-color: rgba(255, 140, 105, 0.55);
  background: rgba(255, 140, 105, 0.1);
  color: #ffc7b0;
}
.form-status.is-error .form-status-text { color: #ffd8c8; }
.form-captcha { justify-items: start; gap: 10px; }
.form-captcha-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}
.form-captcha .cf-turnstile {
  min-height: 65px;
  width: 100%;
  max-width: 320px;
}
.form-captcha-hint {
  margin: 0;
  color: #e08a7a;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 36rem;
}

.error-page .error-code {
  margin: 0 0 8px;
  font-family: Inter, sans-serif;
  font-size: clamp(88px, 18vw, 168px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.86;
  animation: fade 0.8s 0.1s var(--ease) both;
}
.error-page-center {
  max-width: 44rem;
  margin-inline: auto;
}
.error-page-title {
  max-width: 16ch;
  margin-inline: auto;
  animation: fade 0.8s 0.22s var(--ease) both;
}
.error-page-copy {
  max-width: 28rem;
  margin-inline: auto;
  color: var(--muted);
  font-weight: 400;
  animation: fade 0.8s 0.34s var(--ease) both;
}
.error-page .hero-actions {
  animation: fade 0.8s 0.46s var(--ease) both;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 40px 72px;
  align-items: start;
}
.footer-role { color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.footer-copy { color: var(--muted); margin: 28px 0 0; font-size: 13px; line-height: 1.5; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.footer-label {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.footer-nav a,
.footer-nav .is-unset {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.35;
}
.footer-nav a:hover { color: var(--gold-2); }

.case-hero .section-title { font-size: clamp(40px, 5vw, 64px); }
.case-hero .section-title span:last-child {
  background-image: linear-gradient(180deg, #fff8df, #d6a83f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 56px); padding-top: 12px; padding-bottom: 88px; }
.case-nav { position: sticky; top: 100px; align-self: start; }
.case-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.case-nav a { display: inline-block; color: var(--muted); font-size: 13px; font-weight: 500; padding: 4px 0; }
.case-nav a:hover { color: var(--gold-2); }
.case-hero .pills { margin-top: 24px; }
.case-body section { padding: 28px 0; border-top: 1px solid var(--line); }
.case-body h2 { margin: 0 0 14px; font-size: 28px; line-height: 1.2; }
.case-body p, .case-body li { color: var(--muted); line-height: 1.7; text-wrap: pretty; }
.case-body p + p { margin-top: 14px; }
.case-body ul { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 10px; }
.use-moments {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.use-moments li {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.use-when {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  padding-top: 3px;
}
.use-moments p { margin: 0; }
.access-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.access-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.access-table th,
.access-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
}
.access-table thead th {
  color: var(--gold-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #121212;
}
.access-table tbody th {
  color: var(--text);
  font-weight: 500;
  min-width: 220px;
}
.access-table td { color: var(--muted); white-space: nowrap; }
.access-table tr:last-child th,
.access-table tr:last-child td { border-bottom: 0; }
.access-table .is-yes { color: var(--gold-2); font-weight: 500; }
.access-table .is-no { color: #8a867e; }
.case-nav a { letter-spacing: 0.01em; line-height: 1.45; }
.case-nav ol { gap: 12px; }
.case-next { margin-top: 12px; }

.resume-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.resume-sheet h2 { font-family: Inter, sans-serif; font-size: 32px; font-weight: 400; letter-spacing: 0.03em; line-height: 0.95; margin: 48px 0 16px; }
.resume-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.resume-facts li { padding-top: 10px; border-top: 1px solid var(--line); }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), margin 0.2s var(--ease), background 0.2s;
}
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor.is-view {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  background: var(--gold);
  mix-blend-mode: normal;
  display: grid;
  place-items: center;
}
.cursor-label { display: none; color: #080808; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.cursor.is-view .cursor-label { display: block; }

.js .reveal,
.js .rise {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
/* Leave upward when the block scrolls off the top (scroll up). */
.js .reveal[data-exit="up"],
.js .rise[data-exit="up"] {
  transform: translateY(-28px);
}
.js .reveal.is-in,
.js .rise.is-in {
  opacity: 1;
  transform: none;
}
.js .work-card:hover .work-title.is-in { transform: translateX(6px); }
.js .work-card:hover .work-visual.is-in { transform: scale(1.02); }

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: none; }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes portrait-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}
@keyframes hero-pan {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}
@keyframes hero-scan {
  from { transform: translateY(-120%); }
  to { transform: translateY(640%); }
}
@keyframes hero-pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 168, 63, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(214, 168, 63, 0); }
}
@keyframes hero-scroll-line {
  0% { transform: scaleX(0.35); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.35); opacity: 0.4; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover, .nav-cta:hover { transform: translateY(-2px); }
  .btn:hover span, .nav-cta:hover span { transform: translateX(4px); }
  .arch-card:hover,
  .stack-group:hover,
  .study-card:hover,
  .cert-card:hover,
  .service-platform:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 199, 92, 0.75);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 1100px) {
  .intro-grid, .section-head, .work-card, .about-grid, .contact-grid, .philosophy-grid, .case-layout {
    grid-template-columns: 1fr;
  }
  .certificates .study-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .flow::before { display: none; }
  .stack-grid,
  .service-platforms { grid-template-columns: 1fr 1fr; }
  .bento, .arch-card, .arch-card:nth-child(1), .arch-card:nth-child(2) { grid-column: span 6; }
  .bento { grid-template-columns: 1fr; }
  .portrait { margin-inline: auto; }
  .work-visual { order: -1; }
  .case-nav { position: static; }
  .case-nav ol { display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .case-layout { padding-top: 28px; }
  .career-timeline::before,
  .js .career-timeline::before,
  .js .career-timeline.is-in::before {
    left: 7px;
    transform-origin: top center;
  }
  .career-timeline::before,
  .js .career-timeline.is-in::before { transform: scaleY(1); }
  .js .career-timeline::before { transform: scaleY(0); }
  .js .career-timeline .career-item,
  .js .career-timeline .career-item:nth-child(odd),
  .js .career-timeline .career-item:nth-child(even) { transform: translateY(24px); }
  .js .career-timeline .career-item.is-in { transform: none; }
  .career-timeline .career-item { grid-template-columns: 14px minmax(0, 1fr); gap: 0 16px; }
  .career-timeline .career-item:nth-child(odd) .career-dot,
  .career-timeline .career-item:nth-child(even) .career-dot { grid-column: 1; grid-row: 1; margin-top: 6px; }
  .career-timeline .career-item:nth-child(odd) .career-body,
  .career-timeline .career-item:nth-child(even) .career-body { grid-column: 2; grid-row: 1; text-align: left; }
  .career-timeline .career-item:nth-child(odd) .career-body > p:last-of-type { margin-left: 0; max-width: none; }
  .career-timeline .career-item:nth-child(odd) .pills,
  .career-timeline .career-item:nth-child(even) .pills { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
}

@media (max-width: 767px) {
  .brand-logo { height: 34px; }
  .hero-title { font-size: clamp(40px, 12vw, 52px); }
  .section-title { font-size: clamp(32px, 9vw, 44px); }
  .work-title { font-size: clamp(26px, 7vw, 32px); }
  .certificates .study-grid,
  .cert-grid, .study-grid, .metrics-grid, .stack-grid, .service-platforms, .form-split, .facts { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .work-card { position: static; padding: 20px; }
  .work-card::before { display: none; }
  .work-visual { order: -1; }
  .work-meta, .work-facts div { display: grid; grid-template-columns: 1fr; }
  .work-role { text-align: left; }
  .mock-app { grid-template-columns: 76px 1fr; }
  .mock-rows li, .mock-shop li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .career-index { font-size: 36px; }
  .use-moments li { grid-template-columns: 1fr; gap: 6px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .mobile-menu a { font-size: 22px; }
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; }
}

@media (max-height: 520px) {
  .hero-center {
    min-height: 100svh;
    padding-top: calc(var(--nav) + 8px);
    padding-bottom: 36px;
  }
  .hero-center .hero-title,
  .hero-title { font-size: clamp(32px, 8vh, 52px); }
  .role-line { margin-top: 8px; }
  .hero-statement { margin-top: 8px; font-size: 16px; }
  .hero-actions { margin-top: 14px; }
  .hero-scroll { bottom: 0; }
  .mobile-menu { align-content: start; padding-top: calc(var(--nav) + 4px); }
  .mobile-menu nav { gap: 0; }
  .mobile-menu a { min-height: 34px; font-size: 17px; }
}

@media (max-width: 767px) and (orientation: landscape) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric,
  .metric + .metric { border-top: 0; border-left: 0; padding-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal, .js .rise, .js .career-timeline .career-item, .mobile-menu a { opacity: 1; transform: none; }
  .cursor { display: none !important; }
}

@media print {
  .nav, .progress, .footer, .cursor, .hero-actions, #print-resume, .mobile-menu, .to-top { display: none !important; }
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .metal { color: #111; background: none; }
}
