/*
 * Triple e Digital — Service Pages
 * branding.css — shared styles for every service page
 *
 * Used by: Branding & Design, Print Advertising, Packaging Design, Website Design & SEO.
 * Covers the sections every page shares: Hook, Chapters, Signal, Process,
 * Portfolio, CTA and FAQ. Each page's hero lives in its own small file
 * (branding-hero.css, print.css, packaging.css, webseo.css), loaded after this one.
 *
 * DEPLOY:
 * 1. Upload to /templates/wavo/css/branding.css
 * 2. Load it from the first Custom HTML addon on every service page (the
 *    STYLES row in each page's sections file):
 *      <link rel="stylesheet" href="/templates/wavo/css/branding.css">
 *    followed by that page's hero stylesheet.
 * 3. Menu item → Page Display → Page Class: te-branding-page
 *    This scopes the body background and font to these pages only. The body
 *    rule below also matches any page with the Chapters section, so the pages
 *    still look right if the class is ever missing.
 *
 * Fonts already loaded site-wide (Bayon, Geist, Questrial).
 * If not, add to the STYLES row:
 *   <link href="https://fonts.googleapis.com/css2?family=Bayon&family=Geist:wght@400;800&family=Questrial&display=swap" rel="stylesheet">
 *
 * --te-header-h is set by branding.js to the real height of the site menu
 * (#sp-header), so pinned panels stop just under the menu instead of behind it.
 *
 * EYEBROWS match the rest of the site: Questrial 16px, 3px letter spacing,
 * uppercase, with a 60px × 1px line 10px to the left. The line uses
 * currentColor, so it is always the same color as the eyebrow text.
 * Exceptions: the Hook eyebrow line on Print (CMYK bar, print.css) and
 * Packaging (dashed fold line, packaging.css).
 */

/* ── CSS custom properties (available to all our sections) ── */
:root { --y:#F5E333; --b:#63CAEB; --ch:#545555; --k:#000; --w:#fff; --te-header-h:0px; }

/* ── Scoped box-model reset — only affects our page sections ──
   Uses :is() to avoid touching Wavo nav, footer, or modules.  */
:is(.hook-section, .chapters-outer,
    .signal-section, .proc-section, .para-section,
    .cta-section, .faq-section) *,
:is(.hook-section, .chapters-outer,
    .signal-section, .proc-section, .para-section,
    .cta-section, .faq-section) *::before,
:is(.hook-section, .chapters-outer,
    .signal-section, .proc-section, .para-section,
    .cta-section, .faq-section) *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Body: scoped to this page via SPPB body class ──
   overflow-x:clip (not hidden). hidden turns the element into a scroll box,
   which silently switches off every position:sticky inside it. */
body.te-branding-page,
body:has(.chapters-outer) {
  background: var(--k);
  color: var(--w);
  font-family: 'Questrial', sans-serif;
  overflow-x: hidden;   /* fallback for very old browsers */
  overflow-x: clip;
  overflow-y: visible;
}

/* ── STICKY FIX ──
   Helix and SPPB wrap every row in containers that use overflow:hidden.
   Any one of them above a pinned section breaks position:sticky, so the hero,
   chapter nav, PRESENCE panel, process slider and portfolio all scroll away
   instead of pinning. This switches every wrapper above our sections to
   overflow-x:clip, which trims sideways overflow the same way but leaves
   sticky working. Only applies on the service pages. */
html:has(.chapters-outer) { overflow-x: clip !important; overflow-y: visible !important; }
body:is(.te-branding-page, :has(.chapters-outer))
  :has(.hero-section, section[class$="-hero"], .chapters-outer,
       .signal-section, .proc-section, .para-section) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

/* ── Button resets — for faq-q and ch-item converted to <button> ── */
button.faq-q {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
/* ch-item gets explicit font so Bayon isn't overridden by font:inherit */
button.ch-item {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font-family: 'Bayon', sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
  width: 100%;
}


/* ── HOOK ── */
.hook-section { background:var(--k); padding:100px 48px; display:grid; grid-template-columns:220px 1fr; gap:80px; align-items:center; border-top:3px solid var(--y); position:relative; z-index:10; }
.hook-stat-num { font-family:'Bayon',sans-serif; font-size:100px; line-height:1; color:var(--y); }
.hook-stat-label { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,.35); margin-top:6px; }
.hook-eyebrow { font-family:'Questrial',sans-serif; font-size:16px; font-weight:400; letter-spacing:3px; text-transform:uppercase; color:var(--b); margin-bottom:15px; display:flex; align-items:center; gap:10px; }
.hook-eyebrow::before { content:''; display:block; width:60px; height:1px; background:currentColor; flex-shrink:0; }
.hook-copy .hook-h1 { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(26px,3.2vw,48px); line-height:1.1; color:var(--w); margin-bottom:20px; }
.hook-copy h2 { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(26px,3.2vw,48px); line-height:1.1; color:var(--w); margin-bottom:20px; }
.hook-copy p { font-size:16px; line-height:1.8; color:rgba(255,255,255,.55); max-width:540px; }

/* ── CHAPTERS ── */
.chapters-outer { display:flex; align-items:flex-start; position:relative; z-index:10; }
.chapters-left { width:260px; flex-shrink:0; position:sticky; top:var(--te-header-h); height:calc(100vh - var(--te-header-h)); background:var(--k); border-right:1px solid #111; display:flex; flex-direction:column; justify-content:center; padding:48px 36px; z-index:10; }
.ch-sup { font-size:9px; letter-spacing:4px; text-transform:uppercase; color:#222; margin-bottom:36px; }
.ch-item { font-family:'Bayon',sans-serif; font-size:26px; line-height:1.15; color:#252525; margin-bottom:28px; letter-spacing:1px; transition:color .3s; cursor:pointer; padding-left:18px; position:relative; }
.ch-item::before { content:''; position:absolute; left:0; top:6px; width:4px; height:0; background:var(--y); transition:height .3s; }
.ch-item.active { color:var(--w); }
.ch-item.active::before { height:calc(100% - 6px); }
/* Focus ring for keyboard users */
.ch-item:focus-visible { outline:2px solid var(--y); outline-offset:4px; }
.chapters-right { flex:1; }
.chapter { min-height:100vh; padding:100px 72px; display:flex; flex-direction:column; justify-content:center; overflow:hidden; scroll-margin-top:var(--te-header-h); }
.ch0{background:var(--y)} .ch1{background:var(--b)} .ch2{background:var(--ch)}
.ch-eyebrow { font-family:'Questrial',sans-serif; font-size:16px; font-weight:400; letter-spacing:3px; text-transform:uppercase; display:flex; align-items:center; gap:10px; margin-bottom:15px; }
.ch-eyebrow::before { content:''; display:block; width:60px; height:1px; background:currentColor; flex-shrink:0; }
.ch0 .ch-eyebrow{color:rgba(0,0,0,.55)} .ch1 .ch-eyebrow{color:var(--w)} .ch2 .ch-eyebrow{color:var(--y)}
.ch-head { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(30px,3.4vw,54px); line-height:1.05; margin-bottom:24px; max-width:20em; text-wrap:balance; }
/* max-width is in em, so it grows with the font: each line set by a <br> has room
   to stay on one line at any desktop size. text-wrap:balance evens out any line
   that still has to wrap. On phones the <br>s are ignored (see the 768px block). */
.ch0 .ch-head,.ch1 .ch-head{color:var(--k)} .ch2 .ch-head{color:var(--w)}
.ch-body { font-size:17px; line-height:1.8; max-width:500px; margin-bottom:40px; }
.ch0 .ch-body,.ch1 .ch-body{color:rgba(0,0,0,.6)} .ch2 .ch-body{color:rgba(255,255,255,.55)}
/* Service list: one quiet line of text, dot-separated (no tag boxes) */
.delivs { display:flex; flex-wrap:wrap; row-gap:2px; max-width:620px; }
.deliv { font-size:12px; letter-spacing:2px; text-transform:uppercase; line-height:1.9; color:rgba(0,0,0,.55); white-space:nowrap; }
.deliv:not(:last-child)::after { content:'\00B7'; margin:0 12px; color:rgba(0,0,0,.3); }
/* Links to the other service pages, under a thin rule */
.ch-pairs { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 24px; max-width:620px; margin-top:24px; padding-top:18px; border-top:1px solid rgba(0,0,0,.15); }
.ch-pairs-label { width:100%; font-size:11px; letter-spacing:3px; text-transform:uppercase; color:rgba(0,0,0,.45); }
.ch-pairs a { font-size:13px; letter-spacing:1.5px; text-transform:uppercase; color:var(--k); text-decoration:none; border-bottom:2px solid var(--k); padding-bottom:2px; transition:border-color .2s; }
.ch-pairs a::after { content:' \2192'; }
.ch-pairs a:hover, .ch-pairs a:focus-visible { border-bottom-color:var(--b); outline:none; }
.ch-stat-n { font-family:'Bayon',sans-serif; font-size:80px; line-height:1; color:var(--y); }
.ch-stat-l { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:24px; }

/* ── SIGNAL ── */
.signal-section { height:200vh; position:relative; z-index:3; }
.signal-inner {
  position:sticky; top:var(--te-header-h);
  height:calc(100vh - var(--te-header-h)); height:calc(100svh - var(--te-header-h));
  background:var(--w);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:44px;
  z-index:3;
  overflow:hidden;
}
.signal-word {
  font-family:'Bayon',sans-serif;
  font-size:9vw;
  letter-spacing:-0.03em;
  color:var(--y);
  white-space:nowrap;
  line-height:1;
  transform:scale(20);
  transform-origin:center center;
  will-change:transform;
  user-select:none;
}
.signal-para {
  width:560px; max-width:90vw; text-align:center; opacity:0;
}
.signal-para p { font-size:17px; line-height:1.85; color:var(--ch); }
.signal-para em { font-style:normal; color:#aaa; font-size:13px; display:block; margin-top:12px; }

/* ── PROCESS ── */
.proc-section { height:380vh; position:relative; z-index:6; }
.proc-sticky { position:sticky; top:var(--te-header-h); height:calc(100vh - var(--te-header-h)); overflow:hidden; background:var(--k); display:flex; flex-direction:column; border-top:3px solid #111; }
.proc-hdr { padding:52px 48px 28px; display:flex; flex-direction:column; gap:10px; flex-shrink:0; border-bottom:1px solid #1a1a1a; margin-bottom:4px; }
.proc-hdr-l { font-family:'Questrial',sans-serif; font-size:16px; font-weight:400; letter-spacing:3px; text-transform:uppercase; color:var(--b); display:flex; align-items:center; gap:10px; }
.proc-hdr-l::before { content:''; display:block; width:60px; height:1px; background:currentColor; flex-shrink:0; }
.proc-hdr-t { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(28px,3vw,44px); color:var(--w); line-height:1.1; }
.proc-wrap { flex:1; overflow:hidden; }
.proc-track { display:flex; align-items:stretch; height:100%; padding:28px 48px; gap:3px; will-change:transform; }
.pcard { flex-shrink:0; width:calc(68vw - 48px); position:relative; overflow:hidden; display:flex; flex-direction:column; }
.pc0{background:var(--y)} .pc1{background:var(--b)} .pc2{background:var(--ch)} .pc3{background:#0a0a0a;border:1px solid #1a1a1a}
.pcard-img { width:100%; flex:1; display:flex; align-items:center; justify-content:center; min-height:180px; }
.pc0 .pcard-img,.pc1 .pcard-img{background:rgba(0,0,0,.1)} .pc2 .pcard-img,.pc3 .pcard-img{background:rgba(255,255,255,.04)}
.pcard-img-note { font-size:9px; letter-spacing:3px; text-transform:uppercase; text-align:center; line-height:1.8; }
.pc0 .pcard-img-note,.pc1 .pcard-img-note{color:rgba(0,0,0,.25)} .pc2 .pcard-img-note,.pc3 .pcard-img-note{color:rgba(255,255,255,.15)}
.pcard-body { padding:24px 36px 28px; flex-shrink:0; }
.pcard-n { font-family:'Bayon',sans-serif; font-size:100px; line-height:1; position:absolute; top:12px; right:20px; opacity:.07; }
.pc0 .pcard-n,.pc1 .pcard-n{color:var(--k)} .pc2 .pcard-n,.pc3 .pcard-n{color:var(--w)}
.pcard-step { font-size:10px; letter-spacing:3px; text-transform:uppercase; margin-bottom:6px; opacity:.45; }
.pc0 .pcard-step,.pc1 .pcard-step{color:var(--k)} .pc2 .pcard-step,.pc3 .pcard-step{color:var(--w)}
.pcard-name { font-family:'Geist',sans-serif; font-weight:800; font-size:36px; line-height:1; margin-bottom:14px; }
.pc0 .pcard-name,.pc1 .pcard-name{color:var(--k)} .pc2 .pcard-name,.pc3 .pcard-name{color:var(--w)}
.pcard-desc { font-size:15px; line-height:1.7; max-width:400px; }
.pc0 .pcard-desc,.pc1 .pcard-desc{color:rgba(0,0,0,.58)} .pc2 .pcard-desc,.pc3 .pcard-desc{color:rgba(255,255,255,.55)}
.proc-pips { padding:0 48px 24px; display:flex; gap:5px; flex-shrink:0; }
.pip { flex:1; height:2px; background:#111; transition:background .3s; }
.pip.on { background:var(--y); }

/* Process cards on desktop (1025px and up): show the whole photo.
   branding.js measures the space under the heading, subtracts the text block,
   and sizes each card so its image area is exactly the photo's 16:10 shape
   (the process files are 1200×750). It sets --pcard-w and --pcard-img-h on the
   track. On short laptop screens the cards stop at a minimum width, so the
   photo may be trimmed slightly there. Phones and tablets keep the layout above. */
@media (min-width:1025px){
  .proc-track { align-items:center; }
  .pcard { width:var(--pcard-w, calc(68vw - 48px)); }
  .pcard-img { flex:none; height:var(--pcard-img-h, auto); min-height:0; }
}
/* Short desktop screens (laptops): tighter spacing gives the photo more height */
@media (min-width:1025px) and (max-height:850px){
  .proc-hdr { padding:28px 48px 16px; }
  .proc-hdr-t { font-size:clamp(26px,2.6vw,38px); }
  .proc-track { padding:16px 48px; }
  .pcard-body { padding:16px 32px 18px; }
  .pcard-name { font-size:30px; margin-bottom:8px; }
  .pcard-desc { line-height:1.6; }
}

/* ── PORTFOLIO ──
   Pinned with position:sticky (same as Process), not position:fixed.
   Fixed breaks inside SPPB whenever a wrapper has a transform, and it left
   a long black gap when it didn't show.
   Every card is the same width (--W). Its height comes from its image.
   • Two shapes: portrait files at 400×533 and square files at 450×450.
   • Every card sets --ar inline to its image's width/height,
     e.g. style="left:12%;--ar:400/533". Match it to the img width/height.
   • Files need at least twice --W in pixels to stay sharp on retina
     screens (200px cards → 400px files).
   • Accent bar color: acc-b (blue) or acc-ch (charcoal) on the card. Default is yellow.
   • is-cutout: for images with a transparent background. Drops the dark card
     and the accent bar so the artwork sits on its own. */
.para-section { height:360vh; position:relative; z-index:6; --W:200px; }
.para-sticky {
  position:sticky; top:var(--te-header-h);
  height:calc(100vh - var(--te-header-h));
  overflow:hidden;
  background:#080808; z-index:6;
}
.para-head { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:10; text-align:center; white-space:nowrap; }
.para-title { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(28px,3.2vw,48px); color:var(--w); }
.para-sub { font-size:13px; color:rgba(255,255,255,.35); margin-top:10px; letter-spacing:1px; }
.vlines { position:absolute; inset:0; z-index:1; pointer-events:none; }
.vline { position:absolute; top:0; bottom:0; width:1px; background:rgba(84,85,85,.55); }
.para-img { position:absolute; z-index:5; width:var(--W); }
.para-img-in { position:relative; background:#111; border-top:3px solid var(--y); }
.para-img.acc-b .para-img-in { border-top-color:var(--b); }
.para-img.acc-ch .para-img-in { border-top-color:var(--ch); }
.para-img.is-cutout .para-img-in { background:none; border-top:0; }
.para-img-in img { display:block; width:100%; height:auto; aspect-ratio:var(--ar, 3/4); object-fit:contain; }

/* ── CTA ──
   Matches the "Let's Talk." block on the Our Story page: charcoal background,
   Poppins headline with an outlined first line and a solid white second line,
   white outline button with the yellow ink-fill hover.
   Poppins is already loaded site-wide from custom.css. */
.cta-section { background:var(--ch); padding:80px 48px; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; position:relative; z-index:8; }
.cta-line {
  font-family:'Poppins',sans-serif; font-weight:800;
  font-size:clamp(30px,3.6vw,60px); line-height:1.2;
  color:transparent; -webkit-text-stroke:1px var(--w);
}
.cta-line strong { font-weight:900; color:var(--w); -webkit-text-stroke:0; }
.cta-btn {
  padding:14px 35px;
  background:transparent;
  border:1px solid var(--w);
  color:var(--w);
  font-family:'Questrial',sans-serif;
  font-size:16px;
  line-height:20px;
  text-transform:uppercase;
  cursor:pointer;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
  border-radius:0;
  text-decoration:none;
  display:inline-block;
}
.cta-btn span {
  position:relative;
  z-index:2;
  transition:color 0.6s;
}
.cta-btn::after {
  content:'';
  position:absolute;
  top:-10px; left:-10px; right:-10px; bottom:100%;
  background:var(--y);
  border-radius:0 0 100% 100% / 0 0 100% 100%;
  transition:all 0.6s cubic-bezier(1,0,0.55,1);
}
.cta-btn:hover span { color:var(--k); }
.cta-btn:hover::after { bottom:-10px; border-radius:0; }
.cta-btn:focus-visible { outline:2px solid var(--y); outline-offset:3px; }

/* ── FAQ ── */
.faq-section { background:var(--w); padding:100px 48px; position:relative; z-index:8; overflow:hidden; }
/* Ghosted "ASK" in the bottom-right corner. It is placed from the TOP using the
   section's height with every question closed (branding.js sets --faq-closed-h),
   so opening an answer grows the section underneath it and the word stays put. */
.faq-section::before {
  content:'ASK'; position:absolute; right:-.04em;
  top:calc(var(--faq-closed-h, 100%) - .68em);
  font-family:'Bayon',sans-serif; font-size:clamp(160px,22vw,360px); line-height:.8;
  color:#f2f2f2; pointer-events:none; user-select:none; z-index:0;
}
.faq-section > * { position:relative; z-index:1; }
.faq-eyebrow { font-family:'Questrial',sans-serif; font-size:16px; font-weight:400; letter-spacing:3px; text-transform:uppercase; color:var(--b); display:flex; align-items:center; gap:10px; margin-bottom:15px; }
.faq-eyebrow::before { content:''; display:block; width:60px; height:1px; background:currentColor; flex-shrink:0; }
.faq-title { font-family:'Geist',sans-serif; font-weight:800; font-size:clamp(26px,3vw,44px); color:var(--k); margin-bottom:60px; }
.faq-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 80px; }
.faq-item { border-top:1px solid #e8e8e8; position:relative; transition:padding-left .25s ease; }
/* open question: yellow bar on the left edge, content nudges in */
.faq-item::before { content:''; position:absolute; left:0; top:0; bottom:0; width:0; background:var(--y); transition:width .25s ease; }
.faq-item.open { padding-left:18px; }
.faq-item.open::before { width:5px; }
/* faq-q is a <button> — reset browser defaults, then style.
   .faq-item .faq-q outranks button.faq-q { font:inherit } above, so Geist 800 holds. */
.faq-item .faq-q {
  appearance:none; -webkit-appearance:none;
  background:none; border:none; border-radius:0;
  font-family:'Geist',sans-serif; font-weight:800; font-size:15px;
  color:var(--k); line-height:1.3;
  padding:22px 0;
  width:100%;
  cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  user-select:none;
  text-align:left;
}
.faq-q:hover { color:var(--ch); }
.faq-item.open .faq-q, .faq-item.open .faq-q:hover { color:var(--b); }
/* hover: a 2px yellow line sweeps in under the question text.
   branding.js wraps the text in .faq-q-t so the line matches the words, not the row. */
.faq-q-t { background:linear-gradient(var(--y),var(--y)) no-repeat 0 100% / 0% 2px; padding-bottom:5px; transition:background-size .35s ease; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.faq-q:hover .faq-q-t, .faq-q:focus-visible .faq-q-t { background-size:100% 2px; }
.faq-q:focus-visible { outline:2px solid var(--b); outline-offset:2px; }
/* white plus in a blue circle; turns 45° into an × when open. The "+" in the
   HTML is hidden (font-size 0) and drawn with two bars so it sits dead center. */
.faq-icon { position:relative; width:28px; height:28px; border-radius:50%; background:var(--b); font-size:0; flex-shrink:0; transition:transform .3s; }
.faq-icon::before, .faq-icon::after { content:''; position:absolute; left:50%; top:50%; width:12px; height:2px; background:var(--w); transform:translate(-50%,-50%); }
.faq-icon::after { transform:translate(-50%,-50%) rotate(90deg); }
.faq-item.open .faq-icon { transform:rotate(45deg); }
.faq-a { max-height:0; overflow:hidden; font-size:15px; line-height:1.75; color:#777; transition:max-height .4s ease,padding .3s; }
.faq-item.open .faq-a { max-height:300px; padding-bottom:22px; }


/* ── Footer joins the FAQ cleanly ──
   These pages have a black page background, so the line above the footer
   shows as black here (white on the rest of the site). */
body:is(.te-branding-page, :has(.chapters-outer)) #sp-footer { border-top:0 !important; }


/* ══ RESPONSIVE ═══════════════════════════════════════════════════════════════ */

/* ── Tablet / small desktop (≤ 1024px) ── */
@media (max-width:1024px){
  .hook-section { padding:80px 32px; gap:48px; }
  .chapter { padding:80px 48px; }
  .chapters-left { padding:40px 28px; }
  .cta-section { padding:72px 32px; }
  .faq-section { padding:80px 32px; }
  .proc-hdr { padding:32px 32px 0; }
  .proc-track { padding:20px 32px; }
  .proc-pips { padding:0 32px 20px; }
}

/* ── Tablet portrait / large phone landscape (≤ 768px) ── */
@media (max-width:768px){
  .hook-section { grid-template-columns:1fr; gap:32px; padding:60px 20px; }
  .hook-stat-num { font-size:clamp(60px,14vw,100px); }
  .chapters-outer { flex-direction:column; align-items:stretch; }
  .chapters-left { display:none; }
  .chapter { padding:72px 28px; min-height:auto; }
  .ch-head br { display:none; }
  .signal-section { height:250vh; }
  /* Process: keep scroll-jack on mobile so vertical scroll drives horizontal card reveal */
  .proc-section { height:250vh; }
  .proc-hdr { padding:36px 20px 20px; }
  .proc-wrap { overflow-x:hidden; overflow-y:hidden; }
  .proc-track { gap:3px; padding:16px 20px; width:max-content; }
  .pcard { width:85vw; }
  .pcard-body { padding:18px 24px 22px; }
  .pcard-name { font-size:28px; }
  .para-section { --W:min(160px,26vw); }
  .para-title { font-size:clamp(22px,4.5vw,36px); }
  .cta-section { padding:72px 20px; flex-direction:column; align-items:flex-start; gap:28px; }
  .cta-line { font-size:clamp(30px,7vw,52px); }
  .faq-section { padding:72px 20px; }
  .faq-grid { grid-template-columns:1fr; gap:0; }
}

/* ── Phone portrait (≤ 480px) ── */
@media (max-width:480px){
  .hook-section { padding:48px 16px; }
  .signal-word { font-size:clamp(48px,15vw,130px); }
  .signal-para { font-size:15px; }
  .para-section { --W:min(130px,32vw); }
  /* Pull the outer columns in so the cards stay on screen.
     !important is needed to beat the inline left:% in the HTML. */
  .para-section #pi0, .para-section .vline:nth-child(1) { left:20% !important; }
  .para-section #pi1, .para-section .vline:nth-child(2) { left:35% !important; }
  .para-section #pi3, .para-section .vline:nth-child(4) { left:65% !important; }
  .para-section #pi4, .para-section .vline:nth-child(5) { left:80% !important; }
  .para-head { white-space:normal; text-align:center; width:90%; left:5%; transform:translateY(-50%); }
  .para-title { white-space:normal; font-size:clamp(20px,5.5vw,32px); }
  .pcard { width:calc(92vw - 16px); }
  .cta-line { font-size:clamp(26px,8.5vw,40px); }
  .cta-btn { width:100%; text-align:center; }
  .faq-section { padding:56px 16px; }
  .faq-item .faq-q { font-size:14px; }
}

/* ── iOS-safe touch behaviour ── */
.proc-sticky { -webkit-overflow-scrolling:touch; }
.para-sticky  { -webkit-overflow-scrolling:touch; }

/* ── Reduced motion: show all content at rest, skip transitions ──
   JS also checks prefers-reduced-motion and skips scroll-driven updates. */
@media (prefers-reduced-motion:reduce){
  .signal-word { transition:none; transform:scale(1) !important; }
  .signal-para { transition:none; opacity:1 !important; }
  /* Portfolio: no pinning, just one screen-tall panel */
  .para-section { height:auto !important; }
  .para-sticky { position:relative !important; top:auto; height:100vh; }
  .faq-a { transition:none; }
  .faq-icon { transition:none; }
  .faq-item, .faq-item::before, .faq-q-t { transition:none; }
}
