/* shahzaibandaqsa.com design system v1
   One brand color, one typeface from the Adobe Fonts kit (hierarchy comes from weight and size),
   night and paper neutrals. Change the brand by editing the three --brand tokens below. */

:root {
  /* Brand: Attabad Turquoise (pending final pick) */
  --brand: #14c8b4;          /* buttons, highlights, accents on dark */
  --brand-ink: #04201d;      /* text placed on --brand */
  --brand-text: #00786c;     /* links and focus on light surfaces (AA on paper) */

  /* Neutrals, nudged slightly toward the brand hue */
  --night: #0b0d0e;
  --night-2: #131617;
  --night-3: #1c2021;
  --line-dark: #2a2f30;
  --paper: #f6f6f4;
  --paper-2: #ecedea;
  --line-light: #dcdedb;
  --white: #ffffff;
  --fg-dark: #f2f3f1;        /* text on night */
  --muted-dark: #a3a9a8;
  --fg-light: #0b0d0e;       /* text on paper */
  --muted-light: #4d5354;
  --danger: #d93b3b;
  --danger-bg: #fdecec;

  /* One family. The Worker reads the Adobe Fonts kit and overrides --font-brand and the
     weight tokens with the family name and the weights the kit actually contains. */
  --font-brand: "Figtree";
  --font-display: var(--font-brand), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: var(--font-brand), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-regular: 400;
  --w-medium: 500;
  --w-semi: 600;
  --w-bold: 700;
  --w-heavy: 800;
  --w-black: 900;

  /* Type scale (fluid) */
  --t-hero: clamp(3.1rem, 9.5vw, 9.5rem);
  --t-h1: clamp(2.6rem, 6.4vw, 6rem);
  --t-h2: clamp(2rem, 4.4vw, 4rem);
  --t-h3: clamp(1.4rem, 2.2vw, 2rem);
  --t-lead: clamp(1.1rem, 1.5vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--night);
  color: var(--fg-dark);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.on-light :focus-visible { outline-color: var(--brand-text); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: var(--r-pill); font-weight: var(--w-heavy); }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);

  font-weight: var(--w-heavy);
  line-height: .94;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h3 { line-height: 1.02; }
.t-hero { font-size: var(--t-hero); font-weight: var(--w-black); }
.t-h1 { font-size: var(--t-h1); }
.t-h2 { font-size: var(--t-h2); }
.t-h3 { font-size: var(--t-h3); }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--muted-dark); max-width: 58ch; margin: 0; }
.on-light .lead { color: var(--muted-light); }
.eyebrow {
  font-family: var(--font-text);
  font-size: var(--t-label);
  font-weight: var(--w-heavy);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.on-light .eyebrow { color: var(--muted-light); }
.on-light .eyebrow::before { background: var(--brand-text); }
.hl { color: var(--brand); }
.on-light .hl { color: var(--brand-text); }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--brand); --b-fg: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--font-text); font-weight: var(--w-heavy); font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.0625rem; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--fg-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg-dark); }
.on-light .btn-ghost { --b-fg: var(--fg-light); box-shadow: inset 0 0 0 1.5px var(--line-light); }
.on-light .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg-light); }
.btn-dark { --b-bg: var(--night); --b-fg: var(--fg-dark); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: var(--w-heavy); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  color: var(--fg-dark);
}
.nav.scrolled { background: rgba(11, 13, 14, .78); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--line-dark); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-display); font-weight: var(--w-black); font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.logo b { color: var(--brand); font-weight: var(--w-black); margin: 0 1px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  text-decoration: none; font-weight: var(--w-bold); font-size: .95rem; color: var(--muted-dark);
  background: none; border: 0; cursor: pointer; transition: color .2s, background-color .2s;
}
.nav-links a:hover, .nav-links button.nav-trigger:hover, .nav-links a[aria-current="page"], .nav-links button[aria-expanded="true"] { color: var(--fg-dark); background: var(--night-3); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(720px, 90vw);
  background: var(--night-2); border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega a { height: auto; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-md); color: var(--fg-dark); align-items: start; }
.mega a:hover { background: var(--night-3); }
.mega strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: var(--w-heavy); }
.mega span { color: var(--muted-dark); font-size: .9rem; font-weight: var(--w-medium); line-height: 1.4; }
.mega .soon { justify-self: start; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: var(--w-heavy); color: var(--brand); }

.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--night-3); cursor: pointer; place-items: center; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--fg-dark); position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--fg-dark); transition: transform .3s var(--ease); }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 40; background: var(--night);
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
}
.menu-open .drawer { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer a.big { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; text-decoration: none; font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1; border-bottom: 1px solid var(--line-dark); }
.drawer a.big small { font-family: var(--font-text); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); font-weight: var(--w-heavy); }
.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .nav-cta { margin-left: auto; }
  .nav-cta + .menu-btn { margin-left: 0; }
}
@media (max-width: 420px) { .nav-cta { display: none; } .menu-btn { margin-left: auto !important; } }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding-block: clamp(72px, 11vw, 150px); }
.sec-tight { padding-block: clamp(48px, 7vw, 96px); }
.on-light { background: var(--paper); color: var(--fg-light); }
.on-brand { background: var(--brand); color: var(--brand-ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head > div:not(.filters) { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(40px, 8vw, 110px)); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 44px); }
.hero h1 { max-width: 12ch; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .22em; color: var(--brand); overflow: visible; }
.hero h1 .hl svg path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } }

.stats { display: flex; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line-dark); }
.stats div { display: grid; gap: 2px; }
.stats dt { order: 2; font-size: var(--t-small); color: var(--muted-dark); font-weight: var(--w-semi); }
.stats dd { order: 1; margin: 0; font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }

/* Thumbnail reel: real YouTube thumbnails once loaded, brand-tinted tiles before */
.reel { margin-top: clamp(40px, 6vw, 80px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reel-track { display: flex; gap: 14px; width: max-content; animation: reel 60s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel-item { position: relative; width: clamp(240px, 26vw, 360px); aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--night-3); flex: none; text-decoration: none; }
.reel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.reel-item:hover img { transform: scale(1.05); }
.reel-item .cap { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-weight: var(--w-bold); font-size: .9rem; line-height: 1.3; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-item.ph { display: grid; place-items: end start; padding: 16px; background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--brand) 40%, var(--night-3)), var(--night-3) 60%); }
.reel-item.ph span { font-family: var(--font-display); font-weight: var(--w-black); font-size: 1.4rem; line-height: 1; color: var(--fg-dark); }
.reel-item.ph span small { display: block; font-family: var(--font-text); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--brand); color: var(--brand-ink); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; animation: reel 40s linear infinite; }
.ticker span { font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(1.3rem, 2.6vw, 2.2rem); white-space: nowrap; padding-right: 1.2em; display: inline-flex; align-items: center; gap: 1.2em; line-height: 1; }
.ticker span::after { content: "✦"; font-size: .55em; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.pillar {
  grid-column: span 6; position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--white); color: var(--fg-light); text-decoration: none;
  transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-4px); }
.pillar:nth-child(1) { grid-column: span 7; background: var(--night); color: var(--fg-dark); }
.pillar:nth-child(2) { grid-column: span 5; }
.pillar:nth-child(3) { grid-column: span 5; background: var(--brand); color: var(--brand-ink); }
.pillar:nth-child(4) { grid-column: span 7; background: var(--paper-2); }
.pillar .top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.pillar .tag { font-size: var(--t-label); font-weight: var(--w-heavy); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pillar .arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; flex: none; transition: transform .4s var(--ease), background-color .3s; font-size: 1.3rem; }
.pillar:hover .arrow { transform: rotate(-45deg); }
.pillar h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .95; }
.pillar p { margin: 14px 0 0; max-width: 46ch; opacity: .82; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillar li { font-size: .85rem; font-weight: var(--w-bold); padding: 7px 12px; border-radius: var(--r-pill); border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent); }
.pillar .glyph { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; opacity: .1; pointer-events: none; }
@media (max-width: 860px) { .pillar, .pillar:nth-child(n) { grid-column: 1 / -1; min-height: 300px; } }

/* ---------- Videos ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .filters { justify-content: flex-start; } }
.chip { min-height: 42px; padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-dark); background: transparent; font-weight: var(--w-bold); cursor: pointer; color: var(--muted-dark); transition: all .2s; }
.chip:hover { color: var(--fg-dark); border-color: var(--fg-dark); }
.chip[aria-pressed="true"] { background: var(--fg-dark); color: var(--night); border-color: var(--fg-dark); }
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.videos .vid:first-child { grid-column: span 2; grid-row: span 2; }
.vid { display: grid; gap: 12px; align-content: start; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.vid .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--night-3); }
.vid .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.vid:hover .thumb img { transform: scale(1.04); }
.vid .play { position: absolute; left: 14px; bottom: 14px; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; transition: transform .3s var(--ease); }
.vid:hover .play { transform: scale(1.1); }
.vid .play svg { width: 18px; height: 18px; margin-left: 3px; }
.vid h3 { font-family: var(--font-text); font-size: 1.1rem; font-weight: var(--w-bold); line-height: 1.3; letter-spacing: 0; }
.vid:first-child h3 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: var(--w-black); line-height: 1.05; }
.vid .meta { font-size: var(--t-small); color: var(--muted-dark); font-weight: var(--w-semi); display: flex; gap: 10px; flex-wrap: wrap; }
.vid .meta b { color: var(--brand); font-weight: var(--w-heavy); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.videos-empty { border: 1.5px dashed var(--line-dark); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr 1fr; } .videos .vid:first-child { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 520px) { .videos { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.86); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(1100px, 100%); display: grid; gap: 14px; transform: scale(.96); transition: transform .4s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-frame { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: #000; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.modal-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--night-3); color: var(--fg-dark); font-size: 1.4rem; cursor: pointer; flex: none; }

/* ---------- Principles ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-quote { font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.principles { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.principles li:last-child { border-bottom: 1px solid var(--line-light); }
.principles .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--fg-light); color: var(--brand); display: grid; place-items: center; }
.principles .ico svg { width: 24px; height: 24px; }
.principles h3 { font-family: var(--font-text); font-size: 1.2rem; font-weight: var(--w-heavy); letter-spacing: 0; margin-bottom: 4px; }
.principles p { margin: 0; color: var(--muted-light); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Roadmap ---------- */
.modules { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.module { border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 22px; display: grid; gap: 10px; align-content: start; min-height: 220px; background: var(--night-2); }
.module .state { justify-self: start; font-size: .7rem; font-weight: var(--w-heavy); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); background: var(--night-3); color: var(--muted-dark); }
.module .state.next { background: var(--brand); color: var(--brand-ink); }
.module h3 { font-size: 1.6rem; }
.module p { margin: 0; color: var(--muted-dark); font-size: .95rem; }
@media (max-width: 1100px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .modules { grid-template-columns: 1fr; } }

/* ---------- Socials ---------- */
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px; border-radius: var(--r-md); background: var(--white); color: var(--fg-light); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.social:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11,13,14,.1); }
.social .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); }
.social .ico svg { width: 26px; height: 26px; }
.social strong { display: block; font-size: 1.1rem; font-weight: var(--w-heavy); }
.social span { font-size: var(--t-small); color: var(--muted-light); font-weight: var(--w-semi); }
.social .go { font-weight: var(--w-heavy); font-size: .9rem; padding: 10px 16px; border-radius: var(--r-pill); background: var(--fg-light); color: var(--paper); white-space: nowrap; }
.social.feature { grid-column: span 3; background: var(--fg-light); color: var(--fg-dark); padding: clamp(24px, 3vw, 36px); }
.social.feature .ico { background: var(--brand); color: var(--brand-ink); width: 72px; height: 72px; border-radius: 20px; }
.social.feature .ico svg { width: 36px; height: 36px; }
.social.feature strong { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: var(--w-black); line-height: 1; }
.social.feature span { color: var(--muted-dark); font-size: 1rem; }
.social.feature .go { background: var(--brand); color: var(--brand-ink); font-size: 1rem; padding: 14px 22px; }
@media (max-width: 900px) { .socials { grid-template-columns: 1fr 1fr; } .social.feature { grid-column: 1 / -1; } }
@media (max-width: 560px) { .socials { grid-template-columns: 1fr; } .social.feature { grid-template-columns: auto 1fr; } .social.feature .go { grid-column: 1 / -1; text-align: center; } }

/* ---------- CTA ---------- */
.cta { display: grid; gap: 28px; }
.cta h2 { font-size: clamp(2.8rem, 8vw, 8rem); font-weight: var(--w-black); max-width: 13ch; }
.cta-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cta-card { display: grid; gap: 8px; align-content: space-between; min-height: 160px; padding: 20px; border-radius: var(--r-md); background: color-mix(in srgb, var(--brand-ink) 8%, transparent); text-decoration: none; transition: background-color .3s, transform .3s var(--ease); }
.cta-card:hover { background: var(--brand-ink); color: var(--brand); transform: translateY(-3px); }
.cta-card strong { font-family: var(--font-display); font-weight: var(--w-black); font-size: 1.35rem; line-height: 1; }
.cta-card span { font-size: .9rem; font-weight: var(--w-semi); opacity: .8; }
@media (max-width: 1000px) { .cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .cta-grid { grid-template-columns: 1fr; } .cta-card { min-height: 0; } }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(56px, 8vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { margin: 0 0 14px; font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--fg-dark); font-weight: var(--w-semi); }
.footer a:hover { color: var(--brand); }
.footer p { color: var(--muted-dark); margin: 14px 0 0; max-width: 40ch; }
.footer .icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.footer .icons a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night-3); }
.footer .icons svg { width: 20px; height: 20px; }
.wordmark { margin-top: clamp(48px, 8vw, 96px); font-family: var(--font-display); font-weight: var(--w-black); font-size: clamp(2.2rem, 9.2vw, 9.6rem); line-height: .85; letter-spacing: -.03em; white-space: nowrap; color: var(--night-3); user-select: none; overflow: hidden; }
.wordmark b { color: var(--brand); font-weight: var(--w-black); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; color: var(--muted-dark); font-size: var(--t-small); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero h1 .hl svg path { stroke-dashoffset: 0; }
}

.nav.solid { background: var(--night); border-color: var(--line-dark); }
.handle { display: block; font-size: min(1em, 7vw); }
