/* L'amande — site
   Layout concept: a black field cut by panes of fluted glass; text anchored to corners like a technical sheet;
   one coral point per screen. 12-column grid, generous gutter. */
:root {
  --ink: #09080D;
  --ink-2: #0E0D14;
  --navy: #0B1745;
  --deep: #0619A8;
  --blue: #1236E4;
  --sky: #9DB0FF;
  --mist: #F2F3F5;
  --mute: rgba(242, 243, 245, .62);
  --faint: rgba(242, 243, 245, .38);
  --line: rgba(242, 243, 245, .16);
  --coral: #EA906C;
  --f: "STC", "Segoe UI", Tahoma, Arial, sans-serif;
  --g: clamp(16px, 4vw, 56px);
  --col: calc((100vw - 2 * var(--g)) / 12);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
@font-face { font-family: "STC"; src: url("../fonts/STC-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "STC"; src: url("../fonts/STC-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--mist); font-family: var(--f); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
::selection { background: var(--blue); color: var(--mist); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--mist); color: var(--ink); padding: 8px 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* grain over everything */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; background: url("../img/grain.png"); mix-blend-mode: overlay; opacity: .14; }

/* type */
.lat { direction: ltr; unicode-bidi: isolate; }
.lab { font-size: 13px; line-height: 1.4; color: var(--mute); }
:lang(en) .lab, .lab.lat { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; }
.idx { font-size: 13px; color: var(--faint); direction: ltr; unicode-bidi: isolate; letter-spacing: .12em; }
.dot { display: inline-block; width: .16em; height: .16em; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--coral); vertical-align: baseline; margin-inline-start: .08em; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
.h2 { font-size: clamp(40px, 5.8vw, 92px); line-height: 1.04; }
:lang(en) .h2 { letter-spacing: -.02em; line-height: .98; }
.h3 { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.2; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.75; color: var(--mute); max-width: 38ch; }
p { margin: 0; }

/* ---------- header ---------- */
.hdr { position: fixed; inset-inline: 0; top: 0; z-index: 50; padding: calc(18px + env(safe-area-inset-top, 0px)) var(--g) 18px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; transition: background .4s, backdrop-filter .4s, transform .5s var(--ease); }
.hdr.solid { background: rgba(9, 8, 13, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hdr.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; justify-self: start; color: var(--mist); }
.brand svg { height: 24px; width: auto; }
.nav { display: flex; gap: 0; font-size: 15px; }
.nav a { padding: 6px 2px; color: var(--mute); transition: color .25s; }
.nav a:hover, .nav a.on { color: var(--mist); }
.nav .sl { color: var(--faint); padding: 6px 12px; }
.tools { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.clock { color: var(--mute); white-space: nowrap; }
.lang { border: 1px solid var(--line); border-radius: 999px; height: 34px; min-width: 46px; padding: 0 14px; font-size: 13px; letter-spacing: .08em; transition: background .25s, color .25s, border-color .25s; }
.lang:hover { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.cta { height: 38px; padding: 0 18px; border-radius: 999px; background: var(--mist); color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; transition: background .25s, color .25s; }
.cta:hover { background: var(--blue); color: var(--mist); }
.menu-btn { display: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* ---------- hero (pinned stage) ---------- */
.hero { position: relative; height: 290vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage canvas, .stage .fb { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .fb { background: #050512 url("../img/hero_fallback.jpg") center/cover no-repeat; }
.js-gl .stage .fb { display: none; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(9, 8, 13, .78) 0%, rgba(9, 8, 13, 0) 34%), linear-gradient(to bottom, rgba(9, 8, 13, .55), rgba(9, 8, 13, 0) 22%); }
.scrim2 { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to left, rgba(9, 8, 13, .82) 0%, rgba(9, 8, 13, .45) 42%, rgba(9, 8, 13, 0) 70%); }
[dir="ltr"] .scrim2 { background: linear-gradient(to right, rgba(9, 8, 13, .82) 0%, rgba(9, 8, 13, .45) 42%, rgba(9, 8, 13, 0) 70%); }
.mark { position: absolute; left: 50%; top: 47%; width: min(60vw, 820px); transform: translate(-50%, -50%); color: var(--mist); will-change: transform, opacity, filter; }
.mark svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 40px rgba(18, 54, 228, .35)); }
.corner { position: absolute; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); font-size: 15px; line-height: 1.55; color: var(--mist); max-width: 24ch; }
.corner.s { inset-inline-start: var(--g); }
.corner.e { inset-inline-end: var(--g); text-align: end; }
.slashes, .corner, .lensnote, .cue { text-shadow: 0 1px 14px rgba(9, 8, 13, .6), 0 0 2px rgba(9, 8, 13, .35); }
.slashes { position: absolute; inset-inline: var(--g); top: 72%; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--mist); flex-wrap: wrap; }
.slashes span { white-space: nowrap; }
.slashes i { font-style: normal; color: var(--faint); }
:lang(en) .slashes, :lang(en) .corner { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; }
:lang(en) .corner { max-width: 40ch; }
.cue { position: absolute; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; font-size: 12px; color: var(--mute); }
.cue b { width: 1px; height: 46px; background: linear-gradient(var(--mist), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.thesis { position: absolute; inset-inline-start: var(--g); top: 50%; transform: translateY(-50%); width: min(46vw, 700px); display: grid; gap: 28px; }
.thesis h2 { font-size: clamp(48px, 7.4vw, 124px); line-height: 1.0; }
:lang(en) .thesis h2 { letter-spacing: -.03em; line-height: .95; }
.thesis p { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.8; max-width: 36ch; }
.thesis .w { display: inline; transition: opacity .3s, filter .3s; }
.lensnote { position: absolute; top: calc(92px + env(safe-area-inset-top, 0px)); inset-inline-end: var(--g); font-size: 12px; color: var(--faint); }

/* ---------- section scaffolding ---------- */
.sec { position: relative; padding: clamp(96px, 14vh, 160px) var(--g); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.head .rule { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.head .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.head h2 { grid-column: 1 / span 7; }
.head .lead { grid-column: 9 / span 4; justify-self: end; }

/* ---------- capabilities ---------- */
.caps { position: relative; }
.caps-track { position: relative; height: 520vh; }
.caps-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 96px var(--g) 48px; }
.caps-list { grid-column: 1 / span 5; display: grid; gap: 4px; align-self: center; }
.cap { border-top: 1px solid var(--line); padding: 16px 0; transition: opacity .5s var(--ease); opacity: .32; cursor: pointer; }
.cap:last-child { border-bottom: 1px solid var(--line); }
.cap.on { opacity: 1; }
.cap .t { display: flex; align-items: baseline; gap: 16px; }
.cap .t .idx { min-width: 2.2em; }
.cap .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.cap.on .body { grid-template-rows: 1fr; }
.cap .body > div { overflow: hidden; }
.cap .body p { padding-top: 14px; color: var(--mute); max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; }
.tags span { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mist); }
.caps-vis { grid-column: 7 / span 6; position: relative; height: min(72vh, 680px); }
.caps-vis canvas, .caps-vis .imgs { position: absolute; inset: 0; width: 100%; height: 100%; }
.caps-vis .imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; filter: saturate(.4) hue-rotate(10deg) brightness(.85); }
.caps-vis .imgs img.on { opacity: 1; }
.js-gl .caps-vis .imgs { display: none; }
.frame { position: absolute; inset: -14px; pointer-events: none; }
.frame i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--mist); opacity: .7; }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.caps-cap { position: absolute; inset-inline-start: 0; bottom: -40px; font-size: 13px; color: var(--mute); display: flex; gap: 12px; }
.caps-cap b { font-weight: 400; color: var(--mist); }
.caps-head { padding: clamp(96px, 14vh, 160px) var(--g) 0; }
.caps-head .head { margin-bottom: 0; }

/* ---------- work ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row { position: relative; display: grid; grid-template-columns: 3em minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) 46px; gap: 24px; align-items: center; padding: clamp(22px, 3.2vh, 34px) 0; border-top: 1px solid var(--line); cursor: pointer; text-align: start; width: 100%; }
.row .name { font-size: clamp(24px, 2.7vw, 44px); line-height: 1.12; font-weight: 700; transition: transform .6s var(--ease), color .3s; }
.row .sector { color: var(--mute); font-size: 15px; }
.row .go { justify-self: end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .5s var(--ease); }
.row .go svg { width: 16px; height: 16px; }
[dir="rtl"] .row .go svg { transform: scaleX(-1); }
.row:hover .name, .row:focus-visible .name { transform: translateX(calc(var(--dirx, -1) * 14px)); }
[dir="ltr"] .row { --dirx: 1; }
.row:hover .go { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.row .thumb { display: none; }
.peek { position: fixed; left: 0; top: 0; width: 340px; height: 420px; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .35s, transform .5s var(--ease); }
.peek.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.peek canvas { width: 100%; height: 100%; }
.others { margin-top: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.others .lab { grid-column: 1 / span 3; padding-top: 6px; }
.others ul { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.others li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.others li b { font-weight: 700; font-size: 18px; }
.others li span { color: var(--faint); font-size: 14px; }
.others li em { grid-column: 1 / -1; font-style: normal; color: var(--mute); font-size: 15px; line-height: 1.6; }

/* ---------- presence ---------- */
.presence { overflow: hidden; }
.presence::before { content: ""; position: absolute; inset-inline-end: -20vw; top: 10%; width: 70vw; height: 70vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(157, 176, 255, .30), rgba(18, 54, 228, .22) 45%, rgba(11, 23, 69, 0) 100%); filter: blur(10px); pointer-events: none; }
/* ---------- contact ---------- */
.start { background: radial-gradient(120% 90% at 85% 110%, rgba(18, 54, 228, .55) 0%, rgba(6, 25, 168, .25) 35%, rgba(9, 8, 13, 0) 70%), var(--ink); }
.big { font-size: clamp(56px, 10vw, 168px); line-height: .98; font-weight: 700; }
:lang(en) .big { letter-spacing: -.035em; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(40px, 7vh, 72px); }
.mail { font-size: clamp(28px, 4.6vw, 72px); line-height: 1.1; font-weight: 700; direction: ltr; unicode-bidi: isolate; border-bottom: 2px solid rgba(242, 243, 245, .3); padding-bottom: 6px; transition: border-color .3s, color .3s; word-break: break-all; }
.mail:hover { border-color: var(--coral); }
.copy { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background .25s, color .25s; }
.copy:hover { background: var(--mist); color: var(--ink); }
.cgrid { margin-top: clamp(56px, 9vh, 96px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cgrid > div { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.cgrid a, .cgrid p { font-size: 18px; }
.cgrid a:hover { color: var(--sky); }

/* ---------- footer ---------- */
.foot { position: relative; padding: 0 var(--g) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-mark { position: relative; aspect-ratio: 15 / 4; max-height: 460px; margin: 0 calc(-1 * var(--g)); }
.foot-mark canvas, .foot-mark .svgm { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot-mark .svgm { display: grid; place-items: center; color: var(--mist); }
.foot-mark .svgm svg { width: 82%; height: auto; }
.js-gl .foot-mark .svgm { display: none; }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.fbar a:hover { color: var(--mist); }

/* ---------- case dialog ---------- */
dialog.case { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--mist); overflow: hidden; }
dialog.case::backdrop { background: rgba(9, 8, 13, .85); }
dialog.case[open] { animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.case-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: calc(22px + env(safe-area-inset-top, 0px)) var(--g) calc(60px + env(safe-area-inset-bottom, 0px)); }
.case-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0 18px; background: linear-gradient(var(--ink) 70%, rgba(9, 8, 13, 0)); }
.case-top .nv { display: flex; gap: 10px; }
.case-top button { height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.case-top button:hover { background: var(--mist); color: var(--ink); }
.case-hero { position: relative; margin: 8px 0 48px; height: min(62vh, 620px); overflow: hidden; background: var(--ink-2); }
.case-hero img { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, rgba(255, 255, 255, 0) 1px 14px, rgba(0, 0, 30, .08) 14px 30px, rgba(255, 255, 255, 0) 30px 32px), linear-gradient(to top, rgba(9, 8, 13, .7), rgba(9, 8, 13, 0) 40%); }
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 44px; }
.case-grid .t { grid-column: 1 / span 6; display: grid; gap: 18px; align-content: start; }
.case-grid .meta { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-content: start; }
.case-grid .meta div { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; min-width: 0; }
.case-grid .meta .full { grid-column: 1 / -1; }
.case-grid .blk { grid-column: 1 / span 6; display: grid; gap: 10px; align-content: start; }
.case-grid .blk p { color: var(--mute); font-size: 19px; max-width: 46ch; }
.case-grid .outs-w { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
.case-grid .outs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-bottom: 1px solid var(--line); }
.case-grid .outs li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 16px; font-size: 17px; }
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ink-2); }
.gallery .wide { grid-column: 1 / -1; aspect-ratio: auto; max-height: 80vh; }

/* ---------- 01 where value leaks ---------- */
.leak-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.leak { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px clamp(16px, 2vw, 28px) 30px; border-inline-start: 1px solid var(--line); min-height: 380px; transition: background .6s var(--ease); }
.leak:first-child { border-inline-start: 0; }
.leak:hover, .leak:focus-visible { background: linear-gradient(180deg, rgba(18, 54, 228, .16), rgba(18, 54, 228, 0) 70%); }
.leak .sig { width: 100%; height: 54px; overflow: visible; }
.leak .sig path { fill: none; stroke: var(--sky); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.leak .sig circle { fill: var(--coral); }
.leak .n { font-size: 13px; color: var(--faint); letter-spacing: .12em; }
.leak h3 { font-size: clamp(21px, 1.8vw, 28px); line-height: 1.3; font-weight: 700; margin: 0; }
.leak p { color: var(--mute); font-size: 16px; line-height: 1.75; }
.leak .fix { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 15px; line-height: 1.6; }

/* ---------- 02 the clarity method (scan) ---------- */
.scan-head { padding: clamp(96px, 14vh, 160px) var(--g) 0; }
.scan-head .head { margin-bottom: 0; }
.scan-track { position: relative; height: 560vh; }
.scan-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: 96px var(--g) 48px; }
.scan-steps { grid-column: 1 / span 4; display: grid; gap: 2px; align-self: center; }
.layer { border-top: 1px solid var(--line); padding: 14px 0; opacity: .3; transition: opacity .5s var(--ease); cursor: pointer; }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer.on { opacity: 1; }
.layer .t { display: flex; align-items: baseline; gap: 14px; }
.layer .t .idx { min-width: 2.2em; }
.layer .h3 { font-size: clamp(20px, 1.8vw, 28px); }
.layer .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.layer.on .body { grid-template-rows: 1fr; }
.layer .body > div { overflow: hidden; }
.layer .body p { padding-top: 10px; color: var(--mute); max-width: 44ch; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 4px; }
.flag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(234, 144, 108, .45); }
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.layer.rx .flag { border-color: rgba(157, 176, 255, .5); }
.layer.rx .flag::before { background: var(--sky); }
.layer .shot { display: none; }
.scan-vis { grid-column: 6 / span 7; position: relative; width: 100%; max-width: calc(70vh * 1.6); aspect-ratio: 16 / 10; justify-self: end; }
.scan-vis canvas, .scan-imgs { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.scan-imgs img.on { opacity: 1; }
.js-gl .scan-imgs { display: none; }
.scan-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; pointer-events: none; background: linear-gradient(rgba(157, 176, 255, 0), rgba(157, 176, 255, .95) 30%, rgba(157, 176, 255, .95) 70%, rgba(157, 176, 255, 0)); box-shadow: 0 0 28px 4px rgba(157, 176, 255, .45); transition: opacity .5s; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; display: flex; align-items: center; gap: 10px; transform: translate(-6px, -50%); opacity: 0; transition: opacity .45s, transform .6s var(--ease); }
[dir="rtl"] .mk { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
.mk.on { opacity: 1; }
.mk.flip { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
[dir="rtl"] .mk.flip { flex-direction: row; transform: translate(-6px, -50%); }
.mk i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); animation: pulse 2.2s ease-out infinite; }
.mk span { font-size: 12.5px; line-height: 1.4; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: rgba(9, 8, 13, .74); border: 1px solid rgba(234, 144, 108, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234, 144, 108, .6); } 70% { box-shadow: 0 0 0 16px rgba(234, 144, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 144, 108, 0); } }

/* ---------- 04 cases (consulting format) ---------- */
.rowhead { display: grid; grid-template-columns: 3em minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) 46px; gap: 24px; padding-bottom: 12px; }
.row .who { display: grid; gap: 6px; min-width: 0; }
.row .finding { font-size: 16px; line-height: 1.6; color: var(--mist); min-width: 0; }
.row .treat { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.row .treat span { font-size: 12.5px; padding: 4px 11px; border: 1px solid rgba(157, 176, 255, .4); border-radius: 999px; color: var(--sky); white-space: nowrap; }
.nda { margin-top: 18px; font-size: 14px; color: var(--faint); }
.case-chain { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-chain > div { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px clamp(14px, 1.6vw, 24px) 26px; border-inline-start: 1px solid var(--line); min-width: 0; }
.case-chain > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.case-chain p { color: var(--mute); font-size: 16px; line-height: 1.75; }
.case-chain .k { display: flex; align-items: center; gap: 10px; }
.case-chain .k i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.case-chain .diag .k i { background: var(--coral); }
.case-chain .imp p { color: var(--mist); }
.case-chain .tr { display: flex; flex-wrap: wrap; gap: 6px; }
.case-chain .tr span { font-size: 13px; padding: 4px 11px; border: 1px solid rgba(157, 176, 255, .4); border-radius: 999px; color: var(--sky); }

/* ---------- 05 presence map ---------- */
.pgrid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: center; }
.pgrid .l { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.legend button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; color: var(--faint); text-align: start; transition: color .3s; }
.legend button:hover, .legend button.on, .legend button:focus-visible { color: var(--mist); }
.legend small { font-size: 12px; font-weight: 400; color: var(--coral); }
.hint { color: var(--faint); }
.map { grid-column: 5 / span 8; position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; font-family: var(--f); }
.map .dots { stroke: var(--mist); stroke-opacity: .2; stroke-width: 5; stroke-linecap: round; fill: none; }
.map .ring { fill: none; stroke: rgba(157, 176, 255, .12); }
.map .arc { fill: none; stroke: rgba(157, 176, 255, .55); stroke-width: 1.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.map.on .arc { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--k) * .12s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map .flow { fill: none; stroke: var(--sky); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 26; opacity: 0; }
.map.on .flow { opacity: .9; animation: flow 3.2s linear infinite; animation-delay: calc(var(--k) * .3s + 1.6s); }
@keyframes flow { to { stroke-dashoffset: -112; } }
.map .c { cursor: pointer; outline: none; }
.map .c .core { fill: var(--sky); transition: r .3s; }
.map .c .halo { fill: none; stroke: var(--sky); stroke-opacity: .7; transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-out infinite; animation-delay: calc(var(--k) * .33s); }
.map .c.hq .core { fill: var(--coral); }
.map .c.hq .halo { stroke: var(--coral); }
.map .c .pj { fill: var(--mist); }
.map .c .pjh { fill: none; stroke: var(--mist); stroke-opacity: .8; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
.map .lbl { fill: var(--mute); font-size: 14px; transition: fill .3s; }
.map .c.hq .lbl { fill: var(--mist); font-weight: 700; }
.map .c.on .lbl, .map .c:hover .lbl, .map .c:focus-visible .lbl { fill: var(--mist); }
.map .c.on .core { r: 8; }
.map .c:focus-visible .core { stroke: var(--mist); stroke-width: 2; }
.tip { position: absolute; z-index: 3; width: max-content; max-width: 280px; transform: translate(-50%, calc(-100% - 22px)); padding: 14px 16px; background: rgba(9, 8, 13, .88); border: 1px solid rgba(242, 243, 245, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; line-height: 1.5; }
.tip b { display: block; font-size: 17px; margin-bottom: 8px; }
.tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tip li { display: flex; gap: 8px; align-items: baseline; color: var(--mute); }
.tip li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); transform: translateY(-2px); }
.tip button { color: var(--mist); text-align: start; border-bottom: 1px solid rgba(242, 243, 245, .35); }
.tip button:hover { border-color: var(--coral); }
.sect { grid-column: 1 / -1; display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.sectors { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: clamp(16px, 1.4vw, 21px); color: var(--mute); }
.sectors span { white-space: nowrap; }
.sectors i { font-style: normal; color: var(--faint); padding: 0 12px; }

/* ---------- 06 start: free diagnosis ---------- */
.sgrid { margin-top: clamp(48px, 8vh, 88px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.steps3 { grid-column: 1 / span 4; list-style: none; margin: 0; padding: 0; }
.steps3 li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps3 li:last-child { border-bottom: 1px solid var(--line); }
.steps3 .n { font-size: 30px; line-height: 1; font-weight: 700; color: var(--sky); }
.steps3 h3 { font-size: 20px; margin: 0 0 6px; }
.steps3 p { color: var(--mute); font-size: 15px; line-height: 1.7; }
.steps3 .o { display: block; margin-top: 10px; font-size: 13px; color: var(--faint); }
.steps3 .o b { font-weight: 400; color: var(--mist); }
.dx { grid-column: 6 / span 7; position: relative; padding: clamp(22px, 3vw, 40px); border: 1px solid rgba(242, 243, 245, .14); background: linear-gradient(160deg, rgba(18, 54, 228, .2), rgba(9, 8, 13, .55) 62%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); isolation: isolate; min-width: 0; }
.dx::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, rgba(255, 255, 255, 0) 1px 14px, rgba(0, 0, 30, .07) 14px 30px, rgba(255, 255, 255, 0) 30px 32px); }
.dx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.dx-steps { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; font-size: 14px; color: var(--faint); }
.dx-steps li.on { color: var(--mist); }
.dx-steps li.done { color: var(--sky); }
.dx-bar { height: 2px; background: var(--line); margin: 16px 0 26px; }
.dx-bar i { display: block; height: 100%; width: 33.3%; background: var(--sky); transition: width .6s var(--ease); }
.dx-p { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; min-width: 0; }
.fld { display: grid; gap: 8px; font-size: 14px; min-width: 0; align-content: start; }
.fld > span { color: var(--mute); }
.fld.full { grid-column: 1 / -1; }
.dx input, .dx select, .dx textarea { width: 100%; font-family: var(--f); font-size: 17px; color: var(--mist); background: rgba(9, 8, 13, .4); border: 1px solid rgba(242, 243, 245, .2); border-radius: 0; height: 50px; padding: 0 14px; outline: none; transition: border-color .25s; }
.dx textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.dx select option { background: #0E0D14; color: #F2F3F5; }
.dx input:focus, .dx select:focus, .dx textarea:focus { border-color: var(--sky); }
.dx input::placeholder, .dx textarea::placeholder { color: rgba(242, 243, 245, .38); }
.dx .bad { border-color: var(--coral) !important; }
.seg, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chips button { min-height: 40px; padding: 6px 16px; border: 1px solid rgba(242, 243, 245, .24); border-radius: 999px; font-size: 14px; line-height: 1.4; transition: background .25s, color .25s, border-color .25s; }
.seg button:hover, .chips button:hover { border-color: var(--mist); }
.seg button[aria-checked="true"], .chips button[aria-pressed="true"] { background: var(--mist); color: var(--ink); border-color: var(--mist); }
.seg.bad button { border-color: var(--coral); }
.dx-nav { display: flex; gap: 12px; margin-top: 26px; }
.dx-nav .cta-b { margin-inline-start: auto; }
.cta-b { height: 52px; padding: 0 28px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 700; font-size: 16px; transition: background .25s, color .25s; }
.cta-b:hover { background: var(--blue); color: var(--mist); }
.ghost { height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; }
.ghost:hover { border-color: var(--mist); }
.dx-msg { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--coral); }
.dx-msg.ok { color: var(--sky); }
.dx-out { display: grid; gap: 14px; }
.dx-out p { font-size: 17px; }
.dx-out pre { margin: 0; white-space: pre-wrap; font-family: var(--f); font-size: 14px; line-height: 1.7; color: var(--mute); background: rgba(9, 8, 13, .45); border: 1px solid var(--line); padding: 14px 16px; max-height: 240px; overflow: auto; }
.dx-out .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-out .acts a, .dx-out .acts button { height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 15px; }
.dx-out .acts .pri { background: var(--mist); color: var(--ink); border-color: var(--mist); font-weight: 700; }
.mailline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mailline .copy { height: 32px; padding: 0 12px; font-size: 13px; }
.fbar .fl { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- mobile menu ---------- */
.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(9, 8, 13, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; align-content: center; gap: 8px; padding: 80px var(--g); }
.mnav a { font-size: 40px; font-weight: 700; line-height: 1.3; }
.mnav .x { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); inset-inline-end: var(--g); height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .head h2 { grid-column: 1 / -1; }
  .head .lead { grid-column: 1 / -1; justify-self: start; }
  .others .lab { grid-column: 1 / -1; padding-bottom: 16px; }
  .others ul { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hdr { grid-template-columns: 1fr auto; }
  .nav, .clock, .tools .cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .hero { height: 250vh; }
  .mark { width: 84vw; top: 42%; }
  .slashes { top: auto; bottom: calc(120px + env(safe-area-inset-bottom, 0px)); justify-content: flex-start; gap: 4px 10px; font-size: 13px; }
  .corner { font-size: 14px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .cue { display: none; }
  .thesis { width: calc(100vw - 2 * var(--g)); top: auto; bottom: 12vh; transform: none; }
  .scrim2 { background: linear-gradient(to top, rgba(9, 8, 13, .92) 0%, rgba(9, 8, 13, .6) 45%, rgba(9, 8, 13, 0) 75%) !important; }
  .lensnote { display: none; }
  .caps-track { height: auto; }
  .caps-stage { position: relative; height: auto; display: block; padding: 0 var(--g); }
  .caps-vis { display: none; }
  .caps-list { gap: 40px; }
  .cap { opacity: 1; padding: 0; border: 0; }
  .cap:last-child { border: 0; }
  .cap .body { grid-template-rows: 1fr; }
  .cap .shot { display: block; position: relative; margin-bottom: 18px; aspect-ratio: 4 / 3; overflow: hidden; }
  .cap .shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.9); }
  .cap .shot::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, rgba(255, 255, 255, 0) 1px 9px, rgba(0, 0, 30, .14) 9px 18px, rgba(255, 255, 255, 0) 18px 20px); }
  .row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .row .idx { display: none; }
  .row .sector { grid-column: 1; grid-row: 2; }
  .row .go { grid-column: 2; grid-row: 1 / span 2; }
  .row .thumb { display: block; grid-column: 1 / -1; grid-row: 3; aspect-ratio: 16 / 10; overflow: hidden; margin-top: 10px; }
  .row .thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5); }
  .others ul { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid .t, .case-grid .meta, .case-grid .blk, .case-grid .outs-w { grid-column: 1 / -1; grid-row: auto; }
  .case-grid .outs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .leak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leak:nth-child(3) { border-inline-start: 0; }
  .leak:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-chain > div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .case-chain > div:nth-child(2n) { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
  .case-chain > div:nth-child(-n+2) { border-top: 0; }
  .case-chain .imp { grid-column: 1 / -1; padding-inline-start: 0 !important; border-inline-start: 0 !important; border-top: 1px solid var(--line) !important; }
  .rowhead, .row { grid-template-columns: 3em minmax(0, 4fr) minmax(0, 5fr) 46px; }
  .row .treat, .rowhead span:nth-child(4) { display: none; }
  .steps3, .dx { grid-column: 1 / -1; }
  .pgrid .l { grid-column: 1 / span 5; }
  .map { grid-column: 6 / span 7; }
}
@media (max-width: 860px) {
  .leak-grid { grid-template-columns: 1fr; }
  .leak { border-inline-start: 0 !important; border-top: 1px solid var(--line); padding-inline: 0; min-height: 0; }
  .leak:first-child { border-top: 0; }
  .scan-track { height: auto; }
  .scan-stage { position: relative; height: auto; display: block; padding: 40px var(--g) 0; }
  .scan-vis { display: none; }
  .scan-steps { gap: 44px; }
  .layer { opacity: 1; border: 0 !important; padding: 0; cursor: default; }
  .layer .body { grid-template-rows: 1fr; }
  .layer .shot { display: block; position: relative; margin-bottom: 16px; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }
  .layer .shot img { width: 100%; height: 100%; object-fit: cover; }
  .layer .shot .mk { opacity: 1; }
  .rowhead { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 46px; gap: 10px 16px; }
  .row .idx { display: none; }
  .row .who { grid-column: 1; grid-row: 1; }
  .row .go { grid-column: 2; grid-row: 1; }
  .row .finding { grid-column: 1 / -1; grid-row: 2; font-size: 15px; color: var(--mute); }
  .row .treat { display: flex; grid-column: 1 / -1; grid-row: 3; }
  .row .thumb { grid-row: 4; }
  .case-chain { grid-template-columns: 1fr; }
  .case-chain > div { padding-inline: 0 !important; border-inline-start: 0 !important; border-top: 1px solid var(--line) !important; }
  .case-chain > div:first-child { border-top: 0 !important; }
  .pgrid .l, .map { grid-column: 1 / -1; }
  .map { order: 2; }
  .sect { order: 3; }
  .dx-p { grid-template-columns: 1fr; }
  .dx-steps { display: none; }
}
@media (min-width: 861px) { .cap .shot { display: none; } .mnav { display: none !important; } }
@media (max-width: 480px) {
  .cgrid { grid-template-columns: 1fr; }
  .brand svg { height: 20px; }
  .tools { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
