/* Fonts are self-hosted via next/font (see app/layout.js). */
:root {
  --bg: #FAFAF9; /* Warm Off-White */
  --bg-deep: #292524; /* Dark Stone */
  --bg-elevated: #292524; /* Stone 800 */
  --paper: #F5F0E8;
  --paper-2: #EFE7D8;
  --ink: #1C1917;
  --ink-soft: #57534E;
  --rule: #DDD3C0;
  --gold-ink: #7A5C24;
  --cream: #FAFAF9; /* Warm White */
  --cream-dim: #A8A29E; /* Warm Gray 400 */
  --text: #1C1917; /* Warm Charcoal */
  --muted: #57534E; /* Warm Gray */
  --gold: #A8894F; /* Muted Gold */
  --gold-light: #C9A96E; /* Refined Gold */
  --border: #44403C; /* Warm Border */
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "DM Sans", "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Light pages — warm paper stock, separate from the dark homepage */
  --paper: #F5F0E8;      /* page background */
  --paper-2: #EFE7D8;    /* cards, wells, stat blocks */
  --paper-3: #E6DBC7;    /* deepest tint / image wells */
  --ink: #1C1917;        /* headings and body on paper */
  --ink-soft: #57534E;   /* secondary copy on paper */
  --ink-faint: #675F57;  /* labels and metadata on paper (>=4.5 on paper-2) */
  --rule: #DDD3C0;       /* hairlines on paper */
  --gold-ink: #7A5C24;   /* gold, darkened to pass contrast on paper */
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  scroll-padding-top: 95px;
  background: var(--bg-deep);
  scroll-behavior: auto;
  overflow-y: scroll;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  background: url("assets/studio-texture.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
}
@media (max-width: 1023px) {
  body::before { display: none; }
  .page-grain { display: none; }
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(213, 174, 112, .35); color: #fff8ed; }
.shell { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 500; top: 12px; left: 12px; padding: 10px 16px; background: var(--cream); color: var(--bg-deep); border-radius: 4px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.page-grain { position: fixed; inset: 0; z-index: 300; opacity: .045; pointer-events: none; mix-blend-mode: soft-light; 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='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E"); }
.page-fade { }

.site-header { 
  position: fixed; 
  top: 16px; 
  left: 50%; 
  transform: translateX(-50%); 
  z-index: 1000; 
  width: min(1240px, calc(100% - 72px));
  background: rgba(28, 25, 23, 0.96); 
  border: 1px solid var(--border); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 8px 24px;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: #1a1614; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 20px; }

.nav-button { background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

.page {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  padding-top: 120px;
  padding-bottom: 96px;
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 {
  color: var(--ink);
}

.page p {
  color: var(--ink-soft);
}

.page .eyebrow {
  color: var(--gold-ink);
}

.page .eyebrow span {
  background: var(--gold-ink);
}

.page .section-heading h2 {
  color: var(--ink);
}

.page .section-heading h2 em {
  color: var(--gold-ink);
}

.page .text-link {
  color: var(--gold-ink);
}

.page .button-gold {
  background: var(--ink);
  color: var(--paper);
}

.page .button-gold:hover {
  background: #3a3431;
}

.page .button-outline {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
}

.page .button-outline:hover {
  border-color: var(--ink);
}

.page .filter-chip {
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink-soft);
}

.page .filter-chip:hover {
  border-color: var(--gold-ink);
  color: var(--ink);
}

.page .filter-chip.is-selected,
.page .filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.page hr,
.page .rule {
  border: 0;
  border-top: 1px solid var(--rule);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow span {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

/* Hero — retro archive terminal */
.hero-retro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint;
  padding: 112px 0 40px;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 50% -12%, #3d342c 0%, #241f1c 46%, #141110 100%);
}
.hero-retro__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 72% at 50% 38%, #000 32%, transparent 100%);
  mask-image: radial-gradient(80% 72% at 50% 38%, #000 32%, transparent 100%);
}
.hero-retro__halo {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.2), transparent 62%);
  filter: blur(24px);
}
.hero-retro__inner { position: relative; z-index: 2; }

/* Hero intro — headline above the CRT */
.hero-intro {
  max-width: 820px;
  margin: 0 auto 10px;
  text-align: center;
}
.hero-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-intro__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.18);
}
.hero-intro__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.hero-intro__title em { font-style: italic; color: var(--gold-light); }
.hero-intro__sub {
  max-width: 58ch;
  margin: 16px auto 0;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.65;
  color: var(--cream-dim, rgba(245, 240, 232, 0.72));
}

/* Stage + monitor */
.retro-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px 0 56px;
  perspective: 1400px;
}
.crt {
  position: relative;
  width: min(760px, 100%);
  animation: crtBoot 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.crt::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 68%;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72), transparent 72%);
  filter: blur(8px);
  z-index: -1;
}
.crt__body {
  position: relative;
  padding: 18px 18px 8px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, #f2ebdc 0%, #e2d7c2 44%, #cdc0a8 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 -12px 26px rgba(92, 74, 50, 0.35),
    0 2px 0 #b6a88f,
    0 34px 60px -22px rgba(0, 0, 0, 0.78),
    0 90px 130px -70px rgba(0, 0, 0, 0.95);
}
.crt__body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
}
.crt__bezel {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #d0c2aa, #b9ab92);
  box-shadow:
    inset 0 3px 12px rgba(0, 0, 0, 0.38),
    inset 0 -2px 0 rgba(255, 255, 255, 0.42);
}
.crt__screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12px;
  min-height: clamp(260px, 40cqw, 380px);
  padding: clamp(18px, 4.4%, 32px) clamp(18px, 4.8%, 36px) clamp(16px, 3.6%, 28px);
  color: #f0d9a8;
  background:
    radial-gradient(120% 100% at 50% 0%, #2b2721 0%, #14110f 58%, #0a0807 100%);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.85),
    inset 0 0 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.07);
}
.crt__scanlines {
  position: absolute;
  inset: -2px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.34;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px);
  animation: scanDrift 9s linear infinite;
}
.crt__glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -18%, rgba(201, 169, 110, 0.18), transparent 56%),
    radial-gradient(100% 100% at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.6) 100%);
  animation: glassFlicker 7s steps(1, end) infinite;
}

/* Screen content — sized by the screen's own width */
.screen-ui {
  position: absolute;
  z-index: 4;
  inset: clamp(18px, 4.4%, 32px) clamp(18px, 4.8%, 36px) clamp(16px, 3.6%, 28px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(8px, 1.9cqw, 16px);
  pointer-events: none;
}
.screen-ui__actions,
.screen-ui__status {
  pointer-events: auto;
}
.screen-ui__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(6px, 1.2cqw, 10px);
  border-bottom: 1px dashed rgba(240, 217, 168, 0.22);
  font-family: var(--mono);
  font-size: clamp(8px, 1.15cqw, 10px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 217, 168, 0.62);
}
.screen-ui__dots { display: flex; gap: 5px; }
.screen-ui__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(240, 217, 168, 0.3);
}
.screen-ui__dots i:first-child { background: rgba(201, 169, 110, 0.95); }
.screen-ui__eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(8px, 1.25cqw, 11px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201, 169, 110, 0.9);
}
.screen-ui__title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 9.2cqw, 82px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #f8e8c8;
  text-shadow:
    0 0 18px rgba(201, 169, 110, 0.32),
    0 0 64px rgba(201, 169, 110, 0.16);
}
.screen-ui__title-accent { font-style: italic; color: var(--gold-light); }
.screen-ui__desc {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(11px, 1.95cqw, 15px);
  line-height: 1.65;
  color: rgba(240, 217, 168, 0.72);
}
.screen-ui__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.4cqw, 12px);
  margin-top: clamp(2px, 1cqw, 8px);
}
.screen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: clamp(7px, 1.5cqw, 11px) clamp(12px, 2.4cqw, 20px);
  border: 1px solid rgba(240, 217, 168, 0.32);
  border-radius: 6px;
  background: rgba(240, 217, 168, 0.05);
  color: #f0d9a8;
  font-family: var(--mono);
  font-size: clamp(9px, 1.35cqw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.screen-btn:hover {
  background: rgba(240, 217, 168, 0.14);
  border-color: rgba(240, 217, 168, 0.55);
  transform: translateY(-1px);
}
.screen-btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c1917;
  font-weight: 700;
}
.screen-btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #1c1917;
}
.screen-btn__play { font-size: 0.78em; }
.screen-ui__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(8px, 1.1cqw, 10px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 217, 168, 0.62);
}
.screen-ui__pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #93c98f;
  box-shadow: 0 0 8px #93c98f;
  animation: ledPulse 2.6s ease-in-out infinite;
}

/* Monitor chin + stand */
.crt__tray {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px 4px;
}
.crt__mark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #8d7b5e;
}
.crt__tray-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a8768;
}
.crt__tray-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.crt__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe3a0, #c98a2a 60%, #7a4c12);
  box-shadow: 0 0 10px rgba(255, 190, 90, 0.85);
  animation: ledPulse 3.2s ease-in-out infinite;
}
.crt__slot {
  width: 34px;
  height: 9px;
  border-radius: 3px;
  background: #b0a189;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
}
.crt__neck {
  width: 30%;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, #cbbda5, #a8977c);
  clip-path: polygon(18% 0, 82% 0, 92% 100%, 8% 100%);
}
.crt__stand {
  width: 52%;
  height: 18px;
  margin: 0 auto;
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, #c3b49c, #9c8b71);
  box-shadow: 0 22px 38px -18px rgba(0, 0, 0, 0.9);
}

/* Sticky notes */
.note-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.note {
  position: absolute;
  width: clamp(100px, 11vw, 140px);
  padding: 14px 12px 12px;
  border-radius: 3px;
  pointer-events: auto;
  cursor: pointer;
  list-style: none;
  color: #3a332a;
  box-shadow:
    0 18px 30px -16px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.35);
  animation: noteIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.35s + var(--note-index) * 0.1s);
  transition: transform .25s ease, box-shadow .25s ease;
}
.note:hover { transform: scale(1.06); z-index: 6; box-shadow: 0 22px 34px -14px rgba(0,0,0,0.9), 0 4px 10px rgba(0,0,0,0.4); }
.note:active { transform: scale(0.98); }
.note__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.note::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 54px;
  height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.note__meta {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  opacity: 0.45;
}
.note__line {
  display: block;
  font-family: var(--serif);
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.15;
}
.note--amber { background: #ecd99a; }
.note--rose { background: #e3b7a8; }
.note--sage { background: #bcc7a9; }
.note--sky { background: #a9bfcc; }

.note--n1 { top: -20px; left: -130px; rotate: -3deg; }
.note--n2 { top: -20px; right: -130px; rotate: 3deg; }
.note--n3 { bottom: -20px; left: -130px; rotate: 2deg; }
.note--n4 { bottom: -20px; right: -130px; rotate: -3deg; }
.note--n5 {
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% 0;
  width: clamp(96px, 8.5vw, 120px);
  rotate: -2deg;
}

/* Screen reel — live looping showcase inside the CRT */
.screen-reel {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: 10px;
}
.screen-reel__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0.5) 100%);
}
.screen-reel__vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.screen-reel__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.screen-reel__toggle {
  margin-left: 12px;
  padding: 2px 8px;
  border: 1px solid rgba(240, 217, 168, 0.3);
  border-radius: 4px;
  background: rgba(0,0,0,0.35);
  color: rgba(240, 217, 168, 0.8);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}
.screen-reel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.screen-reel__slide.is-active { opacity: 1; }
.screen-reel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.05) brightness(0.82);
  transform: scale(1.06);
  animation: reelKen 14s ease-in-out infinite alternate;
}
.screen-reel__slide.is-active .screen-reel__img {
  animation-play-state: running;
}
@keyframes reelKen {
  0% { transform: scale(1.04) translate(-1%, -1%); }
  100% { transform: scale(1.14) translate(1.5%, 1.2%); }
}
.screen-reel__caption {
  position: absolute;
  left: 16px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #f0d9a8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  opacity: 0.72;
}
.screen-reel__tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}
.screen-reel__text {
  font-family: var(--serif);
  font-size: clamp(13px, 1.6vw, 17px);
  line-height: 1.2;
}
.screen-reel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(201, 169, 110, 0.15);
  z-index: 2;
}
.screen-reel__bar {
  height: 100%;
  background: var(--gold-light);
  transition: width 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .screen-reel__img { animation: none; }
  .screen-reel__slide { transition: none; }
}
@media (max-width: 720px) {
  .screen-reel__caption { left: 10px; right: 10px; bottom: 8px; }
  .screen-reel__text { font-size: 12px; }
}

/* screen-ui should sit above reel */
.screen-ui { z-index: 4; }

/* Beliefs dialog */
.beliefs-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.belief-item { padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; background: rgba(255,255,255,0.04); transition: border-color .2s, background .2s; }
.belief-item.is-focused { border-color: var(--gold); background: rgba(201,169,110,0.12); }
.belief-item h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; color: var(--cream); }
.belief-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cream-dim, rgba(245,240,232,0.75)); }

/* Hero foot */
.hero-retro__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-motto-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.motto-dot { opacity: 0.4; }
.hero-scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}
.hero-scroll-prompt:hover { color: var(--gold-light); }
.scroll-arrow { animation: arrowBob 2.2s ease-in-out infinite; }

@keyframes crtBoot {
  from { opacity: 0; translate: 0 28px; scale: 0.965; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes noteIn {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes scanDrift {
  from { translate: 0 0; }
  to { translate: 0 3px; }
}
@keyframes glassFlicker {
  0%, 96%, 100% { opacity: 1; }
  97% { opacity: 0.9; }
  98% { opacity: 1; }
  99% { opacity: 0.94; }
}
@keyframes ledPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes arrowBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 4px; }
}

/* Slightly tighter tuck on small desktops so cards never clip */
@media (max-width: 1100px) {
  .note--n1, .note--n3 { left: -70px; }
  .note--n2, .note--n4, .note--n5 { right: -70px; }
}

/* On tablet and below, drop the floating notes into a centred row beneath the CRT */
@media (max-width: 900px) {
  .note-field {
    top: calc(100% + 16px);
    bottom: auto;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .note { position: static; width: 108px; }
  .note--n1, .note--n2, .note--n3, .note--n4, .note--n5 {
    top: auto; left: auto; right: auto; bottom: auto;
    translate: 0 0; rotate: 0deg;
  }
  .hero-retro { padding-top: 116px; }
  .hero-intro { margin-bottom: 6px; }
  .retro-stage { padding-bottom: 32px; }
  .note--n4 .note__line { font-size: 13px; }
}
@media (max-width: 640px) {
  .hero-retro { padding: 104px 0 44px; }
  .hero-intro { margin-bottom: 2px; }
  .hero-intro__eyebrow { font-size: 9px; letter-spacing: 0.18em; }
  .hero-intro__title { font-size: clamp(28px, 8vw, 38px); }
  .hero-intro__sub { margin-top: 12px; }
  .retro-stage { padding-top: 28px; padding-bottom: 28px; }
  .crt__body { padding: 14px 14px 6px; border-radius: 20px 20px 14px 14px; }
  .crt__bezel { padding: 12px; border-radius: 11px; }
  .note { width: 96px; }
  .note__line { font-size: 12px; }
  .note::before { width: 40px; height: 14px; top: -7px; }
  .crt__tray { padding: 9px 4px 2px; gap: 8px; }
  .crt__tray-label { font-size: 7px; letter-spacing: 0.16em; }
  .crt__mark { font-size: 16px; }
  .hero-retro__foot { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .crt,
  .note,
  .crt__scanlines,
  .crt__glass,
  .screen-ui__pulse,
  .crt__led,
  .scroll-arrow {
    animation: none !important;
  }
  .note { opacity: 1; }
}

/* Mobile perf: drop expensive blur on scroll-critical surfaces */
@media (max-width: 768px) {
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .detail-dialog::backdrop { backdrop-filter: none; }
  .work-feature__chip,
  .work-card__chip,
  .ads-cover__label { backdrop-filter: none; }
  .crt { animation: none !important; opacity: 1; }
  .screen-reel__img,
  .screen-reel__slide { animation: none !important; }
  .footer-skyline__float,
  .footer-skyline__stars .sk-star,
  .footer-connect__dot { animation: none !important; }
  .crystal, .core-pulse { animation: none !important; }
  .ticker-track, .services-ticker-track { animation: none !important; }
  .crt__scanlines, .crt__glass { animation: none !important; }
  .page-grain { display: none; }
  body::before { display: none; }
  .screen-reel__scrim { mix-blend-mode: normal; }
  .work-card__media::after,
  .work-feature__media::after { mix-blend-mode: normal; }
}
.site-header .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-img { width: 40px; height: 40px; object-fit: contain; display: block; border-radius: 5px; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--cream); }
.brand-copy small { font-size: 10px; color: var(--cream-dim); line-height: 1.2; }
.desktop-nav { display: flex; align-items: center; gap: 24px; color: var(--cream); }
.nav-link { font-size: 13px; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--gold-light); }
.button { padding: 10px 22px; border-radius: 99px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font-size: 13px; }
.button-gold { background: var(--gold); color: var(--bg-deep); transition: background .2s; }
.button-gold:hover { background: var(--gold-light); }
.menu-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- Services mega-menu ---------- */
.nav-dd { position: static; }
.nav-link--trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.nav-dd.is-open > .nav-link--trigger { color: var(--gold-light); }
.nav-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-dd.is-open .nav-caret { transform: rotate(225deg); margin-top: 2px; opacity: 1; }

.nav-dd__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0s linear 0.16s;
}
.nav-dd.is-open .nav-dd__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.nav-dd__card {
  position: relative;
  overflow: hidden auto;
  max-height: calc(100vh - 140px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(20, 17, 16, 0.97);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 40px 80px -24px rgba(0, 0, 0, 0.85),
    0 12px 28px -14px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-6px) scale(0.985);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-dd.is-open .nav-dd__card { transform: translateY(0) scale(1); }

.nav-dd__cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 16px;
  padding: 18px 20px 16px;
}
.nav-dd__col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.nav-dd__head {
  padding: 2px 12px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-dd__head:hover { color: var(--gold-light); }
.nav-dd__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-dd__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 12px;
  border-radius: 12px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 22ms),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 22ms);
}
.nav-dd.is-open .nav-dd__item { opacity: 1; transform: translateY(0); }

.nav-dd__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #1c1917;
  background: var(--accent, var(--gold));
  filter: grayscale(1) opacity(0.55);
  transition:
    filter 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.18s ease;
}
.nav-dd__icon svg { width: 20px; height: 20px; display: block; }
.nav-dd__item:hover .nav-dd__icon,
.nav-dd__item:focus-visible .nav-dd__icon {
  filter: grayscale(0) opacity(1);
  transform: scale(1.12) rotate(-3deg);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 44px color-mix(in srgb, var(--accent) 30%, transparent);
}

.nav-dd__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-dd__label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
  transition: color 0.15s ease;
}
.nav-dd__desc {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--cream-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-dd__item:hover .nav-dd__label,
.nav-dd__item:focus-visible .nav-dd__label { color: var(--gold-light); }

/* Single shared pill that flies to the row under the cursor */
.nav-dd__hl {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 12px;
  background: rgba(201, 169, 110, 0.1);
  pointer-events: none;
  will-change: transform, width, height;
  transition:
    transform 0.3s cubic-bezier(0.22, 1.35, 0.36, 1),
    width 0.3s cubic-bezier(0.22, 1.35, 0.36, 1),
    height 0.3s cubic-bezier(0.22, 1.35, 0.36, 1),
    opacity 0.18s ease;
}

.nav-dd__more {
  align-self: stretch;
  margin: 8px 12px 0;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  text-decoration: none;
}
.nav-dd__more:hover { text-decoration: underline; }

.mobile-nav a.mobile-nav__sub {
  padding: 9px 0 9px 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mobile-nav a.mobile-nav__sub:hover,
.mobile-nav a.mobile-nav__sub:focus-visible {
  color: var(--gold-light);
}

@media (max-width: 1120px) {
  .nav-dd__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
}
@media (max-width: 880px) {
  .nav-dd__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .nav-dd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dd__panel,
  .nav-dd__card,
  .nav-dd__item,
  .nav-dd__hl {
    transition: none !important;
  }
  .nav-dd__item { opacity: 1; transform: none; }
  .nav-dd__card { transform: none; }
}

/* Featured work archive / Work Section */
.work-section {
  position: relative;
  contain: layout;
  padding-block: 96px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--cream);
}
.work-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
}
.work-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 14px 0 0;
  color: var(--cream);
}
.work-title em { font-style: italic; color: var(--gold-light); }
.work-header-side { display: flex; flex-direction: column; gap: 16px; padding-bottom: 6px; }
.work-lede { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.7; color: var(--cream-dim); }
.work-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.work-count { color: var(--cream-dim); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; }
.filter-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-chip { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,0.03); color: var(--cream-dim); font-size: 11px; cursor: pointer; transition: .2s ease; }
.filter-chip:hover { border-color: var(--gold-light); color: var(--cream); }
.filter-chip.is-selected { background: var(--gold); border-color: var(--gold); color: var(--bg-deep); font-weight: 600; }
.carousel-controls { display: flex; gap: 8px; flex-shrink: 0; }
.circle-control { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,0.03); color: var(--cream); font-size: 15px; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.circle-control:hover { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.project-rail { display: flex; align-items: stretch; gap: 20px; overflow-x: auto; padding: 10px 2px 20px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.project-rail::-webkit-scrollbar { display: none; }
.project-card { position: relative; display: flex; flex: 0 0 calc((100% - 40px) / 3); min-width: 300px; min-height: 390px; flex-direction: column; padding: 0; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: #292524; color: var(--text); box-shadow: 0 16px 35px rgba(0,0,0,.32); cursor: pointer; scroll-snap-align: start; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; overflow: hidden; }
.project-card:hover { transform: translateY(-8px); border-color: var(--gold-light); box-shadow: 0 24px 45px rgba(0,0,0,.5); }
.folder-tab { height: 38px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: var(--cream-dim); font-size: 10px; letter-spacing: .12em; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.15); }
.project-image { position: relative; display: block; height: 160px; overflow: hidden; background: #1a1a1a; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }
.project-body { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 16px; background: var(--bg-deep); color: var(--cream); }
.project-kicker { color: var(--gold-light); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 6px; }
.project-title { color: var(--cream); font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; margin-bottom: 8px; }
.project-summary { color: var(--cream-dim); font-size: 11px; line-height: 1.5; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.project-tags span { padding: 4px 8px; border: 1px solid var(--border); border-radius: 4px; background: rgba(255,255,255,0.03); color: var(--cream-dim); font-size: 9px; }
.project-open { position: absolute; right: 16px; bottom: 16px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,0.05); color: var(--gold-light); font-size: 14px; transition: background .2s, color .2s; }
.project-card:hover .project-open { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.hover-reveal { display: none; }
.rail-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; color: var(--cream-dim); font-size: 10px; }
.rail-dots { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rail-dot { width: 6px; height: 6px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; cursor: pointer; transition: width .2s, background .2s; }
.rail-dot.is-active { width: 18px; border-radius: 999px; background: var(--gold); border-color: var(--gold); }

/* Stats section */
.stats-section { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 32px 24px; margin: 40px auto; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-deep); color: var(--cream); gap: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.stat-item { display: grid; grid-template-columns: 36px auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; border-right: 1px solid var(--border); padding-right: 20px; }
.stat-item:last-child { border-right: 0; }
.stat-icon { grid-row: 1 / span 2; color: var(--gold); }
.stat-icon svg { width: 30px; height: 30px; stroke-width: 1.5; }
.stat-item strong { color: var(--cream); font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1; }
.stat-item > span:last-child { color: var(--cream-dim); font-size: 10px; }

/* General Sections */
.section { padding-block: 80px; background-color: var(--bg-deep); color: var(--cream); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; align-items: flex-end; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 48px); margin: 0; line-height: 1.1; color: var(--cream); }
.section-heading h2 em { font-style: italic; color: var(--gold-light); }
.section-intro p { margin: 0 0 12px; color: var(--cream-dim); font-size: 14px; }
.text-link { color: var(--gold-light); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Five Divisions / Services Section - Folder Archive Style */
.services-section { 
  background-color: var(--bg-deep); 
  padding-block: 80px; 
  position: relative;
}

.services-container {
  display: flex;
  flex-direction: column;
}

.services-section .section-cta {
  text-align: center;
  margin-top: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 60px;
  align-items: stretch;
}

/* Folder Card Aesthetic */
.folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 1;
}

.folder-card:hover {
  transform: translateY(-12px) rotate(-1deg);
  z-index: 10;
}

/* The tab at the top */
.folder-tab {
  width: 70px;
  height: 28px;
  background-color: var(--card-bg);
  color: var(--card-text);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  position: relative;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  margin-left: 2px;
}

.folder-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 40px;
  height: 28px;
  background-color: var(--card-bg);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  z-index: -1;
}

/* The main folder body */
.folder-body {
  flex: 1;
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 32px 24px 24px;
  border-radius: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Decorative stacked paper behind */
.folder-stack {
  position: absolute;
  inset: 4px -4px -4px 4px;
  background-color: var(--card-bg);
  opacity: 0.4;
  border-radius: 16px;
  transform: rotate(2deg);
  z-index: -1;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.folder-card:hover .folder-stack {
  transform: rotate(4deg) translate(4px, 4px);
  opacity: 0.6;
}

.folder-icon-wrap {
  margin-bottom: 24px;
  opacity: 0.9;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: block;
}
.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-title {
  font-size: 22px;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
  margin: 0;
  max-width: 90%;
}

.card-arrow {
  margin-top: auto;
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.folder-card:hover .card-arrow {
  background-color: var(--card-text);
  color: var(--card-bg);
  transform: translate(2px, -2px);
}

/* Adjust colors for dark background cards (AI and Cloud) */
.folder-card[style*="#292524"] .folder-body,
.folder-card[style*="#55514C"] .folder-body {
  border: 1px solid rgba(255,255,255,0.05);
}

.folder-card[style*="#292524"] .card-arrow,
.folder-card[style*="#55514C"] .card-arrow {
  border-color: rgba(255,255,255,0.2);
}


/* Footer */
.site-footer { position: relative; background: var(--bg-deep); color: var(--cream); padding-top: 0; border-top: 1px solid var(--border); overflow: hidden; contain: layout paint; }

/* Craft skyline silhouette */
.footer-skyline { position: relative; width: 100%; max-width: 1440px; margin-inline: auto; aspect-ratio: 6 / 1; min-height: 90px; margin-bottom: -2px; pointer-events: none; }
.footer-skyline__svg { width: 100%; height: 100%; display: block; }
.footer-skyline__hill--back { fill: #1f1c1a; opacity: 0.55; }
.footer-skyline__hill--mid { fill: #231f1d; opacity: 0.75; }
.footer-skyline__hill--front { fill: var(--bg-deep); }
.sk-fill { fill: #1a1715; stroke: none; }
.sk-rim { stroke: url(#skylineRim); stroke-width: 1.4; fill: none; }
.sk-dot { fill: #C9A96E; }
.sk-text { font-family: var(--mono); font-size: 9px; fill: #C9A96E; font-weight: 700; letter-spacing: 0.05em; }
.sk-thirteen { font-family: var(--serif); font-size: 26px; fill: #C9A96E; font-weight: 700; }
.sk-star { fill: #C9A96E; opacity: 0.7; }
.footer-skyline__obj { opacity: 0.92; }
.footer-skyline__obj--thirteen .sk-fill { fill: #231f1d; }
.footer-skyline__obj--thirteen .sk-rim { stroke: #C9A96E; }
/* slow idle bob on a few floating elements */
.footer-skyline__float { animation: skylineBob 6s ease-in-out infinite; transform-origin: center; }
.footer-skyline__float--balloon { animation-duration: 7.5s; animation-delay: -1.2s; }
.footer-skyline__float--drone { animation-duration: 5.2s; animation-delay: -0.6s; }
.footer-skyline__float--plane { animation-duration: 8s; animation-delay: -2.4s; }
@keyframes skylineBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.footer-skyline__stars .sk-star { animation: starTwinkle 4s ease-in-out infinite; }
.footer-skyline__stars .sk-star:nth-child(2n) { animation-delay: -1.3s; }
.footer-skyline__stars .sk-star:nth-child(3n) { animation-delay: -2.7s; }
@keyframes starTwinkle { 0%,100% { opacity: 0.35; } 50% { opacity: 0.9; } }

/* Connect control panel */
.footer-connect { margin-top: 16px; padding: 12px 14px; border: 1px solid rgba(201,169,110,0.22); border-radius: 10px; background: rgba(201,169,110,0.04); }
.footer-connect__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: var(--gold-light); margin-bottom: 8px; }
.footer-connect__dot { width: 6px; height: 6px; border-radius: 50%; background: #93c98f; box-shadow: 0 0 8px #93c98f; animation: ledPulse 2.6s ease-in-out infinite; }
.footer-connect__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-chip { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(201,169,110,0.3); border-radius: 50%; background: rgba(240,217,168,0.05); color: #f0d9a8; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.footer-chip svg { width: 16px; height: 16px; }
.footer-chip:hover { transform: translateY(-2px); border-color: rgba(201,169,110,0.7); }
.footer-chip--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.footer-chip--ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #dc2743; color: #fff; }
.footer-chip--li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.footer-chip--yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }

.footer-backtop { color: var(--gold-light); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s; }
.footer-backtop:hover { color: var(--cream); }

/* Contact card */
.footer-column.footer-contact { border-left: none; padding-left: 0; }
.footer-contact-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; border: 1px solid rgba(201,169,110,0.26); border-radius: 14px; background: linear-gradient(160deg, rgba(201,169,110,0.09) 0%, rgba(201,169,110,0.02) 100%); }
.footer-contact-card__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: var(--gold-light); }
.footer-contact-card__title { font-family: var(--serif); font-size: 18px; line-height: 1.25; color: var(--cream); margin: 0; }
.footer-contact-card__sub { color: var(--cream-dim); font-size: 11px; line-height: 1.6; margin: 0; }
.footer-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: var(--bg-deep); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.footer-cta:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,169,110,0.25); }
.footer-cta__arrow { display: inline-block; transition: transform .2s ease; }
.footer-cta:hover .footer-cta__arrow { transform: translate(3px, -3px); }
.footer-contact-card__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.footer-crow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(201,169,110,0.18); border-radius: 8px; background: rgba(240,217,168,0.03); color: var(--cream-dim); font-size: 11px; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.footer-crow:hover { background: rgba(201,169,110,0.1); border-color: rgba(201,169,110,0.45); color: var(--gold-light); transform: translateX(2px); }
.footer-crow__icon { display: inline-grid; place-items: center; width: 18px; font-size: 13px; }
.footer-crow__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-crow--copy:hover { color: var(--cream); }
.footer-crow--wa:hover { border-color: #25D366; color: #4ade80; }
.footer-contact-card__note { display: inline-flex; align-items: center; gap: 6px; color: var(--cream-dim); font-size: 10px; line-height: 1.5; margin-top: 2px; }
.footer-content { position: relative; z-index: 1; padding: 40px 0; }
.footer-main { display: grid; grid-template-columns: 1.2fr 0.65fr 0.85fr 0.85fr 1.25fr; gap: 32px; padding-bottom: 40px; }
.brand-mark { width: 42px; height: 42px; font-size: 20px; background: var(--gold); color: var(--bg-deep); display: grid; place-items: center; border-radius: 6px; font-weight: 700; flex-shrink: 0; }
.footer-brand .brand-mark { margin-bottom: 12px; }
.footer-brand strong { display: block; font-size: 18px; margin-bottom: 6px; color: var(--cream); }
.footer-brand p { color: var(--cream-dim); font-size: 11px; line-height: 1.7; max-width: 280px; margin: 10px 0 16px; }
.footer-motto { color: var(--gold-light); font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 8px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.06); }
.footer-column h3 { color: var(--gold-light); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px; }
.footer-column a, .footer-column button { color: var(--cream-dim); font-size: 11px; background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color .2s; }
.footer-column a:hover, .footer-column button:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; font-size: 10px; color: var(--cream-dim); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span:last-child { color: var(--gold-light); letter-spacing: 0.1em; }

/* Dialogs */
.detail-dialog { width: min(620px, calc(100% - 28px)); max-height: min(86vh, 820px); padding: 0; overflow: auto; border: 1px solid rgba(201, 169, 110, 0.4); border-radius: 16px; background: linear-gradient(145deg, #292524, #1C1917); color: var(--cream); box-shadow: 0 35px 100px rgba(0,0,0,.7); }
.detail-dialog::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; z-index: 10; top: 12px; float: right; margin: 12px 12px -44px 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-deep); color: var(--cream); cursor: pointer; }
.dialog-close:hover { background: var(--gold); color: var(--bg-deep); }
.dialog-content { padding: 34px; }

/* Video dialog (How we work) */
.video-dialog { width: min(960px, 92vw); max-height: 90vh; overflow: hidden; }
.video-dialog__stage { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-dialog__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-dialog__scrim { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(0,0,0,0.45) 100%); }
.video-dialog__bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(20,17,15,0.92); border-top: 1px solid rgba(201,169,110,0.2); }
.video-dialog__title { font-family: var(--serif); font-size: 18px; color: #f8e8c8; }
.video-dialog__caption { flex: 1; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,217,168,0.62); }
.video-dialog__controls { display: flex; gap: 6px; }
.video-dialog__btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(201,169,110,0.3); border-radius: 50%; background: rgba(240,217,168,0.06); color: #f0d9a8; cursor: pointer; font-size: 12px; }
.video-dialog__btn:hover { background: rgba(201,169,110,0.18); }
@media (max-width: 640px) {
  .video-dialog__bar { flex-wrap: wrap; gap: 8px; }
  .video-dialog__caption { flex-basis: 100%; order: 3; }
}
.dialog-lead { color: var(--cream-dim); font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.project-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.project-form label { display: flex; flex-direction: column; gap: 6px; color: var(--cream-dim); font-size: 11px; }
.project-form input, .project-form textarea, .project-form select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,0.3); color: var(--cream); font-size: 12px; outline: 0; }
.project-form input:focus, .project-form textarea:focus, .project-form select:focus { border-color: var(--gold); }
.project-form textarea { resize: vertical; min-height: 90px; }
.full-field { grid-column: 1 / -1; }
.form-note { color: var(--cream-dim); font-size: 9px; }
.hp-field { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.project-form .form-check,
.project-form .form-choice__option { flex-direction: row; align-items: flex-start; gap: 10px; }
.project-form .form-check input,
.project-form .form-choice__option input { width: 15px; height: 15px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--gold); }
.project-form .form-check span { line-height: 1.5; }
.project-form .form-check a,
.form-status a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 2px; }
.project-form .form-choice { margin: 0; padding: 0; border: 0; color: var(--cream-dim); font-size: 11px; }
.project-form .form-choice legend { padding: 0; margin-bottom: 10px; color: var(--cream-dim); }
.project-form .form-choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-form .form-choice__option { display: flex; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: rgba(0,0,0,0.2); cursor: pointer; }
.project-form .form-choice__option.is-selected { border-color: var(--gold); background: rgba(201,169,110,0.08); }
.project-form .form-choice__option strong { display: block; color: var(--cream); font-size: 12px; margin-bottom: 3px; }
.project-form .form-choice__option small { display: block; color: var(--cream-dim); font-size: 10px; line-height: 1.45; }
.project-form button:disabled { opacity: 0.65; cursor: wait; }
.form-status { padding: 14px; border-radius: 8px; font-size: 11px; line-height: 1.55; }
.form-status p { margin: 0 0 6px; }
.form-status p:last-child { margin-bottom: 0; }
.form-status--error { border: 1px solid rgba(220,120,100,0.5); background: rgba(120,40,30,0.2); color: #f0d6cd; }
.form-status--success { border: 1px solid rgba(201,169,110,0.4); background: rgba(201,169,110,0.08); color: var(--cream); }
.form-status--success h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; color: #f4deae; }
.form-status--success .button { margin-top: 12px; margin-right: 8px; }
@media (max-width: 560px) {
  .project-form .form-choice__options { grid-template-columns: 1fr; }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .service-grid, .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .service-grid, .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-heading, .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .stats-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 32px); }
  .site-header { width: calc(100% - 32px); }
  .page.shell { padding-inline: 16px; }
  .achievements-section { padding-inline: 16px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,0.05); cursor: pointer; }
  .menu-toggle span { width: 16px; height: 1.5px; background: var(--cream); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 16px 24px 24px; border-bottom: 1px solid var(--border); background: var(--bg-deep); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a, .mobile-nav button:not(.button) { padding: 12px 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--cream); text-align: left; font-size: 14px; border-top: 0; border-left: 0; border-right: 0; }
  .mobile-nav .button { align-self: flex-start; margin-top: 16px; }
}
@media (max-width: 600px) {
  .service-grid, .services-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .stats-section { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  /* The crystal is the section's focal point: it keeps its slow turn for everyone.
     Only the soft core pulse is dropped under reduced motion. */
  .crystal-core {
    animation: none !important;
  }
}

/* Feature 1: Automatically Scrolling Services Ticker */
.services-ticker-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
  white-space: nowrap;
}
.services-ticker-wrap::before,
.services-ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.services-ticker-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-deep), transparent);
}
.services-ticker-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-deep), transparent);
}
.services-ticker-track {
  display: inline-flex;
  gap: 20px;
  animation: tickerScroll 180s linear infinite;
}
.services-ticker-wrap:hover .services-ticker-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .services-ticker-track {
    animation: tickerScroll 240s linear infinite !important;
  }
}
.ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: border-color .2s, background .2s;
}
.ticker-pill:hover {
  border-color: var(--gold-light);
  background: rgba(201, 169, 110, 0.08);
}
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Feature 3: Achievements Section with 3D Artwork & Stat Cards */
.achievements-section {
  padding: 100px 36px;
  background-color: var(--bg-deep);
}
.achievements-panel {
  position: relative;
  background: #292524;
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 40px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  margin: 0 auto;
  max-width: 1100px;
  text-align: center;
}
.achievements-header {
  max-width: 700px;
  margin: 0 auto 12px;
}
.achievements-title {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 64px);
  color: var(--cream);
  margin: 12px 0 0;
  line-height: 1.1;
}
.achievements-title .accent {
  font-style: italic;
  color: var(--gold-light);
}
.achievements-artwork {
  width: min(420px, 76vw);
  height: 280px;
  margin: 20px auto 0;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  perspective-origin: 50% 42%;
}

/* Crystal — an octahedron built from eight CSS faces, spinning on its axis */
.crystal-glow {
  position: absolute;
  width: 300px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.3), transparent 66%);
  filter: blur(8px);
}
.crystal {
  --r: 63px;
  --h: 100px;
  --d: 44.5px;
  --fw: 89px;
  --fh: 109.5px;
  --lean: 24deg;
  position: relative;
  width: calc(var(--r) * 2);
  height: calc(var(--h) * 2);
  transform-style: preserve-3d;
  will-change: transform;
  animation: crystalSpin 26s linear infinite;
}
.crystal-half {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.crystal-half--bottom {
  transform: rotateX(180deg);
}
.crystal-face {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: var(--fw);
  height: var(--fh);
  margin-left: calc(var(--fw) / -2);
  transform-origin: 50% 100%;
  clip-path: polygon(50% 0, 101% 100%, -1% 100%);
  opacity: 0.9;
  backface-visibility: visible;
}
.crystal-face--a { transform: rotateY(45deg) translateZ(var(--d)) rotateX(var(--lean)); }
.crystal-face--b { transform: rotateY(135deg) translateZ(var(--d)) rotateX(var(--lean)); }
.crystal-face--c { transform: rotateY(225deg) translateZ(var(--d)) rotateX(var(--lean)); }
.crystal-face--d { transform: rotateY(315deg) translateZ(var(--d)) rotateX(var(--lean)); }

/* Baked lighting per facet */
.crystal-face--a { background: linear-gradient(160deg, #fdf4e0 0%, #d9bb85 46%, #b08a4c 100%); }
.crystal-face--b { background: linear-gradient(160deg, #e8d3ab 0%, #b98f52 48%, #7d5327 100%); }
.crystal-face--c { background: linear-gradient(160deg, #a9803f 0%, #8a5f2e 46%, #4a3220 100%); }
.crystal-face--d { background: linear-gradient(160deg, #8e8676 0%, #55514c 50%, #211d1a 100%); }

.crystal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 196, 0.9), rgba(201, 169, 110, 0.35) 45%, transparent 70%);
  filter: blur(4px);
  transform: translateZ(0);
  animation: corePulse 6s ease-in-out infinite;
}

@keyframes crystalSpin {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to { transform: rotateX(-12deg) rotateY(360deg); }
}
@keyframes corePulse {
  0%, 100% { opacity: 0.55; scale: 1; }
  50% { opacity: 0.9; scale: 1.12; }
}

.achievements-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: -24px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 10px;
}
.stat-card {
  background: var(--cream);
  color: var(--text);
  padding: 24px 24px 20px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.stat-value {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 6px;
  max-width: 22ch;
  text-align: center;
}

/* Achievements — split header (copy left, crystal right) */
.achievements-header--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  max-width: none;
  text-align: left;
}
.achievements-header__copy .achievements-title { margin: 12px 0 0; }
.achievements-lede {
  margin: 16px 0 0;
  color: var(--cream-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}

/* Interactive tiles */
.achievements-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px auto 0;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}
.achievement-tile {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  font: inherit;
}
.achievement-tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold-light);
}
.achievement-tile.is-open {
  background: rgba(201, 169, 110, 0.12);
  border-color: var(--gold-light);
}
.achievement-tile__value {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-light);
}
.achievement-tile__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  text-transform: uppercase;
}
.achievement-tile__desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--cream-dim);
  margin-top: 4px;
}
.achievement-tile__chevron {
  margin-top: 8px;
  font-size: 16px;
  color: var(--gold-light);
  transition: transform .25s ease;
}
.achievement-tile.is-open .achievement-tile__chevron { transform: rotate(180deg); }

/* Detail region */
.achievements-detail {
  margin-top: 20px;
  max-width: 1100px;
  margin-inline: auto;
}
.achievement-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px 32px;
}
.achievement-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.achievement-panel__head h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--cream);
}
.achievement-panel .text-link { color: var(--gold-light); }

/* Core services grid */
.core-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.core-service-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color .2s ease, background .2s ease;
}
.core-service-card:hover {
  border-color: var(--gold-light);
  background: rgba(201, 169, 110, 0.08);
}
.core-service-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
.core-service-card__desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--cream-dim);
}
.core-service-card__div {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
}

/* Divisions list inside tile 2 */
.achievement-divisions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.achievement-division {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, background .2s ease;
}
.achievement-division:hover {
  border-color: var(--gold-light);
  background: rgba(201, 169, 110, 0.06);
}
.achievement-division__num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.achievement-division__body h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--cream);
}
.achievement-division__tag {
  font-size: 12px;
  color: var(--gold-light);
  margin: 0 0 6px;
  font-weight: 600;
}
.achievement-division__lead {
  font-size: 13px;
  line-height: 1.5;
  color: var(--cream-dim);
  margin: 0 0 10px;
}
.achievement-division__caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.achievement-division__caps span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--cream-dim);
}
.achievement-division__arrow {
  color: var(--gold-light);
  font-size: 18px;
  align-self: center;
}

/* Studio detail inside tile 3 */
.studio-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: start;
}
.studio-detail__copy p {
  color: var(--cream-dim);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.studio-motto {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold-light);
  margin: 10px 0 14px !important;
}
.studio-detail__facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.studio-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.studio-fact strong {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold-light);
  line-height: 1;
}
.studio-fact span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@media (max-width: 900px) {
  .achievements-cards {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-top: 16px;
    padding: 0;
  }
  .achievements-panel {
    padding: 60px 24px 40px;
  }
  .achievements-header--split {
    grid-template-columns: 1fr;
  }
  .achievements-tiles {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .core-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  }
  .core-service-card {
    padding: 12px 14px;
  }
  .core-service-card__name {
    font-size: 14px;
    line-height: 1.35;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .core-service-card__desc {
    font-size: 12px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .studio-detail {
    grid-template-columns: 1fr;
  }
  .achievement-division {
    grid-template-columns: 40px 1fr 20px;
  }
}

/* Featured work accordion */
.work-accordion {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  height: clamp(420px, 58vh, 560px);
}

.work-card {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  transition: flex-grow 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card[data-active="true"] { flex-grow: 5.2; }

.work-card__hit {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1C1917;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: border-color 0.45s ease, box-shadow 0.5s ease;
  -webkit-tap-highlight-color: transparent;
}
.work-card:hover .work-card__hit { border-color: rgba(201, 169, 110, 0.28); }
.work-card[data-active="true"] .work-card__hit {
  border-color: rgba(201, 169, 110, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
}
.work-card__hit:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -2px;
}
.work-card[data-active="true"] .work-card__hit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.7;
  z-index: 3;
}

/* Photographic plate */
.work-card__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05) brightness(0.85);
  transform: scale(1.06);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card[data-active="true"] .work-card__media {
  opacity: 1;
  filter: saturate(1) contrast(1) brightness(1);
  transform: scale(1);
}
.work-card__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.2) 0%, rgba(28, 25, 23, 0.62) 46%, rgba(28, 25, 23, 0.96) 100%),
    radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 110, 0.08), transparent 60%);
}

/* Collapsed rail */
.work-card__spine {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 10px 30px;
  transition: opacity 0.3s ease;
}
.work-card[data-active="true"] .work-card__spine {
  opacity: 0;
  pointer-events: none;
}
.work-card__index {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.work-card__spine-rule {
  flex: 1;
  width: 1px;
  margin: 18px 0;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.4), transparent);
}
.work-card__spine-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 249, 0.86);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.work-card:hover .work-card__spine-title { color: var(--cream); }

/* Expanded panel */
.work-card__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 34px 32px 30px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card[data-active="true"] .work-card__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.14s;
}
.work-card__panel > * { min-width: 340px; max-width: 560px; }
.work-card__meta { display: flex; align-items: center; gap: 12px; }
.work-card__kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.work-card__num {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.work-card__title {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.work-card__title-line:last-child { font-style: italic; color: rgba(250, 250, 249, 0.82); }
.work-card__summary {
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(250, 250, 249, 0.62);
}
.work-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.work-card__tag {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 249, 0.6);
  background: rgba(255, 255, 255, 0.03);
}
.work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.work-card__hit:hover .work-card__cta { color: var(--cream); }
.work-card__cta span { transition: transform 0.3s ease; }
.work-card__hit:hover .work-card__cta span { transform: translate(3px, -3px); }

@media (max-width: 1024px) {
  .work-header { grid-template-columns: 1fr; gap: 24px; }
  .work-header-side { padding-bottom: 0; }
}
@media (max-width: 900px) {
  .work-section { padding-block: 72px; }
  .work-accordion { flex-direction: column; height: auto; gap: 12px; }
  .work-card,
  .work-card[data-active="true"] { flex: none; }
  .work-card__hit { position: relative; min-height: 340px; }
  .work-card__media {
    opacity: 0.3;
    filter: grayscale(0.4) contrast(1.05) brightness(0.85);
    transform: none;
  }
  .work-card__spine { display: none; }
  .work-card__panel {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    padding: 30px 24px 26px;
    min-height: 340px;
  }
  .work-card__panel > * { min-width: 0; max-width: none; }
}

@media (hover: none) {
  .work-accordion { flex-direction: column; height: auto; gap: 12px; }
  .work-card, .work-card[data-active="true"] { flex: none; }
  .work-card__hit { position: relative; min-height: 280px; }
  .work-card__media { opacity: 0.3; filter: grayscale(0.4) contrast(1.05) brightness(0.85); transform: none; }
  .work-card__spine { display: none; }
  .work-card__panel { position: relative; inset: auto; opacity: 1; transform: none; padding: 24px 20px; min-height: 0; }
  .work-card__panel > * { min-width: 0; max-width: none; }
}
   =========================================================================== */

/* ---------- Homepage section ---------- */
.pkg-section { position: relative; }
.pkg-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}
.pkg-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.03;
  color: var(--cream);
}
.pkg-title em { font-style: italic; color: var(--gold-light); }
.pkg-head-side { display: flex; flex-direction: column; gap: 16px; padding-bottom: 6px; }
.pkg-lede { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.7; color: var(--cream-dim); }

/* Chooser — four equal columns so the sliding pill needs no measurement */
.pkg-chooser {
  margin: 6px 0 30px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}
.pkg-chooser::-webkit-scrollbar { display: none; }
.pkg-chooser__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 620px;
}
.pkg-chooser__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 100%;
  border: 1px solid rgba(201, 169, 110, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.2), rgba(201, 169, 110, 0.09));
  box-shadow: 0 10px 30px -18px rgba(201, 169, 110, 0.7);
  transform: translateX(calc(var(--active, 0) * 100%));
  transition: transform 0.38s cubic-bezier(0.22, 1.2, 0.36, 1);
  pointer-events: none;
}
.pkg-chooser__btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--cream-dim);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.pkg-chooser__btn:hover,
.pkg-chooser__btn.is-active { color: var(--cream); }
.pkg-chooser__label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.pkg-chooser__hint { font-size: 11px; line-height: 1.3; color: var(--cream-dim); }
.pkg-chooser__btn.is-active .pkg-chooser__hint { color: var(--gold-light); }

/* Revealed pair */
.pkg-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pkg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  animation: pkgReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
@keyframes pkgReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.pkg-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow:
    0 26px 50px -28px rgba(0, 0, 0, 0.85),
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.pkg-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1715; }
.pkg-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pkg-card:hover .pkg-card__media img { transform: scale(1.035); }
.pkg-card__stage,
.pkg-card__type {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pkg-card__stage {
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(28, 25, 23, 0.62);
  color: var(--cream);
}
.pkg-card__type { right: 14px; background: rgba(250, 250, 249, 0.9); color: #1c1917; }

.pkg-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.pkg-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.12;
  color: var(--cream);
}
.pkg-card__tagline { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--cream-dim); }
.pkg-card__ideal {
  margin: 4px 0 0;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 62%, transparent);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250, 250, 249, 0.62);
}
.pkg-card__ideal span {
  display: block;
  margin-bottom: 3px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pkg-card__list { display: grid; gap: 7px; margin: 6px 0 0; padding: 0; list-style: none; }
.pkg-card__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  color: rgba(250, 250, 249, 0.78);
}
.pkg-card__list svg { flex-shrink: 0; width: 13px; height: 13px; margin-top: 3px; color: var(--accent); }
.pkg-card__list li.pkg-card__more { padding-left: 22px; font-size: 11.5px; color: var(--gold-light); }
.pkg-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.pkg-card__price { display: flex; flex-direction: column; margin: 0; }
.pkg-card__price strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
}
.pkg-card__price small {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.5);
}
.pkg-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  transition: gap 0.2s ease;
}
.pkg-card:hover .pkg-card__cta { gap: 10px; }

/* ---------- /packages index ---------- */
.pkg-index {
  min-height: 100vh;
  padding-block: 136px 96px;
  background: var(--bg-deep);
  color: var(--cream);
}
.pkg-index__head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 44px;
}
.pkg-index__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  color: var(--cream);
}
.pkg-index__title em { font-style: italic; color: var(--gold-light); }
.pkg-index__lede { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.8; color: var(--cream-dim); }
.pkg-index__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pkg-index__count {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.filter-chip.is-active { border-color: var(--gold); background: var(--gold); color: var(--bg-deep); font-weight: 600; }

.pkg-row {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 20px;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.pkg-row:hover { background: rgba(255, 255, 255, 0.035); padding-left: 18px; }
.pkg-row__num { font-family: var(--serif); font-size: 20px; color: var(--cream-dim); }
.pkg-row__thumb { width: 96px; height: 64px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.pkg-row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pkg-row:hover .pkg-row__thumb img { transform: scale(1.06); }
.pkg-row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pkg-row__text strong { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--cream); }
.pkg-row__text small {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.pkg-row__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.pkg-row__price strong { font-size: 14px; font-weight: 600; color: var(--gold-light); }
.pkg-row__price small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.pkg-row__arrow { color: var(--cream-dim); transition: color 0.25s ease, transform 0.25s ease; }
.pkg-row:hover .pkg-row__arrow { color: var(--gold-light); transform: translateX(4px); }

.pkg-index__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 64px;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}
.pkg-index__cta h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--cream); }
.pkg-index__cta p { margin: 0; max-width: 52ch; font-size: 13.5px; line-height: 1.7; color: var(--cream-dim); }

/* ---------- Package detail ---------- */
.pkg-detail { background: var(--bg-deep); color: var(--cream); }
.pkg-hero { padding: 140px 0 70px; border-bottom: 1px solid var(--border); }
.pkg-hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pkg-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pkg-hero__tag span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0;
}
.pkg-hero__title {
  margin: 18px 0 16px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.03;
  color: var(--cream);
}
.pkg-hero__tagline { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.7; color: var(--cream-dim); }
.pkg-hero__price { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 0; }
.pkg-hero__price strong { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--cream); }
.pkg-hero__price small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pkg-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.pkg-hero__ghost {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--cream-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pkg-hero__ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.pkg-hero__media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #1a1715;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.pkg-hero__media img { display: block; width: 100%; height: auto; }

.pkg-body { padding: 74px 0 84px; }
.pkg-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 56px;
  align-items: start;
}
.pkg-ideal {
  margin: 0 0 40px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  line-height: 1.75;
  color: var(--cream-dim);
}
.pkg-ideal span {
  display: block;
  margin-bottom: 7px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.pkg-h2 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; color: var(--cream); }
.pkg-note { margin: 0 0 20px; font-size: 12.5px; line-height: 1.7; color: rgba(250, 250, 249, 0.55); }
.pkg-note--foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.pkg-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.pkg-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(250, 250, 249, 0.82);
}
.pkg-checklist svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 4px; color: var(--accent); }

.pkg-body__side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.pkg-outcome {
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, 0.02));
}
.pkg-outcome__text { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.35; color: var(--cream); }
.pkg-meta { display: flex; flex-direction: column; margin: 0; border-top: 1px solid var(--border); }
.pkg-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.pkg-meta dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 249, 0.5);
}
.pkg-meta dd { margin: 0; font-size: 13px; text-align: right; color: var(--cream); }
.pkg-meta dd small { color: rgba(250, 250, 249, 0.5); }
.pkg-meta dd a { color: var(--gold-light); }
.pkg-meta dd a:hover { text-decoration: underline; }
.pkg-side-cta { justify-content: center; }

.pkg-next { padding: 26px 0; border-top: 1px solid var(--border); }
.pkg-next__inner { display: flex; justify-content: space-between; gap: 20px; }
.pkg-next__link { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.pkg-next__link span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.pkg-next__link strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.2s ease;
}
.pkg-next__link:hover strong { color: var(--gold-light); }
.pkg-next__link--right { text-align: right; }

.pkg-detail--missing { min-height: 70vh; padding: 160px 0 120px; }
.pkg-detail--missing h1 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 500;
  color: var(--cream);
}
.pkg-loading {
  min-height: 60vh;
  padding: 160px 24px;
  text-align: center;
  color: var(--cream-dim);
  background: var(--bg-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pkg-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .pkg-hero { padding-top: 120px; }
  .pkg-body__grid { grid-template-columns: 1fr; gap: 40px; }
  .pkg-body__side { position: static; }
}
@media (max-width: 900px) {
  .pkg-panel { grid-template-columns: 1fr; }
  .pkg-head,
  .pkg-index__head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .pkg-checklist { grid-template-columns: 1fr; }
  .pkg-row { grid-template-columns: 34px 72px minmax(0, 1fr) auto 20px; gap: 14px; }
  .pkg-row__thumb { width: 72px; height: 50px; }
  .pkg-row__text strong { font-size: 18px; }
  .pkg-index__cta { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
}
@media (max-width: 620px) {
  .pkg-index { padding-block: 116px 72px; }
  .pkg-index__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pkg-row { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 12px; padding: 14px 4px; }
  .pkg-row__thumb { display: none; }
  .pkg-row__price { display: none; }
  .pkg-row__text small { font-size: 9px; letter-spacing: 0.12em; }
  .pkg-next__inner { flex-direction: column; }
  .pkg-next__link--right { text-align: left; }

  /* Tap targets instead of a scroll strip: no hidden horizontal scroll. */
  .pkg-chooser { overflow: visible; }
  .pkg-chooser__track { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg-chooser__pill { display: none; }
  .pkg-chooser__btn { padding: 12px 14px; }
  .pkg-chooser__btn.is-active {
    background: linear-gradient(180deg, rgba(201, 169, 110, 0.2), rgba(201, 169, 110, 0.09));
    box-shadow: inset 0 0 0 1px rgba(201, 169, 110, 0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkg-card { animation: none !important; }
  .pkg-chooser__pill,
  .pkg-card,
  .pkg-card__media img,
  .pkg-row,
  .pkg-row__thumb img,
  .pkg-row__arrow { transition: none !important; }
}

/* ===========================================================================
   Work pages — paper index and editorial project detail
   =========================================================================== */

/* ===========================================================================
   Light pages — the paper shell shared by every subpage
   (about, work, services, explore and their detail routes)
   =========================================================================== */

.page {
  position: relative;
  min-height: 100vh;
  padding-block: 132px 96px;
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 100% 0%, rgba(201, 169, 110, 0.1), transparent 58%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
}

/* Full-bleed background for pages that also carry the shell width constraint */
.page.shell {
  width: 100%;
  margin-inline: 0;
  padding-inline: max(36px, calc((100% - 1240px) / 2));
}

.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 { color: var(--ink); }

.page p { color: var(--ink-soft); }

.page .eyebrow, .pkg-detail .eyebrow, .division-detail .eyebrow { color: var(--gold-ink); }
.page .eyebrow span, .pkg-detail .eyebrow span, .division-detail .eyebrow span { background: var(--gold-ink); }
.page .text-link, .pkg-detail .text-link, .division-detail .text-link { color: var(--gold-ink); }
.page .section-heading h2 { color: var(--ink); }
.page .section-heading h2 em { color: var(--gold-ink); }
.page .text-link { color: var(--gold-ink); }

/* Light-mode controls so the paper pages never fall back to cream-on-cream */
.page .button-gold { background: var(--ink); color: var(--paper); }
.page .button-gold:hover { background: #3a3431; }
.page .button-outline { border: 1px solid var(--rule); background: transparent; color: var(--ink); }
.page .button-outline:hover { border-color: var(--ink); }

.page .filter-chip {
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink-soft);
}
.page .filter-chip:hover { border-color: var(--gold-ink); color: var(--ink); }
.page .filter-chip.is-selected,
.page .filter-chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; }

/* Rules and dividers read as warm paper hairlines, not dark borders */
.page hr,
.page .rule { border: 0; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
  .page { padding-block: 116px 72px; }
}
@media (max-width: 620px) {
  .page { padding-block: 104px 64px; }
}


/* ===========================================================================
   Work pages — paper index and editorial project detail
   =========================================================================== */
.work-index__hero { padding-block: 40px 48px; max-width: 760px; }
.work-index__title { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 12px 0 16px; color: var(--ink); }
.work-index__lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.work-index__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 48px 0 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; }
/* Feature banner — full-width cinematic lead (currently unused; retained for future) */
.work-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; margin-top: 32px; border: 1px solid var(--rule); border-radius: 24px; overflow: hidden; background: var(--paper-2); transition: border-color 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: inherit; }
.work-feature:hover { border-color: var(--gold-ink); box-shadow: 0 30px 70px rgba(28,25,23,0.14); }
.work-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.work-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease; filter: saturate(0.85) contrast(1.05) brightness(0.9); }
.work-feature:hover .work-feature__media img { transform: scale(1.04); filter: saturate(1) contrast(1) brightness(1); }
.work-feature__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0.08) 0%, rgba(28,25,23,0.2) 60%, rgba(28,25,23,0.55) 100%), radial-gradient(120% 80% at 100% 0%, rgba(201,169,110,0.14), transparent 60%); pointer-events: none; mix-blend-mode: multiply; }
.work-feature__media::before { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: 0.3; pointer-events: none; z-index: 1; }
.work-feature__chip { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(245,240,232,0.92); color: var(--ink); backdrop-filter: blur(8px); z-index: 2; }
.work-feature .work-card__status { position: absolute; top: 16px; left: 16px; z-index: 2; }
.work-feature__body { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.work-feature__meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }
.work-feature__title { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; margin: 4px 0 0; color: var(--ink); }
.work-feature__lead { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.work-feature__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.work-feature__tags span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); }
.work-feature__cta { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 8px; transition: transform 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.work-feature:hover .work-feature__cta { transform: translateX(4px); }
@media (max-width: 900px) {
  .work-feature { grid-template-columns: 1fr; }
  .work-feature__title { font-size: 26px; }
  .work-card:nth-child(even) { margin-top: 0; }
}
.work-index__cta { margin-top: 80px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 24px; padding: 48px; }
.work-index__cta-inner h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 0 0 8px; }
.work-index__cta-inner p { color: var(--ink-soft); margin: 0 0 24px; max-width: 50ch; }
.work-hero { padding-block: 40px 64px; }
.work-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.work-hero__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--paper-3); border: 1px solid var(--rule); }
.work-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.work-hero__status { position: absolute; top: 16px; left: 16px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(28,25,23,0.8); color: var(--paper); }
.work-hero__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.work-hero__tag span { color: var(--ink-faint); }
.work-hero__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0 0 10px; color: var(--ink); }
.work-hero__tagline { margin: 0 0 16px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; color: var(--gold-ink); }
.work-hero__lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; }
.work-hero__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; margin-top: 8px; }
.work-hero__facts div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--rule); padding-top: 10px; }
.work-hero__facts dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.work-hero__facts dd { font-size: 14px; color: var(--ink); margin: 0; font-weight: 500; }
.work-body { padding-block: 32px 64px; }
.work-body__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.work-body__grid > * { min-width: 0; }
.work-body__main { display: flex; flex-direction: column; gap: 48px; }
.work-sticky-nav { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.work-sticky-nav a { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.12em; }
.work-sticky-nav a:hover { color: var(--gold-ink); }
.work-block { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 120px; }
.work-h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 0; }
.work-block p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.work-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.work-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.work-checklist li::before { content: "✓"; color: var(--gold-ink); font-weight: 700; flex-shrink: 0; }
.work-gallery { display: flex; flex-direction: column; gap: 16px; }
.work-gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.work-gallery__item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--paper-3); border: 1px solid var(--rule); }
.work-gallery__item img { width: 100%; height: auto; display: block; }
.work-gallery__item figcaption { font-size: 11px; color: var(--ink-faint); padding: 8px 12px; }
.work-body__side { display: flex; flex-direction: column; gap: 24px; }
.work-results { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
.work-results ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.work-results li { display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.work-results li:last-child { border-bottom: none; padding-bottom: 0; }
.work-results strong { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.work-results span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.work-meta { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.work-meta div { border-top: 1px solid var(--rule); padding-top: 10px; }
.work-meta dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
.work-meta dd { font-size: 14px; color: var(--ink); margin: 0; }
.work-related-pkgs { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 20px; }
.work-related-pkgs ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.work-related-pkgs li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); font-size: 13px; color: var(--ink); transition: border-color 0.2s; }
.work-related-pkgs li a:hover { border-color: var(--gold-ink); }
.work-related-pkgs__price { font-size: 11px; color: var(--gold-ink); font-weight: 600; }
.work-next { border-top: 1px solid var(--rule); padding: 40px 0 16px; }
.work-next__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.work-next__link { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.work-next__link span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.work-next__link strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.work-next__link--right { text-align: right; align-items: flex-end; }
.work-loading { min-height: 50vh; display: grid; place-items: center; color: var(--ink-soft); }
@media (max-width: 900px) { .work-hero__inner { grid-template-columns: 1fr; } .work-body__grid { grid-template-columns: 1fr; gap: 32px; } .work-gallery__grid { grid-template-columns: 1fr; } .work-index__cta { padding: 32px; } .work-hero__facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .work-hero__facts { grid-template-columns: 1fr; } .work-next__link { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .work-card, .work-card__media img { transition: none !important; } }

/* ===========================================================================
   Divisions — paper index and detail pages
   =========================================================================== */
.divisions-index__hero { padding-block: 40px 48px; max-width: 760px; }
.divisions-index__title { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1.05; margin: 12px 0 16px; color: var(--ink); }
.divisions-index__lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }

.divisions-list { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; }

.division-row { display: grid; grid-template-columns: 60px 180px 1fr 40px; gap: 24px; align-items: center; padding: 24px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 20px; transition: transform 0.2s ease, border-color 0.2s ease; }
.division-row:hover { transform: translateY(-3px); border-color: var(--gold-ink); }

.division-row__num { font-family: var(--serif); font-size: 28px; color: var(--gold-ink); }
.division-row__plate { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule); }
.division-row__plate img { width: 100%; height: 100%; object-fit: cover; }
.division-row__body { display: flex; flex-direction: column; gap: 8px; }
.division-row__title { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0; }
.division-row__tagline { font-size: 14px; color: var(--gold-ink); margin: 0; font-weight: 500; }
.division-row__lead { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.division-row__caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.division-row__caps span { font-size: 10.5px; padding: 4px 8px; border-radius: 999px; background: var(--paper-3); color: var(--ink-soft); }
.division-row__arrow { font-size: 22px; color: var(--gold-ink); text-align: right; }

.divisions-index__cta { margin-top: 80px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 24px; padding: 48px; }
.divisions-index__cta-inner h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 0 0 8px; }
.divisions-index__cta-inner p { color: var(--ink-soft); margin: 0 0 24px; max-width: 50ch; }

/* Detail */
.division-hero { padding-block: 40px 64px; }
.division-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.division-hero__copy { display: flex; flex-direction: column; gap: 12px; }
.division-hero__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 8px; margin: 0; }
.division-hero__tag span { color: var(--ink-faint); }
.division-hero__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0; color: var(--ink); }
.division-hero__tagline { font-size: 16px; color: var(--gold-ink); font-weight: 500; margin: 0; }
.division-hero__lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.division-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.division-hero__plate { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule); }
.division-hero__plate img { width: 100%; height: 100%; object-fit: cover; }

.division-hero__ghost { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; align-self: center; }

.division-section-head { margin-bottom: 24px; }
.division-h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 4px 0 0; }

.division-capabilities { padding-block: 32px 48px; }
.division-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.division-cap-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; transition: border-color 0.2s; }
.division-cap-card:hover { border-color: var(--gold-ink); }
.division-cap-card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.division-cap-card p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.division-process { padding-block: 32px 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.division-process-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.division-process-list li { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.division-process-num { font-family: var(--serif); font-size: 22px; color: var(--gold-ink); }
.division-process-text { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

.division-deliverables { padding-block: 32px 48px; }
.division-deliverables__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.division-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.division-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.division-checklist li::before { content: "✓"; color: var(--gold-ink); font-weight: 700; flex-shrink: 0; }
.division-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.division-items li { font-size: 14px; color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--rule); }

.division-faq { padding-block: 32px 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.division-faq-list { display: flex; flex-direction: column; gap: 8px; }
.division-faq-item { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.division-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); font-weight: 500; }
.division-faq-q:hover { background: var(--paper-2); }
.division-faq-icon { font-size: 20px; color: var(--gold-ink); }
.division-faq-a { padding: 0 20px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.division-related { padding-block: 32px 48px; }
.division-related__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.division-related-projects, .division-related-packages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.division-related-projects li a, .division-related-packages li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--rule); transition: border-color 0.2s; }
.division-related-projects li a:hover, .division-related-packages li a:hover { border-color: var(--gold-ink); }
.division-related-projects__title { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.division-related-projects__meta { font-size: 11px; color: var(--ink-faint); }
.division-related-packages li a { flex-direction: row; justify-content: space-between; align-items: center; }
.division-related-packages__price { font-size: 12px; color: var(--gold-ink); font-weight: 600; }

.division-next { border-top: 1px solid var(--rule); padding: 40px 0 16px; }
.division-next__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.division-next__link { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.division-next__link span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.division-next__link strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.division-next__link--right { text-align: right; align-items: flex-end; }

.division-loading { min-height: 50vh; display: grid; place-items: center; color: var(--ink-soft); }

@media (max-width: 900px) {
  .division-row { grid-template-columns: 1fr; }
  .division-row__plate { max-width: 240px; }
  .division-cap-grid { grid-template-columns: 1fr 1fr; }
  .division-process-list { grid-template-columns: 1fr 1fr; }
  .division-deliverables__grid { grid-template-columns: 1fr; gap: 32px; }
  .division-related__grid { grid-template-columns: 1fr; gap: 32px; }
  .division-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .division-cap-grid { grid-template-columns: 1fr; }
  .division-process-list { grid-template-columns: 1fr; }
  .division-next__link { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .division-row { transition: none !important; }
  .division-row:hover { transform: none; }
}

/* ===========================================================================
   About page — paper, editorial
   =========================================================================== */
.about-hero { padding-block: 40px 48px; max-width: 760px; }
.about-hero__title { font-family: var(--serif); font-size: clamp(48px, 7vw, 88px); line-height: 1.0; margin: 12px 0 16px; color: var(--ink); }
.about-hero__lede { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }

.about-section-head { margin-bottom: 24px; }
.about-h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 4px 0 0; }

.about-statement { padding-block: 48px; border-top: 1px solid var(--rule); }
.about-statement__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-statement__grid p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.about-statement__card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; }
.about-motto { font-family: var(--serif); font-size: 36px; color: var(--ink); margin: 8px 0 12px; line-height: 1.1; }
.about-motto-sub { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.about-quote { padding-block: 44px; border-top: 1px solid var(--rule); text-align: center; }
.about-quote blockquote { position: relative; max-width: 40ch; margin: 0 auto; font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); line-height: 1.35; color: var(--ink); }
.about-quote blockquote::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 56px; line-height: 0.6; color: var(--gold-ink); margin-bottom: 12px; }
.about-quote__attr { margin: 18px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }

.about-values { padding-block: 48px; border-top: 1px solid var(--rule); }
.about-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.about-value-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.about-value-num { font-family: var(--serif); font-size: 24px; color: var(--gold-ink); display: block; margin-bottom: 8px; }
.about-value-card h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.about-value-card p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.about-capabilities { padding-block: 48px; border-top: 1px solid var(--rule); }
.about-cap-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; }
.about-cap-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; transition: border-color 0.2s, transform 0.2s; }
.about-cap-card:hover { border-color: var(--gold-ink); transform: translateY(-2px); }
.about-cap-num { font-family: var(--serif); font-size: 20px; color: var(--gold-ink); }
.about-cap-title { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.about-cap-tag { font-size: 11px; color: var(--ink-soft); line-height: 1.4; }
.about-cap-packages { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

.about-stats { padding-block: 48px; border-top: 1px solid var(--rule); }
.about-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-stat { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 28px 20px; text-align: center; }
.about-stat strong { font-family: var(--serif); font-size: 44px; color: var(--ink); display: block; line-height: 1; }
.about-stat span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 8px; display: block; }

.about-cta { margin-top: 48px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 24px; padding: 48px; }
.about-cta__inner h2 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 0 0 8px; }
.about-cta__inner p { color: var(--ink-soft); margin: 0 0 24px; max-width: 50ch; }

@media (max-width: 900px) {
  .about-statement__grid { grid-template-columns: 1fr; }
  .about-values__grid { grid-template-columns: 1fr; }
  .about-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about-cta { padding: 32px; }
}
@media (max-width: 620px) {
  .about-cap-grid { grid-template-columns: 1fr; }
  .about-stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ===========================================================================
   Division detail pages — comprehensive redesign
   =========================================================================== */
.div-hero { padding-block: 40px 64px; }
.div-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.div-hero__copy { display: flex; flex-direction: column; gap: 12px; }
.div-hero__tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); display: flex; align-items: center; gap: 8px; margin: 0; }
.div-hero__tag span { color: var(--ink-faint); }
.div-hero__title { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0; color: var(--ink); }
.div-hero__tagline { font-size: 16px; color: var(--gold-ink); font-weight: 500; margin: 0; }
.div-hero__lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.div-hero__highlights { display: flex; gap: 24px; margin: 8px 0; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-hero__highlight { display: flex; flex-direction: column; gap: 2px; }
.div-hero__highlight strong { font-family: var(--serif); font-size: 28px; color: var(--ink); line-height: 1; }
.div-hero__highlight span { font-size: 10px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }

.div-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.div-hero__ghost { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; align-self: center; }

.div-hero__plate { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule); }
.div-hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.div-hero__plate-glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(201,169,110,0.15), transparent 60%); pointer-events: none; }

/* Overview */
.div-overview { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-overview__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.div-overview__text { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 12px 0 0; }
.div-overview__scan { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.div-overview__list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.div-overview__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.div-overview__list li svg { width: 14px; height: 14px; color: var(--gold-ink); flex-shrink: 0; margin-top: 3px; }

/* Section head */
.div-section-head { margin-bottom: 28px; max-width: 640px; }
.div-h2 { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 4px 0 0; }
.div-section-lede { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 8px 0 0; }

/* Capabilities */
.div-capabilities { padding-block: 48px; }
.div-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.div-cap-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease; position: relative; overflow: hidden; }
.div-cap-card:hover { transform: translateY(-4px); border-color: var(--gold-ink); }
.div-cap-card__num { font-family: var(--serif); font-size: 24px; color: var(--gold-ink); opacity: 0.5; position: absolute; top: 16px; right: 20px; }
.div-cap-card h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0 0 6px; }
.div-cap-card p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* Featured work */
.div-work { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.div-work__card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; }
.div-work__card:hover { transform: translateY(-3px); border-color: var(--gold-ink); }
.div-work__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.div-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.div-work__card:hover .div-work__media img { transform: scale(1.04); }
.div-work__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.div-work__sector { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.div-work__body h3 { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0; }
.div-work__body p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.div-work__cta { font-size: 12px; font-weight: 600; color: var(--gold-ink); margin-top: auto; display: inline-flex; align-items: center; gap: 4px; }

/* Process */
.div-process { padding-block: 48px; }
.div-process__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.div-process__step { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; position: relative; }
.div-process__num { font-family: var(--serif); font-size: 26px; color: var(--gold-ink); line-height: 1; }
.div-process__body h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.div-process__body p { font-size: 12px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.div-process__connector { display: none; }

/* Tools */
.div-tools { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-tools__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.div-tool-chip { font-size: 13px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); font-weight: 500; transition: border-color 0.2s; }
.div-tool-chip:hover { border-color: var(--gold-ink); }

/* Packages */
.div-packages { padding-block: 48px; }
.div-packages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.div-package-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.2s ease, border-color 0.2s ease; }
.div-package-card:hover { transform: translateY(-3px); border-color: var(--gold-ink); }
.div-package-card__head { display: flex; justify-content: space-between; align-items: center; }
.div-package-card__num { font-family: var(--serif); font-size: 18px; color: var(--gold-ink); }
.div-package-card__stage { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 8px; border-radius: 999px; background: var(--paper-3); }
.div-package-card__title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 0; }
.div-package-card__tagline { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.div-package-card__price { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-package-card__price strong { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.div-package-card__price small { font-size: 11px; color: var(--ink-faint); }
.div-package-card__includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.div-package-card__includes li { font-size: 12px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; }
.div-package-card__includes li::before { content: "·"; color: var(--gold-ink); font-weight: 700; }
.div-package-card__includes li.div-package-card__more { color: var(--ink-faint); font-style: italic; }
.div-package-card__includes li.div-package-card__more::before { content: ""; }
.div-package-card__actions { display: flex; gap: 10px; align-items: center; margin-top: auto; }
.div-package-card__link { font-size: 12px; color: var(--gold-ink); font-weight: 600; }

/* Testimonials */
.div-testimonials { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-testimonials__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.div-testimonial { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--gold-ink); border-radius: 0 16px 16px 0; padding: 24px 28px; margin: 0; }
.div-testimonial__quote { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--ink); font-style: italic; margin: 0 0 16px; }
.div-testimonial__footer { display: flex; flex-direction: column; gap: 2px; }
.div-testimonial__author { font-size: 14px; font-weight: 600; color: var(--ink); }
.div-testimonial__role { font-size: 11px; color: var(--ink-faint); }

/* Deliverables */
.div-deliverables { padding-block: 48px; }
.div-deliverables__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.div-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.div-checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.div-checklist li::before { content: "✓"; color: var(--gold-ink); font-weight: 700; flex-shrink: 0; }
.div-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.div-items li { font-size: 14px; color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--rule); }

/* FAQ */
.div-faq { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.div-faq__list { display: flex; flex-direction: column; gap: 8px; }
.div-faq__item { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.div-faq__item.is-open { border-color: var(--gold-ink); }
.div-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: transparent; border: 0; cursor: pointer; text-align: left; font-size: 15px; color: var(--ink); font-weight: 500; }
.div-faq__q:hover { background: var(--paper-2); }
.div-faq__icon { font-size: 20px; color: var(--gold-ink); flex-shrink: 0; }
.div-faq__a { padding: 0 20px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Related divisions */
.div-related-divs { padding-block: 48px; }
.div-related-divs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.div-related-div-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 14px; transition: transform 0.2s ease, border-color 0.2s ease; position: relative; }
.div-related-div-card:hover { transform: translateY(-3px); border-color: var(--gold-ink); }
.div-related-div-card__plate { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); border: 1px solid var(--rule); }
.div-related-div-card__plate img { width: 100%; height: 100%; object-fit: cover; }
.div-related-div-card__body { display: flex; flex-direction: column; gap: 2px; }
.div-related-div-card__num { font-family: var(--serif); font-size: 16px; color: var(--gold-ink); }
.div-related-div-card__body h3 { font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 0; }
.div-related-div-card__body p { font-size: 11px; color: var(--ink-soft); margin: 0; line-height: 1.4; }
.div-related-div-card__arrow { position: absolute; top: 16px; right: 16px; font-size: 18px; color: var(--gold-ink); }

/* Next nav */
.div-next { border-top: 1px solid var(--rule); padding: 40px 0 16px; }
.div-next__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.div-next__link { display: flex; flex-direction: column; gap: 4px; max-width: 48%; }
.div-next__link span { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; }
.div-next__link strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.div-next__link--right { text-align: right; align-items: flex-end; }

.division-detail { background-color: var(--paper); min-height: 100vh; color: var(--ink); }
.division-detail--missing { min-height: 50vh; display: grid; place-items: center; }
.work-detail { background-color: var(--paper); min-height: 100vh; color: var(--ink); }

@media (max-width: 900px) {
  .div-hero__inner { grid-template-columns: 1fr; }
  .div-hero__plate { max-width: 480px; }
  .div-overview__grid { grid-template-columns: 1fr; }
  .div-cap-grid { grid-template-columns: 1fr 1fr; }
  .div-work__grid { grid-template-columns: 1fr; }
  .div-process__list { grid-template-columns: repeat(2, 1fr); }
  .div-packages__grid { grid-template-columns: 1fr; }
  .div-testimonials__grid { grid-template-columns: 1fr; }
  .div-deliverables__grid { grid-template-columns: 1fr; gap: 32px; }
  .div-related-divs__grid { grid-template-columns: repeat(2, 1fr); }
  .div-hero__highlights { gap: 16px; }
}

@media (max-width: 620px) {
  .div-cap-grid { grid-template-columns: 1fr; }
  .div-process__list { grid-template-columns: 1fr; }
  .div-related-divs__grid { grid-template-columns: 1fr; }
  .div-next__link { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .div-cap-card, .div-work__card, .div-package-card, .div-related-div-card { transition: none !important; }
  .div-cap-card:hover, .div-work__card:hover, .div-package-card:hover, .div-related-div-card:hover { transform: none; }
}

/* ===== Work gateway + category showcase (film-strip) ===== */
.work-breadcrumb { padding: 12px 0 0; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.work-breadcrumb a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.work-breadcrumb a:hover { color: var(--gold-ink); }
.work-breadcrumb span[aria-hidden] { margin: 0 8px; opacity: 0.5; }

.work-gateway { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.gateway-tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--paper-2); text-decoration: none; color: inherit; min-height: 300px; transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.gateway-tile:hover { border-color: var(--gold-ink); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(28,25,23,0.12); }
.gateway-tile__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.gateway-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease; filter: saturate(0.82) contrast(1.05) brightness(0.9); }
.gateway-tile:hover .gateway-tile__media img { transform: scale(1.06); filter: saturate(1) contrast(1) brightness(1); }
.gateway-tile__grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0.1) 0%, rgba(28,25,23,0.55) 100%), radial-gradient(120% 80% at 100% 0%, rgba(201,169,110,0.14), transparent 60%); mix-blend-mode: multiply; pointer-events: none; }
.gateway-tile__grain { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: 0.35; pointer-events: none; }
.gateway-tile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gateway-tile__num { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--gold-ink); }
.gateway-tile__title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; color: var(--ink); margin: 4px 0 0; }
.gateway-tile__pitch { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.gateway-tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.gateway-tile__count { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.gateway-tile__arrow { font-size: 20px; color: var(--gold-ink); transition: transform 0.3s ease; }
.gateway-tile:hover .gateway-tile__arrow { transform: translateX(4px); }

.category-hero { padding-block: 40px 24px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.ads-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 24px; overflow: hidden; margin: 0 0 28px; border: 1px solid var(--rule); background: var(--paper-3); }
.ads-cover img { object-fit: cover; }
.ads-cover__grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0.15) 0%, rgba(28,25,23,0.55) 100%); pointer-events: none; }
.ads-cover__label { position: absolute; left: 24px; bottom: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); background: rgba(28,25,23,0.7); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; }
.category-hero__title { font-family: var(--serif); font-size: 48px; font-weight: 600; line-height: 1.05; color: var(--ink); margin: 12px 0 0; }
.category-hero__lede { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; margin: 16px 0 0; }
.category-hero__tagline { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--gold-ink); margin: 10px 0 0; }
.category-hero__count { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.category-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.category-pill:hover { border-color: var(--gold-ink); color: var(--ink); }
.category-pill.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.category-pill__num { font-size: 10px; letter-spacing: 0.1em; opacity: 0.6; }

.film-strip { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.film-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--paper-2); text-decoration: none; color: inherit; min-height: 360px; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.film-row:hover { border-color: var(--gold-ink); box-shadow: 0 24px 60px rgba(28,25,23,0.12); }
.film-row--image-right .film-row__media { order: 2; }
.film-row__media { position: relative; overflow: hidden; background: var(--paper-3); min-height: 360px; }
.film-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease; filter: saturate(0.82) contrast(1.05) brightness(0.9); }
.film-row:hover .film-row__media img { transform: scale(1.05); filter: saturate(1) contrast(1) brightness(1); }
.film-row__grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,25,23,0.1) 0%, rgba(28,25,23,0.4) 100%), radial-gradient(120% 80% at 100% 0%, rgba(201,169,110,0.12), transparent 60%); mix-blend-mode: multiply; pointer-events: none; }
.film-row__grain { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"); mix-blend-mode: overlay; opacity: 0.35; pointer-events: none; }
.film-row .work-card__status { position: absolute; top: 16px; left: 16px; z-index: 2; }
.film-row__copy { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.film-row__meta { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.film-row__index { font-weight: 700; color: var(--gold-ink); }
.film-row__cat { color: var(--ink-faint); }
.film-row__title { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--ink); margin: 6px 0 0; }
.film-row__lead { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.film-row__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.film-row__tags span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); }
.film-row__facts { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; margin-top: 4px; }
.film-row__cta { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-top: 8px; transition: transform 0.3s ease; display: inline-flex; align-items: center; gap: 6px; }
.film-row:hover .film-row__cta { transform: translateX(4px); }

.category-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 16px; }
.category-nav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color 0.2s ease, background 0.2s ease; }
.category-nav__link:hover { border-color: var(--gold-ink); background: var(--paper-2); }
.category-nav__link--next { text-align: right; }
.category-nav__dir { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.category-nav__name { font-family: var(--serif); font-size: 20px; color: var(--ink); }

@media (max-width: 900px) {
  .work-gateway { grid-template-columns: 1fr; }
  .film-row { grid-template-columns: 1fr; min-height: auto; }
  .film-row--image-right .film-row__media { order: 0; }
  .film-row__media { min-height: 240px; aspect-ratio: 3 / 2; }
  .film-row__copy { padding: 24px; }
  .film-row__title { font-size: 24px; }
  .category-hero__title { font-size: 36px; }
  .category-nav { grid-template-columns: 1fr; }
  .category-nav__link--next { text-align: left; }
}
@media (max-width: 780px) {
  .work-gateway { gap: 16px; }
  .gateway-tile { min-height: 260px; }
}
@media (max-width: 480px) {
  .achievements-panel { padding: 48px 16px 32px; }
}

/* ==========================================================================
   Work showcase — portfolio cards, project frames, case-study pages
   ========================================================================== */

/* --- Status pills ------------------------------------------------------- */
.work-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.work-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.work-badge.is-live {
  color: #1F6B45;
  border-color: rgba(31, 107, 69, 0.28);
  background: rgba(31, 107, 69, 0.1);
}
.work-badge.is-concept {
  color: var(--gold-ink);
  border-color: rgba(138, 107, 47, 0.3);
  background: rgba(138, 107, 47, 0.08);
}

/* --- Homepage work card status ----------------------------------------- */
.work-card__state {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
}
.work-card__state.is-published {
  color: var(--gold-light);
  border-color: rgba(201, 169, 110, 0.5);
  background: rgba(201, 169, 110, 0.12);
}
.work-card__state.is-concept {
  color: rgba(250, 250, 249, 0.52);
  border-color: rgba(250, 250, 249, 0.18);
}

/* --- Category hero ------------------------------------------------------ */
.category-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.category-hero__copy { max-width: 780px; }
.category-hero__stats {
  display: flex;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
}
.category-hero__stats > div {
  min-width: 96px;
  padding: 14px 22px;
  border-left: 1px solid var(--rule);
}
.category-hero__stats > div:first-child { border-left: 0; }
.category-hero__stats dt {
  margin: 0;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.category-hero__stats dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}

.category-pills--sticky {
  position: sticky;
  top: 88px;
  z-index: 30;
  margin: 0 0 36px;
  padding: 12px 0;
  background: rgba(250, 250, 249, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

/* --- Category sections -------------------------------------------------- */
.category-feature { margin-bottom: 8px; }
.category-block { margin-top: 56px; }
.category-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.category-block__head > div { display: flex; flex-direction: column; gap: 6px; }
.category-block__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.category-block__count {
  padding: 5px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.category-block__note {
  max-width: 44ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
}
.category-block--concepts {
  margin-top: 72px;
  padding: 36px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--paper-2);
}
.category-block--concepts .concept-card { background: var(--paper); }

/* --- Featured project --------------------------------------------------- */
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  border-color: var(--gold-ink);
  box-shadow: 0 30px 80px rgba(28, 25, 23, 0.14);
}
.feature-card__media {
  position: relative;
  display: flex;
  align-items: center;
  padding: 22px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(201, 169, 110, 0.16), transparent 60%),
    var(--paper-3);
  text-decoration: none;
  color: inherit;
}
.feature-card__media .work-frame {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 44px rgba(28, 25, 23, 0.2);
}
.feature-card__hint {
  position: absolute;
  left: 34px;
  bottom: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.82);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.feature-card:hover .feature-card__hint { opacity: 1; transform: translateY(0); }
.feature-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 36px 38px;
}
.feature-card__meta {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.feature-card__meta span { color: var(--gold-ink); }
.feature-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
}
.feature-card__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.feature-card__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-card__stack span,
.work-chip-list li {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.feature-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
}
.feature-card__repo,
.work-hero__repo { gap: 8px; }
.feature-card__case {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  text-decoration: none;
}
.feature-card__case span { transition: transform 0.25s ease; }
.feature-card__case:hover span { transform: translateX(4px); }

/* --- Project grid ------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.showcase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper-2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.showcase-card:hover {
  border-color: var(--gold-ink);
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(28, 25, 23, 0.12);
}
.showcase-card__hit { position: absolute; inset: 0; z-index: 1; }
.showcase-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.showcase-card__media img,
.showcase-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.showcase-card__media img {
  transition: transform 0.5s ease, filter 0.4s ease;
}
.showcase-card:hover .showcase-card__media img {
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}
.showcase-card__media .work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(6px);
}
.showcase-card__media .work-badge.is-concept { color: var(--gold-ink); }
.showcase-card__grade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.04) 40%, rgba(28, 25, 23, 0.2));
  pointer-events: none;
}
.showcase-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
}
.showcase-card__meta {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.showcase-card__meta span { color: var(--gold-ink); }
.showcase-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
}
.showcase-card__lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.showcase-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.showcase-card__tags span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.showcase-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.showcase-card__cta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.showcase-card__cta span { color: var(--gold-ink); }
.showcase-card__links {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.showcase-card__icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.showcase-card__icon:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

/* --- Concept band ------------------------------------------------------- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.concept-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.concept-card:hover { border-color: var(--gold-ink); transform: translateY(-3px); }
.concept-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-3);
}
.concept-card__media img { filter: saturate(0.82); transition: filter 0.3s ease, transform 0.4s ease; }
.concept-card:hover .concept-card__media img { filter: saturate(1); transform: scale(1.03); }
.concept-card__media .work-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(250, 250, 249, 0.9);
}
.concept-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px 18px;
}
.concept-card__kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.concept-card__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.concept-card__lead {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.concept-card__cta {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Gateway latest project -------------------------------------------- */
.gateway-tile__latest {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.gateway-tile__latest span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* --- Device frames ------------------------------------------------------ */
.work-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(28, 25, 23, 0.14);
  border-radius: 14px;
  background: #E9E3D7;
}
.work-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: #EDE7DB;
}
.work-frame__dots { display: inline-flex; gap: 6px; flex-shrink: 0; }
.work-frame__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C9BEA9;
}
.work-frame__dots i:nth-child(1) { background: #D99B8F; }
.work-frame__dots i:nth-child(2) { background: #D9BE8F; }
.work-frame__dots i:nth-child(3) { background: #9DB89A; }
.work-frame__url {
  flex: 1;
  max-width: 360px;
  margin-inline: auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.7);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-frame__url:empty { display: none; }
.work-frame__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.work-frame--plain .work-frame__screen { aspect-ratio: 4 / 3; }
.work-frame--mobile {
  width: min(280px, 78%);
  margin-inline: auto;
  padding: 7px;
  border-color: #1C1917;
  border-radius: 32px;
  background: #1C1917;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.22);
}
.work-frame--mobile .work-frame__screen {
  aspect-ratio: 475 / 903;
  border-radius: 25px;
}

/* --- Detail hero -------------------------------------------------------- */
.work-detail { padding-top: 104px; }
.work-detail .button-gold { background: var(--ink); color: var(--paper); }
.work-detail .button-gold:hover { background: #3A3431; }
.work-detail .button-outline {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
}
.work-detail .button-outline:hover { border-color: var(--ink); }
.work-detail .text-link { color: var(--gold-ink); }
.work-detail .eyebrow { color: var(--gold-ink); }
.work-detail .eyebrow span { background: var(--gold-ink); }

.work-hero--showcase { padding-block: 18px 56px; }
.work-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.work-hero__copy { max-width: 720px; }
.work-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}
.work-hero__quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper-2);
}
.work-hero__quick > div {
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
}
.work-hero__quick > div:nth-child(-n + 2) { border-top: 0; }
.work-hero__quick > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.work-hero__quick dt {
  margin: 0 0 3px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work-hero__quick dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.work-showcase .work-frame { box-shadow: 0 34px 90px rgba(28, 25, 23, 0.18); }
.work-private { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); }

/* --- Detail body -------------------------------------------------------- */
.work-sticky-nav {
  position: sticky;
  top: 88px;
  z-index: 20;
  padding: 10px 0;
  background: linear-gradient(var(--paper) 78%, rgba(245, 240, 232, 0));
}
.work-visit {
  min-width: 0;
  padding: 24px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--paper);
}
.work-visit .eyebrow { color: var(--gold-light); }
.work-visit .eyebrow span { background: var(--gold-light); }
.work-visit__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-top: 16px;
}
.work-visit__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid rgba(250, 250, 249, 0.16);
  border-radius: 12px;
  background: rgba(250, 250, 249, 0.05);
  color: var(--paper);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.work-visit__link:hover {
  background: rgba(250, 250, 249, 0.1);
  border-color: rgba(201, 169, 110, 0.55);
}
.work-visit__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.16);
  color: var(--gold-light);
  font-size: 15px;
}
.work-visit__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.work-visit__copy strong { font-size: 13px; font-weight: 600; }
.work-visit__copy small {
  max-width: 100%;
  font-size: 10.5px;
  color: rgba(250, 250, 249, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-visit__arrow { margin-left: auto; color: var(--cream-dim); }
.work-visit__empty,
.work-visit__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(250, 250, 249, 0.62);
}
.work-side-card {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper-2);
}
.work-side-card .eyebrow { margin-bottom: 14px; }
.work-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-related-pkgs__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-related-pkgs__list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.work-related-pkgs__list a:hover { border-color: var(--gold-ink); }

/* --- Highlights, gallery, testimonial ---------------------------------- */
.work-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.work-highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.work-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: rotate(-45deg);
}
.work-gallery__grid { align-items: start; }
.work-gallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.work-gallery__item figcaption {
  padding: 10px 14px 12px;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}
.work-gallery__grid.is-single { grid-template-columns: 1fr; }
.work-gallery__item.is-mobile {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(201, 169, 110, 0.14), transparent 62%),
    var(--paper-2);
}
.work-gallery__item.is-mobile .work-gallery__media {
  width: min(300px, 72%);
  aspect-ratio: 475 / 903;
  border: 7px solid #1C1917;
  border-radius: 30px;
  box-shadow: 0 22px 54px rgba(28, 25, 23, 0.2);
}
.work-gallery__item.is-mobile figcaption {
  margin-top: 14px;
  text-align: center;
}
.work-gallery__item--video { padding: 0; }
.work-gallery__video {
  display: block;
  width: 100%;
  height: auto;
  background: #1C1917;
}
.work-testimonial {
  margin: 0;
  padding: 28px 30px;
  border-left: 3px solid var(--gold-ink);
  border-radius: 0 16px 16px 0;
  background: var(--paper-2);
}
.work-testimonial p {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}
.work-testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--ink-faint);
}
.work-testimonial strong { font-size: 13px; color: var(--ink); }

/* --- Showcase responsive ------------------------------------------------ */
@media (max-width: 1100px) {
  .category-hero__grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .category-hero__stats { justify-self: start; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card__body { padding: 28px 30px 32px; }
  .work-hero__top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .work-hero__quick { max-width: 520px; }
  .concept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-block--concepts { padding: 24px; }
  .showcase-card__body { padding: 20px; }
  .work-sticky-nav { top: 78px; }
  .work-highlights { grid-template-columns: 1fr; }
  .work-detail { padding-top: 92px; }
}
@media (max-width: 640px) {
  .category-hero__stats { width: 100%; }
  .category-hero__stats > div { flex: 1; min-width: 0; padding: 12px 14px; }
  .category-hero__stats dd { font-size: 24px; }
  .category-pills--sticky { top: 74px; }
  .concept-grid { grid-template-columns: 1fr; }
  .feature-card__body { padding: 24px 22px 26px; }
  .feature-card__media { padding: 14px; }
  .feature-card__hint { left: 24px; bottom: 24px; }
  .category-block__head { align-items: flex-start; }
  .category-block--concepts { padding: 20px 16px; }
  .work-hero__quick { grid-template-columns: 1fr; max-width: none; }
  .work-hero__quick > div { border-top: 1px solid var(--rule); border-right: 0; }
  .work-hero__quick > div:first-child { border-top: 0; }
  .work-frame__bar { height: 30px; padding: 0 10px; }
  .work-frame__url { font-size: 9.5px; padding: 3px 10px; }
  .work-gallery__grid { grid-template-columns: 1fr; }
  .work-gallery__item.is-mobile { padding: 22px 14px; }
  .work-gallery__item.is-mobile .work-gallery__media { width: min(260px, 80%); }
  .work-testimonial { padding: 22px 20px; }
  .work-testimonial p { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .showcase-card,
  .concept-card,
  .showcase-card__media img,
  .showcase-card__media video,
  .concept-card__media img {
    transition: none !important;
  }
  .feature-card:hover,
  .showcase-card:hover,
  .concept-card:hover { transform: none; }
}


/* ===========================================================================
   Information pages — privacy, terms, contact and international
   Uses the existing paper-page palette and card language; no theme change.
   =========================================================================== */
.info-page { padding-block: 132px 96px; }
.info-hero { padding-block: 20px 48px; max-width: 820px; }
.info-title { font-family: var(--serif); font-size: clamp(40px, 6vw, 68px); line-height: 1.06; margin: 12px 0 16px; }
.info-lede { font-size: 17px; line-height: 1.65; max-width: 68ch; margin: 0 0 14px; }
.info-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.info-card { position: relative; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 20px; padding: 28px; }
.info-card h2, .info-card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin: 10px 0 12px; }
.info-card p { font-size: 14px; line-height: 1.65; margin: 0 0 10px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card__num { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--gold-ink); }
.info-card .button { margin-top: 12px; }
.info-section { margin-top: 64px; }
.info-section__head { max-width: 720px; margin-bottom: 24px; }
.info-section__head h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 10px 0; }
.info-section__head p { font-size: 15px; line-height: 1.65; margin: 0; }
.info-cta { margin-top: 64px; padding: 40px; border-radius: 24px; background: var(--ink); color: var(--paper); }
.info-cta h2 { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin: 0 0 10px; color: var(--paper); }
.info-cta p { color: var(--paper-2); max-width: 58ch; margin: 0 0 22px; }
.info-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.info-cta .button-gold { background: var(--gold-light); color: var(--ink); }
.info-cta .button-gold:hover { background: #d5ae70; }
.info-cta .button-outline { border-color: rgba(245,240,232,.45); color: var(--paper); }
.info-cta .button-outline:hover { border-color: var(--paper); }
.contact-card { margin-top: 4px; }
.contact-grid { margin-top: 20px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.footer-bottom__links a { color: var(--cream-dim); font-size: 11px; }
.footer-bottom__links a:hover { color: var(--gold-light); }

@media (max-width: 780px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-cta { padding: 28px; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 16px; }
}

/* ===========================================================================
   Chat widget — 13 Guide: dark seal launcher, paper-note conversation.
   =========================================================================== */
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  background: var(--ink);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.chat-launcher:hover {
  background: var(--ink-2, #292524);
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
.chat-launcher:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.chat-launcher__mark {
  width: 34px;
  height: 34px;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-launcher { animation: chat-seal-breathe 4.2s ease-in-out infinite; }
}
@keyframes chat-seal-breathe {
  0%, 100% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 0 0 rgba(201, 169, 110, 0.28); }
  50% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 0 10px rgba(201, 169, 110, 0); }
}

.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 56;
  width: min(390px, calc(100vw - 36px));
  max-height: min(76vh, 760px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}
.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--border);
}
.chat-panel__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-panel__mark {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  flex: 0 0 auto;
}
.chat-panel__eyebrow {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.chat-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.05;
  color: var(--paper);
}
.chat-panel__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 232, 0.28);
  background: transparent;
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.chat-panel__close:hover { background: rgba(245, 240, 232, 0.12); }
.chat-panel__messages {
  flex: 1 1 auto;
  overflow: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.chat-quick-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-2);
}
.chat-quick-start p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.chat-bubble {
  max-width: 90%;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
}
.chat-bubble p { margin: 0 0 8px; color: var(--ink-soft); }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble--assistant {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-ink);
}
.chat-bubble__avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gold-ink);
}
.chat-bubble__content { flex: 1 1 auto; min-width: 0; }
.chat-bubble--assistant > .chat-bubble__content > p { color: var(--ink); }
.chat-bubble__avatar.is-loading {
  animation: assistant-mark-breathe 1.6s ease-in-out infinite;
}
@keyframes assistant-mark-breathe {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-launcher,
  .chat-bubble__avatar.is-loading {
    animation: none !important;
  }
}
.chat-bubble--user {
  align-self: flex-end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--ink);
  color: var(--paper);
}
.chat-bubble--user p { color: var(--paper); margin: 0; }
.chat-bubble--error {
  align-self: stretch;
  padding: 12px 14px;
  border: 1px solid rgba(180, 89, 58, 0.45);
  border-radius: 12px;
  background: rgba(180, 89, 58, 0.08);
  color: var(--ink);
}
.chat-bubble--error p { color: var(--ink); }
.chat-bubble__sources,
.chat-bubble__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chat-source,
.chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.chat-action:hover,
.chat-source:hover {
  border-color: var(--gold-ink);
  color: var(--gold-ink);
}
.chat-action--secondary { background: transparent; }
.chat-panel__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.chat-panel__composer input {
  min-height: 40px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
}
.chat-panel__composer button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.chat-panel__composer button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chat-fit-guide {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-2);
}
.chat-fit-guide__progress {
  display: flex;
  gap: 6px;
}
.chat-fit-guide__progress span {
  height: 3px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: var(--rule);
}
.chat-fit-guide__progress span.is-done { background: var(--gold-ink); }
.chat-fit-guide__step {
  margin: 0;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chat-fit-guide__question {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
}
.chat-fit-guide__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-fit-option {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chat-fit-option:hover {
  border-color: var(--gold-ink);
  color: var(--gold-ink);
}
.chat-fit-option.is-selected {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.chat-fit-reset {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--gold-ink);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
}

.chat-match-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-2);
}
.chat-match-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-match-card__mark {
  width: 20px;
  height: 20px;
  color: var(--gold-ink);
}
.chat-match-card .eyebrow { margin: 0; }
.chat-match-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
  color: var(--ink);
}
.chat-match-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.chat-match-card__why {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}
.chat-match-card__why li { margin: 4px 0; }
.chat-match-card__links,
.chat-match-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-lead-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper-2);
}
.chat-lead-form__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}
.chat-lead-form input,
.chat-lead-form select,
.chat-lead-form textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.chat-lead-form__choice {
  display: flex;
  gap: 16px;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 13px;
}
.chat-lead-form__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
}
.chat-lead-form__check input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--gold);
}
.chat-lead-form__error {
  margin: 0;
  color: #8f3b2a;
  font-size: 12px;
}
.chat-lead-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 560px) {
  .chat-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 78px;
  }
  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }
  .chat-launcher__label { display: none; }
}

/* Final mobile override for .page.shell padding (must stay last in source). */
@media (max-width: 780px) {
  .page.shell { padding-inline: 16px; }
}