/* Osvion Studio · direction B « Coulisse » (founder choice, 2026-11-06).
   Palette: cream #F4ECDF, near-black #23201C, orange #D2501C (orange never for text under 24 px). Sora, self-hosted. */
@font-face { font-family: "Sora"; src: url("fonts/sora-latin-fr.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --cream: #f4ecdf; --ink: #23201c; --orange: #d2501c; --cream-2: #ebe2d4; --ink-2: #2f2c27; --ink-3: #3a3631;
  --muted-l: #5e5952; --muted-d: #b3ab9f; --line-d: rgb(244 236 223 / .16); --line-l: rgb(35 32 28 / .14);
  --bg: var(--ink); --fg: var(--cream); --muted: var(--muted-d); --line: var(--line-d);
  --ease: cubic-bezier(.16, 1, .3, 1); --pad: clamp(20px, 4vw, 56px); --max: 1440px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { margin: 0; font: 400 17px/1.6 "Sora", system-ui, sans-serif; background: var(--bg); color: var(--fg); overflow-x: clip; }
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--cream); color: var(--ink); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus, var(--cream)); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.kicker { font: 500 13px/1.4 "Sora", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }

/* Light grounds */
.ground-cream { --bg: var(--cream); --fg: var(--ink); --muted: var(--muted-l); --line: var(--line-l); --focus: var(--ink); background: var(--bg); color: var(--fg); color-scheme: light; }

/* Nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 26px; padding: 20px var(--pad); color: var(--cream); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 18px; min-height: 44px; white-space: nowrap; flex: none; view-transition-name: osv-mark; }
.nav__logo svg { width: 30px; height: auto; }
.nav__logo b { font-weight: 300; }
.nav__links { display: flex; gap: 22px; margin-left: auto; list-style: none; }
.nav__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; font-size: 15px; }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.nav__lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 14px; text-decoration: none; }
.m-menu { display: none; position: relative; }
.m-menu summary { list-style: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 14px; cursor: pointer; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 10px; list-style: none; border-radius: 16px; background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px rgb(0 0 0 / .3); }
.m-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: 10px; }
.m-menu a:hover, .m-menu a[aria-current="page"] { background: var(--cream-2); }
@media (max-width: 900px) { .nav__links, .nav__lang { display: none; } .m-menu { display: block; margin-left: auto; } .nav { gap: 12px; padding-top: 14px; } }
@media (max-width: 520px) { .nav > .btn { display: none; } }

/* Buttons and rolling labels (signature effect 1, CSS only) */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 16px/1.15 "Sora", sans-serif; text-decoration: none; border: 1.5px solid currentColor; text-align: left; }
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform .5s var(--ease); }
.roll > span + span { transform: translateY(110%); }
@media (hover: hover) { a:hover > .roll > span:first-child, button:hover > .roll > span:first-child { transform: translateY(-110%); } a:hover > .roll > span + span, button:hover > .roll > span + span { transform: none; } }
@media (max-width: 520px) { .btn { padding: 0 20px; font-size: 15px; } }

/* Home hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 110px var(--pad) 40px; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__gl, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still { object-fit: contain; object-position: 82% 50%; padding: 8svh 4vw 34svh 50vw; }
.hero__gl { opacity: 0; transition: opacity 1s var(--ease); }
.hero__gl.is-ready { opacity: 1; }
.hero__gl.is-ready + .hero__still { opacity: 0; transition: opacity .6s; }
[data-level="lite"] .hero__gl { display: none; }
.hero__side { grid-row: 1; position: relative; z-index: 2; align-self: start; max-width: 600px; display: grid; gap: 22px; margin-top: 4svh; }
.hero__lead { color: var(--muted); font-size: 17px; max-width: 48ch; }
.hero__title { grid-row: 2; position: relative; z-index: 2; }
.hero h1 { font: 600 clamp(64px, 13.2vw, 240px)/.86 "Sora", sans-serif; letter-spacing: -.055em; }
.hero .h1-main .w:last-child > span { color: var(--orange); }
.hero .h1-sub { display: block; margin-top: .45em; max-width: 24ch; font: 400 clamp(22px, 2.5vw, 44px)/1.18 "Sora", sans-serif; letter-spacing: -.02em; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w > span { animation: rise 1.1s var(--ease) both; }
  .hero h1 .h1-main .w:nth-child(2) > span { animation-delay: .08s; }
  .hero h1 .h1-sub .w > span { animation-delay: .3s; }
  .hero [data-in] { animation: fadeUp 1s .35s var(--ease) both; }
  .is-loading .hero h1 .w > span, .is-loading .hero [data-in] { animation-delay: 1.05s; }
  .is-loading .hero h1 .h1-sub .w > span { animation-delay: 1.3s; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 760px) {
  .hero { grid-template-rows: auto 1fr auto; padding-top: 92px; }
  .hero__still { padding: 72px 6vw 54svh 14vw; object-position: 60% 50%; }
  .hero__side { grid-row: auto; margin: 28px 0 0; }
  .hero__title { grid-row: auto; align-self: end; padding-top: 36svh; }
  .hero h1 { font-size: clamp(52px, 16vw, 84px); }
  .hero .h1-sub { font-size: 21px; }
  .hero__meta { display: none; }
}

/* Inner page heads */
.phead { position: relative; padding: 150px var(--pad) 72px; max-width: var(--max); margin: 0 auto; display: grid; gap: 26px; }
.phead h1 { font: 600 clamp(48px, 8vw, 132px)/.92 "Sora", sans-serif; letter-spacing: -.05em; max-width: 14ch; }
.phead__sub { font: 400 clamp(20px, 2.2vw, 34px)/1.25 "Sora", sans-serif; letter-spacing: -.02em; max-width: 30ch; }
.phead__lead { color: var(--muted); max-width: 60ch; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line); margin-top: 12px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 500; font-size: 16px; }
@media (max-width: 760px) { .phead { padding-top: 120px; padding-bottom: 48px; } }

/* Sections */
.sec { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sh h2, .h2 { font: 500 clamp(40px, 6vw, 104px)/.95 "Sora", sans-serif; letter-spacing: -.045em; }
.sh p { color: var(--muted); max-width: 40ch; }
.h3 { font: 500 clamp(22px, 2vw, 30px)/1.2 "Sora", sans-serif; letter-spacing: -.02em; }

/* Services marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; font: 500 clamp(28px, 4vw, 64px)/1 "Sora", sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.marquee__track span { padding: 0 .6em; }
.marquee__track span:nth-child(even) { color: var(--orange); }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marq 36s linear infinite; } }
@keyframes marq { to { transform: translateX(-50%); } }

/* Work showcase (home): pinned sideways on wide screens with the full level, swipe otherwise */
.work-h__pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 36px; padding: 72px 0 56px; overflow: hidden; }
.work-h__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 0 var(--pad); }
.work-h__head p { color: var(--muted); max-width: 34ch; }
.work-h__track { display: flex; gap: 28px; list-style: none; padding: 0 var(--pad) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; align-items: stretch; }
.work-h__track.is-pinned { overflow: visible; scroll-snap-type: none; will-change: transform; }
.tile { flex: 0 0 min(64vw, 820px, calc((100svh - 400px) * 1.6)); scroll-snap-align: start; list-style: none; }
.tile a { display: grid; gap: 12px; text-decoration: none; }
.tile__media { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 10; background: var(--ink-2); }
.tile__media img { width: 106%; max-width: none; height: 100%; margin-left: -3%; object-fit: cover; object-position: top center; }
.tile__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.tile__gl.is-on { opacity: 1; }
.tile__kind { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }
.tile h3 { font: 500 clamp(22px, 2vw, 30px)/1.15 "Sora", sans-serif; letter-spacing: -.02em; }
.tile p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.tile a:hover h3 { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 760px) { .tile { flex-basis: 84vw; } .work-h__head { display: grid; } .work-h__pin { min-height: 0; } }

/* Work page grid */
.tiles-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; list-style: none; }
.tiles-grid .tile { flex: none; }
@media (max-width: 760px) { .tiles-grid { grid-template-columns: 1fr; gap: 44px; } }

/* « Deux couches » (cream ground) */
.couches__pin { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6vw; align-items: center; padding: 72px var(--pad); max-width: var(--max); margin: 0 auto; }
.couches__head { display: grid; gap: 22px; align-content: center; }
.couches__head h2 em { font-style: normal; color: var(--orange); }
.couches__head p { color: var(--muted); max-width: 44ch; }
.steps-mini { list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li { display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.steps-mini li::before { counter-increment: s; content: "0" counter(s); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.couches .wipe { justify-self: end; width: 100%; max-width: 620px; }
@media (max-width: 760px) { .couches__pin { grid-template-columns: 1fr; gap: 28px; min-height: 0; } }
.wipe { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wipe figure { position: relative; }
.wipe img { width: 100%; height: auto; border-radius: 14px; }
.wipe figcaption { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--cream); font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.wipe__gl, .wipe__handle { display: none; }
.wipe.is-live { display: block; aspect-ratio: 1200 / 1368; max-height: 78svh; border-radius: 16px; overflow: hidden; touch-action: pan-y; border: 1px solid var(--line-l); box-shadow: 0 30px 60px -30px rgb(35 32 28 / .35); }
.wipe.is-live figure { position: absolute; inset: 0; }
.wipe.is-live img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.wipe.is-live .wipe__after { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.wipe.is-live .wipe__before figcaption { left: auto; right: 12px; }
.wipe.is-live .wipe__handle { display: block; position: absolute; top: 0; bottom: 0; left: var(--p, 0%); width: 44px; margin-left: -22px; z-index: 3; cursor: ew-resize; }
.wipe__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--orange); }
.wipe__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--cream); border: 2px solid var(--orange); display: grid; place-items: center; }
.wipe__knob svg { width: 18px; }
.wipe__handle:focus-visible { outline: none; }
.wipe__handle:focus-visible .wipe__knob { outline: 3px solid var(--ink); outline-offset: 3px; }
.wipe__gl.is-ready { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.wipe__gl.is-ready ~ .wipe__handle::before { display: none; }

/* Services: five areas */
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc > li { display: grid; grid-template-columns: 70px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 16px 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc p { color: var(--muted); }
.svc__price { font-weight: 500; font-size: 15px; }
.svc__work { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; }
.svc__work a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 900px) { .svc > li { grid-template-columns: 48px minmax(0, 1fr); } .svc > li > :nth-child(n+3) { grid-column: 2; } }

/* Logo wall: one colour, full colour on hover (on the ground the logo was made for) */
.brands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; list-style: none; }
.brands a { display: grid; place-items: center; height: clamp(120px, 14vw, 180px); padding: 22px; background: var(--bg); text-decoration: none; transition: background .4s var(--ease); }
.brands img { max-height: 72px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(0) invert(93%) sepia(9%) saturate(220%); opacity: .9; transition: filter .4s var(--ease), opacity .4s; }
.brands a:hover img, .brands a:focus-visible img { filter: none; opacity: 1; }
.brands a[data-ground="light"]:hover, .brands a[data-ground="light"]:focus-visible { background: var(--cream); }
.brands a[data-ground="dark"]:hover, .brands a[data-ground="dark"]:focus-visible { background: #0f0d0b; }
@media (max-width: 900px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brands li:last-child { grid-column: 1 / -1; } }

/* Photo strip and gallery (hidden by a switch until the photos arrive) */
.strip { display: flex; gap: 16px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.strip li { flex: 0 0 min(70vw, 460px); scroll-snap-align: start; }
.strip img { border-radius: 14px; width: 100%; height: auto; }

/* Closing CTA */
.end { display: grid; gap: 28px; justify-items: start; }
.end h2 { max-width: 14ch; }
.end p { color: var(--muted); max-width: 52ch; }

/* Footer */
.foot { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand .nav__logo { view-transition-name: none; }
.foot__brand p { color: var(--muted); max-width: 36ch; }
.foot h3 { font: 500 14px/1.4 "Sora", sans-serif; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 2px; }
.foot a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* Offers */
.group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.group h3 { font: 500 clamp(30px, 3.4vw, 52px)/1 "Sora", sans-serif; letter-spacing: -.035em; }
.group > div > p { color: var(--muted); margin-top: 10px; }
.rows { list-style: none; }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 0; margin-bottom: 0; }
.rows__name { font-weight: 500; font-size: 19px; }
.rows__value { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.rows > li > p { grid-column: 1; color: var(--muted); max-width: 62ch; }
.rows__meta { font-size: 14px; }
@media (max-width: 760px) { .group { grid-template-columns: 1fr; } .rows > li { grid-template-columns: 1fr; } .rows__value { grid-column: 1; grid-row: 2; text-align: left; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.card .price { font-weight: 500; }
.card p { color: var(--muted); }
.excl { columns: 2; column-gap: 40px; list-style: none; }
.excl li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) { .excl { columns: 1; } }

/* Audit */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.areas { list-style: none; counter-reset: a; border-top: 1px solid var(--line); }
.areas li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.areas li::before { counter-increment: a; content: counter(a, decimal-leading-zero); color: var(--muted); font-size: 13px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.sample img { border-radius: 14px; width: 100%; height: auto; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-size: 13px; color: var(--muted); }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 32px; }
.faq h3 { font: 500 18px/1.4 "Sora", sans-serif; }
.faq p { color: var(--muted); }
@media (max-width: 760px) { .faq div { grid-template-columns: 1fr; } }

/* Case studies */
.case-live { display: inline-flex; align-items: center; gap: 10px; }
.case-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; }
.case-intro > p { font: 400 clamp(20px, 2vw, 28px)/1.4 "Sora", sans-serif; letter-spacing: -.01em; }
.did { list-style: none; border-top: 1px solid var(--line); }
.did li { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .case-intro { grid-template-columns: 1fr; } }
.media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); list-style: none; align-items: start; }
.media > li { grid-column: span 12; }
.media .m-desk { grid-column: span 8; }
.media .m-phone { grid-column: span 4; }
.media .m-img { grid-column: span 6; }
.frame { border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); }
.frame img, .frame video { width: 100%; height: auto; }
.m-phone .frame { border-radius: 26px; max-width: 360px; margin: 0 auto; border-width: 6px; border-color: #0f0d0b; }
@media (max-width: 760px) { .media .m-desk, .media .m-img { grid-column: span 12; } .media .m-phone { grid-column: span 6; } }
.case-result { display: grid; gap: 14px; max-width: 62ch; }
.case-result p { color: var(--muted); }
.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); text-decoration: none; }
.next span { color: var(--muted); }
.next strong { font: 500 clamp(32px, 5vw, 80px)/1 "Sora", sans-serif; letter-spacing: -.04em; }
.next:hover strong { text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px; }

/* About, contact, legal */
.bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.bio__text { display: grid; gap: 18px; font-size: 18px; }
.portrait { aspect-ratio: 4 / 5; border-radius: 18px; background: var(--ink-2); display: grid; place-items: center; }
.portrait svg { width: 42%; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.ways { list-style: none; display: grid; gap: 12px; }
.ways li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-height: 44px; }
.form { display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); border-radius: 20px; background: var(--cream); color: var(--ink); --fg: var(--ink); --bg: var(--cream); --focus: var(--ink); }
.form h2 { font: 500 26px/1.2 "Sora", sans-serif; }
.form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #8a837a; background: #fff; color: var(--ink); font: 400 16px/1.4 "Sora", sans-serif; }
.form textarea { min-height: 130px; resize: vertical; }
.form [aria-invalid="true"] { border-color: #a3330b; }
.form .note { font-size: 14px; color: var(--muted-l); }
.legal { display: grid; gap: 36px; max-width: 72ch; }
.legal h2 { font: 500 22px/1.3 "Sora", sans-serif; margin-bottom: 8px; }
.legal p { color: var(--muted); }

/* Section island (signature effect 2) */
.island { position: fixed; left: 50%; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 12px; height: 40px; width: max-content; white-space: nowrap; padding: 0 16px 0 14px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 13px; transform: translate(-50%, 160%); opacity: 0; pointer-events: none; transition: transform .7s var(--ease), opacity .4s, gap .5s var(--ease), padding .5s var(--ease); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.island.is-on { transform: translate(-50%, 0); opacity: 1; }
.island__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.island__label { font-weight: 500; transition: opacity .16s, filter .16s; }
.island__n { color: var(--muted-l); font-variant-numeric: tabular-nums; }
.island.is-swap .island__label { opacity: 0; filter: blur(4px); }
.island.is-swap { gap: 20px; padding: 0 22px 0 18px; }
.island-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60vh; pointer-events: none; }

/* Spotlight (signature effect 3, desktop only) */
[data-spot] { position: relative; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  [data-spot]::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgb(244 236 223 / .14), transparent 70%); mix-blend-mode: screen; }
  [data-spot]:hover::after { opacity: 1; }
}

/* Lite level: blocks fade up as they enter (CSS); the full level hands this to GSAP */
@media (prefers-reduced-motion: no-preference) {
  [data-level="lite"] [data-fade]:not(.is-in), [data-level="lite"] [data-split]:not(.is-in) { opacity: 0; transform: translateY(28px); }
  [data-level="lite"] [data-fade], [data-level="lite"] [data-split] { transition: opacity .9s var(--ease), transform .9s var(--ease); }
}

/* Grain */
body::after { content: ""; position: fixed; inset: -60%; z-index: 60; pointer-events: none; background: url("img/grain.png"); opacity: .09; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) { .has-cursor body::after { animation: grain .9s steps(6) infinite; } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); } }

/* Preloader: the O assembles, first visit only, CSS only (it can never hang), 1.5 s at most */
.preloader { display: none; }
.is-loading .preloader { display: grid; place-items: center; position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--cream); animation: plOut .5s 1s var(--ease) forwards; }
.preloader svg { width: 120px; overflow: visible; }
.preloader .pl-top { animation: plTop .85s var(--ease) both; }
.preloader .pl-bot { animation: plBot .85s .08s var(--ease) both; }
.preloader__n { position: absolute; bottom: var(--pad); right: var(--pad); font: 300 64px/1 "Sora", sans-serif; font-variant-numeric: tabular-nums; }
.preloader__n::after { counter-reset: n var(--n); content: counter(n); animation: count .95s steps(20) forwards; }
@property --n { syntax: "<integer>"; initial-value: 0; inherits: false; }
@keyframes count { to { --n: 100; } }
@keyframes plTop { from { transform: translateY(-60px); opacity: 0; } }
@keyframes plBot { from { transform: translateX(160px); opacity: 0; } }
@keyframes plOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Custom cursor (full level, desktop) */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role=slider], .has-cursor summary { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); transition: transform .45s var(--ease), background .3s; }
.cursor[data-mode="link"] .cursor__dot { transform: scale(3.4); background: rgb(210 80 28 / .35); }
.cursor[data-mode="view"] .cursor__dot { transform: scale(8); background: var(--orange); }
.cursor__label { position: absolute; transform: translate(-50%, -50%); font: 500 13px/1 "Sora", sans-serif; color: var(--cream); letter-spacing: .06em; opacity: 0; transition: opacity .3s; }
.cursor[data-mode="view"] .cursor__label { opacity: 1; }

/* ?still: transparent page with only the 3D mark, used to capture the light version's picture */
[data-still] body, html[data-still] { background: transparent !important; }
[data-still] body::after, [data-still] .nav, [data-still] .hero > :not(.hero__stage), [data-still] main > :not(.hero), [data-still] .island, [data-still] .hero__still, [data-still] .cursor, [data-still] .foot { display: none !important; }

/* Page transitions (View Transitions API): the new page opens as a circle, the O, from the logo */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtOut .5s var(--ease) both; }
  ::view-transition-new(root) { animation: vtIn .7s var(--ease) both; }
}
@keyframes vtOut { to { opacity: .4; transform: scale(.985); } }
@keyframes vtIn { from { clip-path: circle(0% at 46px 42px); } to { clip-path: circle(150% at 46px 42px); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.excl-h { margin: 56px 0 18px; }
