/* ==========================================================================
   Amin Marvi — main stylesheet
   Layout concept: the site reads like one of Amin's carousel posts —
   cream paper lit by a window, navy headline, one teal phrase, a thumbprint in the corner —
   then unrolls into a year-by-year path (inspired by amireyzed.com's timeline).
   ========================================================================== */

/* TRY Vesterbro Bold (Black[Foundry]) covers Latin, Persian letters and Persian digits.
   Only the Bold cut exists, so it is declared for every weight (no faux bold or faux light). */
/* All fonts are self-hosted so the site loads fully inside Iran. */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 900; font-display: swap; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); }
@font-face { font-family: "Vesterbro"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/TRYVesterbro-Bold.woff2") format("woff2"), local("TRY Vesterbro Bold"), local("TRYVesterbro-Bold"); }

:root {
  color-scheme: light;
  /* Brand color book: 70 cream / 20 navy / 10 teal */
  --cream: #F4F0E8;
  --paper: #FAF7F1;
  --navy: #102833;
  --navy-2: #16394A;
  --teal: #67B8C8;
  --teal-ink: #2F8A9C;   /* teal dark enough for small text on cream */
  --mist: #D8E9EB;
  --slate: #3E4A50;
  --sand: #D8C8B2;
  --line: #E4DCCD;
  --shadow: 0 1px 2px rgba(16,40,51,.05), 0 12px 32px -12px rgba(16,40,51,.18);

  --latin: "Vesterbro", Georgia, serif;
  --fa: "Vazirmatn", "Vazir", Tahoma, sans-serif;          /* long reading text */
  --display: "Vesterbro", "Vazirmatn", Tahoma, sans-serif;  /* headings, labels, buttons, numbers */

  --ease: cubic-bezier(.2,.7,.1,1);
  --ease-io: cubic-bezier(.7,0,.2,1);
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1240px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font-family: var(--fa); font-size: 17px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; line-height: 1.35; font-family: var(--display); font-weight: 700; }
/* Vesterbro carries all display text, Persian included */
.btn, .eyebrow, .chip, .rail a, .wordmark, .hero-card .bio, .hero-card .who b, .manifesto p.big, .manifesto .sign,
.marquee-group span, .year-mark, .year-mark .fa, .brand b, .brand .yr, .hl-btn, .moment-tag, .why b, .t-card .cat,
.hero-stats span, .num span, .note p, .step .n, .field label, .choice label, .contact .links a, .footer .row,
.story-top b, .story-slide .s-logos span, .story-slide li, .scroll-cue, .toast, .preloader .tag, .brands-count, .span-years { font-family: var(--display); }
p { margin: 0; }
::selection { background: var(--teal); color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.latin { font-family: var(--latin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Eyebrows & headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--slate); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); border-radius: 2px; }
.on-navy .eyebrow { color: var(--mist); }
.h-xl { font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1.2; letter-spacing: -.01em; }
.h-lg { font-weight: 900; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.3; }
.accent { color: var(--teal); }
.lede { color: var(--slate); max-width: 60ch; font-size: clamp(16px, 1.4vw, 18px); }
.on-navy .lede { color: var(--mist); }

/* word-split helper (Persian is split by words only, never letters: letters must stay joined) */
.w { display: inline-block; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > .w { will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--cream);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 15.5px; line-height: 1.2;
  overflow: hidden; isolation: isolate; transition: color .4s var(--ease);
}
.btn::before { /* teal fill rises from the bottom on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal);
  transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--navy); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(-4px); }
.btn-ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-light { --bg: var(--cream); --fg: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.magnetic { will-change: transform; }

/* ---------- Window light (the shadow pattern from Amin's posts) ---------- */
.window-light { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.window-light::before, .window-light::after {
  content: ""; position: absolute; inset: -30% -20%;
  background:
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(120,96,64,.07) 46px 92px, transparent 92px 150px);
  filter: blur(14px); transform-origin: 70% 20%;
  animation: sway 14s var(--ease-io) infinite alternate;
}
.window-light::after {
  background: radial-gradient(60% 50% at 78% 10%, rgba(255,250,240,.9), transparent 70%);
  filter: none; animation: none;
}
@keyframes sway { from { transform: rotate(-2deg) translateX(-1%); } to { transform: rotate(2deg) translateX(2%); } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--cream);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
}
.preloader canvas { position: absolute; width: min(420px, 80vw); height: min(420px, 80vw); }
.preloader .count { position: relative; font-family: var(--latin); font-weight: 900; font-size: clamp(56px, 10vw, 120px); line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; }
.preloader .tag { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--mist); }
.no-js .preloader, .reduced .preloader { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; mix-blend-mode: normal; display: none; }
.cursor .dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--navy); }
.cursor .ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1.5px solid rgba(16,40,51,.35); display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  font-size: 12px; font-weight: 700; color: var(--navy);
}
.cursor .ring span { opacity: 0; transition: opacity .2s; }
.cursor.is-link .ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--teal); border-color: var(--teal); }
.cursor.is-link .ring span { opacity: 1; }
.cursor.on-dark .dot { background: var(--cream); }
.cursor.on-dark .ring { border-color: rgba(244,240,232,.45); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

/* ---------- Header + year rail ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); }
.header.hide { transform: translateY(-100%); }
.header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.wordmark { font-family: var(--latin); font-weight: 900; font-size: 18px; letter-spacing: .06em; text-decoration: none; direction: ltr; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--teal); }
.rail { flex: 1; min-width: 0; display: flex; justify-content: center; }
.rail ol { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: rgba(16,40,51,.05); overflow-x: auto; scrollbar-width: none; }
.rail ol::-webkit-scrollbar { display: none; }
.rail a {
  display: block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--slate);
  white-space: nowrap; transition: background .35s var(--ease), color .35s;
}
.rail a:hover { color: var(--navy); }
.rail a.active { background: var(--navy); color: var(--cream); }
@media (max-width: 760px) {
  .header .wrap { gap: 12px; }
  .header .btn { display: none; }
  .rail { justify-content: flex-end; }
  .rail a { padding: 6px 10px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 110px); }
.hero canvas.fp { position: absolute; z-index: 0; top: -6%; left: -14%; width: min(820px, 110vw); height: 112%; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-name {
  grid-column: 1 / -1; font-family: var(--latin); font-weight: 900; direction: ltr; text-align: left;
  font-size: clamp(72px, 16.5vw, 236px); line-height: .84; letter-spacing: -.025em; margin-bottom: clamp(8px, 2vw, 20px);
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-name .line > span { display: inline-block; }
.hero-name .dot-i { color: var(--teal); }
.hero-copy { display: grid; gap: 20px; align-content: start; }
.hero-copy h1 { font-weight: 900; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.35; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-card {
  justify-self: start; width: min(100%, 420px); background: rgba(250,247,241,.82); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow);
}
.hero-card .who { display: flex; align-items: center; gap: 14px; }
.hero-card .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--teal); }
.hero-card .who b { display: block; font-size: 16px; }
.hero-card .who span { font-size: 13px; color: var(--slate); }
.hero-card .bio { font-weight: 700; font-size: 16px; line-height: 1.8; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px dashed var(--line); padding-top: 16px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats b { font-family: var(--latin); font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); line-height: 1; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12.5px; color: var(--slate); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--slate); text-decoration: none; margin-top: 8px; }
.scroll-cue i { width: 22px; height: 34px; border: 1.5px solid var(--slate); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(10px); opacity: 0 } 100% { opacity: 0 } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero canvas.fp { left: -40%; opacity: .7; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--navy); color: var(--cream); overflow: hidden; padding-block: 22px; position: relative; }
.marquee-track { display: flex; width: max-content; gap: 0; direction: ltr; }
.marquee-group { display: flex; align-items: center; flex: none; direction: rtl; }
.marquee-group span { font-weight: 900; font-size: clamp(22px, 3.2vw, 40px); white-space: nowrap; padding-inline: 28px; }
.marquee-group span.l { font-family: var(--latin); font-weight: 700; color: var(--teal); direction: ltr; }
.marquee-group svg { width: 30px; height: 30px; flex: none; color: var(--teal); }

/* ---------- Manifesto (ink-in) ---------- */
.manifesto { position: relative; padding-block: clamp(80px, 12vw, 170px); overflow: hidden; }
.manifesto .wrap { position: relative; display: grid; gap: 26px; }
.manifesto p.big { font-weight: 900; font-size: clamp(28px, 4.4vw, 58px); line-height: 1.5; max-width: 22ch; }
.manifesto p.big .w { color: var(--navy); }
.js-motion .manifesto p.big .w { color: var(--sand); transition: color .25s linear; }
.js-motion .manifesto p.big .w.inked { color: var(--navy); }
.js-motion .manifesto p.big .w.inked.accent { color: var(--teal); }
.manifesto .sign { font-size: 15px; color: var(--slate); }
.manifesto .sign b { color: var(--navy); }
.manifesto .corner-fp { position: absolute; width: 260px; height: 260px; left: -60px; bottom: -80px; opacity: .9; }

/* ---------- Timeline ---------- */
.journey { position: relative; padding-block: clamp(60px, 9vw, 120px) clamp(40px, 6vw, 80px); }
.journey-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 6vw, 80px); }
.timeline { position: relative; }
.t-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.t-line .fill { position: absolute; inset: 0 0 auto; height: 100%; background: linear-gradient(var(--teal), var(--navy)); transform-origin: top; transform: scaleY(1); border-radius: 2px; box-shadow: 0 0 18px rgba(103,184,200,.6); }
.js-motion .t-line .fill { transform: scaleY(0); }
.t-year { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(48px, 7vw, 110px); padding-block: 24px; }
.t-year + .t-year { margin-top: clamp(40px, 7vw, 100px); }
.year-mark {
  grid-column: 1 / -1; text-align: center; font-family: var(--latin); font-weight: 900; line-height: 1; position: relative; z-index: 1;
  font-size: clamp(64px, 11vw, 150px); color: var(--navy); margin-bottom: clamp(16px, 3vw, 40px);
  font-variant-numeric: tabular-nums;
}
.year-mark .fa { font-weight: 700; }
.year-mark span { background: var(--cream); padding-inline: 16px; }
.js-motion .year-mark { color: transparent; -webkit-text-stroke: 1.5px var(--sand); transition: color .6s var(--ease), -webkit-text-stroke-color .6s; }
.js-motion .year-mark.lit { color: var(--navy); -webkit-text-stroke-color: transparent; }
.t-item { position: relative; display: grid; gap: 12px; padding-block: 18px; min-width: 0; align-self: start; align-content: start; }
.t-item:nth-of-type(odd) { grid-column: 1; justify-items: end; }
.t-item:nth-of-type(even) { grid-column: 2; margin-top: clamp(40px, 8vw, 120px); }
.t-item::before { /* the dot on the line */
  content: ""; position: absolute; top: 46px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--sand); transition: border-color .4s, background .4s, box-shadow .4s;
}
.t-item:nth-of-type(odd)::before { inset-inline-end: calc(-1 * clamp(48px, 7vw, 110px) / 2 - 7px); }
.t-item:nth-of-type(even)::before { inset-inline-start: calc(-1 * clamp(48px, 7vw, 110px) / 2 - 7px); }
.t-item.reached::before { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 0 6px rgba(103,184,200,.22); }
.t-card {
  width: 100%; max-width: 480px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; display: grid; gap: 14px; align-content: start; text-align: right; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.t-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16,40,51,.05), 0 24px 48px -18px rgba(16,40,51,.28); }
.t-card .top { display: flex; align-items: center; gap: 14px; }
.t-card h3 { font-size: 21px; font-weight: 900; }
.t-card .cat { font-size: 13.5px; color: var(--slate); }
.t-card p { color: var(--slate); font-size: 15.5px; line-height: 1.9; }
.t-card .chips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.chip { font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); font-weight: 500; }
.chip.dark { background: var(--navy); color: var(--cream); }
.t-card.moment { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.t-card.moment p, .t-card.moment .cat { color: var(--mist); }
.moment-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal); }
.moment-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(103,184,200,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(103,184,200,0); } }
.why { border-inline-start: 3px solid var(--teal); padding-inline-start: 12px; font-size: 14.5px; }
.why b { color: var(--teal); }
.t-card .span-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 4px; }
.t-card .span-bar i { height: 6px; border-radius: 3px; background: var(--teal); transform-origin: right; }
.t-card .span-bar + .span-years { display: flex; justify-content: space-between; font-size: 12px; color: var(--mist); }

/* priority list: compact cards, rank number at the end */
.t-list { padding-block: 0; }
.t-list .t-item { padding-block: 10px; }
.t-list .t-item:nth-of-type(even) { margin-top: clamp(40px, 6vw, 90px); margin-bottom: calc(-1 * clamp(40px, 6vw, 90px)); }
.t-list .t-item::before { top: 38px; }
.t-card .top { position: relative; }
.t-card .rank { margin-inline-start: auto; align-self: start; font-size: 22px; line-height: 1; color: var(--sand); font-weight: 700; }
.t-card.moment .rank { color: var(--teal); }
.journey-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.journey-title .brands-count { font-size: clamp(72px, 10vw, 140px); }

/* logo mark used in cards and the wall */
.logo-mark {
  --size: 56px; width: var(--size); height: var(--size); flex: none; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line); position: relative;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark .mono { font-weight: 900; font-size: calc(var(--size) * .42); line-height: 1; color: var(--navy); position: relative; z-index: 1; }
.logo-mark::after { /* tiny thumbprint arcs behind monograms */
  content: ""; position: absolute; width: 120%; height: 120%; right: -55%; bottom: -55%; border-radius: 50%;
  border: 1px solid var(--sand); box-shadow: inset 0 0 0 6px var(--cream), inset 0 0 0 7px var(--sand), inset 0 0 0 13px var(--cream), inset 0 0 0 14px var(--sand);
  opacity: .9;
}
.logo-mark.has-img::after { display: none; }
.t-card.moment .logo-mark { border-color: transparent; }

@media (max-width: 820px) {
  .t-line { left: auto; right: 7px; margin-left: 0; }
  .t-year { grid-template-columns: 1fr; padding-right: 34px; }
  .year-mark { text-align: right; }
  .year-mark span { padding-inline: 0 12px; }
  .t-item:nth-of-type(odd), .t-item:nth-of-type(even), .t-list .t-item:nth-of-type(even) { grid-column: 1; margin-top: 0; margin-bottom: 0; justify-items: stretch; }
  .t-item:nth-of-type(odd)::before, .t-item:nth-of-type(even)::before { inset-inline-start: auto; inset-inline-end: auto; left: auto; right: -33px; }
  .t-card { max-width: none; }
}

/* ---------- Brand wall ---------- */
.brands { padding-block: clamp(60px, 9vw, 120px); position: relative; }
.brands-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.brands-count { font-family: var(--latin); font-weight: 900; font-size: clamp(80px, 12vw, 160px); line-height: .85; color: var(--teal); direction: ltr; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
@media (max-width: 560px) { .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .brand { padding: 14px; } .brand .logo-mark { --size: 52px; } .brand b { font-size: 15px; } }
.brand {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  display: grid; gap: 12px; align-content: start; min-width: 0; overflow: hidden;
  transition: background .45s var(--ease), color .45s, border-color .45s, transform .45s var(--ease);
}
.brand .logo-mark { --size: 64px; transition: transform .6s var(--ease); }
.brand b { font-size: 17px; font-weight: 900; line-height: 1.5; }
.brand span { font-size: 13px; color: var(--slate); line-height: 1.6; transition: color .45s; }
.brand .yr { position: absolute; top: 16px; left: 16px; font-size: 12px; font-weight: 700; color: var(--teal-ink); }
.brand:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: translateY(-4px); }
.brand:hover span { color: var(--mist); }
.brand:hover .yr { color: var(--teal); }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }
.brand.star { grid-column: span 2; background: var(--navy); color: var(--cream); border-color: var(--navy); }
.brand.star span { color: var(--mist); }
.brand.star .yr { color: var(--teal); }


/* ---------- Personal brands (same template as Amin's profile card) ---------- */
.personal { position: relative; padding-block: clamp(60px, 9vw, 120px); overflow: hidden; border-top: 1px solid var(--line); }
.personal .wrap { position: relative; z-index: 1; }
.personal .lede { margin-top: 4px; }
.pb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; max-width: 900px; margin-inline: auto; }
.pb-card { width: 100%; max-width: 420px; justify-self: center; text-decoration: none; color: inherit; }
.personal .brands-count { color: var(--navy); }
@media (max-width: 620px) { .pb-grid { grid-template-columns: 1fr; } }

/* ---------- Highlights / stories ---------- */
.highlights { padding-block: clamp(60px, 9vw, 120px); background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.highlights .wrap { position: relative; z-index: 1; }
.hl-head { display: grid; gap: 14px; margin-bottom: 40px; }
.hl-list { display: flex; gap: clamp(16px, 3vw, 34px); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.hl-btn { background: none; border: 0; padding: 0; cursor: pointer; display: grid; justify-items: center; gap: 10px; width: 96px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--cream); }
.hl-ring { position: relative; width: 92px; height: 92px; border-radius: 50%; padding: 3px; display: block;
  background: conic-gradient(from 180deg, var(--teal), var(--mist), var(--sand), var(--teal)); transition: transform .5s var(--ease); }
.hl-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--navy); object-fit: cover; }
.hl-btn:hover .hl-ring { transform: scale(1.07) rotate(-4deg); }
.hl-btn.seen .hl-ring { background: rgba(244,240,232,.25); }
.hl-hint { margin-top: 26px; font-size: 13.5px; color: var(--mist); }

.story {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(8,22,28,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.story[hidden] { display: none !important; }
.story-frame {
  position: relative; width: min(420px, 100%); aspect-ratio: 9 / 16; max-height: 100%; border-radius: 22px; overflow: hidden;
  background: var(--cream); color: var(--navy); box-shadow: 0 30px 80px rgba(0,0,0,.45); display: flex; flex-direction: column;
}
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; direction: ltr; }
.story-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(16,40,51,.18); overflow: hidden; }
.story-bars i b { display: block; height: 100%; width: 0; background: var(--navy); }
.story-top { position: absolute; top: 24px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.story-top img { width: 32px; height: 32px; border-radius: 50%; }
.story-top b { font-size: 14px; }
.story-top .close { margin-inline-start: auto; background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.story-top .close:hover { background: rgba(16,40,51,.08); }
.story-slide { position: relative; flex: 1; display: grid; align-content: center; gap: 16px; padding: 86px 26px 40px; overflow: hidden; }
.story-slide .window-light { z-index: 0; }
.story-slide > *:not(.window-light) { position: relative; z-index: 1; }
.story-slide h4 { font-size: clamp(24px, 6.4vw, 30px); font-weight: 900; line-height: 1.45; }
.story-slide p { color: var(--slate); font-size: 16px; }
.story-slide .big-num { font-family: var(--latin); font-weight: 900; font-size: clamp(72px, 22vw, 108px); line-height: .9; direction: ltr; text-align: right; color: var(--navy); }
.story-slide ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.story-slide li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; font-weight: 500; }
.story-slide li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--teal); transform: translateY(-2px); }
.story-slide .s-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.story-slide .s-logos span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.story-slide .s-sign { font-size: 12px; letter-spacing: .14em; font-family: var(--latin); color: var(--slate); direction: ltr; text-align: left; }
.story-slide .btn { justify-self: start; }
.story-nav { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 2; }
.story-nav button { background: none; border: 0; cursor: pointer; }
.story-slide a, .story-slide .btn { position: relative; z-index: 4; }
.story-arrows { direction: ltr; position: absolute; top: 50%; left: -64px; right: -64px; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.story-arrows button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(244,240,232,.14); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.story-arrows button:hover { background: var(--teal); color: var(--navy); }
@media (max-width: 560px) { .story-arrows { display: none; } }

/* ---------- Method (horizontal pinned) ---------- */
.method { position: relative; padding-block: clamp(60px, 9vw, 120px); overflow: hidden; }
.method-head { display: grid; gap: 14px; margin-bottom: 40px; }
.method-track { display: flex; gap: 16px; width: max-content; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.step {
  width: min(380px, 78vw); flex: none; background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  padding: 28px; display: grid; gap: 14px; align-content: start; min-height: 320px; position: relative; overflow: hidden;
}
.step .n { font-family: var(--latin); font-weight: 900; font-size: 88px; line-height: .8; color: var(--mist); direction: ltr; text-align: left; }
.step h3 { font-size: 23px; font-weight: 900; }
.step p { color: var(--slate); font-size: 15.5px; }
.step.dark { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.step.dark p { color: var(--mist); }
.step.dark .n { color: var(--teal); }
.method-scroller { overflow-x: auto; scrollbar-width: none; }
.method-scroller::-webkit-scrollbar { display: none; }
.js-pin .method-scroller { overflow: visible; }

/* ---------- Notes (posts) ---------- */
.notes { padding-block: clamp(60px, 9vw, 120px); }
.notes-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.notes-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.notes-rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.note { flex: none; width: min(300px, 72vw); scroll-snap-align: start; text-decoration: none; display: grid; gap: 12px; }
.note .img { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); border: 1px solid var(--line); }
.note img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); user-select: none; -webkit-user-drag: none; }
.note:hover img { transform: scale(1.05); }
.note .badge { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--cream); }
.note p { font-size: 15px; font-weight: 700; line-height: 1.8; }
.note small { font-size: 12.5px; color: var(--slate); }

/* ---------- Numbers ---------- */
.numbers { background: var(--navy); color: var(--cream); padding-block: clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.numbers .wrap { position: relative; z-index: 1; }
.num-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid rgba(244,240,232,.16); }
.num { padding: 26px 18px 10px 0; border-inline-start: 1px solid rgba(244,240,232,.16); display: grid; gap: 8px; align-content: start; }
.num:first-child { border-inline-start: 0; }
.num b { font-family: var(--latin); font-weight: 900; font-size: clamp(40px, 5vw, 68px); line-height: 1; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.num span { font-size: 14px; color: var(--mist); }
.numbers canvas.fp { position: absolute; right: -10%; top: -20%; width: 620px; height: 140%; opacity: .5; }
@media (max-width: 900px) { .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num { border-inline-start: 0; border-top: 1px solid rgba(244,240,232,.16); padding-inline: 0; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding-block: clamp(70px, 10vw, 140px); overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact h2 { font-weight: 900; font-size: clamp(36px, 6vw, 80px); line-height: 1.2; }
.contact .links { display: grid; gap: 10px; margin-top: 28px; }
.contact .links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 17px; transition: padding .4s var(--ease), color .3s; }
.contact .links a:hover { padding-inline: 10px; color: var(--teal-ink); }
.contact .links small { font-family: var(--latin); font-weight: 400; color: var(--slate); font-size: 14px; }
form.brief { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15.5px; color: var(--navy); background: var(--cream); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(103,184,200,.22); }
.field .err { font-size: 13px; color: #A3412E; min-height: 1em; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; transition: all .3s var(--ease); }
.choice input:checked + label { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.choice input:focus-visible + label { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-done { display: grid; gap: 12px; text-align: center; justify-items: center; padding-block: 20px; }
.form-done svg { width: 64px; height: 64px; color: var(--teal); }
.form-done textarea { width: 100%; font: inherit; font-size: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 120px; color: var(--navy); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--cream); padding-block: 60px calc(30px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.footer .big { font-family: var(--latin); font-weight: 900; font-size: clamp(56px, 15vw, 220px); line-height: .85; direction: ltr; text-align: left; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(244,240,232,.35); }
.footer .big i { font-style: normal; color: var(--teal); -webkit-text-stroke: 0; }
.footer .row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: var(--mist); }
.footer .row a { color: var(--cream); text-decoration: none; }
.footer .row a:hover { color: var(--teal); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 99; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); background: var(--navy); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: transform .5s var(--ease); box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
