/* =========================================================
   Hamed Abdulsalam, UX Portfolio
   Minimal editorial system: type + whitespace carry it.
   One accent, used sparingly. No badges, no chips, no chrome.
   ========================================================= */

@font-face{
  font-family:"Bricolage Grotesque";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2");
}
@font-face{
  font-family:"Manrope";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("../fonts/Manrope-Variable.woff2") format("woff2");
}
@font-face{
  font-family:"Tangerine";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("../fonts/Tangerine-Regular.woff2") format("woff2");
}
@font-face{
  font-family:"Tangerine";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url("../fonts/Tangerine-Bold.woff2") format("woff2");
}

:root{
  --paper:#FCFAF6; --paper-2:#F5F1EA; --ink:#161511; --ink-soft:#54514A; --ink-faint:#726C58;
  --line:#E9E3D6; --line-strong:#D6CDB8;
  --accent:#8A5D19; --accent-bright:#B9862E;
  --rust:#B5502A; --teal:#2B6B66; --ochre:#8F6817; --plum:#8B3350;
  --rust-fill:#B5502A; --teal-fill:#2B6B66; --ochre-fill:#8F6817; --plum-fill:#8B3350;
  --radius:6px; --radius-lg:20px; --radius-xl:28px; --radius-pill:999px;
  --shadow:0 1px 2px rgba(30,22,8,.06), 0 20px 40px -20px rgba(30,22,8,.22);
  --shadow-color:rgba(30,22,8,.28);
  --font-display:"Bricolage Grotesque",ui-sans-serif,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --content-max:1120px;
  --measure:66ch;
}
@media (prefers-color-scheme: dark){
  :root{
    --paper:#15130F; --paper-2:#1D1B15; --ink:#F5F1E8; --ink-soft:#ACA79B; --ink-faint:#8C8674;
    --line:#2E2B22; --line-strong:#403B2E;
    --accent:#D9AC52; --accent-bright:#E8C171;
    --rust:#E08A5C; --teal:#6FB3AC; --ochre:#D9AC52; --plum:#D98BAA;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 20px 40px -20px rgba(0,0,0,.6);
    --shadow-color:rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"]{
  --paper:#15130F; --paper-2:#1D1B15; --ink:#F5F1E8; --ink-soft:#ACA79B; --ink-faint:#8C8674;
  --line:#2E2B22; --line-strong:#403B2E;
  --accent:#D9AC52; --accent-bright:#E8C171;
  --rust:#E08A5C; --teal:#6FB3AC; --ochre:#D9AC52; --plum:#D98BAA;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 20px 40px -20px rgba(0,0,0,.6);
  --shadow-color:rgba(0,0,0,.6);
}
:root[data-theme="light"]{
  --paper:#FCFAF6; --paper-2:#F5F1EA; --ink:#161511; --ink-soft:#54514A; --ink-faint:#726C58;
  --line:#E9E3D6; --line-strong:#D6CDB8;
  --accent:#8A5D19; --accent-bright:#B9862E;
  --rust:#B5502A; --teal:#2B6B66; --ochre:#8F6817; --plum:#8B3350;
  --shadow:0 1px 2px rgba(30,22,8,.06), 0 20px 40px -20px rgba(30,22,8,.22);
  --shadow-color:rgba(30,22,8,.28);
}

.accent-rust{ --proj:var(--rust); --proj-fill:var(--rust-fill); }
.accent-teal{ --proj:var(--teal); --proj-fill:var(--teal-fill); }
.accent-ochre{ --proj:var(--ochre); --proj-fill:var(--ochre-fill); }
.accent-plum{ --proj:var(--plum); --proj-fill:var(--plum-fill); }

*{box-sizing:border-box;}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{
  margin:0; background:var(--paper); color:var(--ink); font-family:var(--font-body);
  font-size:18px; line-height:1.7; -webkit-font-smoothing:antialiased;
}
/* Subtle fixed paper-grain texture, sits over everything at very low opacity
   via mix-blend-mode so it reads as texture, not a layer competing for attention. */
body::before{
  content:""; position:fixed; inset:0; z-index:9999; pointer-events:none; opacity:.035;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection{ background:var(--ink); color:var(--paper); }
a{ color:inherit; text-decoration-thickness:1px; text-underline-offset:3px; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
img,svg{ max-width:100%; display:block; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:800; text-wrap:balance; line-height:1.08; margin:0; color:var(--ink); letter-spacing:-.01em; }
h3,h4{ font-weight:700; }
p{ margin:0; }
ul,ol{ margin:0; padding:0; }
button{ font-family:inherit; }
.scroll-x{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.visually-hidden{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Skip link ---------- */
.skip-link{
  position:absolute; left:12px; top:-64px; background:var(--ink); color:var(--paper);
  padding:12px 20px; z-index:200; font-family:var(--font-body); font-weight:700; font-size:.92rem;
  border-radius:0 0 var(--radius-lg) var(--radius-lg); box-shadow:var(--shadow); transition:top .15s ease;
}
.skip-link:focus{ top:0; }
@media (prefers-reduced-motion:reduce){ .skip-link{ transition:none; } }

/* ---------- Shell / rhythm ---------- */
.shell{ max-width:var(--content-max); margin:0 auto; padding:0 clamp(24px,5vw,56px); }
section{ padding:clamp(64px,9vw,120px) 0; }
.section-border{ border-top:1px solid var(--line); }
.tight{ padding-top:0; }

.kicker{
  font-family:var(--font-body); font-size:.85rem; font-weight:600; letter-spacing:normal;
  color:var(--ink-faint); margin-bottom:14px;
}
h2.h-section{ font-size:clamp(1.9rem,3.6vw,2.7rem); font-weight:800; max-width:20ch; }
.lede{ margin-top:16px; max-width:var(--measure); color:var(--ink-soft); font-size:1.08rem; }
.page-title{ font-size:clamp(2.2rem,4.8vw,3.2rem); max-width:18ch; }

/* ---------- Spacing scale (utilities) ---------- */
.mt-2{ margin-top:16px; }
.mt-3{ margin-top:24px; }
.mt-4{ margin-top:32px; }
.mt-5{ margin-top:40px; }
.mt-6{ margin-top:48px; }

/* ---------- General utilities ---------- */
.muted{ color:var(--ink-soft); }
.items-start{ align-items:start; }
.items-center{ align-items:center; }
.hero-intro{ padding-bottom:0; }
.hero-intro + section{ padding-top:48px; }

/* Two-photo overlay: chamfered b&w portrait with a tilted color accent shot overlapping its corner. */
.about-portrait{
  position:relative; width:100%; max-width:440px; justify-self:end; margin:0 0 32px auto;
  cursor:pointer;
}
.about-portrait-main{
  position:relative; aspect-ratio:4/3; padding:3px; background:var(--line-strong);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
  filter:drop-shadow(0 4px 8px var(--shadow-color)) drop-shadow(0 20px 36px var(--shadow-color));
}
.about-portrait-main img{
  display:block; width:100%; height:100%; object-fit:cover; filter:grayscale(1);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
  transition:filter .5s ease, transform .5s ease;
}
.about-portrait-accent{
  position:absolute; right:-7%; bottom:-11%; width:36%; height:auto; aspect-ratio:1/1; object-fit:cover;
  border-radius:22%; border:4px solid var(--paper); box-shadow:0 6px 18px var(--shadow-color);
  background:var(--paper); transform:rotate(-6deg) scale(1);
  transition:transform .4s cubic-bezier(.2,.8,.3,1.15), box-shadow .4s ease;
}
.about-portrait:hover .about-portrait-main img,
.about-portrait:focus-within .about-portrait-main img{
  filter:grayscale(0); transform:scale(1.03);
}
.about-portrait:hover .about-portrait-accent,
.about-portrait:focus-within .about-portrait-accent{
  transform:rotate(0deg) scale(1.1);
  box-shadow:0 10px 26px var(--shadow-color);
}
:root[data-theme="dark"] .about-portrait-accent{ outline:1.5px solid var(--line-strong); outline-offset:3px; }
:root[data-theme="dark"] .about-portrait:hover .about-portrait-accent,
:root[data-theme="dark"] .about-portrait:focus-within .about-portrait-accent{ outline-color:var(--accent); }
@media (prefers-reduced-motion:reduce){
  .about-portrait-main img, .about-portrait-accent{ transition:filter .5s ease; }
  .about-portrait:hover .about-portrait-main img,
  .about-portrait:focus-within .about-portrait-main img{ transform:none; }
  .about-portrait:hover .about-portrait-accent,
  .about-portrait:focus-within .about-portrait-accent{ transform:rotate(-6deg); }
}
@media (max-width:900px){
  .about-portrait{ justify-self:center; margin:0 auto 20px; max-width:340px; }
}

.meta-label{ font-size:.82rem; color:var(--ink-faint); display:block; }
.contact-value{ font-size:1.1rem; }
.contact-list{ list-style:none; display:flex; flex-direction:column; gap:18px; margin-top:16px; }
.org-list{ color:var(--ink-soft); line-height:1.8; }
.method-list{ margin-top:32px; max-width:760px; }
.plain-card.divider{ margin-top:48px; padding-top:32px; border-top:1px solid var(--line); }

/* ---------- Links ---------- */
.link-arrow{
  position:relative; display:inline-flex; align-items:center; gap:6px; text-decoration:none; font-weight:600;
  border-bottom:1px solid var(--line-strong); padding-bottom:2px; color:var(--ink);
}
.link-arrow::before{ content:""; position:absolute; inset:-11px -4px; }
.link-arrow:hover{ border-bottom-color:var(--ink); }
.link-arrow .a{ transition:transform .15s ease; }
.link-arrow:hover .a{ transform:translateX(3px); }
@media (prefers-reduced-motion:reduce){ .link-arrow:hover .a{ transform:none; } }
a.plain{ color:inherit; text-decoration:none; }
a.plain:hover{ color:var(--accent); }
.prose{ max-width:var(--measure); }
.prose p{ color:var(--ink-soft); font-size:1.03rem; }
.prose p + p{ margin-top:14px; }
.prose a{ color:var(--ink); text-decoration-color:var(--line-strong); }
.prose a:hover{ text-decoration-color:var(--ink); }
.prose ul{ margin-top:14px; padding-left:20px; }
.prose li{ font-size:1.03rem; color:var(--ink-soft); margin-bottom:8px; }
.prose li::marker{ color:var(--proj, var(--accent)); }
.prose h3{ font-family:var(--font-body); font-weight:700; font-size:1rem; color:var(--ink); margin-top:26px; margin-bottom:2px; }
.prose h3 + p, .prose h3 + ul{ margin-top:8px; }

/* Scroll panel: aged-parchment card with hand-lettered cursive type. */
.scroll-panel{
  position:relative; padding:clamp(40px,7vw,64px) clamp(28px,7vw,76px);
  background:
    radial-gradient(ellipse at 18% 15%, rgba(255,252,240,.55), transparent 55%),
    radial-gradient(ellipse at 85% 88%, rgba(90,60,20,.12), transparent 60%),
    linear-gradient(180deg, #f4e8c9 0%, #ecdcae 45%, #f1e4c2 100%);
  border-radius:6px; color:#3d2b14;
  box-shadow:
    inset 0 0 0 1px rgba(90,60,20,.25),
    inset 0 0 70px rgba(90,60,20,.18),
    0 24px 48px rgba(0,0,0,.28), 0 4px 10px rgba(0,0,0,.15);
}
.scroll-panel::before, .scroll-panel::after{
  content:""; position:absolute; left:-4px; right:-4px; height:20px; border-radius:50%;
  background:linear-gradient(180deg, rgba(60,40,10,.35), rgba(60,40,10,0));
  box-shadow:0 2px 4px rgba(0,0,0,.25);
}
.scroll-panel::before{ top:-8px; }
.scroll-panel::after{ bottom:-8px; transform:rotate(180deg); }
.scroll-panel .prose{ max-width:68ch; }
.scroll-panel .prose p{
  font-family:"Tangerine", cursive; font-weight:700; color:#3d2b14;
  font-size:clamp(1.7rem,2.6vw,2.15rem); line-height:1.28; letter-spacing:.01em;
}
.scroll-panel .prose p + p{ margin-top:8px; }

.scroll-signature{
  margin:30px 0 6px; text-align:right; padding-right:clamp(50px,11vw,110px);
  font-family:"Tangerine", cursive; font-weight:700; color:#2f2008;
  font-size:clamp(3.2rem,7vw,4.6rem); line-height:1; letter-spacing:.02em;
  transform:rotate(-3deg);
  text-shadow:0 1px 0 rgba(255,255,255,.3);
}

.scroll-heading{
  position:relative; text-align:center; margin:0 0 22px;
  font-family:"Tangerine", cursive; font-weight:700; color:#4a2e0f;
  font-size:clamp(2.6rem,5vw,3.6rem); line-height:1; letter-spacing:.02em;
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.scroll-heading::after{
  content:""; display:block; width:120px; height:2px; margin:14px auto 0;
  background:linear-gradient(90deg, transparent, rgba(74,46,15,.55), transparent);
}

.wax-seal{
  position:absolute; bottom:clamp(18px,4vw,34px); right:clamp(16px,5vw,54px); z-index:3;
  width:76px; height:76px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at 32% 28%, #d3452f 0%, #a3241a 55%, #7c1712 100%);
  box-shadow:
    0 3px 8px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.5),
    inset 0 -3px 6px rgba(0,0,0,.35), inset 0 3px 5px rgba(255,140,110,.35);
  transform:rotate(-9deg);
}
.wax-seal::before{
  content:""; position:absolute; inset:6px; border-radius:50%;
  border:1px solid rgba(0,0,0,.25);
  box-shadow:inset 0 0 0 1px rgba(255,180,150,.2);
}
.wax-seal span{
  font-family:var(--font-display); font-weight:800; font-size:1.15rem;
  letter-spacing:.04em; color:#f4d9c6; text-shadow:0 1px 1px rgba(0,0,0,.4);
}
@media (max-width:640px){
  .wax-seal{ width:56px; height:56px; bottom:10px; right:10px; }
  .wax-seal span{ font-size:.85rem; }
  .scroll-signature{ padding-right:20px; }
}
#letter{ scroll-margin-top:96px; }

/* Sticky link to the About page's "letter" section, shown on every page except About itself. */
.letter-fab{
  position:fixed; z-index:90; right:clamp(14px,3vw,28px); bottom:clamp(14px,3vw,28px);
  display:inline-flex; align-items:center; gap:8px; padding:12px 18px;
  background:var(--paper); color:var(--ink); border:1.5px solid var(--ink); border-radius:var(--radius-pill);
  font-family:var(--font-body); font-weight:600; font-size:.85rem; text-decoration:none; line-height:1;
  box-shadow:0 4px 14px var(--shadow-color); white-space:nowrap;
  opacity:0; transform:translateY(10px); pointer-events:none; transition:opacity .25s ease, transform .25s ease;
}
.letter-fab.is-visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
@media (prefers-reduced-motion:reduce){
  .letter-fab{ transition:opacity .25s ease; transform:none; }
}
.letter-fab svg{ width:15px; height:15px; flex:none; }
.letter-fab:hover, .letter-fab:focus-visible{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.letter-fab:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
@media (max-width:480px){
  .letter-fab{ padding:10px 14px; font-size:.78rem; gap:6px; }
  .letter-fab svg{ width:13px; height:13px; }
}

/* ---------- Nav ---------- */
.site-header{ position:sticky; top:0; z-index:100; background:var(--paper); border-bottom:1px solid transparent; }
.site-header.is-scrolled{ border-bottom-color:var(--line); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; height:78px; gap:16px; }
.logo{ font-family:var(--font-display); font-weight:800; font-size:1.1rem; color:var(--ink); text-decoration:none; }
.nav-primary{ display:flex; align-items:center; gap:36px; }
.nav-links{ display:flex; align-items:center; gap:32px; list-style:none; }
.nav-links a{
  color:var(--ink-soft); text-decoration:none; font-size:.95rem; padding-bottom:3px;
  border-bottom:1px solid transparent;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a[aria-current="page"]{ color:var(--ink); border-bottom-color:var(--ink); }
.nav-actions{ display:flex; align-items:center; gap:20px; }
.nav-actions .link-arrow{ font-size:.92rem; font-weight:500; }
.nav-toggle{
  display:none; align-items:center; gap:10px; background:transparent; border:0; color:var(--ink);
  font-family:var(--font-body); font-size:.95rem; font-weight:600; cursor:pointer;
  padding:10px 6px; margin:-10px -6px;
}
.nav-toggle .hamburger{ position:relative; width:20px; height:14px; flex:none; }
.nav-toggle .hamburger span{
  position:absolute; left:0; width:100%; height:2px; background:var(--ink); border-radius:1px;
  transition:transform .2s ease, opacity .15s ease, top .2s ease;
}
.nav-toggle .hamburger span:nth-child(1){ top:0; }
.nav-toggle .hamburger span:nth-child(2){ top:6px; }
.nav-toggle .hamburger span:nth-child(3){ top:12px; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(1){ top:6px; transform:rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] .hamburger span:nth-child(3){ top:6px; transform:rotate(-45deg); }
@media (prefers-reduced-motion:reduce){ .nav-toggle .hamburger span{ transition:none; } }

/* ---------- Theme toggle ---------- */
.theme-toggle{
  background:transparent; border:1px solid var(--line-strong); border-radius:50%; width:42px; height:42px;
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); padding:0; flex:none;
}
.theme-toggle:hover{ border-color:var(--ink); }
.theme-toggle svg{ width:17px; height:17px; display:block; }
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
:root[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }
:root[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }

@media (max-width:840px){
  .nav-links{
    position:fixed; inset:78px 0 0 0; background:var(--paper); flex-direction:column; align-items:flex-start;
    gap:0; padding:8px clamp(24px,5vw,56px) 24px; overflow-y:auto;
    transform:translateY(-8px); opacity:0; pointer-events:none; transition:opacity .16s ease, transform .16s ease;
  }
  .nav-links.is-open{ opacity:1; pointer-events:auto; transform:translateY(0); }
  .nav-links a{ display:block; padding:16px 0; border-bottom:1px solid var(--line); width:100%; font-size:1.15rem; }
  .nav-toggle{ display:inline-flex; }
  .nav-actions .link-arrow{ display:none; }
}
@media (prefers-reduced-motion:reduce){ .nav-links{ transition:none; } }

/* ---------- Buttons (one style, used once per view) ---------- */
.btn{
  font-family:var(--font-body); font-weight:600; font-size:.95rem; padding:14px 26px; border-radius:var(--radius);
  border:1px solid var(--ink); cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; line-height:1; min-height:46px; background:var(--ink); color:var(--paper);
}
.btn:hover{ background:var(--accent); border-color:var(--accent); color:#fff; }
.btn-block{ width:100%; justify-content:center; }
.btn-pill{
  font-family:var(--font-body); font-weight:700; font-size:.95rem; padding:14px 28px; border-radius:var(--radius-pill);
  border:2px solid var(--proj, var(--accent)); color:var(--proj, var(--accent)); background:transparent;
  cursor:pointer; display:inline-flex; align-items:center; gap:8px; text-decoration:none; line-height:1; min-height:46px;
}
.btn-pill:hover{ background:var(--proj-fill, var(--accent)); border-color:var(--proj-fill, var(--accent)); color:#fff; }
.cta-row{ display:flex; flex-wrap:wrap; gap:28px; align-items:center; }
.hero-location{ font-size:.92rem; }

/* ---------- Hero ---------- */
.hero{ padding:clamp(72px,11vw,128px) 0 clamp(48px,7vw,72px); }
.hero-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:56px; align-items:start; }
.hero-main{ min-width:0; }
.hero-visual-wrap{ min-width:0; }
@media (max-width:900px){
  .hero{ padding:clamp(48px,13vw,88px) 0 clamp(40px,7vw,56px); }
  .hero-grid{ grid-template-columns:1fr; gap:36px; }
  .hero-main{ order:1; }
  .hero-visual-wrap{
    order:2; width:100%; max-width:420px; aspect-ratio:4/3; min-height:0;
    height:auto !important; margin:0 auto; margin-top:0 !important;
  }
}
@media (max-width:480px){
  .hero-visual-wrap{ aspect-ratio:1/1; }
}
.hero h1{ font-size:clamp(2rem,4.6vw,3.4rem); letter-spacing:-.01em; max-width:16ch; }
.hero-inline-photo{
  display:inline-block; vertical-align:middle; margin:0 .05em -.1em;
  width:clamp(40px,6.4vw,66px); height:clamp(40px,6.4vw,66px); object-fit:cover;
  border-radius:22%; border:4px solid var(--paper); box-shadow:0 3px 10px var(--shadow-color);
  background:var(--paper); cursor:pointer;
  filter:grayscale(1);
  transform:rotate(-4deg) scale(1);
  transition:filter .45s ease, transform .35s ease, box-shadow .35s ease;
}
.hero-inline-photo:hover, .hero-inline-photo:focus-visible{
  filter:grayscale(0);
  transform:rotate(0deg) scale(1.12);
  box-shadow:0 6px 18px var(--shadow-color);
}
@media (prefers-reduced-motion:reduce){
  .hero-inline-photo{ transition:filter .45s ease; transform:rotate(-4deg); }
  .hero-inline-photo:hover, .hero-inline-photo:focus-visible{ transform:rotate(-4deg); }
}
:root[data-theme="dark"] .hero-inline-photo{
  outline:1.5px solid var(--line-strong); outline-offset:3px;
}
:root[data-theme="dark"] .hero-inline-photo:hover, :root[data-theme="dark"] .hero-inline-photo:focus-visible{
  outline-color:var(--accent);
}
.hero .dek{ margin-top:26px; max-width:56ch; font-size:1.2rem; color:var(--ink-soft); font-family:var(--font-body); }
.hero .cta-row{ margin-top:36px; }

.hero-industries{ margin-top:18px; max-width:56ch; font-size:1rem; color:var(--ink-soft); font-family:var(--font-body); line-height:1.7; }
.industry-word{
  display:inline-block; font:inherit; font-family:inherit; font-weight:600;
  background:none; border:none; padding:0; margin:0; cursor:pointer;
  color:var(--ink-soft); border-bottom:1px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.industry-word:hover, .industry-word:focus-visible, .industry-word.is-active, .industry-word.is-spotlight{
  color:var(--ink); border-bottom-color:var(--accent);
}
.industry-word:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:2px; }

/* Elements the hero industry words can highlight elsewhere on the page */
[data-industries]{ transition:box-shadow .2s ease, transform .2s ease; }
.work-card[data-industries].is-industry-match{
  box-shadow:0 0 0 2px var(--proj, var(--accent));
  border-radius:var(--radius);
}
.tl-item[data-industries].is-industry-match h3{ color:var(--proj, var(--accent)); }
.tl-item[data-industries].is-industry-match{ transform:translateX(4px); }
@media (prefers-reduced-motion:reduce){
  [data-industries]{ transition:none; }
  .tl-item[data-industries].is-industry-match{ transform:none; }
}

/* Hero visual: chamfered frame, same shape as work-card thumbs. JS (site.js)
   sets height + margin-top on the WRAP (not .hero-visual itself) to match
   the h1, and steps through slides in sync with the callout tag
   (site.js: wireHeroSlides). The tag lives outside .hero-visual because
   clip-path clips its whole subtree, so anything positioned outside the
   shape inside it would get silently cut off. */
.hero-visual-wrap{ position:relative; height:340px; min-height:380px; }
.hero-visual{
  position:relative; height:100%; background:var(--line-strong);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
  filter:drop-shadow(0 4px 8px var(--shadow-color)) drop-shadow(0 20px 36px var(--shadow-color));
}
.hero-visual::after{
  content:""; position:absolute; z-index:2; width:9px; height:9px; background:rgba(255,255,255,.8);
  top:85%; left:88%; transform:translate(-50%,-50%);
}
.hero-visual-inner{
  position:absolute; inset:3px; overflow:hidden; background:var(--ochre-fill);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
}
.hero-visual-track{ display:flex; flex-direction:column; height:100%; transition:transform .6s ease; }
@media (prefers-reduced-motion:reduce){ .hero-visual-track{ transition:none; } }
.hero-visual-slide{
  flex:none; height:100%; display:flex; align-items:center; justify-content:center; text-align:center;
}
.hero-visual-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
.hero-visual-slide.is-text{ padding:24px; }
.hero-visual-slide span{
  color:#fff; font-weight:800; font-size:.85rem; letter-spacing:.04em; text-transform:uppercase;
  max-width:18ch; opacity:.9;
}

/* Slideshow pause/play control: centered on the bottom edge, clear of the card's chamfered corners. */
.hero-visual-toggle{
  position:absolute; z-index:4; left:50%; bottom:12px; transform:translateX(-50%);
  width:32px; height:32px; border-radius:50%; border:1.5px solid rgba(255,255,255,.75);
  background:rgba(17,17,18,.55); color:#fff; display:flex; align-items:center; justify-content:center;
  cursor:pointer; padding:0;
}
.hero-visual-toggle:hover{ background:rgba(17,17,18,.8); }
.hero-visual-toggle:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }
.hero-visual-toggle svg{ width:14px; height:14px; display:block; }
.hero-visual-toggle .icon-play{ display:none; }
.hero-visual-toggle.is-paused .icon-pause{ display:none; }
.hero-visual-toggle.is-paused .icon-play{ display:block; }

/* Callout tag: label + leader line pointing at the card's top-right corner. */
.hero-tag{ position:absolute; top:-64px; right:14px; z-index:3; text-align:right; pointer-events:none; }
.hero-tag-label{
  display:inline-block; font-family:var(--font-body); font-weight:800; font-size:.76rem;
  letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft);
}
.hero-tag-line{ position:relative; display:block; width:1.5px; height:26px; background:var(--line-strong); margin:8px 5px 0 auto; }
.hero-tag-dot{
  position:absolute; bottom:-5px; left:50%; transform:translateX(-50%);
  width:9px; height:9px; border-radius:50%; background:var(--paper); border:2px solid var(--accent);
}
@media (max-width:900px){ .hero-tag{ display:none; } }

/* ---------- Stat line (replaces "proof strip" chips) ---------- */
.stat-row{ display:flex; flex-wrap:wrap; gap:clamp(28px,5vw,64px); padding:32px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat{ min-width:120px; }
.stat .num{ font-family:var(--font-display); font-weight:800; font-size:clamp(1.7rem,3vw,2.3rem); color:var(--proj, var(--ink)); }
.stat .label{ font-size:.86rem; color:var(--ink-faint); margin-top:4px; }

/* ---------- Grids ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
@media (max-width:900px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid-2,.grid-3{ grid-template-columns:1fr; gap:40px; } }

/* ---------- Work card (no border, no shadow, accent-tinted thumb per project) ---------- */
.work-list{ display:flex; flex-direction:column; }
.work-card{
  display:grid; grid-template-columns:360px 1fr; gap:44px; align-items:center; text-decoration:none; color:inherit;
  padding:44px 0; border-top:1px solid var(--line);
}
.work-list a:last-child{ border-bottom:1px solid var(--line); }
.work-list a:nth-child(even){ grid-template-columns:1fr 360px; }
.work-list a:nth-child(even) .thumb{ order:2; }
.work-list a:nth-child(even) .info{ order:1; }
@media (max-width:900px){
  .work-card{ grid-template-columns:280px 1fr; gap:32px; }
  .work-list a:nth-child(even){ grid-template-columns:1fr 280px; }
}
@media (max-width:700px){
  .work-card{ grid-template-columns:1fr !important; gap:20px; padding:32px 0; }
  .work-list a .thumb, .work-list a .info{ order:initial !important; }
}
.work-list .work-card .thumb{ font-size:.85rem; }
.work-list .work-card .thumb::before{ inset:3px; }
.work-list .work-card .thumb::after{ width:9px; height:9px; }
.work-card .thumb{
  position:relative; aspect-ratio:4/3; background:var(--line-strong);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800;
  font-size:.78rem; letter-spacing:.04em; text-transform:uppercase;
}
.work-card .thumb::before{
  content:""; position:absolute; inset:2px; background:var(--proj-fill, var(--accent));
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
}
.work-card .thumb-label{ position:relative; }
.work-card .thumb img{
  position:absolute; top:2px; left:2px; width:calc(100% - 4px); height:calc(100% - 4px); object-fit:cover;
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
  transform:scale(1); transition:transform .6s cubic-bezier(.16,1,.3,1);
}
.work-card:hover .thumb img{ transform:scale(1.08); }
@media (prefers-reduced-motion:reduce){
  .work-card .thumb img{ transition:none; }
  .work-card:hover .thumb img{ transform:none; }
}
.work-card .thumb::after{
  content:""; position:absolute; width:7px; height:7px; background:rgba(255,255,255,.8);
  top:85%; left:88%; transform:translate(-50%,-50%);
}
.work-card .org{
  font-family:var(--font-body); font-size:.78rem; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; color:var(--proj, var(--accent));
}
.work-card h3{ font-size:1.6rem; margin-top:8px; }
.work-card .metric{ font-family:var(--font-body); font-weight:700; color:var(--proj, var(--accent)); font-size:.98rem; margin-top:8px; }
.work-card p.desc{ font-size:1rem; color:var(--ink-soft); margin-top:10px; max-width:56ch; }
.work-card .cats{ margin-top:14px; font-size:.85rem; color:var(--ink-faint); }
.work-card .link-arrow{ margin-top:16px; font-size:.95rem; }

/* Compact card variant for home page (grid, not list) */
.work-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }
@media (max-width:760px){ .work-grid{ grid-template-columns:1fr; gap:48px; } }
.work-grid .work-card{ display:block; padding:0; border:none; transition:transform .2s ease; }
.work-grid .work-card:hover{ transform:translateY(-6px); }
@media (prefers-reduced-motion:reduce){ .work-grid .work-card{ transition:none; } .work-grid .work-card:hover{ transform:none; } }
.work-grid .work-card .thumb{ aspect-ratio:4/3; transition:box-shadow .2s ease; }
.work-grid .work-card:hover .thumb{ box-shadow:var(--shadow); }
.work-grid .work-card .org{ margin-top:26px; display:block; font-size:.85rem; }
.work-grid .work-card h3{ font-size:1.9rem; margin-top:10px; }
.work-grid .work-card .metric{ font-size:1.2rem; margin-top:10px; }
.work-grid .work-card p.desc{ font-size:1.08rem; margin-top:12px; max-width:46ch; }
.work-grid .work-card .thumb{ font-size:.92rem; }
.work-grid .work-card .thumb::before{ inset:3px; }
.work-grid .work-card .thumb::after{ width:10px; height:10px; }

/* ---------- Timeline (plain, no dots/rail) ---------- */
.tl-item{ padding:16px 0; border-top:1px solid var(--line); }
.tl-item:first-child{ border-top:none; padding-top:0; }
.tl-item .when{ font-size:.84rem; color:var(--ink-faint); }
.tl-item h3, .tl-item h4{ font-family:var(--font-body); font-weight:650; font-size:1.02rem; margin:4px 0 3px; }
.tl-item h3 a{ color:inherit; text-decoration:none; border-bottom:1px solid var(--line-strong); }
.tl-item h3 a:hover{ border-bottom-color:var(--ink); }
.tl-item p{ font-size:.94rem; color:var(--ink-soft); }

/* ---------- Method steps ---------- */
.method-step{ display:flex; gap:20px; padding:24px 0; border-top:1px solid var(--line); }
.method-step:first-of-type{ border-top:none; padding-top:0; }
.method-icon{
  flex:none; width:40px; height:40px; border-radius:50%; background:color-mix(in srgb, var(--accent) 14%, var(--paper));
  display:flex; align-items:center; justify-content:center;
}
.method-icon svg{ width:20px; height:20px; stroke:var(--accent); }
.method-step h3{ font-family:var(--font-body); font-weight:650; font-size:1.1rem; margin:0 0 8px; }
.method-step p{ color:var(--ink-soft); font-size:.98rem; max-width:var(--measure); }

/* ---------- Simple text card (leadership, approach) ---------- */
.plain-card h3{ font-family:var(--font-body); font-weight:650; font-size:1.15rem; margin-bottom:8px; }
.plain-card p{ color:var(--ink-soft); font-size:.98rem; }
.plain-card .when{ font-size:.85rem; color:var(--ink-faint); display:block; margin-bottom:10px; }

/* ---------- CTA close (plain, no box) ---------- */
.cta-close h2{ max-width:16ch; }
.cta-close p{ margin-top:14px; color:var(--ink-soft); max-width:48ch; }
.cta-close .cta-row{ margin-top:28px; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); padding:40px 0; }
.footer-row{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; }
.footer-row nav ul{ display:flex; flex-wrap:wrap; gap:24px; list-style:none; }
.footer-row nav a{ position:relative; color:var(--ink-soft); text-decoration:none; font-size:.92rem; display:inline-block; padding:8px 0; }
.footer-row nav a::before{ content:""; position:absolute; inset:-4px -6px; }
.footer-row nav a:hover{ color:var(--ink); }
.footer-meta{ font-size:.86rem; color:var(--ink-faint); }

/* =========================================================
   Case study specific
   ========================================================= */
.cs-hero{ padding:56px 0 0; overflow:hidden; }
.cs-hero-grid{ display:grid; grid-template-columns:1fr 300px; gap:48px; align-items:start; }
@media (max-width:820px){ .cs-hero-grid{ grid-template-columns:1fr; } }
.cs-hero-main{ min-width:0; }
.cs-hero .org{
  font-family:var(--font-body); font-size:.82rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase;
  color:var(--proj, var(--accent));
}
.cs-hero h1{ margin-top:14px; font-size:clamp(2rem,4.6vw,3.2rem); max-width:20ch; }
.cs-hero .dek{ margin-top:18px; max-width:60ch; font-size:1.12rem; color:var(--ink-soft); font-family:var(--font-body); }
.cs-hero .cta-row{ margin-top:28px; }

.meta-card{
  background:var(--paper-2); border-radius:var(--radius-lg); box-shadow:var(--shadow);
  padding:28px 30px; display:flex; flex-direction:column; gap:20px;
}
.meta-card .item .k{ font-family:var(--font-body); font-size:.74rem; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:color-mix(in srgb, var(--proj, var(--accent)) 80%, black 20%); }
.meta-card .item .v{ font-size:1rem; color:var(--ink); margin-top:5px; }
.meta-card .item .v a{ color:var(--ink); text-decoration-color:var(--line-strong); }
.meta-card .item .v a:hover{ text-decoration-color:var(--ink); }

.metric-row{ display:flex; flex-wrap:wrap; gap:clamp(28px,5vw,56px); margin-top:44px; padding-top:32px; border-top:1px solid var(--line); }
.metric-row .stat .num{ color:var(--proj, var(--accent)); }

.color-bar{ height:14px; background:var(--proj-fill, var(--accent)); margin-top:48px; }

.cs-nav{
  position:sticky; top:78px; z-index:40; background:var(--paper); border-top:1px solid var(--line);
  border-bottom:1px solid var(--line); margin-top:48px;
  -webkit-mask-image:linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image:linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.cs-nav .scroll-x{ display:flex; gap:28px; padding:14px clamp(24px,5vw,56px); }
.cs-nav a{ position:relative; font-size:.88rem; color:var(--ink-faint); text-decoration:none; white-space:nowrap; }
.cs-nav a::before{ content:""; position:absolute; inset:-14px -6px; }
.cs-nav a:hover{ color:var(--ink); }
.cs-nav a[aria-current="true"]{ color:var(--ink); font-weight:600; }

.cs-section{ padding:56px 0; border-bottom:1px solid var(--line); }
.cs-section:last-of-type{ border-bottom:none; }
.cs-section h2{ font-size:clamp(1.4rem,2.6vw,1.75rem); font-weight:750; max-width:28ch; }
.cs-section .prose{ margin-top:18px; }

.img-slot{
  position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 15% 15%, color-mix(in srgb, var(--proj, var(--accent)) 16%, transparent), transparent 60%),
    var(--paper-2);
  clip-path:polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
  border:1px solid color-mix(in srgb, var(--proj, var(--line-strong)) 30%, var(--line));
  min-height:280px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:24px;
  font-size:.85rem; color:var(--ink-soft); margin-top:24px;
}
.img-slot::before{
  content:""; width:34px; height:34px; flex:none; opacity:.55;
  background-color:var(--proj, var(--ink-faint));
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
  -webkit-mask-size:contain; mask-size:contain; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center; mask-position:center;
}

.cs-figure{ margin-top:24px; }
.cs-figure + .cs-figure{ margin-top:32px; }
.cs-figure img, .cs-figure video{
  display:block; width:100%; height:auto;
  clip-path:polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
  border:1px solid color-mix(in srgb, var(--proj, var(--line-strong)) 30%, var(--line));
  background:var(--paper-2);
}
.cs-figure figcaption{ margin-top:12px; font-size:.85rem; color:var(--ink-faint); max-width:var(--measure); }

/* Uniform thumbnail crop for card grids mixing images of different native ratios (leadership talks/press). */
.cs-figure.figure-uniform{ aspect-ratio:4/3; overflow:hidden; }
.cs-figure.figure-uniform img{ height:100%; object-fit:cover; object-position:top; }

.before-after{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:24px; }
@media (max-width:640px){ .before-after{ grid-template-columns:1fr; } }
.ba-col .ba-label{ font-size:.82rem; color:var(--ink-faint); margin-bottom:10px; }
.ba-col .img-slot{ margin-top:0; min-height:200px; }
.ba-col .cs-figure{ margin-top:0; }

/* Real photo, same chamfered shape as the hero visual and work-card thumbs. */
.approach-photo{
  position:relative; aspect-ratio:4/3; padding:3px; background:var(--line-strong);
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
}
.approach-photo img{
  display:block; width:100%; height:100%; object-fit:cover;
  clip-path:polygon(30% 0%, 90% 0%, 100% 7%, 100% 85%, 88% 85%, 88% 100%, 6% 100%, 0% 90%, 0% 18%);
}
@media (max-width:760px){ .approach-photo{ margin-top:32px; } }

blockquote.pull{
  margin:32px 0 0; padding-left:24px; border-left:2px solid var(--proj, var(--ink)); font-family:var(--font-display);
  font-size:1.35rem; font-weight:700; line-height:1.4; color:var(--ink); max-width:56ch;
}
blockquote.pull cite{ display:block; margin-top:14px; font-family:var(--font-body); font-style:normal; font-size:.85rem; color:var(--ink-faint); }

.next-cs{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:36px 0 0; flex-wrap:wrap; }

/* =========================================================
   Forms (contact)
   ========================================================= */
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.field label{ font-size:.9rem; font-weight:650; color:var(--ink); }
.field input, .field textarea{
  font-family:var(--font-body); font-size:1rem; padding:13px 14px; border:1px solid var(--line-strong);
  border-radius:var(--radius); background:var(--paper); color:var(--ink); min-height:48px;
}
.field textarea{ min-height:150px; resize:vertical; }
.field input:focus, .field textarea:focus{ border-color:var(--ink); }
.field.has-error input, .field.has-error textarea{ border-color:#B3261E; }
.field .error{ font-size:.84rem; color:#B3261E; display:none; }
.field.has-error .error{ display:block; }
.form-status{ font-size:.92rem; padding:0; margin-top:14px; display:none; color:var(--ink-soft); }
.form-status.show{ display:block; }
.form-hint{ font-size:.85rem; color:var(--ink-faint); margin-top:16px; }

/* =========================================================
   Resume page / print
   ========================================================= */
.resume-doc{ max-width:760px; margin:0 auto; }
.resume-doc h1{ font-size:2.1rem; }
.resume-doc .role{ color:var(--ink-soft); font-size:1.08rem; margin-top:6px; font-family:var(--font-body); }
.resume-doc .contact-line{ font-size:.9rem; color:var(--ink-soft); margin-top:16px; }
.resume-doc h2{ font-family:var(--font-body); font-size:.82rem; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-faint); margin:40px 0 16px; padding-top:20px; border-top:1px solid var(--line); }
.resume-doc h2:first-of-type{ border-top:none; padding-top:0; }
.res-entry{ margin-bottom:22px; }
.res-entry .head{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.res-entry h3{ font-family:var(--font-body); font-weight:650; font-size:1.04rem; }
.res-entry .org{ color:var(--ink-soft); font-size:.94rem; }
.res-entry .when{ font-size:.84rem; color:var(--ink-faint); white-space:nowrap; }
.res-entry ul{ margin-top:10px; padding-left:20px; }
.res-entry li{ font-size:.94rem; color:var(--ink-soft); margin-bottom:6px; }
.cert-list{ padding-left:20px; }
.cert-list li{ font-size:.92rem; color:var(--ink-soft); margin-bottom:5px; }
.print-bar{ display:flex; justify-content:flex-end; margin-bottom:32px; }

@media print{
  .site-header, .site-footer, .print-bar, .skip-link{ display:none !important; }
  body{ background:#fff; color:#000; font-size:12pt; }
  a{ color:#000; text-decoration:none; }
  section{ padding:0; }
  .resume-doc h2{ color:#000; border-top:1px solid #ccc; }
}

@media (prefers-reduced-motion:no-preference){
  a, .btn, .nav-links a{ transition:color .12s ease, border-color .12s ease, background-color .12s ease; }
  html{ scroll-behavior:smooth; }
}
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

/* ---------- Intro wave (homepage load-in only) ---------- */
.wave-intro{
  position:fixed; inset:0; z-index:9999; overflow:hidden; pointer-events:none;
}
.wave-intro .wave{
  position:absolute; top:0; left:0; width:60vw; height:100%;
  transform:translateX(-70vw);
  animation:wave-sweep 1.7s cubic-bezier(.65,0,.35,1) forwards;
}
.wave-1{ background:linear-gradient(125deg, var(--rust), var(--plum) 70%); clip-path:polygon(20% 0%,38% 11%,14% 24%,36% 36%,13% 50%,37% 63%,14% 76%,38% 89%,20% 100%,80% 100%,63% 88%,86% 76%,64% 63%,87% 50%,63% 37%,86% 24%,64% 11%,80% 0%); animation-delay:0s; }
.wave-2{ background:linear-gradient(125deg, var(--teal), var(--rust) 70%); clip-path:polygon(22% 0%,40% 13%,16% 26%,39% 38%,15% 50%,40% 61%,16% 74%,39% 87%,22% 100%,78% 100%,60% 86%,84% 74%,61% 61%,85% 50%,60% 38%,84% 26%,61% 13%,78% 0%); animation-delay:.12s; opacity:.92; }
.wave-3{ background:linear-gradient(125deg, var(--ochre), var(--teal) 70%); clip-path:polygon(18% 0%,36% 10%,12% 23%,35% 35%,11% 50%,36% 64%,12% 77%,36% 90%,18% 100%,82% 100%,64% 89%,88% 77%,65% 64%,89% 50%,64% 36%,88% 23%,65% 10%,82% 0%); animation-delay:.24s; opacity:.9; }
.wave-4{ background:linear-gradient(125deg, var(--plum), var(--ochre) 70%); clip-path:polygon(24% 0%,42% 12%,17% 25%,41% 37%,16% 50%,41% 62%,17% 75%,41% 88%,24% 100%,76% 100%,59% 87%,83% 75%,58% 62%,84% 50%,58% 37%,83% 25%,59% 12%,76% 0%); animation-delay:.36s; opacity:.92; }
.wave-5{ background:linear-gradient(125deg, var(--accent), var(--plum) 70%); clip-path:polygon(21% 0%,39% 12%,15% 25%,38% 37%,14% 50%,38% 63%,15% 76%,38% 89%,21% 100%,79% 100%,61% 88%,85% 76%,62% 63%,86% 50%,62% 37%,85% 25%,61% 12%,79% 0%); animation-delay:.48s; opacity:.88; }
@keyframes wave-sweep{
  0%{ transform:translateX(-70vw); }
  100%{ transform:translateX(140vw); }
}

/* Firework finale + welcome moment, triggered via JS as the waves exit */
.firework-point{ position:absolute; width:0; height:0; }
.firework-point span{
  position:absolute; top:0; left:0; width:9px; height:9px; margin:-4.5px; border-radius:50%;
  opacity:0; transform:rotate(var(--angle)) translateX(0) scale(1);
}
.firework-point.is-active span{
  animation:firework-particle .95s cubic-bezier(.15,.8,.25,1) forwards;
}
@keyframes firework-particle{
  0%{ transform:rotate(var(--angle)) translateX(0) scale(1); opacity:1; }
  70%{ opacity:1; }
  100%{ transform:rotate(var(--angle)) translateX(var(--dist,130px)) scale(.2); opacity:0; }
}
@media (prefers-reduced-motion:reduce){
  .wave-intro{ display:none; }
}
