:root {
  --bg: #070709;
  --bg-elevated: #0e0f14;
  --bg-card: rgba(17, 18, 24, 0.78);
  --surface-line: rgba(244, 241, 234, 0.1);
  --surface-line-strong: rgba(244, 241, 234, 0.22);
  --text: #f4f1ea;
  --text-muted: #9b9992;
  --text-dim: #62605b;
  --gold: #e0af62;
  --gold-soft: rgba(224, 175, 98, 0.16);
  --emerald: #4ade80;

  --font-display: 'Syne', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1180px;
  --header-h: 76px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 175, 98, 0.4) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.55;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor input,
body.has-custom-cursor select,
body.has-custom-cursor textarea {
  cursor: none;
}

body.is-smooth-scroll #smooth-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

#smooth-content {
  will-change: transform;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.container {
  width: min(var(--container-max), calc(100% - 10.5rem));
  margin-inline: auto;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.accent-gold {
  color: var(--gold);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.15rem;
}

.section-tag::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.032;
  background-image: radial-gradient(rgba(255, 255, 255, 0.75) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* X-Ray Blueprint Grid Mode */
.blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.4s var(--ease-expo);
}

body.xray-active .blueprint-grid {
  opacity: 1;
}

body.xray-active section,
body.xray-active .bento-card,
body.xray-active .work-card,
body.xray-active .pillar-card {
  outline: 1px dashed rgba(224, 175, 98, 0.25);
}

.blueprint-columns {
  width: min(var(--container-max), calc(100% - 10.5rem));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.blueprint-columns span {
  height: 100%;
  border-inline: 1px solid rgba(224, 175, 98, 0.09);
  background: rgba(224, 175, 98, 0.018);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #050507;
  display: grid;
  place-items: center;
  transition: transform 0.85s var(--ease-expo), opacity 0.6s ease;
}

.preloader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-inner {
  width: min(460px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.preloader-brand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.preloader-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.preloader-meter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preloader-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fff3db);
}

.preloader-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 3.4rem;
  text-align: right;
}

/* Custom Magnetic Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 180;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.has-custom-cursor .custom-cursor.is-visible {
  opacity: 1;
}

.cursor-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(224, 175, 98, 0.55);
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.28s var(--ease-expo), height 0.28s var(--ease-expo), background 0.25s ease, border-color 0.25s ease;
}

.cursor-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #070709;
  font-weight: 500;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.custom-cursor.is-hover .cursor-ring {
  width: 58px;
  height: 58px;
  background: rgba(224, 175, 98, 0.12);
  border-color: var(--gold);
}

.custom-cursor.has-label .cursor-ring {
  width: 82px;
  height: 82px;
  background: var(--gold);
  border-color: var(--gold);
}

.custom-cursor.has-label .cursor-dot {
  opacity: 0;
}

.custom-cursor.has-label .cursor-label {
  opacity: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.2rem, 3.2vw, 3rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 9, 0.62);
  border-bottom: 1px solid rgba(244, 241, 234, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(224, 175, 98, 0.22), rgba(224, 175, 98, 0.04));
  border: 1px solid rgba(224, 175, 98, 0.45);
  color: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-expo);
}

.header-nav a:hover,
.header-nav a.is-active {
  color: var(--text);
}

.header-nav a:hover::after,
.header-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.blueprint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--surface-line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.blueprint-toggle .toggle-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.blueprint-toggle[aria-pressed='true'] {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.blueprint-toggle[aria-pressed='true'] .toggle-dot {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #070709;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.25s ease, transform 0.25s var(--ease-expo);
}

.header-cta:hover {
  background: var(--gold);
}

/* Scroll Progress Rail */
.scroll-rail {
  position: fixed;
  right: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.rail-progress-track {
  width: 2px;
  height: 92px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
  align-self: flex-end;
  margin-right: 4px;
}

.rail-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), #fff4d6);
  transform-origin: top;
  transform: scaleY(0);
}

.rail-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.42rem;
}

.rail-chapters button {
  position: relative;
  background: none;
  border: 0;
  padding: 0.18rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.rail-chapters button em {
  position: absolute;
  right: 1.55rem;
  white-space: nowrap;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-expo);
}

.rail-chapters button:hover em,
.rail-chapters button.is-active em {
  opacity: 1;
  transform: translateX(0);
}

.rail-chapters button.is-active {
  color: var(--gold);
}

.rail-telemetry {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-line);
  padding-top: 0.55rem;
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-expo), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: #070709;
}

.btn-primary:hover {
  background: #f2c985;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--surface-line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* 01 / Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--container-max), calc(100% - 10.5rem));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 2.3rem;
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-line);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.mono-coords {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.hero-eyebrow {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 6.8vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24em;
  overflow: hidden;
}

.word-reveal {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.95s var(--ease-expo), opacity 0.8s ease;
}

body.is-ready .word-reveal {
  transform: translateY(0);
  opacity: 1;
}

.title-row:nth-child(1) .word-reveal:nth-child(2) { transition-delay: 0.08s; }
.title-row:nth-child(2) .word-reveal:nth-child(1) { transition-delay: 0.14s; }
.title-row:nth-child(2) .word-reveal:nth-child(2) { transition-delay: 0.2s; }
.title-row:nth-child(2) .word-reveal:nth-child(3) { transition-delay: 0.26s; }

.hero-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.lead-copy {
  margin: 0;
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.hero-metrics {
  margin: 2.3rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--surface-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.hero-metrics dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.hero-metrics dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
}

.hero-metrics dd sub {
  font-size: 0.8rem;
  color: var(--gold);
  vertical-align: baseline;
  margin-left: 0.15rem;
}

.hero-visual-card {
  position: relative;
}

.hero-visual-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--surface-line-strong);
  background: #0b0c10;
  aspect-ratio: 16 / 10;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
  will-change: transform, clip-path;
}

.hero-visual-frame--portrait {
  aspect-ratio: 5 / 4.4;
  max-width: 520px;
  margin-left: auto;
  border-color: rgba(224, 175, 98, 0.35);
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero-visual-img--portrait {
  object-position: center 14%;
  filter: contrast(1.04) saturate(0.95);
}

.portrait-face-mask {
  --reveal-x: 50%;
  --reveal-y: 24%;
  --reveal-radius: clamp(3.7rem, 8vw, 6rem);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.portrait-face-mask-img,
.portrait-hover-reveal {
  position: absolute;
  display: block;
  pointer-events: none;
    transform: scale(1.06);
    transform-origin: center center;
}

.portrait-face-mask-img {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
  opacity: 0.96;
    filter: contrast(1.04) saturate(0.94) drop-shadow(0 0.8rem 1rem rgba(0, 0, 0, 0.5));
}

.portrait-hover-reveal {
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
    object-position: center 14%;
  opacity: 0;
  clip-path: circle(0 at var(--reveal-x) var(--reveal-y));
  filter: contrast(1.04) saturate(0.95);
  transition: opacity 0.2s ease, clip-path 0.16s ease-out;
}

.portrait-face-mask.is-revealing .portrait-hover-reveal {
  opacity: 1;
  clip-path: circle(var(--reveal-radius) at var(--reveal-x) var(--reveal-y));
}

.portrait-reveal-ring {
  position: absolute;
  z-index: 3;
  left: var(--reveal-x);
  top: var(--reveal-y);
  width: calc(var(--reveal-radius) * 2);
  height: calc(var(--reveal-radius) * 2);
  border: 1px solid rgba(95, 224, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 1.2rem rgba(95, 224, 255, 0.32), inset 0 0 1rem rgba(95, 224, 255, 0.08);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-expo);
}

.portrait-face-mask.is-revealing .portrait-reveal-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 640px) {
  .portrait-face-mask {
    --reveal-radius: 3.4rem;
  }

  .portrait-face-mask-img {
      inset: 0;
  }
}

.portrait-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 25%, transparent 45%, rgba(7, 7, 9, 0.55) 100%),
    linear-gradient(180deg, transparent 58%, rgba(7, 7, 9, 0.86) 100%);
  pointer-events: none;
}

.hero-visual-hud {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.hud-chip {
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 241, 234, 0.14);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.scroll-cue-line {
  width: 56px;
  height: 1px;
  background: rgba(244, 241, 234, 0.18);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: slideLine 2s var(--ease-expo) infinite;
}

@keyframes slideLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.scroll-cue-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* 02 / Velocity Marquee & Craft */
.craft-section {
  padding-bottom: 7.5rem;
  border-top: 1px solid var(--surface-line);
}

.velocity-marquee {
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--surface-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: linear-gradient(180deg, rgba(224, 175, 98, 0.03), transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
  will-change: transform;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.marquee-track i {
  font-style: normal;
  color: var(--gold);
  font-size: 0.75em;
}

.marquee-track--alt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
}

.craft-body {
  padding-top: clamp(4rem, 7vw, 6.5rem);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.scrub-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.scrub-word {
  color: rgba(244, 241, 234, 0.2);
  transition: color 0.18s linear;
}

.scrub-word.is-lit {
  color: var(--text);
}

.craft-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pillar-card {
  padding: 1.55rem 1.7rem;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--surface-line);
  transition: border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.pillar-card:hover {
  border-color: rgba(224, 175, 98, 0.45);
  background: rgba(24, 25, 34, 0.9);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--gold);
}

.pillar-card h3 {
  margin: 0.45rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 03 / Pinned Horizontal Works Showcase */
.works-track-section {
  position: relative;
  border-top: 1px solid var(--surface-line);
  background: radial-gradient(ellipse at 50% 0%, rgba(224, 175, 98, 0.06), transparent 60%);
}

.works-sticky-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 2.5rem;
  overflow: hidden;
  will-change: transform;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}

.works-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.works-counter {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.works-counter strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.works-progress-bar {
  width: 130px;
  height: 2px;
  background: rgba(244, 241, 234, 0.14);
  overflow: hidden;
}

.works-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

.works-step-btns {
  display: flex;
  gap: 0.5rem;
}

.step-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--surface-line-strong);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.step-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #070709;
}

.works-viewport {
  width: 100%;
  padding-left: max(5.25rem, calc((100vw - var(--container-max)) / 2));
}

.works-rail {
  display: flex;
  gap: 2.2rem;
  padding-right: max(6.5rem, calc((100vw - var(--container-max)) / 2));
  width: max-content;
  will-change: transform;
}

.work-card {
  width: clamp(315px, 37vw, 510px);
  flex-shrink: 0;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease;
  will-change: transform;
}

.work-card:hover {
  border-color: rgba(224, 175, 98, 0.52);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0b0f;
}

.work-media img,
.work-media canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}

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

.work-year {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.76);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 241, 234, 0.16);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.work-meta {
  padding: 1.55rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.work-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.work-index {
  color: var(--gold);
}

.work-stack {
  color: var(--text-dim);
}

.work-meta h3 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.work-meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.work-actions-row {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.work-inspect-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(224, 175, 98, 0.4);
  padding: 0 0 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.25s var(--ease-expo), border-color 0.25s ease;
}

.work-live-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.work-live-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.work-inspect-btn:hover {
  gap: 0.9rem;
  border-color: var(--gold);
}

/* 04 / Process Timeline */
.process-section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
  border-top: 1px solid var(--surface-line);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: start;
}

.process-sticky-col {
  will-change: transform;
}

.process-intro {
  margin: 1.25rem 0 2.5rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.process-dial-row {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.credentials-card {
  padding: 1.35rem 1.5rem;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.credentials-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.credentials-list li {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--surface-line);
}

.credentials-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.credentials-list strong {
  font-size: 0.92rem;
  color: var(--text);
}

.credentials-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.phone-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--gold);
}

.modal-visit-btn {
  margin-top: 1.35rem;
  width: 100%;
  justify-content: center;
}

.process-dial {
  position: relative;
  width: 180px;
  height: 180px;
}

.dial-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial-track {
  fill: none;
  stroke: rgba(244, 241, 234, 0.1);
  stroke-width: 2;
}

.dial-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 477.5;
  stroke-dashoffset: 358;
  transition: stroke-dashoffset 0.2s linear;
}

.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dial-center strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.process-steps-col {
  position: relative;
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.process-spine {
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: rgba(244, 241, 234, 0.1);
}

.process-spine-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), rgba(224, 175, 98, 0.3));
  transform-origin: top;
  transform: scaleY(0);
}

.process-step {
  padding: 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--surface-line);
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.4s ease, border-color 0.4s ease, transform 0.5s var(--ease-expo);
}

.process-step.is-active {
  opacity: 1;
  border-color: rgba(224, 175, 98, 0.45);
  transform: translateX(6px);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.process-step h3 {
  margin: 0.6rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.process-step p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.step-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-deliverables li {
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--surface-line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* 05 / Scroll Physics Lab */
.lab-section {
  padding-block: clamp(5rem, 8.5vw, 8rem);
  border-top: 1px solid var(--surface-line);
  background: radial-gradient(circle at 80% 20%, rgba(224, 175, 98, 0.06), transparent 45%);
}

.lab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.lab-subtitle {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
}

.lab-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.bento-card {
  padding: 1.85rem;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--accent {
  background: linear-gradient(145deg, rgba(224, 175, 98, 0.12), rgba(14, 15, 20, 0.95));
  border-color: rgba(224, 175, 98, 0.3);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.engine-badge {
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(224, 175, 98, 0.35);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
}

.bento-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.preset-btn {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.preset-btn.is-active,
.preset-btn:hover {
  background: var(--gold);
  color: #070709;
  border-color: var(--gold);
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 0.4rem;
}

.control-slider {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.control-slider span {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.control-slider strong {
  font-family: var(--font-mono);
  color: var(--gold);
}

.control-slider input[type='range'] {
  width: 100%;
  accent-color: var(--gold);
}

.velocity-scope {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: #07080b;
  border: 1px solid var(--surface-line);
}

.scope-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.scope-stats small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.scope-stats strong {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
}

.stack-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.stack-pills li {
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-line);
  font-size: 0.84rem;
}

.guarantee-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guarantee-list > div {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.94rem;
}

.guarantee-list strong {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.78rem;
}

/* 06 / Contact & Footer */
.contact-section {
  padding-top: clamp(5rem, 8.5vw, 8rem);
  padding-bottom: 3rem;
  border-top: 1px solid var(--surface-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.contact-copy {
  margin: 1.3rem 0 2rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.direct-contact-card {
  padding: 1.65rem;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.email-link {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  color: var(--text);
}

.copy-btn {
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--surface-line);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--gold);
}

.inquiry-form {
  padding: 2rem;
  border-radius: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-line);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #08090d;
  border: 1px solid var(--surface-line-strong);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  transition: border-color 0.25s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.3rem;
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gold);
}

.site-footer {
  margin-top: clamp(4rem, 7vw, 6.5rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--surface-line);
}

.footer-monogram {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 9.8vw, 9.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: rgba(244, 241, 234, 0.08);
  user-select: none;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.back-top-btn {
  background: none;
  border: 1px solid var(--surface-line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
}

.back-top-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Project Inspector Modal */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.project-modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.82);
  backdrop-filter: blur(12px);
}

.modal-sheet {
  position: relative;
  z-index: 2;
  width: min(1060px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #0d0e13;
  border: 1px solid var(--surface-line-strong);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.75);
}

.modal-topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(13, 14, 19, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.device-switcher {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 999px;
}

.device-btn {
  border: 0;
  background: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.device-btn.is-active {
  background: var(--gold);
  color: #070709;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--surface-line-strong);
  background: none;
}

.modal-body {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.modal-preview-stage {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  border-radius: 18px;
  background: #070709;
  border: 1px solid var(--surface-line);
  min-height: 360px;
}

.device-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--surface-line-strong);
  background: #101218;
  transition: width 0.45s var(--ease-expo);
}

.device-frame.is-tablet {
  width: 72%;
}

.device-frame.is-mobile {
  width: 44%;
  min-width: 240px;
}

.device-chrome {
  padding: 0.55rem 0.8rem;
  background: #14161e;
  border-bottom: 1px solid var(--surface-line);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.device-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.device-chrome em {
  margin-left: 0.5rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.device-frame.is-mobile .device-screen {
  aspect-ratio: 9 / 14;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-screen-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 7, 9, 0.92));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.device-screen-overlay span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--gold);
}

.modal-details h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.modal-summary {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.modal-spec-row {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-line);
}

.modal-spec-row small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.modal-metric-box {
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(224, 175, 98, 0.28);
  text-align: center;
}

.modal-metric-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.modal-metric-box span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Floating Chibi Fouad Robot Assistant */
.fouad-bot {
  --bot-tilt: 0deg;
  position: fixed;
  right: clamp(1rem, 3vw, 3rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  z-index: 155;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
  pointer-events: none;
}

.fouad-bot-trigger,
.fouad-bot-panel {
  pointer-events: auto;
}

.fouad-bot-trigger {
  position: relative;
  width: 7rem;
  height: 7rem;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: rotate(var(--bot-tilt));
  transition: transform 0.35s var(--ease-expo), filter 0.35s ease;
  isolation: isolate;
}

.fouad-bot-trigger:hover,
.fouad-bot.is-open .fouad-bot-trigger {
  filter: drop-shadow(0 0 1.4rem rgba(224, 175, 98, 0.32));
}

.fouad-bot-trigger img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(0);
  animation: fouad-bot-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.48));
}

.fouad-bot-orbit {
  position: absolute;
  inset: 12% 13%;
  border: 1px solid rgba(224, 175, 98, 0.48);
  border-radius: 45% 55% 52% 48%;
  transform: rotate(-16deg);
  animation: fouad-bot-orbit 7s linear infinite;
}

.fouad-bot-orbit--two {
  inset: 24% 5%;
  border-color: rgba(95, 224, 255, 0.3);
  transform: rotate(64deg);
  animation-duration: 10s;
  animation-direction: reverse;
}

.fouad-bot-label {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  z-index: 3;
  padding: 0.32rem 0.48rem;
  border: 1px solid rgba(224, 175, 98, 0.42);
  border-radius: 999px;
  background: rgba(7, 7, 9, 0.9);
  color: var(--gold);
  font: 500 0.55rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.fouad-bot-panel {
  width: min(20rem, calc(100vw - 2rem));
  padding: 1.15rem;
  border: 1px solid rgba(224, 175, 98, 0.3);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(20, 21, 28, 0.98), rgba(8, 9, 13, 0.96));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45), 0 0 2rem rgba(224, 175, 98, 0.08);
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(0.7rem) scale(0.94);
  transition: opacity 0.3s ease, transform 0.45s var(--ease-expo);
}

.fouad-bot.is-open .fouad-bot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fouad-bot-panel-topline,
.fouad-bot-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.fouad-bot-panel-topline .mono-tag {
  font-size: 0.58rem;
}

.fouad-bot-close {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--surface-line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.fouad-bot-panel h2 {
  margin: 1rem 0 0.45rem;
  font: 700 1.35rem/1.05 var(--font-display);
  letter-spacing: -0.04em;
}

.fouad-bot-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.fouad-bot-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.fouad-bot-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(244, 241, 234, 0.1);
  border-radius: 0.65rem;
  background: rgba(244, 241, 234, 0.035);
  color: var(--text);
  font: 500 0.72rem/1.2 var(--font-mono);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.fouad-bot-action:hover {
  border-color: rgba(224, 175, 98, 0.5);
  background: rgba(224, 175, 98, 0.1);
  color: var(--gold);
}

.fouad-bot-status-row {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  color: var(--text-dim);
  font: 500 0.58rem/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.fouad-bot-status-row strong {
  color: #7ce7b0;
  font-weight: 500;
}

@keyframes fouad-bot-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-0.55rem) rotate(1deg); }
}

@keyframes fouad-bot-orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.04); }
  to { transform: rotate(360deg) scale(1); }
}

@media (max-width: 640px) {
  .fouad-bot {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .fouad-bot-trigger {
    width: 5.7rem;
    height: 5.7rem;
  }

  .fouad-bot-panel {
    width: min(19rem, calc(100vw - 1.4rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .fouad-bot-trigger img,
  .fouad-bot-orbit {
    animation: none;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 250;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: #070709;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-expo);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .scroll-rail {
    display: none;
  }

  .container,
  .hero-shell,
  .blueprint-columns {
    width: min(var(--container-max), calc(100% - 4rem));
  }

  .hero-stage-grid,
  .manifesto-grid,
  .process-grid,
  .contact-grid,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .lab-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .header-nav,
  .blueprint-toggle {
    display: none;
  }

  .works-sticky-stage {
    min-height: auto;
    padding-block: 4.5rem;
  }

  .works-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 1.25rem;
    scrollbar-width: none;
  }

  .works-viewport::-webkit-scrollbar {
    display: none;
  }

  .work-card {
    scroll-snap-align: center;
    width: min(85vw, 440px);
  }
}

@media (max-width: 640px) {
  .container,
  .hero-shell {
    width: calc(100% - 2.2rem);
  }

  .lab-bento,
  .slider-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .bento-card--wide {
    grid-column: span 1;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }

  .pulse-dot,
  .scroll-cue-line span {
    animation: none;
  }
}
