/* ============================================================
   Rainbow Group Contracting Company — Global Stylesheet
   Per DESIGN-SYSTEM.md §1.  Single source of truth.
   ============================================================ */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- 1. Tokens ---------- */
:root, [data-palette="archival"] {
  --ink:        #151412;
  --ink-2:      #2a2823;
  --paper:      #f3ede2;
  --paper-2:    #e8dfcf;
  --rule:       rgba(21,20,18,0.14);
  --muted:      #6c6558;
  --gold:       #a8843b;
  --gold-hi:    #c9a55a;
  --accent:     #a8843b;
  --r1: #b44a2b; --r2: #c46b2c; --r3: #a8843b;
  --r4: #4f7a88; --r5: #3a5d7d; --r6: #5a7a4a; --r7: #2e2a24;
}
[data-palette="navy"] {
  --ink:#0F1923; --ink-2:#182634; --paper:#f5f1e8; --paper-2:#e6dfcf;
  --rule:rgba(15,25,35,0.16); --muted:#6c7683;
  --gold:#C9A55A; --gold-hi:#e2c079; --accent:#C9A55A;
}
[data-palette="mono"] {
  --ink:#0a0a0a; --ink-2:#1d1d1d; --paper:#f6f4f0; --paper-2:#ece9e1;
  --rule:rgba(0,0,0,0.14); --muted:#6c6c6c;
  --gold:#2d2d2d; --gold-hi:#0a0a0a; --accent:#0a0a0a;
}

/* motif opacity */
[data-motif="off"] { --motif-opacity: 0; }
[data-motif="subtle"] { --motif-opacity: 0.35; }
[data-motif="expressive"] { --motif-opacity: 1; }

/* ---------- 2. Base ---------- */
html { font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 1.9 paper grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* 1.10 selection + scrollbar */
::selection { background: var(--gold); color: var(--paper); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }

/* ---------- 3. Typography ---------- */
.display {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.display.italic { font-style: italic; }
.display em { color: var(--gold); font-style: italic; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
}

.ar {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  direction: rtl;
  font-weight: 500;
  line-height: 1.3;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- 4. Layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 56px; }
@media (max-width: 900px) { .wrap { padding: 0 24px; } }

/* ---------- 5. Rainbow hairline ---------- */
.rainbow-hair {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--r1) 0 14.28%,
    var(--r2) 14.28% 28.56%,
    var(--r3) 28.56% 42.84%,
    var(--r4) 42.84% 57.12%,
    var(--r5) 57.12% 71.40%,
    var(--r6) 71.40% 85.68%,
    var(--r7) 85.68% 100%);
  opacity: var(--motif-opacity, 0.65);
}
[data-motif="off"] .rainbow-hair { display: none; }

/* ---------- 6. Reveal-on-scroll ---------- */
.reveal {
  opacity: 1;
  transform: translateY(24px);
  transition: transform 0.9s cubic-bezier(.2,.6,.2,1), opacity 0.6s ease;
}
.reveal.in { transform: translateY(0); }
[data-motion="still"] .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-radius: 0;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.filled { background: var(--ink); color: var(--paper); }
.btn.filled:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn .arrow { transition: transform 0.3s; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* Light-on-dark variant */
.btn.light { border-color: var(--paper); color: var(--paper); }
.btn.light:hover { background: var(--paper); color: var(--ink); }

/* ---------- 8. Prism caustic layer ---------- */
.prism-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s ease;
  overflow: hidden;
}
[data-signature="prism"] .prism-layer,
[data-signature="all"] .prism-layer { opacity: 0.75; }
[data-signature="off"] .prism-layer { display: none; }
.prism-arc {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(calc(var(--arc-angle, 0) * 1deg));
  filter: blur(60px);
  background: conic-gradient(from 0deg,
    rgba(180,74,43,0.18) 0deg,
    rgba(196,107,44,0.14) 36deg,
    rgba(201,165,90,0.20) 72deg,
    rgba(91,196,232,0.14) 144deg,
    rgba(43,108,176,0.14) 216deg,
    rgba(90,122,74,0.12) 288deg,
    rgba(180,74,43,0.18) 360deg);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ---------- 9. Custom cursor ---------- */
.rg-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  color: #f3ede2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px; height: 10px;
  border: 1px solid #f3ede2;
  border-radius: 50%;
  padding: 0;
  white-space: nowrap;
}
[data-cursor="custom"] .rg-cursor { opacity: 1; }
[data-cursor="custom"] .rg-cursor.expanded { width: 120px; height: 120px; border-radius: 50%; padding: 0 12px; }
[data-cursor="custom"] .rg-cursor.expanded.is-button { width: 60px; height: 60px; padding: 0; font-size: 0; }
[data-cursor="custom"] * { cursor: none !important; }
@media (max-width: 900px) { [data-cursor="custom"] .rg-cursor { display: none; } }

/* ---------- 10. Page transitions ---------- */
.rg-transition-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.48s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}
.rg-transition-overlay.out {
  opacity: 1;
  pointer-events: auto;
}
.rg-transition-overlay__band {
  height: 3px;
  width: 40%;
  background: linear-gradient(90deg,
    var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6), var(--r7));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(.2,.6,.2,1);
}
.rg-transition-overlay.out .rg-transition-overlay__band {
  transform: scaleX(1);
}
.rg-transition-overlay__caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
.rg-transition-overlay.out .rg-transition-overlay__caption {
  opacity: 1;
}

/* Body fade-up on load */
body { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
body.rg-entered { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; transform: none; transition: none; }
  .rg-transition-overlay, .rg-transition-overlay__band, .rg-transition-overlay__caption { transition: none !important; }
}
[data-motion="still"] .rg-transition-overlay, [data-motion="still"] .rg-transition-overlay__band, [data-motion="still"] .rg-transition-overlay__caption { transition: none !important; }

/* ---------- 11. Mashrabiya corner ---------- */
.mashrabiya-corner {
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  pointer-events: none;
  opacity: 0.18;
  z-index: 2;
}

/* ---------- 12. Mobile breakpoints ---------- */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav-root { height: 60px !important; }
  .nav-links { display: none !important; }
  .nav-right { display: none !important; }
  .nav-brand__name { font-size: 13px !important; }
  .nav-brand__meta { display: none !important; }
  .nav-hamburger { display: inline-flex !important; }
  /* Tighten section padding */
  section { padding-top: 72px !important; padding-bottom: 72px !important; }
  /* Hero mobile specifics */
  .hero-top-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .hero-bottom-grid { gap: 24px !important; margin-top: 48px !important; padding-top: 28px !important; }
  .hero-bottom-grid p { font-size: 14px !important; }
}
@media (max-width: 700px) {
  .display { font-size: clamp(32px, 9vw, 64px) !important; }
  section { padding-left: 0 !important; padding-right: 0 !important; padding-top: 64px !important; padding-bottom: 64px !important; }
  [data-mobile-stack] { grid-template-columns: 1fr !important; gap: 32px !important; }
  /* Work rows become stacked cards on very narrow */
  .work-row {
    display: block !important;
    padding: 22px 0 !important;
  }
  .work-row > span, .work-row > div { display: block !important; text-align: left !important; }
  .work-row > *:not(:first-child) { margin-top: 6px; }
  .work-row__cta { margin-top: 14px !important; padding-top: 10px !important; border-top: 1px solid var(--rule); color: var(--gold) !important; }
  /* Case-study hero: stack title / meta, compress meta */
  .case-hero-inner { grid-template-columns: 1fr !important; gap: 32px !important; }
  .case-hero-meta { grid-template-columns: 1fr 1fr !important; padding: 18px 20px !important; gap: 14px 32px !important; }
  /* Leadership portrait placeholders scale */
  .leadership-portrait { width: 96px !important; height: 130px !important; }
  .leadership-portrait-full { width: 120px !important; height: 160px !important; }
  /* TheRoom specs grid */
  .case-specs { grid-template-columns: 1fr !important; gap: 18px !important; }
  /* Contact stacked fields */
  .form-two-col { grid-template-columns: 1fr !important; }
  /* Numbers mobile */
  .numbers-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; }
  /* Footer bottom row stacks */
  .footer-legal { justify-content: flex-start !important; }
  .footer-legal span { font-size: 9px !important; }
  /* Giant outline smaller on mobile */
  .giant-outline { bottom: 60px !important; font-size: clamp(80px, 30vw, 200px) !important; }
  /* Shrink hero H1 a touch more to prevent overflow */
  .hero__title { font-size: clamp(40px, 11vw, 80px) !important; }
}

/* ---------- 12c. Compact mobile — tighter type, padding, rhythm ---------- */
@media (max-width: 700px) {
  /* Section verticals compact more */
  section { padding-top: 56px !important; padding-bottom: 56px !important; }
  /* Reduce all data-mobile-stack gaps */
  [data-mobile-stack] { gap: 24px !important; }
  /* Wraps even tighter */
  .wrap { padding: 0 18px !important; }
  /* Hero */
  .hero__title { font-size: clamp(36px, 11vw, 72px) !important; line-height: 0.96 !important; }
  .hero__ar { font-size: clamp(22px, 6vw, 36px) !important; }
  .hero__sub { font-size: 15px !important; margin-top: 24px !important; }
  .hero-bottom-grid p { font-size: 13px !important; line-height: 1.6 !important; }
  /* Stats smaller */
  .stat-strip__num { font-size: clamp(34px, 9vw, 56px) !important; }
  .stat-strip__label { font-size: 10px !important; }
  /* Numbers grid tighter */
  .numbers-grid { gap: 20px 16px !important; }
  /* Services items smaller */
  .service-row__num { font-size: 10px !important; }
  /* Work row compact — more vertical rhythm fix */
  .work-row { padding: 18px 0 !important; }
  .work-row .display { font-size: 22px !important; line-height: 1.12 !important; }
  .work-row .ar { font-size: 13px !important; }
  /* Hide the desktop hover hint on mobile only when JS-hidden — it now reads "Scroll ↓" */
  /* Filter chips tighter on Projects index */
  .chip { padding: 8px 12px !important; font-size: 11px !important; }
  /* Leadership cards */
  [data-mobile-stack] .leadership-portrait,
  .leadership-portrait { width: 80px !important; height: 108px !important; }
  .leadership-portrait-full { width: 96px !important; height: 130px !important; }
  /* Section heads scale */
  .display { letter-spacing: -0.015em !important; }
  /* Tighten nav overlay */
  .nav-mobile-menu a { font-size: 24px !important; padding: 14px 0 !important; }
  /* Contact giant "Rainbow" outline quieter */
  .giant-outline { bottom: 40px !important; font-size: clamp(60px, 26vw, 160px) !important; opacity: 0.05 !important; }
  /* FAQ */
  .faq-item { padding: 20px 0 !important; }
  .faq-item__q { font-size: 18px !important; }
  /* Partner ribbon smaller */
  .partner-ribbon__item { height: 34px !important; margin-right: 64px !important; }
  .partner-ribbon__item img { height: 22px !important; }
  /* Footer tighter */
  footer { padding-top: 56px !important; padding-bottom: 28px !important; }
  .footer-legal { font-size: 9px !important; gap: 8px !important; flex-wrap: wrap !important; }
  /* Testimonial quote tighter */
  blockquote.display, blockquote .display, .quote { font-size: clamp(20px, 5.5vw, 28px) !important; line-height: 1.3 !important; }
  /* Case study hero chrome */
  .case-hero-meta { padding: 14px 16px !important; }
  .case-hero-meta > div { font-size: 11px !important; }
  /* Turn off section-level horizontal pad override so content reaches edges */
  section { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- 12b. Hamburger + mobile overlay ---------- */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  flex: 0 0 auto;
}
.nav-hamburger:hover { background: currentColor; color: var(--paper); }
.nav-hamburger__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.nav-hamburger__bars span {
  display: block;
  width: 16px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bars span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bars span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] .nav-hamburger__bars span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--paper);
  padding: 40px 24px 56px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  border-bottom: 1px solid var(--rule);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 24px 40px rgba(21,20,18,0.10);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: 'Fraunces', serif;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.nav-mobile-menu a:hover { color: var(--gold); padding-left: 8px; }
.nav-mobile-menu a .ar {
  font-size: 16px;
  color: var(--muted);
}
.nav-mobile-menu__cta {
  margin-top: 24px;
  align-self: stretch;
  justify-content: space-between !important;
  padding: 22px 24px !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  font-family: 'Inter Tight', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-bottom: 0 !important;
}
body.mobile-menu-open { overflow: hidden; }

/* ---------- 13. Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 20px 22px;
  z-index: 200;
  display: none;
  font-size: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.tweaks-panel.visible { display: block; }
.tweaks-panel__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.tweaks-panel__title { font-family: 'Fraunces', serif; font-size: 20px; }
.tweaks-panel__row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tweaks-panel__label { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); min-width: 72px; }
.tweaks-panel__btns { display: flex; gap: 4px; flex-wrap: wrap; }
.tweaks-panel__btn { padding: 4px 8px; border: 1px solid var(--rule); font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--ink); cursor: pointer; }
.tweaks-panel__btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 14. Nav ---------- */
.nav-root {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-root--home-initial {
  background: linear-gradient(180deg, rgba(21,20,18,0.45) 0%, rgba(21,20,18,0.15) 60%, transparent 100%);
  color: #f3ede2;
}
.nav-root--home-initial a { color: #f3ede2; }
.nav-root--sub-initial,
.nav-root--home-initial.nav-root--scrolled,
.nav-root--sub-initial.nav-root--scrolled {
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: var(--ink);
}
.nav-root--scrolled { border-bottom: 1px solid var(--rule); }
.nav-root--sub-initial { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: color-mix(in oklab, var(--paper) 75%, transparent); color: var(--ink); }
.nav-root--sub-initial a { color: var(--ink); }
.nav-root--home-initial.nav-root--scrolled a { color: var(--ink); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.nav-brand__name { font-family: 'Fraunces', serif; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.nav-brand__meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 13px; }
.nav-links a { padding: 4px 0; display: inline-flex; align-items: baseline; gap: 6px; position: relative; transition: color 0.3s ease; }
.nav-links a .ar { font-size: 12px; opacity: 0.55; }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }

/* ---------- Partner ribbon (revolving) ---------- */
.partner-ribbon {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partner-ribbon__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partner-scroll 34s linear infinite;
  will-change: transform;
}
.partner-ribbon:hover .partner-ribbon__track { animation-play-state: paused; }
/* -50% maps to exactly the duplicate's start because each item carries its own
   trailing margin (no track-level gap that would break the loop math). */
@keyframes partner-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.partner-ribbon__item {
  flex: 0 0 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 96px;
}
.partner-ribbon__item img {
  height: 30px;
  width: auto;
  max-width: 180px;
  filter: grayscale(1) contrast(0.95);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.partner-ribbon__item:hover img { opacity: 0.95; }
[data-motion="still"] .partner-ribbon__track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .partner-ribbon__track { animation: none; }
}

/* ---------- Social icons ---------- */
.social-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.social-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.social-icon svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.social-icon:hover {
  color: var(--gold-hi);
  border-color: var(--gold-hi);
  opacity: 1;
}

/* FAQ section */
.faq-list { border-top: 1px solid var(--rule); margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  transition: padding-left 0.3s ease;
}
.faq-item:hover { padding-left: 8px; }
.faq-item__q {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.faq-item__toggle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--gold);
  transition: transform 0.4s cubic-bezier(.2,.6,.2,1);
  display: inline-block;
  line-height: 1;
}
.faq-item.open .faq-item__toggle { transform: rotate(45deg); }
.faq-item__a {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.2,.6,.2,1), opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  padding-top: 0;
}
.faq-item.open .faq-item__a {
  max-height: 400px;
  opacity: 1;
  padding-top: 20px;
}
.faq-item__a p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 68ch;
  margin: 0;
}

/* ---------- Hover-hint arrow ---------- */
.hover-hint-arrow {
  animation: hover-hint-drift 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
@keyframes hover-hint-drift {
  0%, 100% { transform: translate(0, 0);      opacity: 0.55; }
  50%      { transform: translate(5px, 5px);  opacity: 1;    }
}
[data-motion="still"] .hover-hint-arrow { animation: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hover-hint-arrow { animation: none; opacity: 1; transform: none; }
}

/* Mobile: arrow drifts down instead of diagonal */
@media (max-width: 700px) {
  .hover-hint-arrow {
    animation-name: hover-hint-drift-down;
  }
}
@keyframes hover-hint-drift-down {
  0%, 100% { transform: translate(0, 0);     opacity: 0.55; }
  50%      { transform: translate(0, 6px);   opacity: 1;    }
}

/* Work preview — mobile pop-in animation */
@keyframes work-preview-pop {
  from { opacity: 0; transform: translateY(-8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes work-preview-pop {
    from, to { opacity: 1; transform: none; }
  }
}

/* ---------- 15. Giant outline word ---------- */
.giant-outline {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* ---------- 16. Utility ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-baseline { align-items: baseline; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.wrap-flex { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }
.gap-64 { gap: 64px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.mt-72 { margin-top: 72px; }
.mt-96 { margin-top: 96px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
