/* ============================================================
   ORANO · "How it works" as a pinned scroll story
   Replaces the five stacked stages with one sticky phone whose
   screen plays each step as you scroll. Same mechanics as the
   "understanding" scrub above it (sticky pin + one scroll pass).

   hiw.js sets, on [data-hiw]:
     --i     active step (0-4)
     --p     progress through the whole story (0-1)
     --sway  phone tilt in degrees
     --fit   phone scale for the available height
   and on every screen and segment:
     --t     progress through that step (0 before, 1 after)

   Without hiw.js (or with reduced motion) the steps become tabs
   and every screen shows its finished state.
   ============================================================ */

.home .hiw-section { padding-bottom: 0; }
.home .hiw-section > .sec-head { margin-bottom: clamp(8px, 2vw, 24px); }

.home .hiw { --i: 0; --p: 0; --sway: 0; --fit: 1; position: relative; }
.home .hiw.is-live { height: calc(5 * 78svh + 100svh); }
.home .hiw-pin { position: relative; }
.home .hiw.is-live .hiw-pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.home .hiw-grid {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  column-gap: clamp(24px, 5vw, 80px);
}
.home .hiw.is-live .hiw-grid { height: 100%; padding-top: var(--nav-h); }
.home .hiw.is-tabs .hiw-grid { padding-block: 40px var(--sec); }

/* ── Story segments (one per step, filled like Reel progress) ── */
/* The text column is exactly as tall as the phone: the segments line up
   with its top edge, the copy spreads down to its bottom edge. */
.home .hiw-side { display: flex; flex-direction: column; height: calc(628px * var(--fit)); }
.home .hiw.is-live .hiw-grid { align-items: center; }
.home .hiw-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.home .hiw-seg {
  display: grid; gap: 12px; justify-items: start;
  padding: 10px 0 6px;
  text-align: left; color: var(--t3);
  cursor: pointer;
  transition: color var(--d) var(--ease);
}
.home .hiw-seg:hover, .home .hiw-seg[aria-selected="true"] { color: #fff; }
.home .hiw-seg-bar { position: relative; width: 100%; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.home .hiw-seg-bar i {
  position: absolute; inset: 0;
  background: #fff;
  transform-origin: left; transform: scaleX(var(--t, 0));
}
.home .hiw-seg[aria-selected="true"] .hiw-seg-bar i { background: var(--red); box-shadow: 0 0 10px rgba(240, 68, 56, .8); }
.home .hiw-seg-label { font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.home .hiw-seg-label b { font-weight: 500; color: var(--red); margin-right: 4px; }

/* ── Step copy: all five share one cell, the active one rises in ── */
.home .hiw-copy { flex: 1; min-height: 0; display: grid; }
.home .hiw-step {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding-top: clamp(40px, 8vh, 88px);
}
.home .hiw-step > * {
  transition: opacity .55s var(--ease), transform .8s var(--ease-out), filter .55s var(--ease);
}
.home .hiw-step:not(.is-on) { pointer-events: none; }
.home .hiw-step:not(.is-on) > * { opacity: 0; transform: translateY(28px); filter: blur(6px); transition-delay: 0s; }
.home .hiw-step.is-past > * { transform: translateY(-28px); }
.home .hiw-step.is-on > :nth-child(2) { transition-delay: .06s; }
.home .hiw-step.is-on > :nth-child(3) { transition-delay: .14s; }
.home .hiw-step.is-on > :nth-child(4) { transition-delay: .22s; }
.home .hiw-step .step-num {
  font-family: var(--label); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.home .hiw-step h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -.04em;
  text-wrap: balance;
  max-width: 13ch;
}
.home .hiw-step p {
  margin-top: auto; padding-top: 24px; max-width: 40ch;
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; letter-spacing: -.01em;
  color: var(--t2);
  text-wrap: pretty;
}
/* Share / Paste link / Upload as icon cards */
.home .hiw-step .capture-options { width: min(100%, 470px); gap: 10px; margin-top: 24px; }
.home .hiw-step .capture-options span {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: start;
  gap: 18px 8px; min-height: 0;
  padding: 16px 16px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  transition: border-color var(--d) var(--ease), background var(--d) var(--ease);
}
.home .hiw-step .capture-options svg { width: 22px; height: 22px; color: #fff; }
.home .hiw-step .capture-options b { justify-self: end; font-size: 9px; }
.home .hiw-step .capture-options strong { grid-column: 1 / -1; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.home .hiw-step .capture-options span:last-child svg { color: var(--red); }
.home .hiw-step .capture-options span:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.home .hiw.is-tabs .hiw-step > * { transition: none; }

/* ── Visual column ── */
.home .hiw-visual {
  position: relative;
  height: min(calc(100svh - var(--nav-h) - 48px), 760px);
  display: grid; place-items: center start;
}
.home .hiw.is-tabs .hiw-visual { height: 700px; }

/* Big outlined step number behind the phone; the digit rolls. */
.home .hiw-num {
  position: absolute; right: 0; top: 50%;
  translate: 0 -54%;
  display: flex; align-items: baseline;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(240px, 27vw, 400px);
  line-height: 1; letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .2);
  user-select: none; pointer-events: none;
}
.home .hiw-num-col { display: inline-block; height: 1em; overflow: hidden; }
.home .hiw-num-roll { display: flex; flex-direction: column; transform: translateY(calc(var(--i) * -1em)); transition: transform 1s var(--ease-out); }
.home .hiw-num-roll span { height: 1em; }
.home .hiw-num-dot {
  width: .1em; height: .1em; margin-left: .02em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 .12em rgba(240, 68, 56, .6);
}

.home .hiw-glow {
  position: absolute; left: calc(145px * var(--fit) + 2%); top: 50%;
  width: min(560px, 90%); aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 68, 56, .2), rgba(240, 68, 56, .05) 42%, transparent 66%);
  pointer-events: none;
}
.home .hiw.is-flash .hiw-glow { animation: hiw-glow .9s var(--ease-out); }
@keyframes hiw-glow { 0% { scale: .9; opacity: .4; } 35% { scale: 1.08; opacity: 1; } 100% { scale: 1; opacity: 1; } }

/* The phone is laid out at a fixed size and scaled to fit, so the
   in-screen type keeps the proportions it was designed at. */
.home .hiw-phone-fit { position: relative; z-index: 2; margin-left: 2%; }
.home .hiw-phone {
  width: 290px; height: 628px;
  zoom: var(--fit);
  transform: translateY(calc(var(--sway) * 1.8px));
}
.home .hiw-phone .device {
  max-width: none; width: 290px; height: 628px;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(240, 68, 56, .35);
  border-color: rgba(255, 255, 255, .18);
}
.home .hiw-phone .device-screen { position: relative; }

/* ── Screens: one active, the rest parked above or below ── */
.home .hiw-screen {
  --t: 1;
  position: absolute; left: 0; right: 0; top: 40px; bottom: 0;
  transition: opacity .6s var(--ease), transform .8s var(--ease-out), filter .6s var(--ease);
}
.home .hiw-screen:not(.is-on) { opacity: 0; transform: translateY(14%) scale(.96); filter: blur(4px); pointer-events: none; }
.home .hiw-screen.is-past { transform: translateY(-10%) scale(.94); }
.home .hiw.is-tabs .hiw-screen { transition: opacity .3s var(--ease); }
.home .hiw.is-tabs .hiw-screen:not(.is-on) { transform: none; filter: none; }

/* red scan line that sweeps the screen when the step changes */
.home .hiw-scan {
  position: absolute; left: 0; right: 0; top: 0; z-index: 9;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px 2px rgba(240, 68, 56, .75);
  opacity: 0; pointer-events: none;
}
.home .hiw.is-flash .hiw-scan { animation: hiw-scan .9s var(--ease) forwards; }
@keyframes hiw-scan { 0% { top: 6%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: .9; } 100% { top: 100%; opacity: 0; } }

/* in-app screens: see the second half of this file */

/* ═══════════════ Tablet + phone: one column inside the pin ═══════════════ */
@media (max-width: 980px) {
  .home .hiw.is-live { height: calc(5 * 70svh + 100svh); }
  .home .hiw-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-width: 560px;
  }
  .home .hiw.is-live .hiw-grid { padding-block: calc(var(--nav-h) + 14px) 18px; }
  .home .hiw-side { display: contents; }
  .home .hiw-segs { grid-row: 1; margin-bottom: 6px; }
  .home .hiw-seg { gap: 8px; }
  .home .hiw-seg-label { font-size: 9px; letter-spacing: .08em; }
  .home .hiw-seg:not([aria-selected="true"]) .hiw-seg-label { font-size: 0; }
  .home .hiw-seg:not([aria-selected="true"]) .hiw-seg-label b { font-size: 9px; }
  .home .hiw-visual { grid-row: 2; height: 100%; min-height: 0; }
  .home .hiw.is-tabs .hiw-visual { height: 520px; }
  .home .hiw-copy { grid-row: 3; text-align: center; }
  .home .hiw-step { justify-self: center; align-items: center; padding-top: 14px; }
  .home .hiw-step .step-num { display: none; }
  .home .hiw-step h3 { font-size: clamp(24px, 6.4vw, 34px); max-width: 18ch; margin-inline: auto; }
  .home .hiw-step p { margin: 0 auto; padding-top: 10px; font-size: 14.5px; max-width: 36ch; }
  /* the three ways in become one row of icon pills */
  .home .hiw-step .capture-options { width: auto; display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .home .hiw-step .capture-options span { display: inline-flex; flex-direction: row; align-items: center; gap: 7px; padding: 8px 12px 8px 10px; border-radius: 999px; }
  .home .hiw-step .capture-options svg { width: 16px; height: 16px; }
  .home .hiw-step .capture-options b { display: none; }
  .home .hiw-step .capture-options strong { font-size: 12.5px; }
  .home .hiw-visual { place-items: center; }
  .home .hiw-phone-fit { margin-left: 0; }
  .home .hiw-glow { left: 50%; }
  .home .hiw-num { display: none; }
}
@media (max-width: 980px) and (max-height: 720px) {
  /* short phones: the heading names the step, the phone gets the room */
  .home .hiw-step p { display: none; }
  .home .hiw-step .capture-options { margin-top: 10px; }
}
@media (max-width: 560px) {
  /* the heading under the phone names the step; segments keep just the number */
  .home .hiw-seg[aria-selected="true"] .hiw-seg-label { font-size: 0; }
  .home .hiw-seg[aria-selected="true"] .hiw-seg-label b { font-size: 9px; }
}

/* ═══════════════ Reduced motion: still states only ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  .home .hiw-num-roll, .home .hiw-step > *, .home .hiw-screen { transition: none; }
}

/* ============================================================
   ORANO · in-phone screens rebuilt from the ORANO app
   Each .app is laid out at the app's own 390px width with the app's
   tokens (Inter body, Jost headings, #1A1A1A hairlines, 18px cards,
   #767676 subtle text) and zoomed into the 270px phone screen.
   Every value below is driven by the step's --t (0 → 1).
   ============================================================ */

.home .hiw-screen { overflow: hidden; }
.home .hiw-screen .app {
  position: absolute; left: 0; top: 0;
  width: 390px; height: 820px;
  zoom: calc(270 / 390);
  font-family: Inter, system-ui, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
.home .hiw-screen .app svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.home .hiw-screen .app-pad { padding: 0 20px 96px; display: flex; flex-direction: column; }
.home .hiw-screen .app-tabs { pointer-events: none; }
.home .app .ov { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: #767676; }
.home .app .h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.home .app .h3 { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.home .app .card { border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; padding: 16px; }
.home .app .sub { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #767676; }

/* ── App tab bar: Library · Grow · ORANO · Chat · Profile ── */
.home .app .tabs {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; padding: 16px 20px 32px;
  border-top: 1px solid #1a1a1a;
  background: #000;
}
.home .app .tabs .t { flex: 1; height: 30px; display: grid; place-items: center; }
.home .app .tabs .t:not(.swirl)::before {
  content: ""; width: 22px; height: 22px;
  background: #767676;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat;
}
.home .app .tabs .t.on::before { background: #fff; }
.home .app .tabs .t:nth-child(1) { --g: url("../assets/icons/app/library.svg"); }
.home .app .tabs .t:nth-child(2) { --g: url("../assets/icons/app/plant.svg"); }
.home .app .tabs .t:nth-child(4) { --g: url("../assets/icons/app/chat.svg"); }
.home .app .tabs .t:nth-child(5) { --g: url("../assets/icons/app/profile.svg"); }
.home .app .tabs .swirl img { width: 30px; height: 30px; opacity: .4; }
.home .app .tabs-dot {
  position: absolute; bottom: 18px;
  left: calc(20px + 70px * var(--at) + 33px);
  width: 4px; height: 4px; border-radius: 2px; background: #fff;
}

/* ═════════ 01 · share sheet → share extension ═════════ */
.home .s1-video { position: relative; margin: 14px 16px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.home .s1-video img { width: 100%; height: 100%; object-fit: cover; }
.home .s1-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); }
.home .s1-play svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 3px; }
.home .s1-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.home .s1-bar i { display: block; width: 38%; height: 100%; background: #fff; }
.home .s1-meta { padding: 14px 20px; }
.home .s1-meta strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.home .s1-meta small { display: block; margin-top: 4px; font-size: 13px; color: #8e8e93; }

.home .s1-sheet {
  --in: clamp(0, (var(--t) - .04) / .18, 1);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 36px;
  border-radius: 22px 22px 0 0;
  background: #1c1c1e;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, .5);
  transform: translateY(calc((1 - var(--in)) * 105%));
}
.home .s1-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.home .s1-head img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.home .s1-head div { flex: 1; min-width: 0; }
.home .s1-head strong { display: block; font-size: 15px; font-weight: 600; }
.home .s1-head small { display: block; margin-top: 2px; font-size: 13px; color: #8e8e93; }
.home .s1-close { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2c2c2e; color: #a1a1a6; }
.home .s1-close svg { width: 15px !important; height: 15px !important; stroke-width: 2.6 !important; }
.home .s1-apps { display: flex; justify-content: space-between; padding: 18px 6px 16px; }
.home .s1-app { position: relative; width: 72px; display: grid; justify-items: center; gap: 7px; }
.home .s1-app small { font-size: 11px; color: rgba(255, 255, 255, .85); }
.home .s1-icon { width: 62px; height: 62px; border-radius: 15px; display: grid; place-items: center; overflow: hidden; }
.home .s1-icon svg { width: 34px !important; height: 34px !important; }
.home .s1-app.is-orano .s1-icon {
  --x: clamp(0, (var(--t) - .3) / .07, 1);
  --y: clamp(0, (var(--t) - .37) / .07, 1);
  background: #000; border: 1px solid rgba(255, 255, 255, .16);
  transform: scale(calc(1 - (var(--x) - var(--y)) * .12));
}
.home .s1-app.is-orano .s1-icon img { width: 42px; height: 42px; }
.home .s1-icon.is-airdrop { background: linear-gradient(180deg, #4fb4ff, #0a6cff); color: #fff; }
.home .s1-icon.is-messages { background: linear-gradient(180deg, #6ee77d, #28c840); }
.home .s1-icon.is-notes { background: linear-gradient(180deg, #ffd84d 0 26%, #fbfbf8 26%); place-items: start stretch; }
.home .s1-icon.is-notes i { margin: 28px 10px 0; height: 20px; background: repeating-linear-gradient(180deg, #d4d4cf 0 1.5px, transparent 1.5px 7px); }
.home .s1-ripple {
  --x: clamp(0, (var(--t) - .3) / .14, 1);
  position: absolute; left: 50%; top: 31px;
  width: 62px; height: 62px; margin: -31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(calc(.3 + var(--x) * 1.6));
  opacity: calc((1 - var(--x)) * min(1, var(--x) * 10));
  pointer-events: none;
}
.home .s1-actions { border-radius: 12px; background: #2c2c2e; }
.home .s1-actions div { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 16px; font-size: 16px; }
.home .s1-actions div + div { border-top: 1px solid rgba(255, 255, 255, .1); }

.home .s1-ext {
  --x: clamp(0, (var(--t) - .44) / .07, 1);
  --saved: clamp(0, (var(--t) - .64) / .05, 1);
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px; text-align: center;
  background: #000;
  opacity: var(--x);
}
.home .s1-ext strong { font-size: 20px; font-weight: 600; line-height: 30px; }
.home .s1-ext-saving { opacity: calc(1 - var(--saved)); }
.home .s1-ext-saved { margin-top: -30px; opacity: var(--saved); }
.home .s1-ext small { margin-top: 8px; max-width: 90%; font-size: 13px; color: #5f5f5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ═════════ 02 · Live processing ═════════ */
.home .s2-head { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.home .s2-head .h2 { margin-top: 6px; font-size: 22px; }
.home .s2-close { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; }
.home .s2-close svg { width: 21px !important; height: 21px !important; }
.home .s2-summary { margin-top: 18px; padding: 16px; border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; }
.home .s2-current { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.home .s2-spin {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid rgba(138, 138, 138, .25); border-top-color: #8a8a8a;
  animation: s2-spin .8s linear infinite;
  opacity: calc(1 - clamp(0, (var(--t) - .68) * 30, 1));
}
@keyframes s2-spin { to { transform: rotate(360deg); } }
.home .s2-status { flex: 1; display: grid; font-size: 13px; line-height: 1.45; color: #8a8a8a; }
.home .s2-status span {
  grid-area: 1 / 1;
  opacity: calc(clamp(0, (var(--t) - .04 - var(--k) * .16) * 30, 1) - clamp(0, (var(--t) - .2 - var(--k) * .16) * 30, 1));
}
.home .s2-status span:last-child { opacity: clamp(0, (var(--t) - .68) * 30, 1); color: #fff; }
.home .s2-ov { margin-top: 18px; }
.home .s2-events { margin-top: 10px; }
.home .s2-event {
  --v: clamp(0, (var(--t) - .04 - var(--k) * .16) / .05, 1);
  --next: clamp(0, (var(--t) - .2 - var(--k) * .16) / .05, 1);
  display: flex; gap: 8px;
  opacity: var(--v);
  transform: translateY(calc((1 - var(--v)) * 10px));
}
.home .s2-event:last-child { --next: 0; }
.home .s2-rail { width: 18px; display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.home .s2-rail i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, #fff calc((var(--v) - var(--next)) * 100%), #767676); }
.home .s2-rail b { flex: 1; width: 1px; margin: 2px 0; background: #1a1a1a; }
.home .s2-event:last-child .s2-rail b { display: none; }
.home .s2-event > div { flex: 1; padding-bottom: 14px; }
.home .s2-event strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; }
.home .s2-event small { display: block; margin-top: 3px; font-size: 13px; color: #767676; }
.home .s2-foot { margin-top: 18px; font-size: 13px; line-height: 18px; color: #767676; }

/* ═════════ 03 · Project → Action Plan ═════════ */
.home .s3-hero { position: relative; height: 196px; overflow: hidden; }
/* a clean frame from the video (no baked-in lettering under the title) */
.home .s3-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.home .s3-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); }
.home .s3-btn { position: absolute; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; }
.home .s3-btn svg { width: 19px !important; height: 19px !important; }
.home .s3-back { left: 16px; top: 16px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); }
.home .s3-trash { right: 16px; top: 16px; border-radius: 50%; background: #fff; color: #000; }
.home .s3-open { right: 16px; bottom: 14px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .22); }
.home .s3-title { position: absolute; z-index: 1; left: 20px; bottom: 20px; font-family: var(--display); font-size: 19px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.home .s3-seg { display: flex; gap: 4px; margin: 18px 0 16px; padding: 7px; border: 1px solid #1a1a1a; border-radius: 18px; }
.home .s3-seg span { flex: 1; padding: 12px 0; border-radius: 13px; text-align: center; font-size: 13.5px; color: #767676; }
.home .s3-seg span.on { background: #fff; color: #000; font-weight: 500; }
.home .s3-summary { padding: 16px; border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; font-size: 15.5px; line-height: 1.55; color: #8a8a8a; }
.home .s3-h { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.home .s3-scroll .s3-h { margin: 22px 0 12px; }
.home .s3-link { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; color: #8a8a8a; }
.home .s3-link svg { width: 16px !important; height: 16px !important; }
.home .s3-link div { flex: 1; }
.home .s3-link strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.home .s3-link small { display: block; margin-top: 3px; font-size: 13px; color: #767676; }
.home .s3-practice { display: flex; align-items: center; justify-content: space-between; }
.home .s3-send { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 13px; color: #a3a3a3; }
.home .s3-send svg { width: 14px !important; height: 14px !important; }
.home .s3-tasks { display: grid; gap: 10px; }
.home .s3-task {
  --x: clamp(0, (var(--t) - .42 - var(--k) * .16) / .05, 1);
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px solid #1a1a1a; border-radius: 18px; background: #050505;
}
.home .s3-task.is-open { --x: 0; }
.home .s3-task > div { flex: 1; min-width: 0; }
.home .s3-task strong {
  font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.3;
  color: color-mix(in srgb, #767676 calc(var(--x) * 100%), #fff);
  background: linear-gradient(currentColor, currentColor) 0 60% / calc(var(--x) * 100%) 1.5px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.home .s3-task small { display: grid; margin-top: 4px; font-size: 13px; color: #767676; }
.home .s3-task small > span { grid-area: 1 / 1; }
.home .s3-open-l { opacity: calc(1 - var(--x)); }
.home .s3-done-l { opacity: var(--x); }
.home .s3-num { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid #2a2a2a; display: grid; place-items: center; font-size: 12px; color: #767676; }
.home .s3-num b { font-weight: 500; opacity: calc(1 - var(--x)); }
.home .s3-num svg { position: absolute; width: 13px !important; height: 13px !important; opacity: var(--x); }
.home .s3-chk { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid #3a3a3a; display: grid; place-items: center; background: rgba(255, 255, 255, var(--x)); color: #000; }
.home .s3-chk svg { width: 15px !important; height: 15px !important; stroke-width: 2.6 !important; opacity: var(--x); transform: scale(calc(.5 + var(--x) * .5)); }

/* ═════════ 04 · Orano Chat ═════════ */
.home .s4-head { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.home .s4-head .h2 { font-size: 22px; }
.home .s4-voice { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 13.5px; }
.home .s4-voice svg { width: 17px !important; height: 17px !important; }
.home .hiw-s4 .app-pad { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.home .s4-empty, .home .s4-thread { grid-row: 2; grid-column: 1; }
.home .s4-empty {
  --out: clamp(0, (var(--t) - .08) / .07, 1);
  align-self: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: calc(1 - var(--out));
  transform: scale(calc(1 - var(--out) * .04));
}
.home .s4-logo { width: 88px; height: 88px; }
.home .s4-logo img { width: 100%; height: 100%; animation: s4-spin 18s linear infinite; }
@keyframes s4-spin { to { transform: rotate(360deg); } }
.home .s4-empty h5 { margin-top: 40px; font-family: var(--display); font-size: 25px; font-weight: 600; }
.home .s4-empty p { margin-top: 10px; max-width: 270px; font-size: 15px; line-height: 1.45; color: #8a8a8a; }
.home .s4-sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 24px; text-align: left; }
.home .s4-sugg span { position: relative; min-height: 78px; padding: 12px 12px 26px; border: 1px solid #1a1a1a; border-radius: 14px; font-size: 13px; line-height: 1.35; }
.home .s4-sugg svg { position: absolute; right: 10px; bottom: 10px; width: 13px !important; height: 13px !important; color: #767676; }
.home .s4-thread { align-self: start; display: flex; flex-direction: column; padding-top: 22px; }
.home .s4-q {
  --x: clamp(0, (var(--t) - .14) / .06, 1);
  align-self: flex-end;
  max-width: 80%; padding: 11px 15px;
  border-radius: 18px; background: #161616;
  font-size: 15px; line-height: 1.4;
  opacity: var(--x); transform: translateY(calc((1 - var(--x)) * 14px));
}
.home .s4-a { margin-top: 24px; font-size: 15.5px; line-height: 1.6; color: #8a8a8a; }
.home .s4-a .w { opacity: clamp(0, (var(--t) - .22 - var(--w) * .012) * 25, 1); }
.home .s4-a strong { color: #fff; font-weight: 600; }
.home .s4-projects {
  --x: clamp(0, (var(--t) - .66) / .07, 1);
  margin-top: 26px;
  opacity: var(--x); transform: translateY(calc((1 - var(--x)) * 14px));
}
.home .s4-card { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 11px 14px 11px 11px; border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; }
.home .s4-card-logo { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #000; border: 1px solid #1f1f1f; }
.home .s4-card-logo img { width: 30px; height: 30px; }
.home .s4-card div { flex: 1; }
.home .s4-card small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #767676; }
.home .s4-card strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; }
.home .s4-card svg { width: 17px !important; height: 17px !important; color: #a3a3a3; }
.home .s4-input { display: flex; align-items: center; gap: 12px; padding: 13px 13px 13px 16px; border: 1px solid #1a1a1a; border-radius: 18px; background: #050505; font-size: 16px; color: #767676; }
.home .s4-input span:first-of-type { flex: 1; }
.home .s4-input > svg { width: 19px !important; height: 19px !important; }
.home .s4-send { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #5a5a5a; display: grid; place-items: center; color: #a3a3a3; }
.home .s4-send svg { width: 15px !important; height: 15px !important; }

/* ═════════ 05 · Connect your AI ═════════ */
.home .hiw-s5 .app-pad { padding-top: 10px; }
.home .s5-back { display: inline-flex; align-items: center; gap: 2px; margin-left: -4px; font-size: 16px; }
.home .s5-title { margin-top: 8px; font-size: 22px; }
.home .s5-intro { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #767676; }
.home .s5-mcp { margin-top: 16px; }
.home .s5-ov { display: block; margin: 14px 0 6px; }
.home .s5-copy { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #1a1a1a; border-radius: 12px; }
.home .s5-copy code { flex: 1; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: #fff; }
.home .s5-copy-ic { --c: clamp(0, (var(--t) - .16) / .05, 1); display: grid; color: #767676; }
.home .s5-copy-ic svg { grid-area: 1 / 1; width: 16px !important; height: 16px !important; }
.home .s5-copy-ic .a { opacity: calc(1 - var(--c)); }
.home .s5-copy-ic .b { opacity: var(--c); color: #fff; }
.home .s5-status {
  --s1: clamp(0, (var(--t) - .28) / .05, 1);
  --s2: clamp(0, (var(--t) - .48) / .05, 1);
  display: grid; margin-top: 12px; padding: 12px;
  border: 1px solid #1a1a1a; border-radius: 12px;
}
.home .s5-st { grid-area: 1 / 1; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.45; color: #fff; }
.home .s5-st svg { width: 15px !important; height: 15px !important; color: #767676; }
.home .s5-st-0 { opacity: calc(1 - var(--s1)); }
.home .s5-st-1 { opacity: calc(var(--s1) - var(--s2)); }
.home .s5-st-2 { opacity: var(--s2); }
.home .s5-st-2 svg { color: #fff; }
.home .s5-status small { grid-row: 2; margin: 2px 0 0 23px; font-size: 13px; line-height: 1.45; color: #767676; }
.home .s5-keys-ov { margin-top: 20px; margin-bottom: 12px; }
.home .s5-key {
  --x: clamp(0, (var(--t) - .6) / .07, 1);
  opacity: var(--x); transform: translateY(calc((1 - var(--x)) * 14px));
}
.home .s5-key strong { display: block; font-size: 16px; font-weight: 500; }
.home .s5-key small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #767676; }

@media (prefers-reduced-motion: reduce) {
  .home .s2-spin, .home .s4-logo img { animation: none; }
}
