:root {
  color-scheme: dark;
  --ink: #0a0c0b;
  --ink-soft: #111411;
  --paper: #f0eee7;
  --muted: #a4a79f;
  --line: rgba(240, 238, 231, 0.16);
  --acid: #c9ff5a;
  --orange: #e65a2e;
  --sand: #d5ad69;
  --shell: min(1180px, calc(100vw - 48px));
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

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

.pointer-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(201, 255, 90, 0.055);
  filter: blur(90px);
  pointer-events: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 86px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 70px;
  border-color: var(--line);
  background: rgba(10, 12, 11, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.header-cta {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  color: var(--acid);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-cta span {
  font-size: 17px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 820px;
  width: var(--shell);
  margin: 0 auto;
  padding: 180px 0 78px;
  flex-direction: column;
  justify-content: space-between;
}

.hero-kicker,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 5px rgba(201, 255, 90, 0.1);
}

.hero-title {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 56px 0 70px;
  font-size: clamp(66px, 9.4vw, 142px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero-title span {
  color: var(--acid);
  font-style: italic;
  font-weight: 400;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.hero-intro {
  max-width: 485px;
  margin: 0 0 6px 34%;
  color: #c8cac4;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}

.circle-link {
  display: grid;
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.circle-link:hover,
.circle-link:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
  transform: rotate(8deg);
}

.circle-link svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  right: 6%;
  top: 130px;
  width: 360px;
  height: 360px;
  opacity: 0.42;
  animation: float 7s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-ring-two {
  inset: 74px;
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 70px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.orbit-label {
  position: absolute;
  padding: 5px 9px;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.orbit-label-one { top: 11%; left: 13%; }
.orbit-label-two { right: -2%; top: 49%; }
.orbit-label-three { bottom: 6%; left: 24%; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(14px) rotate(2deg); }
}

.capability-strip {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.capability-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 32px;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-track i {
  color: #769d28;
  font-size: 14px;
  font-style: normal;
}

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

.work-section {
  padding: 150px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 70px;
  margin-bottom: 70px;
}

.section-heading h2,
.approach-intro h2,
.contact-section h2 {
  margin: 18px 0 0;
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.section-heading > p {
  max-width: 390px;
  margin: auto 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.project {
  display: grid;
  min-height: 660px;
  margin-top: 28px;
  grid-template-columns: 38% 62%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.project-copy {
  display: flex;
  padding: 36px;
  flex-direction: column;
  justify-content: space-between;
  background: #101310;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-overline {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-size: clamp(46px, 5vw, 74px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.project-description {
  max-width: 390px;
  margin: 28px 0 0;
  color: #b7bab3;
  font-size: 14px;
  line-height: 1.72;
}

.project-link {
  display: flex;
  width: 100%;
  padding-top: 22px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--acid);
}

.project-link span {
  font-size: 18px;
}

.project-visual {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
}

/* Pharaoh's Food art direction */
.pharaoh-visual {
  background: #c35432;
}

.pharaoh-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background: repeating-linear-gradient(90deg, transparent 0 68px, #331810 69px 70px),
    repeating-linear-gradient(0deg, transparent 0 68px, #331810 69px 70px);
}

.sun-disc {
  position: absolute;
  top: -18%;
  right: -10%;
  width: 490px;
  height: 490px;
  border: 2px solid #f7cc7a;
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px #c35432, inset 0 0 0 40px #f7cc7a,
    inset 0 0 0 78px #c35432, inset 0 0 0 80px #f7cc7a;
}

.menu-card {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(370px, 62%);
  padding: 38px 34px;
  transform: translate(-46%, -50%) rotate(-4deg);
  background: #f0d496;
  color: #281c14;
  box-shadow: 24px 32px 70px rgba(46, 18, 8, 0.35);
}

.menu-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(40, 28, 20, 0.35);
  content: "";
}

.menu-card-head,
.menu-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-card-head {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.menu-card > p {
  position: relative;
  max-width: 190px;
  margin: 58px 0 42px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.menu-line {
  padding: 11px 0;
  border-bottom: 1px solid rgba(40, 28, 20, 0.24);
  font-size: 11px;
}

.menu-line b {
  font-family: var(--font-mono);
  font-size: 10px;
}

.menu-rule {
  position: relative;
  height: 8px;
  margin: 26px 0 14px;
  background: repeating-linear-gradient(90deg, #281c14 0 3px, transparent 3px 6px);
}

.menu-note {
  position: relative;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.food-stamp {
  position: absolute;
  z-index: 5;
  right: 8%;
  bottom: 11%;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 2px solid #f0d496;
  border-radius: 50%;
  color: #f0d496;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  transform: rotate(11deg);
}

.falafel {
  position: absolute;
  z-index: 4;
  width: 58px;
  height: 58px;
  border: 7px dotted #a97930;
  border-radius: 50%;
  background: #836425;
  box-shadow: inset 0 0 0 4px #b58a38, 5px 9px 22px rgba(49, 28, 8, 0.3);
}

.falafel-one { left: 7%; bottom: 13%; }
.falafel-two { left: 15%; bottom: 8%; transform: scale(0.75); }
.falafel-three { left: 5%; bottom: 4%; transform: scale(0.55); }

/* RustBuddy art direction */
.rust-visual {
  background: #151918;
}

.rust-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: linear-gradient(rgba(230, 90, 46, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 90, 46, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.radar {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 440px;
  height: 440px;
  place-items: center;
  border: 1px solid rgba(230, 90, 46, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 54px, rgba(230, 90, 46, 0.16) 55px 56px);
  box-shadow: 0 0 100px rgba(230, 90, 46, 0.08);
}

.radar::before,
.radar::after {
  position: absolute;
  background: rgba(230, 90, 46, 0.24);
  content: "";
}

.radar::before { width: 100%; height: 1px; }
.radar::after { width: 1px; height: 100%; }

.radar b {
  display: grid;
  z-index: 2;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: #151918;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 19px;
  box-shadow: 0 0 35px rgba(230, 90, 46, 0.28);
}

.radar-sweep {
  position: absolute;
  inset: 0 50% 50% 0;
  transform-origin: 100% 100%;
  background: conic-gradient(from 90deg at 100% 100%, rgba(230, 90, 46, 0.22), transparent 36deg);
  animation: sweep 5s linear infinite;
}

@keyframes sweep { to { transform: rotate(360deg); } }

.radar-point {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff764c;
  box-shadow: 0 0 0 5px rgba(230, 90, 46, 0.13), 0 0 16px #e65a2e;
}

.point-one { top: 26%; left: 34%; }
.point-two { right: 22%; bottom: 32%; }
.point-three { left: 25%; bottom: 23%; }

.rust-panel {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(240, 238, 231, 0.16);
  background: rgba(13, 16, 15, 0.86);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
}

.rust-panel-top {
  top: 46px;
  left: 42px;
  display: flex;
  width: 250px;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 0.11em;
}

.rust-panel-top b {
  color: #b7d98b;
  font-size: 7px;
  font-weight: 500;
}

.rust-panel-top i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #9fd35c;
}

.rust-panel-alert {
  right: 38px;
  bottom: 42px;
  width: 290px;
  padding: 20px;
}

.rust-panel-alert small,
.rust-panel-alert span {
  display: block;
  color: #858a84;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.rust-panel-alert strong {
  display: block;
  margin: 12px 0 24px;
  color: #ff7045;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.rust-coordinate {
  position: absolute;
  z-index: 4;
  left: 42px;
  bottom: 48px;
  color: #696e69;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* OptiTweaks art direction */
.opti-visual {
  background: #d9f9f0;
}

.opti-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(8, 26, 21, 0.24) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent, black 40%, black 70%, transparent);
}

.opti-glow {
  position: absolute;
  right: -100px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: #90ffc9;
  filter: blur(70px);
  opacity: 0.6;
}

.opti-window {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(610px, 78%);
  height: 390px;
  grid-template-columns: 66px 1fr;
  overflow: hidden;
  transform: translate(-48%, -50%) rotate(2deg);
  border: 7px solid #0e1412;
  border-radius: 18px;
  background: #0e1412;
  color: #e8f1ed;
  box-shadow: 28px 34px 70px rgba(10, 54, 41, 0.28);
}

.opti-sidebar {
  display: flex;
  padding: 15px 0;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #121b18;
}

.opti-logo,
.opti-user {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #b8ff69;
  color: #0d1512;
  font-size: 11px;
  font-weight: 800;
}

.opti-sidebar i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.opti-sidebar i.active {
  border-color: #b8ff69;
  background: rgba(184, 255, 105, 0.1);
}

.opti-user {
  margin-top: auto;
  background: #26322e;
  color: #8b9792;
}

.opti-dashboard {
  padding: 28px;
}

.opti-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #75837d;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.opti-topline b {
  color: #b8ff69;
  font-weight: 500;
}

.opti-score {
  display: grid;
  height: 185px;
  margin-top: 22px;
  padding: 24px;
  align-items: end;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(145deg, #17231f, #101714);
}

.opti-score span,
.opti-metrics span {
  display: block;
  color: #6c7973;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.opti-score strong {
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.08em;
}

.opti-score small {
  color: #5b6862;
  font-family: var(--font-mono);
  font-size: 8px;
}

.opti-score svg {
  width: 100%;
  fill: none;
  stroke: #b8ff69;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(184, 255, 105, 0.4));
}

.opti-metrics {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.opti-metrics > div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.opti-metrics strong {
  display: block;
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.opti-metrics small {
  margin-left: 3px;
  color: #6c7973;
  font-family: var(--font-mono);
  font-size: 5px;
}

.opti-metrics i {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #b8ff69 var(--value), #28332f var(--value));
}

.opti-label {
  position: absolute;
  z-index: 4;
  padding: 8px 12px;
  border: 1px solid #12211b;
  background: #d9f9f0;
  color: #12211b;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.label-fast { top: 15%; left: 5%; transform: rotate(-8deg); }
.label-clean { right: 5%; top: 31%; transform: rotate(7deg); }
.label-sharp { left: 10%; bottom: 12%; transform: rotate(4deg); }

.approach-section {
  padding: 150px 0;
  border-top: 1px solid var(--line);
  background: #0d100e;
}

.approach-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.approach-intro h2 {
  margin-top: 0;
}

.approach-intro h2 span {
  color: var(--acid);
  font-style: italic;
}

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

.principle {
  min-height: 300px;
  padding: 28px 34px 0 0;
  border-right: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 34px;
}

.principle:last-child {
  border-right: 0;
}

.principle > span {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
}

.principle h3 {
  margin: 70px 0 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.principle p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

.contact-section {
  position: relative;
  display: flex;
  min-height: 780px;
  padding: 150px 24px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.contact-section h2 {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.82;
}

.contact-section h2 span {
  color: var(--acid);
  font-style: italic;
  font-weight: 400;
}

.contact-link {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: 74px;
  padding: 16px 0;
  gap: 22px;
  border-bottom: 1px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
}

.contact-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(580px, 62vw);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(201, 255, 90, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 255, 90, 0.1), transparent 64%);
  color: rgba(201, 255, 90, 0.06);
  font-size: 260px;
  font-weight: 800;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: translate(-50%, -50%) scale(1.06); }
}

.site-footer {
  display: grid;
  width: var(--shell);
  min-height: 110px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand {
  color: var(--paper);
}

.site-footer p:nth-child(2) { text-align: center; }
.site-footer p:last-child { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }

  .site-header {
    height: 72px;
    padding-inline: 16px;
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    padding: 120px 24px 60px;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    visibility: hidden;
    opacity: 0;
    background: rgba(10, 12, 11, 0.98);
    font-family: var(--font-sans);
    font-size: 42px;
    font-weight: 600;
    letter-spacing: -0.05em;
    text-transform: none;
    transition: opacity 220ms ease, visibility 220ms ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
  }

  .header-cta { display: none; }

  .menu-button {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-button span:not(.sr-only) {
    position: absolute;
    left: 8px;
    width: 26px;
    height: 1px;
    background: var(--paper);
    transition: transform 200ms ease, top 200ms ease;
  }

  .menu-button span:nth-child(2) { top: 17px; }
  .menu-button span:nth-child(3) { top: 25px; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

  .hero {
    min-height: 760px;
    padding: 150px 0 64px;
  }

  .hero-title {
    margin-top: 80px;
    font-size: clamp(58px, 13vw, 98px);
  }

  .hero-orbit {
    right: -120px;
    top: 150px;
    width: 300px;
    height: 300px;
  }

  .hero-intro {
    max-width: 440px;
    margin-left: 0;
  }

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

  .project {
    min-height: 1000px;
    grid-template-columns: 1fr;
    grid-template-rows: 440px 560px;
  }

  .project-copy {
    grid-row: 1;
  }

  .project-visual {
    grid-row: 2;
  }

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

@media (max-width: 580px) {
  .brand-word { display: none; }

  .hero {
    min-height: 680px;
    padding-top: 128px;
  }

  .hero-title {
    margin: 82px 0 60px;
    font-size: clamp(51px, 15.2vw, 74px);
    line-height: 0.9;
  }

  .hero-orbit {
    right: -138px;
    top: 150px;
    width: 270px;
    height: 270px;
  }

  .hero-bottom {
    align-items: flex-end;
    gap: 20px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .circle-link {
    width: 58px;
    height: 58px;
  }

  .work-section,
  .approach-section {
    padding: 100px 0;
  }

  .project {
    min-height: 850px;
    grid-template-rows: 430px 420px;
  }

  .project-copy {
    padding: 25px;
  }

  .project h3 {
    font-size: 47px;
  }

  .project-description {
    margin-top: 20px;
    font-size: 12px;
  }

  .menu-card {
    width: 71%;
    padding: 28px 24px;
  }

  .menu-card > p {
    margin: 45px 0 30px;
    font-size: 29px;
  }

  .menu-line { padding: 7px 0; }
  .food-stamp { width: 75px; height: 75px; font-size: 7px; }

  .radar {
    width: 310px;
    height: 310px;
  }

  .rust-panel-top { top: 24px; left: 20px; width: 230px; }
  .rust-panel-alert { right: 20px; bottom: 20px; width: 235px; }
  .rust-coordinate { display: none; }

  .opti-window {
    width: 88%;
    height: 290px;
    grid-template-columns: 48px 1fr;
  }

  .opti-sidebar { gap: 9px; }
  .opti-logo, .opti-user { width: 25px; height: 25px; }
  .opti-sidebar i { width: 17px; height: 17px; }
  .opti-dashboard { padding: 18px; }
  .opti-score { height: 130px; padding: 16px; }
  .opti-score strong { font-size: 40px; }
  .opti-metrics > div { padding: 9px; }
  .opti-metrics strong { font-size: 13px; }
  .opti-label { padding: 6px 8px; font-size: 6px; }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    min-height: auto;
    padding: 28px 0 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle h3 { margin-top: 44px; }

  .contact-section {
    min-height: 650px;
    padding-inline: 16px;
  }

  .contact-section h2 { font-size: clamp(54px, 17vw, 88px); }
  .contact-link { margin-top: 58px; }
  .contact-orb { width: 110vw; }

  .site-footer {
    min-height: 130px;
    grid-template-columns: 1fr 1fr;
  }

  .site-footer p:nth-child(2) { display: none; }
  .site-footer p:last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
