/* Shared Editorial Scroll Choreography — Homepage (Tier 1 Flagship) & FUE (Tier 2 Clinical Workhorse)
   Graphite & Platinum Swiss medical monograph aesthetic with pinned aperture-expand hero,
   scroll-linked word illumination, depth parallax, and pinned horizontal procedure-day filmstrip. */

/* ---- 1. Pinned Split-Headline Aperture-Expand Hero ---- */
.fue-ed-runway{
  position:relative;
  height:270vh;
  background:#0D0F12;
  color:#F4F5F7;
}
.fue-ed-runway.is-tight{
  height:215vh;
}
.fue-ed-sticky{
  position:sticky;
  top:80px;
  height:calc(100vh - 80px);
  width:100%;
  overflow:hidden;
  background:#0D0F12;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:0;
  --clip-y:16%;
  --clip-x:36.5%;
  --img-scale:1.18;
  --img-y:0px;
  --word-shift:0vw;
  --word-opacity:1;
  --eyebrow-opacity:1;
  --cue-opacity:1;
  --reveal-opacity:0;
  --reveal-y:32px;
  --scrim-opacity:0;
}

.fue-ed-topmeta{
  position:absolute;
  top:clamp(14px,2.2vh,26px);
  left:0;
  right:0;
  z-index:8;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:0 24px;
  text-align:center;
  opacity:var(--eyebrow-opacity);
  transform:translate3d(0,calc((1 - var(--eyebrow-opacity)) * -18px),0);
  pointer-events:auto;
  will-change:transform,opacity;
}
.fue-ed-eyebrow{
  margin:0;
  font-size:11px;
  line-height:16px;
  font-weight:500;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#D9DDE2;
}

.fue-ed-skip{
  position:absolute;
  top:clamp(14px,2.2vh,24px);
  right:clamp(16px,3.2vw,44px);
  z-index:14;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:0 14px;
  background:rgba(13,15,18,.68);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid #2E333A;
  color:#D9DDE2;
  font-family:'Brother 1816','Helvetica Neue',Helvetica,Arial,sans-serif;
  font-size:10px;
  font-weight:500;
  letter-spacing:.2em;
  text-transform:uppercase;
  cursor:pointer;
  transition:border-color .2s var(--ease),color .2s var(--ease),opacity .3s var(--ease);
}
.fue-ed-skip:hover{color:#FFFFFF;border-color:#A7AEB6}
.fue-ed-skip.is-hidden{opacity:0;pointer-events:none}

/* Full cinematic frame clipped dynamically from tight center portrait to widescreen */
.fue-ed-stage{
  position:relative;
  width:min(96vw,1540px);
  height:min(76vh,730px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.fue-ed-aperture{
  position:absolute;
  inset:0;
  overflow:hidden;
  background:#171A1F;
  clip-path:inset(var(--clip-y) var(--clip-x) var(--clip-y) var(--clip-x));
  will-change:clip-path;
}
.fue-ed-aperture img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 48%;
  display:block;
  transform:translate3d(0,var(--img-y),0) scale(var(--img-scale));
  will-change:transform;
}
.fue-ed-scrim{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(13,15,18,.14) 0%,rgba(13,15,18,.06) 32%,rgba(13,15,18,.68) 58%,rgba(13,15,18,.90) 80%,rgba(13,15,18,.96) 100%);
  opacity:var(--scrim-opacity);
  pointer-events:none;
  will-change:opacity;
}

/* Precision hairline architectural frame + corner crosshairs tracking the opening aperture */
.fue-ed-frame{
  position:absolute;
  top:var(--clip-y);
  right:var(--clip-x);
  bottom:var(--clip-y);
  left:var(--clip-x);
  border:1px solid rgba(244,245,247,.22);
  pointer-events:none;
  z-index:6;
}
.fue-ed-frame::before,
.fue-ed-frame::after{
  content:'';
  position:absolute;
  width:18px;
  height:18px;
  border-color:#D9DDE2;
  border-style:solid;
}
.fue-ed-frame::before{
  top:-7px;
  left:-7px;
  border-width:1px 0 0 1px;
}
.fue-ed-frame::after{
  right:-7px;
  bottom:-7px;
  border-width:0 1px 1px 0;
}

/* Split monumental display words pushed outward to viewport edges on scroll */
.fue-ed-words{
  position:absolute;
  inset:0;
  z-index:10;
  display:grid;
  grid-template-columns:1fr minmax(210px,26vw) 1fr;
  align-items:center;
  pointer-events:none;
  padding:0 clamp(16px,2vw,32px);
}
.fue-ed-word{
  margin:0;
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
  font-size:clamp(54px,7.8vw,134px);
  line-height:.94;
  letter-spacing:-.015em;
  white-space:nowrap;
  user-select:none;
  opacity:var(--word-opacity);
  will-change:transform,opacity;
}
.fue-ed-word-l{
  justify-self:end;
  padding-right:clamp(22px,3.2vw,54px);
  font-weight:600;
  text-transform:uppercase;
  color:#FFFFFF;
  transform:translate3d(calc(var(--word-shift) * -1),0,0);
}
.fue-ed-word-r{
  grid-column:3;
  justify-self:start;
  padding-left:clamp(22px,3.2vw,54px);
  font-weight:400;
  font-style:italic;
  color:#E5DDD0;
  transform:translate3d(var(--word-shift),0,0);
}

/* Initial bottom scroll prompt (fades out early in scroll) */
.fue-ed-cue{
  position:absolute;
  bottom:clamp(46px,6vh,64px);
  left:0;
  right:0;
  z-index:9;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:0 20px;
  text-align:center;
  opacity:var(--cue-opacity);
  transform:translate3d(0,calc((1 - var(--cue-opacity)) * 14px),0);
  pointer-events:none;
  will-change:transform,opacity;
}
.fue-ed-cue-sub{
  margin:0;
  font-size:13px;
  line-height:20px;
  font-weight:300;
  letter-spacing:.04em;
  color:#A7AEB6;
}
.fue-ed-cue-bar{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:10px;
  line-height:14px;
  font-weight:500;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:#F4F5F7;
}
.fue-ed-cue-line{
  width:1px;
  height:22px;
  background:linear-gradient(180deg,#FFFFFF 0%,rgba(255,255,255,.12) 100%);
  animation:fueCuePulse 2s ease-in-out infinite;
}
@keyframes fueCuePulse{
  0%,100%{transform:scaleY(1);opacity:.95}
  50%{transform:scaleY(.55);opacity:.45}
}

/* Expanded cinema lower-third editorial reveal (arrives at p >= 0.65) */
.fue-ed-reveal{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:12;
  padding:clamp(24px,3.6vw,44px) clamp(22px,4vw,56px) clamp(22px,3vw,36px);
  display:flex;
  flex-direction:column;
  gap:clamp(16px,2.2vw,26px);
  opacity:var(--reveal-opacity);
  transform:translate3d(0,var(--reveal-y),0);
  pointer-events:none;
  will-change:transform,opacity;
}
.fue-ed-reveal.is-interactive{pointer-events:auto}
.fue-ed-reveal-top{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px 40px;
}
.fue-ed-reveal-title{
  flex:1 1 460px;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.fue-ed-h1{
  margin:0;
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
  font-weight:600;
  font-size:clamp(28px,3.6vw,52px);
  line-height:1.08;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:#FFFFFF;
  text-wrap:balance;
}
.fue-ed-h1 em{
  font-style:italic;
  font-weight:400;
  text-transform:none;
  color:#E5DDD0;
}
.fue-ed-lead{
  margin:0;
  max-width:44em;
  font-size:clamp(15px,1.25vw,18px);
  line-height:1.58;
  font-weight:300;
  color:#D9DDE2;
  text-wrap:pretty;
}
.fue-ed-ctas{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
}
.fue-ed-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px 24px;
  padding-top:16px;
  border-top:1px solid rgba(244,245,247,.18);
}
.fue-ed-metric{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.fue-ed-metric-k{
  font-size:10px;
  line-height:14px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#A7AEB6;
}
.fue-ed-metric-v{
  font-size:15px;
  line-height:21px;
  font-weight:400;
  color:#FFFFFF;
}

/* Subtle telemetry progress pill bottom-right of sticky viewport */
.fue-ed-hud{
  position:absolute;
  right:clamp(18px,3.2vw,44px);
  bottom:14px;
  z-index:13;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:10px;
  line-height:14px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#7E8690;
  pointer-events:none;
}
.fue-ed-hud-bar{
  width:52px;
  height:1px;
  background:#2E333A;
  overflow:hidden;
}
.fue-ed-hud-bar>span{
  display:block;
  height:100%;
  width:100%;
  background:#F4F5F7;
  transform-origin:0 50%;
  transform:scaleX(0);
}

/* ---- 2. Scroll-Linked Editorial Manifesto Word Reveal ---- */
.fue-manifesto{
  background:#FFFFFF;
  color:#111317;
  border-bottom:1px solid #D5D9DE;
}
.fue-manifesto-in{
  max-width:1160px;
  margin:0 auto;
  padding:clamp(72px,10vw,144px) clamp(16px,4vw,48px);
  display:flex;
  flex-direction:column;
  gap:clamp(32px,4vw,48px);
}
.fue-manifesto-quote{
  margin:0;
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
  font-weight:500;
  font-size:clamp(26px,3.6vw,48px);
  line-height:1.28;
  letter-spacing:-.005em;
  color:#111317;
  max-width:26ch;
  text-wrap:balance;
}
html.has-motion .fue-manifesto-quote .w-tok{
  color:#C5CBD1;
  transition:color .28s var(--ease);
}
html.has-motion .fue-manifesto-quote .w-tok.is-lit{
  color:#111317;
}
.fue-manifesto-quote em{
  font-style:italic;
  font-weight:400;
}
.fue-manifesto-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 36px;
  padding-top:28px;
  border-top:1px solid #D5D9DE;
}

/* ---- 3. Depth-Layered Sticky Anatomy Dossier ---- */
.fue-dossier-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  gap:clamp(32px,4.8vw,72px);
  align-items:start;
}
.fue-dossier-sticky{
  position:sticky;
  top:96px;
}
[data-parallax]{
  will-change:transform;
}

/* ---- 4. Pinned Horizontal Procedure-Day Filmstrip (#day) ---- */
.fue-day-runway{
  position:relative;
  height:230vh;
  background:#0D0F12;
  color:#F4F5F7;
}
.fue-day-sticky,
html.has-motion .fue-day-sticky.sr-reveal{
  position:sticky;
  top:0;
  height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:88px 0 36px;
  gap:clamp(22px,3vh,36px);
  opacity:1 !important;
  transform:none !important;
  transition:none !important;
}
.fue-day-head{
  max-width:1280px;
  width:100%;
  margin:0 auto;
  padding:0 clamp(16px,4vw,48px);
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px 40px;
}
.fue-day-viewport{
  width:100%;
  overflow:hidden;
  padding:6px 0;
}
.fue-day-track{
  display:flex;
  gap:clamp(16px,2vw,26px);
  padding:0 clamp(16px,4vw,48px);
  width:max-content;
  will-change:transform;
}
.fue-day-card{
  position:relative;
  flex:0 0 clamp(290px,28vw,380px);
  min-height:clamp(250px,34vh,330px);
  padding:clamp(24px,2.6vw,34px);
  background:#171A1F;
  border:1px solid #23272E;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  overflow:hidden;
  transition:border-color .28s var(--ease),background-color .28s var(--ease);
}
.fue-day-card.is-featured{
  background:#F4F5F7;
  color:#111317;
  border-color:#F4F5F7;
}
.fue-day-card.is-active{
  border-color:#A7AEB6;
}
.fue-day-card-num{
  position:absolute;
  right:18px;
  bottom:-14px;
  font-family:'Playfair Display',Georgia,serif;
  font-size:112px;
  line-height:1;
  font-weight:600;
  color:rgba(255,255,255,.045);
  pointer-events:none;
  user-select:none;
}
.fue-day-card.is-featured .fue-day-card-num{
  color:rgba(13,15,18,.07);
}
.fue-day-ruler{
  max-width:1280px;
  width:100%;
  margin:0 auto;
  padding:0 clamp(16px,4vw,48px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.fue-day-prog{
  flex:1;
  height:2px;
  background:#23272E;
  position:relative;
  overflow:hidden;
}
.fue-day-prog>span{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#7E8690,#FFFFFF);
  transform-origin:0 50%;
  transform:scaleX(0.12);
  will-change:transform;
}
.fue-day-controls{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.fue-day-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  background:transparent;
  border:1px solid #2E333A;
  color:#F4F5F7;
  font-size:16px;
  cursor:pointer;
  transition:border-color .18s var(--ease),background-color .18s var(--ease);
}
.fue-day-btn:hover{border-color:#FFFFFF;background:rgba(255,255,255,.06)}

/* ---- 5. Homepage Manifesto + Portrait & Fig. 1 Spread ---- */
.home-intro-grid{
  max-width:1280px;
  margin:0 auto;
  padding:clamp(72px,9vw,132px) clamp(16px,4vw,48px);
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  gap:clamp(36px,5vw,72px);
  align-items:center;
}
.home-intro-visuals{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(14px,1.8vw,22px);
  align-items:end;
}

/* ---- 6. Tier 2 Unpinned Architectural Monograph Hero (/follicular-unit-extraction) ---- */
.fue-arch-hero{
  background:#0D0F12;
  color:#F4F5F7;
  border-bottom:1px solid #23272E;
}
.fue-arch-in{
  max-width:1280px;
  margin:0 auto;
  padding:clamp(32px,4.5vw,56px) clamp(16px,4vw,48px) clamp(32px,4vw,48px);
  display:flex;
  flex-direction:column;
  gap:clamp(28px,3.6vw,44px);
}
.fue-arch-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 24px;
  padding-bottom:18px;
  border-bottom:1px solid #23272E;
}
.fue-arch-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(0,.88fr);
  gap:clamp(28px,4vw,56px);
  align-items:center;
}
.fue-arch-copy{
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}
.fue-arch-h1{
  margin:0;
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
  font-weight:600;
  font-size:clamp(34px,4.4vw,60px);
  line-height:1.06;
  letter-spacing:.01em;
  color:#FFFFFF;
  text-wrap:balance;
}
.fue-arch-h1 em{
  font-style:italic;
  font-weight:400;
  color:#D9DDE2;
}
.fue-arch-lead{
  margin:0;
  font-size:clamp(16px,1.45vw,19px);
  line-height:1.58;
  font-weight:300;
  color:#D9DDE2;
  max-width:46ch;
  text-wrap:pretty;
}
.fue-arch-plate{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  background:#14171C;
  border:1px solid #23272E;
}
.fue-arch-frame{
  position:relative;
  aspect-ratio:16/10;
  background:#0D0F12;
  overflow:hidden;
}
.fue-arch-frame img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  display:block;
}
.fue-arch-frame::after{
  content:'';
  position:absolute;
  inset:10px;
  border:1px solid rgba(244,245,247,.22);
  pointer-events:none;
}
.fue-arch-cap{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  font-size:10px;
  line-height:15px;
  font-weight:500;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#A7AEB6;
}
.fue-arch-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px 24px;
  padding-top:22px;
  border-top:1px solid #23272E;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width:1023px){
  .fue-dossier-grid,.home-intro-grid,.fue-arch-grid{grid-template-columns:minmax(0,1fr)}
  .fue-dossier-sticky{position:static}
  .fue-ed-metrics,.fue-arch-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:899px){
  .fue-ed-runway{height:185vh}
  .fue-ed-runway.is-tight{height:158vh}
  .fue-ed-sticky{
    top:66px;
    height:calc(100vh - 130px);
    padding:0;
    --clip-y:22%;
    --clip-x:16%;
  }
  .fue-ed-stage{
    width:92vw;
    height:min(82%,540px);
  }
  .fue-ed-words{
    grid-template-columns:1fr;
    grid-template-rows:1fr min(42vh,300px) 1fr;
    justify-items:center;
    padding:0 16px;
  }
  .fue-ed-word{font-size:clamp(42px,12vw,68px)}
  .fue-ed-word-l{
    justify-self:center;
    align-self:end;
    padding:0 0 14px 0;
  }
  .fue-ed-word-r{
    grid-column:1;
    grid-row:3;
    justify-self:center;
    align-self:start;
    padding:14px 0 0 0;
  }
  .fue-ed-skip{display:none}
  .fue-ed-topmeta{top:10px;gap:4px}
  .fue-ed-eyebrow{font-size:10px;letter-spacing:.2em}
  .fue-ed-cue{bottom:8px;gap:6px}
  .fue-ed-cue-sub{display:none}
  .fue-ed-reveal{padding:18px 16px 18px;gap:14px}
  .fue-ed-reveal-top{gap:14px}
  .fue-ed-h1{font-size:clamp(24px,6.8vw,34px)}
  .fue-ed-lead{font-size:13.5px;line-height:1.45}
  .fue-ed-ctas{gap:8px}
  .fue-ed-ctas a{min-height:44px !important;padding:0 16px !important;font-size:11px !important;letter-spacing:.12em !important}
  .fue-ed-metrics{display:none}
  .fue-ed-hud{display:none}

  /* Mobile horizontal snap rail instead of vertical pin */
  .fue-day-runway{height:auto}
  .fue-day-sticky,
  html.has-motion .fue-day-sticky.sr-reveal{position:static;height:auto;padding:64px 0}
  .fue-day-viewport{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .fue-day-track{transform:none !important;padding-bottom:8px}
  .fue-day-card{scroll-snap-align:start;flex:0 0 82vw;min-height:240px}
  .fue-day-ruler{display:none}
}

/* ---- Reduced Motion & No-JS Progressive Fallback ---- */
html:not(.has-ed-motion) .fue-ed-runway,
html:not(.has-ed-motion) .fue-day-runway{height:auto}
html:not(.has-ed-motion) .fue-ed-sticky{
  position:relative;
  height:auto;
  min-height:82vh;
  padding:96px 0 40px;
  --clip-y:0% !important;
  --clip-x:0% !important;
  --img-scale:1 !important;
  --img-y:0px !important;
  --word-opacity:0 !important;
  --eyebrow-opacity:1 !important;
  --cue-opacity:0 !important;
  --reveal-opacity:1 !important;
  --reveal-y:0px !important;
  --scrim-opacity:1 !important;
}
html:not(.has-ed-motion) .fue-ed-reveal{pointer-events:auto;position:relative;margin-top:auto}
html:not(.has-ed-motion) .fue-ed-skip,
html:not(.has-ed-motion) .fue-ed-hud{display:none}
html:not(.has-ed-motion) .fue-day-sticky{position:static;height:auto;padding:64px 0}
html:not(.has-ed-motion) .fue-day-viewport{overflow-x:auto}
html:not(.has-ed-motion) .fue-day-ruler{display:none}

@media (prefers-reduced-motion:reduce){
  .fue-ed-runway,.fue-day-runway{height:auto !important}
  .fue-ed-sticky{
    position:relative !important;
    height:auto !important;
    min-height:82vh;
    padding:96px 0 40px;
    --clip-y:0% !important;
    --clip-x:0% !important;
    --img-scale:1 !important;
    --img-y:0px !important;
    --word-opacity:0 !important;
    --eyebrow-opacity:1 !important;
    --cue-opacity:0 !important;
    --reveal-opacity:1 !important;
    --reveal-y:0px !important;
    --scrim-opacity:1 !important;
  }
  .fue-ed-reveal{pointer-events:auto !important}
  .fue-ed-skip,.fue-ed-hud,.fue-ed-cue-line{display:none !important}
  .fue-manifesto-quote .w-tok{color:#111317 !important;transition:none !important}
  .fue-day-sticky{position:static !important;height:auto !important;padding:64px 0}
  .fue-day-viewport{overflow-x:auto}
  .fue-day-track{transform:none !important}
  .fue-day-ruler{display:none !important}
  [data-parallax]{transform:none !important}
}
