/* AYKO landing v2 — Amel's three slides as three full-screen sections.
   Desktop: every element sits on the slide's own grid (1440 x 810 points, from the .pptx),
   so --x/--y/--w/--h are copied from the slides and --fs is the font size in points.
   Phone (<= 760px or portrait): the same content restacked in normal flow.
   Motion only when landing.js adds .motion to <html> (never with reduced motion);
   without it everything is visible at rest. */

/* Lato, stored on this site (SIL Open Font License, see assets/fonts/Lato-LICENSE.txt). No Google Fonts. */
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-ext-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #121110;
  --white: #ffffff;
  --ivory: #f6f6f6;
  --gold: #c6a678;
  --gold-2: #c9ad82;
  --gold-3: #c6ab7c;
  --muted: rgba(255, 255, 255, .62);
  --line: rgba(198, 166, 120, .35);
  --font: "Lato", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body.ld { overflow-x: clip; overflow-anchor: none; }
body.ld { margin: 0; background: var(--ink); color: var(--white); font-family: var(--font); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Header ---------- */
.ld-top {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 18px max(24px, env(safe-area-inset-left, 0px));
  transition: background-color .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 0;
}
.ld-top.away { transform: translateY(-100%); }
.ld-top { transition: background-color .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease); }
.ld-top.solid { background: rgba(18, 17, 16, .94); padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.ld-brand { font-size: 12px; letter-spacing: .34em; text-decoration: none; }
.ld-nav { display: flex; align-items: center; gap: 22px; }
.ld-lang, .ld-order { font-size: 11px; letter-spacing: .24em; text-decoration: none; text-transform: uppercase; }
.ld-lang { color: var(--muted); transition: color .3s; }
.ld-lang:hover { color: var(--white); }
.ld-order { color: var(--gold); border: 1px solid var(--line); padding: 9px 16px; transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s; }
.ld-order:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- Slides (desktop: the pptx grid) ---------- */
.slide { position: relative; background: var(--ink); overflow: hidden; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; }
.stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s1-text, .s2-col, .s2-head, .s2-sign, .s3-text, .s3-head { display: contents; }

.b {
  position: absolute; margin: 0;
  left: calc(var(--x, 0) * 100% / 1440);
  top: calc(var(--y, 0) * 100% / 810);
  width: calc(var(--w, 1440) * 100% / 1440);
  font-size: calc(var(--fs, 20) * 100cqw / 1440);
  letter-spacing: var(--ls, 0);
  line-height: var(--lh, 1.15);
  font-weight: 300;
}
img.b { height: calc(var(--h, 810) * 100% / 810); object-fit: contain; }
.b em { font-style: normal; color: var(--gold); }

/* Slide 1 */
.s1-frame { --x: 736; --y: 84; --w: 703; --h: 725; }
.s1-ayko  { --x: 92;  --y: 214; --w: 503; --fs: 114;   --ls: .2754em; --lh: 1; text-align: center; padding-left: .2754em; }
.s1-ess   { --x: 84;  --y: 344; --w: 519; --fs: 44;    --ls: .409em;  color: var(--gold); text-align: center; padding-left: .409em; }
.s1-line  { --x: 273; --y: 421; --w: 137; --h: 17; }
.s1-by    { --x: 150; --y: 456; --w: 386; --fs: 35.46; --ls: .15em;   text-align: center; padding-left: .15em; }
.s1-tag   { --x: 58;  --y: 554; --w: 561; --fs: 28.38; --ls: .05em;   --lh: 1.32; text-align: center; }

/* Slide 2 */
.s2-left  { --x: 0;    --y: 0;   --w: 720; --h: 810; object-fit: cover; }
.s2-right { --x: 720;  --y: 0;   --w: 720; --h: 810; object-fit: cover; }
.s2-blade { --x: 0;    --y: 0;   --w: 326; --h: 742; }
.s2-hand  { --x: 1045; --y: 0;   --w: 394; --h: 439; }
.s2-frame { --x: 1113; --y: 302; --w: 326; --h: 338; }
.s2-two   { --x: 341; --y: 102; --w: 544; --fs: 68.45; --ls: .0497em; --lh: 1; text-align: center; }
.s2-one   { --x: 383; --y: 172; --w: 458; --fs: 68.45; --ls: .0497em; --lh: 1; text-align: center; color: var(--gold-2); }
.s2-north .b { text-align: right; }
.s2-n1 { --x: 347; --y: 282; --w: 269; --fs: 24.87; --ls: .0997em; }
.s2-n2 { --x: 347; --y: 312; --w: 269; --fs: 50;    --ls: .0498em; --lh: 1; }
.s2-n3 { --x: 347; --y: 383; --w: 269; --fs: 21.79; --ls: .1em; }
.s2-n4 { --x: 347; --y: 428; --w: 269; --fs: 19.86; --ls: .0196em; --lh: 1.25; }
.s2-n5 { --x: 347; --y: 508; --w: 269; --fs: 19.86; --ls: .0196em; --lh: 1.25; }
.s2-divider { --x: 651; --y: 269; --w: 18; --h: 355; }
.s2-east .b { text-align: left; }
.s2-e1 { --x: 704; --y: 282; --w: 360; --fs: 24.87; --ls: .0997em; }
.s2-e2 { --x: 703; --y: 312; --w: 360; --fs: 50;    --ls: .0498em; --lh: 1; }
.s2-e3 { --x: 705; --y: 383; --w: 260; --fs: 21.79; --ls: .1em; color: var(--gold-2); }
.s2-e4 { --x: 704; --y: 428; --w: 260; --fs: 19.86; --ls: .0196em; --lh: 1.25; }
.s2-e5 { --x: 704; --y: 508; --w: 260; --fs: 19.86; --ls: .0196em; --lh: 1.25; }
.s2-sign1 { --x: 540; --y: 667; --w: 180; --fs: 50;    --ls: .1em; --lh: 1; text-align: right; }
.s2-sign2 { --x: 540; --y: 732; --w: 180; --fs: 20.47; --ls: .1em; text-align: right; }

/* Slide 3 */
.s3-portrait { --x: 445; --y: 0; --w: 994; --h: 810; object-fit: cover; object-position: right center; }
.s3-see     { --x: 30; --y: 70;  --w: 826; --fs: 81.01; --lh: 1.2; color: var(--ivory); }
.s3-through { --x: 30; --y: 157; --w: 826; --fs: 85.19; --lh: 1.2; font-weight: 700; color: var(--gold-3); }
.s3-line    { --x: 26; --y: 299; --w: 172; --h: 18; object-position: left center; }
.s3-concept { --x: 38; --y: 350; --w: 600; --fs: 25.75; }
.s3-adv     { --x: 38; --y: 376; --w: 600; --fs: 55.54; --lh: 1.2; font-weight: 700; color: var(--gold-3); }
.s3-contact { --x: 38; --y: 480; --w: 700; --fs: 24; }
.s3-contact a { text-decoration: none; transition: color .3s; }
.s3-contact a:hover { color: var(--gold); }
.s3-cta     { --x: 38; --y: 580; --w: 600; --fs: 16; }

/* ---------- Button ---------- */
.ld-btn {
  position: relative; display: inline-flex; align-items: center; gap: 1.1em; overflow: hidden;
  padding: 1.15em 2em; border: 1px solid var(--gold); color: var(--white);
  font-size: max(12px, 1em); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  transition: color .5s var(--ease), background-color .5s var(--ease);
}
.ld-btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 236, 200, .35) 50%, transparent 80%);
}
.ld-btn:hover { background: var(--gold); color: var(--ink); }
.ld-btn:hover::after { transform: translateX(120%); transition: transform 1s var(--ease); }
.ld-arrow { transition: transform .5s var(--ease); letter-spacing: 0; }
.ld-btn:hover .ld-arrow { transform: translateX(6px); }

/* Scroll cue */
.ld-scroll {
  position: absolute; left: 50%; bottom: 3.5%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .34em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.ld-scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Footer ---------- */
.ld-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 26px max(24px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: .02em;
}
.ld-foot p { margin: 0; }
.ld-foot a { text-decoration: none; transition: color .3s; }
.ld-foot a:hover { color: var(--white); }

/* ---------- Phone and portrait screens: full-screen cards that stack ---------- */
/* Each slide is a card. The next card slides over the previous one, like on desktop.
   Cards taller than the screen stick at their bottom edge (--stick, set by landing.js). */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .slide { position: sticky; top: var(--stick, 0px); min-height: 100vh; min-height: 100svh; }
  .s1 { z-index: 1; } .s2 { z-index: 2; } .s3 { z-index: 3; }
  .s2-e5 br, .s2-n4 br, .s2-e4 br { display: none; }
  .motion .slide .stage { transform-origin: 50% 0; will-change: transform; }

  .stage {
    aspect-ratio: auto; min-height: 100vh; min-height: 100svh; container-type: normal; isolation: isolate;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-block: 96px calc(56px + env(safe-area-inset-bottom, 0px));
    padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  .stage .bg { z-index: -1; }
  .b { position: relative; display: block; left: auto; top: auto; width: auto; letter-spacing: var(--ls, 0); }
  img.b { height: auto; }
  .s1-text, .s2-col, .s2-head, .s3-text, .s3-head { display: block; position: relative; z-index: 2; }

  /* Slide 1: the glasses large and bright, the title over a dark fade at the bottom */
  .s1 .stage::after, .s3 .stage::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(transparent 30%, rgba(10, 9, 8, .82) 52%, rgba(10, 9, 8, .95));
  }
  /* Glasses higher and a little smaller, so the title sits on the dark part, not on the silver frame. */
  .s1-frame { position: absolute; top: 3svh; right: -30%; width: 116%; max-width: none; z-index: 0; }
  .s1-text { text-align: center; text-shadow: 0 2px 22px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .4); }
  .s1-ayko { font-size: clamp(56px, 19vw, 120px); }
  .s1-ess  { font-size: clamp(20px, 7.4vw, 44px); margin-top: .3em; }
  .s1-line { width: 34%; max-width: 140px; margin: 22px auto 18px; }
  .s1-by   { font-size: clamp(16px, 5.6vw, 30px); }
  .s1-tag  { font-size: clamp(16px, 4.8vw, 24px); margin-top: 26px; }
  .s1 .stage { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .ld-scroll { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 2; }

  /* Slide 2: the heading, then two full-bleed panels: the blade (north) and the fabric (east) */
  .s2 .stage { justify-content: flex-start; padding: 0; background: var(--ink); }
  .s2 .bg, .s2-blade, .s2-hand, .s2-frame, .s2-divider { display: none; }
  .s2-head { padding: 88px 24px 32px; margin: 0; text-align: center; }
  .s2-two, .s2-one { font-size: clamp(28px, 9vw, 64px); text-align: center; white-space: nowrap; }
  .s2-col {
    min-height: 72vh; min-height: 72svh; display: flex; flex-direction: column; justify-content: center;
    padding: 40px 28px; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); text-align: center; background: var(--ink) center / cover no-repeat;
  }
  /* The photo shows in the top part; the fade starts behind the text. */
  /* Each photo melts into the dark at its top and bottom (same colour as the page), so the panels
     flow into the heading and into each other without a hard line. */
  .s2-north { background-image: linear-gradient(rgb(18, 17, 16), rgba(18, 17, 16, .25) 16%, rgba(18, 17, 16, .7) 34%, rgba(18, 17, 16, .7) 70%, rgba(18, 17, 16, .3) 84%, rgb(18, 17, 16)), url("m-north.jpg"); background-position: 30% center; }
  .s2-east  { background-image: linear-gradient(rgb(18, 17, 16), rgba(18, 17, 16, .2) 16%, rgba(18, 17, 16, .64) 34%, rgba(18, 17, 16, .64) 70%, rgba(18, 17, 16, .25) 84%, rgb(18, 17, 16)), url("m-east.jpg"); background-position: 62% center; }
  /* Each panel reveals its own text when it arrives (landing.js marks it .in), quickly. */
  .s2-col { --tempo: .3; }

  .s2-north .b, .s2-east .b { text-align: center; }
  .s2-n1, .s2-e1 { font-size: clamp(14px, 4.4vw, 22px); }
  .s2-n2, .s2-e2 { font-size: clamp(30px, 10vw, 48px); margin-top: 4px; }
  .s2-n3, .s2-e3 { font-size: clamp(13px, 3.9vw, 19px); margin-top: 12px; }
  .s2-n3 { color: var(--gold-2); }
  .s2-n4, .s2-e4, .s2-n5, .s2-e5 { font-size: clamp(15px, 4.1vw, 18px); line-height: 1.5; max-width: 32ch; margin: 12px auto 0; }

  /* Slide 3: the portrait fills the screen, text over a dark fade, footer below */
  .s3 .stage { justify-content: flex-end; }
  .s3-portrait {
    /* Its own block at the top (normal flow): it scales with the screen width and the text always
       follows below it, so face and title can never overlap, whatever the screen size. */
    position: relative; inset: auto; display: block; z-index: 0;
    width: calc(100% + 48px); max-width: none; margin: 0 -24px;
    height: min(118vw, 66vh); height: min(118vw, 66svh); object-fit: cover; object-position: 62% 8%;
    -webkit-mask-image: linear-gradient(#000 60%, transparent 98%); mask-image: linear-gradient(#000 60%, transparent 98%);
  }
  .s3-contact a { white-space: nowrap; }
  /* The text starts below the face, in the dark part, and each title line fits on one row. */
  .s3 .stage { padding-top: 0; justify-content: flex-start; background: var(--ink); }
  .s3 .stage::after { display: none; }
  .s3-text { margin-top: -9vw; } /* tucks into the dark fade under the shoulders, never onto the face */
  .s3 .stage > .bg { display: none; } /* no second pair of glasses showing through under the face */
  .s3-see { font-size: clamp(28px, 8.6vw, 64px); white-space: nowrap; }
  .s3-through { font-size: clamp(30px, 9.2vw, 68px); white-space: nowrap; }
  .s3-line { width: 120px; margin: 22px 0 20px; }
  .s3-concept { font-size: clamp(13px, 4.1vw, 22px); }
  .s3-adv { font-size: clamp(28px, 9vw, 52px); }
  .s3-contact { font-size: clamp(13px, 3.8vw, 20px); margin-top: 16px; line-height: 1.6; }
  .s3-cta { font-size: 13px; margin-top: 30px; }
  .ld-btn { width: 100%; justify-content: center; }
  .s3 .ld-foot { position: relative; z-index: 6; background: var(--ink); padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  /* Last slide = text + footer together fill one screen (no empty band above the footer). */
  .s3 { display: flex; flex-direction: column; }
  .s3 .stage { min-height: 0; flex: 1 0 auto; padding-bottom: 36px; }
}

/* ---------- Motion (landing.js adds .motion; never with reduced motion) ---------- */
@keyframes ld-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes ld-cue { 0%, 100% { opacity: .35; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, 6px); } }

.motion .slide .bg { animation: ld-drift 18s var(--ease) both; }
.motion .ld-scroll { animation: ld-cue 2.6s ease-in-out infinite; }

.motion .b {
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), filter 1.6s var(--ease), letter-spacing 2.2s var(--ease);
  transition-delay: calc(var(--d, 0s) * var(--tempo, 1));
}
.motion .slide:not(.in) .b { opacity: 0; transform: translateY(18px); }

/* Slide 1: frame comes into focus, AYKO letters settle, gold line draws */
.motion .s1:not(.in) .s1-frame { transform: translateX(6%) scale(1.04); filter: blur(10px); }
.motion .s1:not(.in) .s1-ayko { letter-spacing: .6em; transform: none; }
.motion .s1:not(.in) .s1-line { transform: scaleX(0); }
.s1-frame { --d: .2s; --depth: -40px; }
.s1-ayko  { --d: .5s; }
.s1-ess   { --d: 1.1s; }
.s1-line  { --d: 1.4s; transform-origin: center; }
.s1-by    { --d: 1.6s; }
.s1-tag   { --d: 1.9s; }

/* Slide 2: the two worlds slide in from the sides, the divider grows */
.motion .s2:not(.in) .s2-left  { transform: translateX(-5%); }
.motion .s2:not(.in) .s2-right { transform: translateX(5%); }
.motion .s2:not(.in) .s2-blade { transform: translateY(-10%); }
.motion .s2:not(.in) .s2-hand  { transform: translateX(10%); }
.motion .s2:not(.in) .s2-frame { transform: translate(8%, 8%) rotate(-6deg); }
.motion .s2:not(.in) .s2-divider { transform: scaleY(0); }
.s2-left  { --d: 0s; }
.s2-right { --d: 0s; }
.s2-blade { --d: .4s; --depth: 50px; }
.s2-hand  { --d: .6s; --depth: 36px; }
.s2-frame { --d: .8s; --depth: -30px; }
.s2-two   { --d: .5s; }
.s2-one   { --d: .75s; }
.s2-divider { --d: 1s; transform-origin: top; }
.s2-n1, .s2-e1 { --d: 1.1s; }
.s2-n2, .s2-e2 { --d: 1.25s; }
.s2-n3, .s2-e3 { --d: 1.4s; }
.s2-n4, .s2-e4 { --d: 1.55s; }
.s2-n5, .s2-e5 { --d: 1.7s; }
.s2-sign1 { --d: 1.9s; }
.s2-sign2 { --d: 2s; }

/* Slide 3: portrait steps out of the dark, text follows */
/* The portrait's entrance is tied to the scroll in landing.js (glides in, slow zoom). */
.motion .s3:not(.in) .s3-line { transform: scaleX(0); }
.s3-portrait { --d: .1s; --depth: -24px; }
.s3-see     { --d: .4s; }
.s3-through { --d: .6s; }
.s3-line    { --d: .9s; transform-origin: left; }
.s3-concept { --d: 1.1s; }
.s3-adv     { --d: 1.25s; }
.s3-contact { --d: 1.45s; }
.s3-cta     { --d: 1.7s; }

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .motion .b { translate: none; }
}

/* ---------- Premium layer: stacked slides + text rising out of a mask ---------- */
/* Desktop: each slide is one screen and sticks; the next slide slides over it while the
   previous one sinks back (--cover 0..1 is set by landing.js). */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .slide {
    position: sticky; top: 0; height: 100vh; height: 100svh;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink) center / cover no-repeat;
  }
  .s1 { background-image: url("s1-bg.jpg"); z-index: 1; }
  .s2 { background-image: url("s2-bg.jpg"); z-index: 2; }
  .s3 { background-image: url("s3-bg.jpg"); z-index: 3; }
  /* 100% (not 100vw): 100vw includes the scrollbar and made the page scroll sideways. */
  .stage { width: min(100%, 177.78vh); width: min(100%, 177.78svh); flex: none; }
  /* On the slides the header stays out of the picture; it comes back at the very top
     or when the mouse goes to the top edge (landing.js). */
  /* Scroll-linked, so no CSS transition here: the values follow the scroll 1:1 (eased in JS).
     Only transform and opacity change, which the browser can animate without repainting. */
  .motion .slide .stage {
    transform-origin: 50% 30%;
    will-change: transform;
  }
  .motion .slide::after { will-change: opacity; }
  /* The incoming slide's photo moves a little slower than the slide itself: depth while it slides in. */
  .motion .slide .bg { will-change: transform; }
  /* The footer sits on the bottom edge of the last slide, so a full scroll never pushes that slide up.
     Paid plan: no host badge any more, so no extra room on the right (was 220px). */
  .s3 .ld-foot {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
    border-top: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .6));
    padding: 48px max(32px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(32px, env(safe-area-inset-left, 0px));
    justify-content: space-between; gap: 28px; font-size: 12px;
  }

}

/* Slides 2 and 3 play faster, so the text arrives while the slide is still sliding in. */
.s2, .s3 { --tempo: .55; }
/* First screen: everything in place within about 1.5 seconds. */
.s1 { --tempo: .4; }
.motion .s1 .b:not(img) { transition-duration: .9s, .9s, .7s, 1.2s; }
.motion .s1 .s1-frame { transition-duration: 1.1s; }

/* Text rises out of an invisible line: landing.js wraps each text in <span class="ld-in">, the text box
   hides what is outside it, and only the span moves (transform = smooth, handled by the graphics chip). */
.motion .b:not(img) { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.motion .slide:not(.in) .b:not(img) { opacity: 1; transform: none; }
.ld-in { display: inline-block; }
.motion .ld-in {
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0s) * var(--tempo, 1));
  will-change: transform;
}
.motion .slide:not(.in) .ld-in { transform: translateY(115%); }
/* AYKO: the letters settle from wide to normal spacing (no frame, so the wide letters are not cut). */
.motion .s1-ayko { overflow: visible; }
.motion .s1 .s1-ayko { transition: opacity .9s var(--ease), letter-spacing 1.2s var(--ease); transition-delay: calc(var(--d, 0s) * var(--tempo, 1)); }
.motion .s1:not(.in) .s1-ayko { opacity: 0; letter-spacing: .6em; }
.motion .s1:not(.in) .s1-ayko .ld-in { transform: none; }

/* ---------- Smoothness ---------- */
/* Shade over a slide while the next one slides over it (element added by landing.js; opacity set per frame). */
.ld-shade { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #000; opacity: 0; will-change: opacity; }

/* Phones: no blur and no letter-spacing animation, which would make the phone redraw on every frame.
   Slide 2 panels reveal their own text when each panel arrives (landing.js marks them .in). */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .motion .s2-col:not(.in) .ld-in { transform: translateY(115%); }
  .motion .s1:not(.in) .s1-ayko { letter-spacing: var(--ls, 0); transform: translateY(16px); }
  .motion .s1 .s1-ayko { transition: opacity .8s var(--ease), transform .9s var(--ease); }
  .motion .s1:not(.in) .s1-frame { filter: none; transform: translateY(16px) scale(1.03); }
  .motion .s3:not(.in) .s3-portrait { filter: none; }
}

/* Soft edge: a dark, feathered band leads each incoming slide, so there is no hard line across
   the slide underneath. It fades away once the slide has landed (opacity set by landing.js). */
.slide { overflow: visible; }
.ld-lead {
  position: absolute; left: 0; right: 0; top: -30vh; height: 56vh; z-index: 6; pointer-events: none;
  background: linear-gradient(rgba(10, 9, 8, 0), rgba(10, 9, 8, .7) 30%, rgba(10, 9, 8, 1) 48%, rgba(10, 9, 8, 1) 58%, rgba(10, 9, 8, .6) 74%, rgba(10, 9, 8, 0));
  will-change: opacity;
}
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .ld-lead { top: -16vh; height: 32vh; }
}

/* ---------- Studio layer ---------- */
/* Slim header: a soft dark fade instead of a bar; it hides while you scroll down and returns on the way up. */
/* Frosted on scroll: the page behind is blurred; the blur fades out at the bottom edge (mask),
   so there is no hard line under the header. */
.ld-top { border-bottom: 0; }
.ld-top.solid {
  background: linear-gradient(rgba(10, 9, 8, .62), rgba(10, 9, 8, .28));
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  -webkit-mask-image: linear-gradient(#000 68%, transparent); mask-image: linear-gradient(#000 68%, transparent);
  padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 24px;
}
.ld-top { transition: background-color .5s var(--ease), padding .5s var(--ease), transform .6s var(--ease); }

/* Opening curtain: lifts by itself (pure CSS), so the page never depends on a script to show. */
.ld-curtain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #0b0a09;
  display: flex; align-items: center; justify-content: center;
  animation: ld-lift 1.05s cubic-bezier(.76, 0, .24, 1) .55s forwards;
}
.ld-curtain span { color: var(--gold); font-size: 13px; letter-spacing: .7em; padding-left: .7em; animation: ld-fade .5s ease .4s forwards; }
@keyframes ld-lift { to { transform: translateY(-100%); } }
@keyframes ld-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ld-curtain { display: none; } }

/* Rising card: a new slide arrives as a slightly smaller card with soft corners and grows to full
   screen (landing.js scales it); its own background is clear meanwhile, so the dark slide below shows. */
.slide.rising { background: transparent; }
.stage.rising { border-radius: 26px; box-shadow: 0 -30px 80px rgba(0, 0, 0, .55); }

/* Chapter rail (desktop): 01 02 03 and a thin gold line that fills as you scroll. */
.ld-rail {
  position: fixed; z-index: 15; top: 50%; right: max(22px, env(safe-area-inset-right, 0px)); transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .22em; padding-left: .22em;
}
.ld-rail a { color: rgba(255, 255, 255, .45); text-decoration: none; transition: color .4s var(--ease); }
.ld-rail a:hover, .ld-rail a.on { color: var(--gold); }
.ld-track { position: relative; width: 1px; height: 72px; margin-top: 6px; background: rgba(198, 166, 120, .25); overflow: hidden; }
.ld-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(0); will-change: transform; }
@media (max-width: 760px), (max-aspect-ratio: 1/1) { .ld-rail { display: none; } }

/* ---------- Slide 1 hold ---------- */
/* Slide 1 is taller than the screen and its picture stays pinned, so the first part of the scroll
   plays slide 1 (glasses push in, text drifts up; landing.js) before slide 2 starts to rise. */
.s1 { height: 165vh; height: 165svh; }
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .slide { top: var(--stick, 0px); }
  .s1 { display: block; }
  .s1 .stage { position: sticky; top: max(0px, calc((100vh - 56.25vw) / 2)); top: max(0px, calc((100svh - 56.25vw) / 2)); margin: 0 auto; }
}
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .s1 .stage { position: sticky; top: 0; }
}
