/* AR Mirror — Figma template #4, cloned 1:1.
   Design canvas 1920x1080 per screen; --px is one design pixel, so every size below
   is the measured value. Positions are % of the stage, which is the viewport.

   Typefaces were measured, not guessed, against the pack's own tiles composited
   into full-page references:
     display = Tektur 400/500 with ss01 (flat-apex A), ss02 (C, S) and ss05 (L) —
       left-edge RMS 0.38px against 17.85 for the nearest non-Tektur candidate
     body    = Urbanist 400 — mean glyph XOR 0.163 vs 0.383 for the runner-up
   The glass-card headings deliberately use Tektur WITHOUT the stylistic sets: that
   is a real inconsistency in the original (RMS 0.46 with defaults vs 3.07 with the
   sets), reproduced rather than tidied up. */

@font-face{
  font-family:"Tektur"; font-style:normal; font-weight:400 900; font-display:swap;
  src:url("assets/fonts/Tektur-latin-var.woff2") format("woff2");
}
@font-face{
  font-family:"Urbanist"; font-style:normal; font-weight:100 900; font-display:swap;
  src:url("assets/fonts/Urbanist-latin-var.woff2") format("woff2");
}

:root{
  --px: min(0.0520833vw, 0.0925926vh);

  --display: "Tektur", system-ui, sans-serif;
  --ui: "Urbanist", system-ui, sans-serif;
  --sets: "ss01","ss02","ss05";

  --ink: #223140;
  --paper: #EBF2FB;

  --z-world: 0;
  --z-s3: 10;
  --z-s2: 20;
  --z-s1: 30;
  --z-flash: 40;
  --z-nav: 100;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:auto; }
body{
  margin:0; background:#0F1D36; color:#fff;
  font-family:var(--ui); font-weight:400;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
picture{ display:contents; }

/* the 3-dot glyph: two dots left, one centred right */
.dots{
  display:inline-block; width:calc(13 * var(--px)); height:calc(14 * var(--px));
  margin-left:calc(9 * var(--px)); vertical-align:middle;
  background:
    linear-gradient(currentColor 0 0) 0 0 / calc(4 * var(--px)) calc(4 * var(--px)),
    linear-gradient(currentColor 0 0) 0 100% / calc(4 * var(--px)) calc(4 * var(--px)),
    linear-gradient(currentColor 0 0) 100% 50% / calc(4 * var(--px)) calc(4 * var(--px));
  background-repeat:no-repeat;
}

/* ---------------------------------------------------------------- nav */

.nav{
  position:fixed; inset:0 0 auto 0; z-index:var(--z-nav);
  height:calc(88 * var(--px));
  display:flex; align-items:center;
  padding:0 calc(43 * var(--px)) 0 calc(33 * var(--px));
  padding-top:env(safe-area-inset-top);
}
.nav__logo svg{
  width:calc(56 * var(--px)); height:calc(30 * var(--px));
  fill:none; stroke:#fff; stroke-width:3;
}
.nav__menu{
  position:absolute; left:50%; transform:translateX(-50%);
  display:flex; gap:calc(82 * var(--px));
}
.nav__item{
  font-size:calc(16 * var(--px)); letter-spacing:.01em;
  color:rgba(255,255,255,.65);
  transition:color .15s ease-out;
}
.nav__item.is-active,.nav__item:hover{ color:#fff; }

.pill{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; white-space:nowrap;
  font-family:var(--ui); letter-spacing:-.015em;
}
.pill--glass{
  margin-left:auto;
  height:calc(52 * var(--px)); padding:0 calc(28 * var(--px));
  font-size:calc(15 * var(--px)); color:#fff;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(calc(14 * var(--px)));
  -webkit-backdrop-filter:blur(calc(14 * var(--px)));
  border:1px solid rgba(255,255,255,.35);
}
.pill--solid{
  height:calc(75 * var(--px)); padding:0 calc(34 * var(--px));
  font-size:calc(18 * var(--px)); font-weight:500;
  background:#fff; color:var(--ink);
  box-shadow:0 calc(8 * var(--px)) calc(26 * var(--px)) rgba(15,29,54,.18);
}

/* ---------------------------------------------------------------- stage */

.track{ height:500svh; position:relative; }
.stage{ position:sticky; top:0; height:100svh; width:100%; overflow:clip; }

.world{ position:absolute; inset:0; z-index:var(--z-world); }
.world__clip,.world__room{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.world__room{ opacity:0; }

/* the hero ground is a rendered wall/floor seam, not a vector edge: the boundary
   runs from (0, 70.3%) to (100%, 38.1%) and its softness widens toward the left */
.world__split{
  position:absolute; inset:0;
  background:
    linear-gradient(162.1deg,
      rgba(54,57,68,.96) 0%, rgba(78,89,101,.92) 26%,
      rgba(120,140,164,.55) 41%, rgba(226,236,247,.10) 52%,
      rgba(235,242,251,0) 62%);
}
.world__s2bg{
  position:absolute; inset:0; opacity:0;
  background:linear-gradient(180deg,rgba(112,136,158,.62) 0%,rgba(169,186,200,.22) 42%,rgba(233,243,251,.55) 90%);
}
.world__flash{
  position:absolute; inset:0; z-index:var(--z-flash);
  background:#F3F7FB; opacity:0; pointer-events:none;
}

/* ---------------------------------------------------------------- screens */

.s1,.s2,.s3{ position:absolute; inset:0; }
.s1{ z-index:var(--z-s1); }
.s2{ z-index:var(--z-s2); }
.s3{ z-index:var(--z-s3); opacity:0; }
.s1 > *,.s2 > *,.s3 > *{ position:absolute; }

/* the copy leaves and arrives through a venetian slat wipe, the device the
   reference uses at both hand-offs */
.slat{
  --slat: 1;
  -webkit-mask-image:repeating-linear-gradient(to bottom,
    #000 0, #000 calc(var(--slat) * 2.1%), transparent calc(var(--slat) * 2.1%), transparent 2.1%);
  mask-image:repeating-linear-gradient(to bottom,
    #000 0, #000 calc(var(--slat) * 2.1%), transparent calc(var(--slat) * 2.1%), transparent 2.1%);
}

/* --- screen 1 ------------------------------------------------------- */

.s1__left{ left:0; top:0; right:0; bottom:0; }
.s1__right{ left:0; top:0; right:0; bottom:0; }
.s1__left > *,.s1__right > *{ position:absolute; }

.s1__title{
  left:0; top:18.4%; right:0; margin:0;
  font-family:var(--display); font-feature-settings:var(--sets);
  font-weight:400; font-size:calc(100 * var(--px)); line-height:calc(105 * var(--px));
  letter-spacing:-.0131em; text-transform:uppercase; color:#F8FBFE;
}
.s1__title span{ display:block; }
.s1__l1{ margin-left:13.34%; }   /* right-aligned to FREEDON's right edge */
.s1__l2{ margin-left:2.06%; }    /* the global left content margin */
.s1__l3{ margin-left:6.00%; }    /* one step in from it */

.s1__lede{
  left:3.95%; top:52.5%; margin:0;
  font-size:calc(26 * var(--px)); line-height:calc(47 * var(--px));
  letter-spacing:-.015em; color:#ACBBCA;
}
.s1__left .pill--solid{ left:5.73%; top:63.8%; }

.avatar{
  left:2.00%; top:77.47%;
  width:13.06%; height:19.47%;
  border-radius:calc(45 * var(--px)); overflow:hidden; background:#F2F2F2;
}
.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.eyebrow{
  left:73.21%; top:25.79%; margin:0;
  font-family:var(--display); font-weight:500;
  font-size:calc(15 * var(--px)); letter-spacing:.161em; color:rgba(255,255,255,.8);
}
.s1__h2{
  left:73.21%; top:29.2%; margin:0;
  font-family:var(--display); font-feature-settings:var(--sets); font-weight:500;
  font-size:calc(41 * var(--px)); line-height:calc(53 * var(--px));
  letter-spacing:-.0047em; text-transform:uppercase; color:#E9EDF2;
}

.cards,.chips{ position:absolute; inset:0; }
.card{
  position:absolute; overflow:hidden;
  border-radius:calc(30 * var(--px));
  padding:calc(26 * var(--px)) calc(28 * var(--px));
  display:flex; flex-direction:column; justify-content:flex-end;
}
.card__value{
  margin:0; font-family:var(--display); font-feature-settings:var(--sets);
  font-weight:400; font-size:calc(58 * var(--px)); line-height:1; letter-spacing:-.0124em;
  font-variant-numeric:tabular-nums;
}
.card__label{ margin:calc(8 * var(--px)) 0 0; font-size:calc(24 * var(--px)); letter-spacing:-.005em; }
.card__art{ position:absolute; object-fit:cover; }

.card--12h{
  left:63.92%; top:62.35%; width:11.62%; height:19.37%;
  background:linear-gradient(150deg,rgba(231,238,247,.55),rgba(207,213,217,.4));
  backdrop-filter:blur(calc(16 * var(--px))); -webkit-backdrop-filter:blur(calc(16 * var(--px)));
  border:1px solid rgba(255,255,255,.5);
  color:#101418;
}
.card--12h .card__label{ color:#5A6470; }
.card--12h .dots{ position:absolute; right:calc(26 * var(--px)); top:calc(26 * var(--px)); margin:0; color:#2C3644; }

.card--8k{
  left:74.50%; top:78.30%; width:11.70%; height:18.75%; z-index:2;
  background:linear-gradient(160deg,#323944,#3E414D); color:#E8ECF4;
}
.card--8k .card__art{ right:0; top:0; width:56%; height:42%; }
.card--8k .card__label{ color:#B9C0CB; }

.card--40{
  left:86.10%; top:62.35%; width:12.10%; height:35.48%; z-index:3;
  transform:rotate(2deg); transform-origin:50% 50%;
  background:#F7F9FC; color:#0E0F0E;
}
.card--40 .card__art{ left:0; top:0; width:100%; height:62%; }
.card--40 .card__label{ color:#5A6470; }

/* --- screen 2 ------------------------------------------------------- */

.s2__title{
  left:1.90%; top:20.81%; margin:0;
  font-family:var(--display); font-feature-settings:var(--sets); font-weight:400;
  font-size:calc(75 * var(--px)); line-height:calc(72 * var(--px));
  letter-spacing:-.0069em; text-transform:uppercase; color:#F4F8FA;
}
.s2__title span{ display:block; }

.s2__right{ left:81.4%; top:25.5%; width:18%; }
.s2__h3{
  margin:0; font-family:var(--display); font-feature-settings:var(--sets); font-weight:500;
  font-size:calc(38 * var(--px)); line-height:calc(48 * var(--px));
  letter-spacing:-.005em; text-transform:uppercase; color:rgba(255,255,255,.88);
}
.s2__body{
  margin:calc(22 * var(--px)) 0 0;
  font-size:calc(26 * var(--px)); line-height:calc(37 * var(--px));
  letter-spacing:-.015em; color:#B1C0CD;
}


.chip{
  position:absolute; overflow:hidden;
  border-radius:calc(48 * var(--px));
  padding:calc(24 * var(--px)) calc(26 * var(--px));
  display:flex; flex-direction:column; justify-content:flex-end;
}
.chip__art{ position:absolute; right:0; top:0; width:64%; height:62%; object-fit:cover; }
.chip__value{
  margin:0; font-family:var(--display); font-feature-settings:var(--sets); font-weight:400;
  font-size:calc(54 * var(--px)); line-height:1; letter-spacing:-.0124em;
  font-variant-numeric:tabular-nums;
}
.chip__label{ margin:calc(6 * var(--px)) 0 0; font-size:calc(24 * var(--px)); letter-spacing:-.005em; }

.chip--1b{ left:25.2%; top:73.6%; width:14.9%; height:25.4%; transform:rotate(-6deg);
           background:#E9EFF8; color:#101418; }
.chip--1b .chip__label{ color:#5A6470; }
.chip--1ms{ left:44.1%; top:80.4%; width:12.0%; height:19.2%; transform:rotate(-4.5deg);
            background:#363B44; color:#fff; }
.chip--1ms .chip__label{ color:rgba(255,255,255,.7); }
.chip--92{ left:58.9%; top:76.4%; width:13.9%; height:22.6%; transform:rotate(-7deg);
           background:#E9F3FB; color:#101418; }
.chip--92 .chip__label{ color:#5A6470; }

/* --- screen 3 ------------------------------------------------------- */

.glass{
  width:15.6%; height:24.6%;
  border-radius:calc(24 * var(--px));
  padding:calc(33 * var(--px));
  background:rgba(255,255,255,.22);
  backdrop-filter:blur(calc(24 * var(--px))); -webkit-backdrop-filter:blur(calc(24 * var(--px)));
  border:1px solid rgba(255,255,255,.4);
  opacity:0;
}
.glass h3{
  margin:0 0 calc(14 * var(--px));
  font-family:var(--display);
  font-feature-settings:normal;   /* the original drops the stylistic sets here */
  font-weight:500; font-size:calc(28 * var(--px)); line-height:calc(34 * var(--px));
  letter-spacing:.0033em; text-transform:uppercase; color:#F2F5F7;
}
.glass p{
  margin:0; font-size:calc(21 * var(--px)); line-height:calc(28 * var(--px));
  letter-spacing:-.027em; color:rgba(255,255,255,.85);
}
.glass--sc{ left:2.15%; top:26.9%; }
.glass--pi{ left:82.3%; top:27.0%; }
.glass--rt{ left:42.3%; top:70.2%; }

.shot{
  width:15.6%; height:24.7%;
  border-radius:calc(24 * var(--px)); overflow:hidden; opacity:0;
}
.shot img{ width:100%; height:100%; object-fit:cover; display:block; }
.shot--avatar{ left:17.0%; top:58.9%; background:#F4F4F4; }
.shot--woman{ left:67.5%; top:58.9%; }

/* ---------------------------------------------------------------- responsive */

@media (max-width:900px){
  :root{ --px: min(0.14vw, 0.0925926vh); }

  /* the wipe is a proportion of each block's height, so on a tall portrait block
     2.1% bands read as corruption rather than as slats */
  .slat{
    -webkit-mask-image:repeating-linear-gradient(to bottom,
      #000 0, #000 calc(var(--slat) * .9%), transparent calc(var(--slat) * .9%), transparent .9%);
    mask-image:repeating-linear-gradient(to bottom,
      #000 0, #000 calc(var(--slat) * .9%), transparent calc(var(--slat) * .9%), transparent .9%);
  }

  .nav{ height:60px; padding:0 5vw; }
  .nav__menu{ display:none; }
  .nav__logo svg{ width:44px; height:24px; }
  /* white on the pale studio measured 2.7:1; the pill needs its own base */
  .pill--glass{
    height:44px; font-size:15px; padding:0 18px;
    background:rgba(10,20,34,.58); border-color:rgba(255,255,255,.3);
  }

  .track{ height:620lvh; }

  .s1 > *,.s2 > *,.s3 > *,.s1__left > *,.s1__right > *{ position:static; }
  /* the fixed nav has to be paid for in the layout, or the first line is clipped */
  .s1,.s2{
    display:flex; flex-direction:column; justify-content:center;
    padding:calc(60px + env(safe-area-inset-top) + 16px) 5vw 24px;
    gap:14px;
  }
  .s1__left,.s1__right{
    inset:auto; display:flex; flex-direction:column; gap:12px; width:100%;
  }

  .s1__title{ font-size:clamp(40px,11.2vw,104px); line-height:1.04; margin:0; }
  .s1__l1,.s1__l2,.s1__l3{ margin-left:0; }
  .s1__lede{ font-size:16px; line-height:1.5; margin:0; max-width:34ch; }
  .s1__lede br{ display:none; }
  .s1__left .pill--solid{ height:48px; font-size:16px; padding:0 24px; align-self:flex-start; }
  .avatar{ width:96px; height:82px; border-radius:18px; }

  .eyebrow{ margin:6px 0 0; font-size:12px; }
  .s1__h2{ font-size:clamp(22px,5.4vw,44px); line-height:1.24; margin:0; }

  /* cards must stay positioned, or their absolutely-placed art escapes the card
     and anchors itself to the section instead */
  .cards{ display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; height:auto; }
  .card{ position:relative; inset:auto; width:auto; height:104px; transform:none;
         padding:12px 14px; border-radius:18px; }
  .card--40{ height:104px; }
  .card__value{ font-size:26px; }
  .card__label{ font-size:12px; margin-top:4px; }
  .card--12h .dots{ right:12px; top:12px; }
  .card--8k .card__art{ right:0; top:0; width:46%; height:52%; }
  .card--40 .card__art{ left:auto; right:0; top:0; width:46%; height:60%; }

  .s2__title{ font-size:clamp(34px,9.6vw,84px); line-height:1.06; margin:0; }
  .s2__right{ width:auto; max-width:34ch; }
  .s2__h3{ font-size:clamp(20px,5vw,40px); line-height:1.25; }
  .s2__body{ font-size:16px; line-height:1.5; margin-top:8px; }
  .chips{ display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; height:auto; }
  .chip{ position:relative; inset:auto; width:auto; height:104px; transform:none;
         padding:12px 14px; border-radius:18px; }
  .chip--92{ grid-column:span 2; height:88px; }
  .chip__value{ font-size:26px; }
  .chip__label{ font-size:12px; margin-top:4px; }
  .chip__art{ width:42%; height:56%; }

  /* The copy colours were tuned for the dark half of the desktop diagonal. On a
     phone the same copy lands on the bright studio floor and on the white room, so
     measured contrast fell as low as 1.0:1. The template's own language is glass
     panels, so the copy gets one - it wipes with the slat mask because it sits on
     the masked block itself. */
  .s1__left,.s1__right,.s2__title,.s2__right{
    background:rgba(10,20,34,.62);
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    padding:14px 16px;
  }
  .s1__lede,.s2__body{ color:rgba(255,255,255,.94); }
  .eyebrow{ color:rgba(255,255,255,.9); }
  .s1__h2,.s2__h3{ color:#fff; }
  .card__label,.chip__label{ color:#2A323C; }
  /* the light cards sit on mid-grey video on a phone, so they carry more fill */
  .card--12h,.card--40,.chip--1b,.chip--92{ background:rgba(240,246,252,.9); }
  .card--8k .card__label,.chip--1ms .chip__label{ color:rgba(255,255,255,.92); }
  /* the art must not creep under the numerals on a 104px card */
  .card--8k .card__art,.chip--1ms .chip__art{ opacity:.85; }
  .card--8k::after,.chip--1ms::after{
    content:""; position:absolute; inset:auto 0 0 0; height:62%;
    background:linear-gradient(180deg,rgba(28,32,40,0),rgba(28,32,40,.92));
    pointer-events:none;
  }
  .card--8k .card__value,.card--8k .card__label,
  .chip--1ms .chip__value,.chip--1ms .chip__label{ position:relative; z-index:1; }

  .s3{
    display:grid; grid-template-columns:1fr 1fr; gap:10px; align-content:center;
    padding:calc(60px + env(safe-area-inset-top) + 16px) 5vw 24px;
  }
  .glass,.shot{ position:static; width:auto; height:auto; }
  /* on desktop these sit over the mid-tones of the room; the mobile crop puts the
     bright ceiling behind them, so the glass has to carry its own contrast */
  .glass{
    grid-column:span 2; padding:14px 16px;
    background:rgba(8,17,29,.86);
    border:1px solid rgba(255,255,255,.18);
  }
  .glass h3{ font-size:19px; line-height:1.2; margin-bottom:6px; color:#fff;
             text-shadow:0 1px 6px rgba(6,14,24,.75); }
  .glass h3 br{ display:none; }
  .glass p{ font-size:14px; line-height:1.45; }
  .shot{ aspect-ratio:1/1; }
}

@media (prefers-reduced-motion:reduce){
  .world__clip{ display:none; }
  .nav__item{ transition:none; }
}
