/* OMFX spiral site — glass UI (frosted blur, fine light rims, deep soft shadows) */
@font-face { font-family: "Urbanist"; src: url("fonts/Urbanist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0a0a0b;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .56);
  --faint: rgba(255, 255, 255, .34);
  --accent: #ffffff;
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* long soft landing */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* small overshoot */
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;   /* display + UI */
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;                          /* numbers, counts, times */
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* glass material */
  --glass-light: linear-gradient(160deg, rgba(255,255,255,.24), rgba(255,255,255,.08) 52%, rgba(255,255,255,.13));
  --glass-dark: linear-gradient(180deg, rgba(30,30,34,.66), rgba(12,12,14,.80) 60%, rgba(10,10,12,.86));
  /* rims kept subtle, like Apple's liquid glass: a soft catch of light top-left and bottom-right, not a white outline */
  --rim: linear-gradient(135deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,.14) 20%, rgba(255,255,255,.03) 44%,
                                 rgba(255,255,255,.02) 60%, rgba(214,230,255,.12) 80%, rgba(255,226,244,.20) 91%, rgba(255,255,255,.42) 100%);
  --rim-soft: linear-gradient(160deg, rgba(255,255,255,.24), rgba(255,255,255,.04) 30%, rgba(255,255,255,.02) 70%, rgba(200,215,255,.10));
  --shadow-float: 0 18px 50px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.25);
}
* { box-sizing: border-box; }
/* mobile-native baseline (Emil Kowalski): no tap flash, no font inflation, instant taps, controls aren't selectable */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
button, a, [role="button"], [role="slider"] { touch-action: manipulation; }
button, [role="button"], .pill, .sections button, .socials a, .menu-links a {
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 400;
             -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-optical-sizing: auto;
             overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* background grid (assets/site/grid.js), behind everything */
.grid-bg { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; opacity: 0; }
body.is-ready #stage { opacity: 1; transition: none; }
/* cards fade in/out inside the shader (solid, never see-through), so the canvas itself never goes translucent */

/* ---------- edge & corner blur (layered, gets heavier towards the edges) ---------- */
/* always present (already in place under the intro before any card appears), and always under the logo, menu and buttons */
.edge-blur { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.edge-blur i { position: absolute; inset: 0; }
.edge-blur .b1 { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
                 -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, transparent 55%, #000 80%);
                 mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, transparent 55%, #000 80%); }
.edge-blur .b2 { -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
                 -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, transparent 70%, #000 100%);
                 mask-image: radial-gradient(ellipse 72% 70% at 50% 52%, transparent 70%, #000 100%); }
.edge-blur .b3 { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s linear;
                 -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 52%, transparent 45%, #000 92%);
                 mask-image: radial-gradient(ellipse 70% 66% at 50% 52%, transparent 45%, #000 92%); }

/* ---------- glass system ---------- */
/* one material, two weights: light frosted glass for controls, dark glass for cards and panels */
.glass, .glass-dark { position: relative; isolation: isolate;
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
.glass { background: var(--glass-light); color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.26), inset 0 -1px 1px rgba(255,255,255,.07), inset 0 0 16px rgba(255,255,255,.05),
              0 10px 28px rgba(0,0,0,.32); }
.glass-dark { background: var(--glass-dark); color: #fff;
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 40px rgba(255,255,255,.02), var(--shadow-float); }
/* fine light rim: bright where the light lands (top-left, bottom-right), a faint cool/pink fringe in between */
.glass::before, .glass-dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glass-dark::before { background: var(--rim-soft); }

.pill { border: 0; border-radius: 999px; padding: 11px 18px 12px; font: 500 15px/1 var(--font); letter-spacing: .005em; cursor: pointer;
        display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
        transition: transform .15s ease-out, background-color .2s ease-out, color .2s ease-out, box-shadow .2s ease-out; }
/* press feedback lands on touch-down, on every input type */
.pill:not(:disabled):active, .sections button:active, .socials a:active, .home:active, .disc:active { transform: scale(.96); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; opacity: .9; }

/* glass disc button (the play button from the reference): frosted body, crisp ring, rounded glyph */
.disc { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
        transition: transform .15s ease-out; }
.disc svg { width: 20px; height: 20px; fill: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); position: relative; z-index: 2; }
/* clear liquid-glass disc (after the reference): no frost, no dark tint — what's behind shows straight through,
   with a bright thin rim, light gathering in the curved edge and a curved highlight top-left */
.disc.glass { -webkit-backdrop-filter: saturate(140%) brightness(.8); backdrop-filter: saturate(140%) brightness(.8);
  /* clear edge: no white rim — just the glass's thickness, a slightly deeper tint where it curves */
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.14) 100%), rgba(0,0,0,.18);
  box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.disc.glass::before { display: none; }
.disc.glass svg { filter: none; }   /* clean solid glyphs: no glow, no shadow */

/* ---------- intro: monochrome OMFX logo ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: transparent; display: grid; place-items: center;
         transition: background-color .7s ease-out; }
.intro.is-leaving { background-color: transparent; pointer-events: none; }
.intro.is-gone { display: none; }
/* the O stretches into a rounded box that plays a DVC clip, then folds back into the O */
.intro-clip { display: none; }
.morph { position: fixed; z-index: 2; transform: translate(-50%, -50%); overflow: hidden; pointer-events: none;
         transition: background-color .45s ease; }
.morph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
               opacity: 0; transform: scale(1.08); transition: opacity .3s cubic-bezier(.2, 0, 0, 1), transform .6s cubic-bezier(.2, 0, 0, 1); }
.morph.is-playing img { opacity: 1; transform: none; }
.morph-eye { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); transition: opacity .18s ease, background-color .45s ease; }
.intro-stage { position: relative; width: min(360px, 90vw); height: 380px; display: grid; justify-items: center; }

/* the logo; --s/--tx/--ty move it so only the O sits centred and small */
.mark { position: absolute; top: 40px; width: 150px; height: 141.4px; }
.mark.is-dropping { animation: o-drop .8s var(--ease-out) both; }
@keyframes o-drop {
  0%   { transform: translateY(-60vh); }
  42%  { transform: translateY(0) scale(1.12, .84); }
  60%  { transform: translateY(-26px) scale(.95, 1.06); }
  78%  { transform: translateY(0) scale(1.04, .96); }
  90%  { transform: translateY(-5px); }
  100% { transform: none; }
}
.logo { width: 100%; height: 100%; overflow: visible; display: block;
        transform: scale(.38) translate(39.9px, 35.6px); transition: transform .7s var(--ease-out); }
/* full OMFX stays small: the O keeps its size and the M, F and X join around it */
.mark.is-full .logo { transform: scale(.38); }
.logo path, .logo circle { fill: #fff; }
.logo .eye, .home .eye { fill: var(--bg); transform-box: fill-box; transform-origin: center;
                         transition: transform .38s cubic-bezier(.3, 1.4, .5, 1); }
.lg { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2) translateY(30%); }
.mark.is-full .lg { animation: piece-in .6s var(--ease-spring) forwards; }
.mark.is-full .lg-m { animation-delay: .18s; }
.mark.is-full .lg-f { animation-delay: .26s; }
.mark.is-full .lg-x { animation-delay: .34s; }
@keyframes piece-in { to { opacity: 1; transform: none; } }
/* enter: M, F and X lift up and vanish while the O flies to the corner */
.mark.is-flying { transition: transform .95s cubic-bezier(.7, 0, .2, 1); }
.mark.is-flying .lg { animation: piece-up .55s cubic-bezier(.5, 0, .75, 0) forwards; }
.mark.is-flying .lg-f { animation-delay: .05s; }
.mark.is-flying .lg-x { animation-delay: .1s; }
@keyframes piece-up { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-140%) scale(.6); } }

.intro-text { position: absolute; top: 200px; left: 50%; width: min(92vw, 960px); transform: translateX(-50%); text-align: center; }
.say { position: absolute; left: 0; right: 0; margin: 0; }
/* "Hi": a simple Apple-style fade — soft blur and a few pixels of lift, in and out */
.say-hi { font: 500 36px/1 var(--font); letter-spacing: -.02em;
          opacity: 0; transform: translateY(6px); filter: blur(6px);
          transition: opacity .55s cubic-bezier(.25, .1, .25, 1), transform .7s cubic-bezier(.22, 1, .36, 1), filter .55s ease-out; }
.say-hi.is-in { opacity: 1; transform: none; filter: none; }
.say-hi.is-out { opacity: 0; transform: translateY(-4px); filter: blur(4px); transition-duration: .35s; }
.lg-o { transform-box: fill-box; transform-origin: center; }
@keyframes letter-in { from { opacity: 0; transform: translateY(45%); } }
.say-line > span { display: block; opacity: 0; transform: translateY(14px);
                   transition: opacity .45s, transform .6s var(--ease-out); }
.say-line.is-in > span { opacity: 1; transform: none; }
.say.is-out, .say-line.is-out > span { opacity: 0; transform: translateY(-10px); transition: opacity .28s, transform .35s var(--ease-out); transition-delay: 0s; }

/* ---- intro lines: light, large Urbanist with soft depth ---- */
.stroke { position: relative; display: inline-block; perspective: 700px; }
.stroke-plate { position: relative; display: inline-block; }
.st-text { display: block; font: 300 clamp(34px, 5.6vw, 64px)/1.04 var(--font); letter-spacing: -.025em; white-space: nowrap; color: #fff;
           /* soft depth: a hairline of light on top and a deep, diffuse shadow under the letters */
           text-shadow: 0 -1px 0 rgba(255,255,255,.16), 0 2px 1px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.55); }
@media (max-width: 700px) { .st-text { white-space: normal; } }

.intro-enter { position: absolute; top: 172px; opacity: 0; transform: translateY(10px) scale(.96);
               transition: opacity .6s, transform .7s var(--ease-spring), background-color .25s, color .25s; pointer-events: none; }
.intro-enter.is-in { opacity: 1; transform: none; pointer-events: auto; }
.intro-enter.is-out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s; pointer-events: none; }

/* ---------- top bar ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
       padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 18px max(22px, env(safe-area-inset-left));
       pointer-events: none; }
.top > * { pointer-events: auto; }
.home { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s ease-out, opacity .4s;
        filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.home svg { width: 100%; height: 100%; display: block; }
.home circle { fill: #fff; }
.menu-btn { font-size: 16px; padding: 12px 19px 13px; }
body.is-intro .top > *, body.is-intro .sections, body.is-intro .focus-label { opacity: 0; pointer-events: none; }
.top > *, .sections, .focus-label { transition: opacity .7s ease-out; }
body.is-intro .home { opacity: 0; transition: none; }
/* the flying O lands exactly here, so the real button appears instantly (no fade showing the blur through it) */
.top > .home { transition: transform .2s ease-out; }

/* ---------- section buttons (right side): glass pills, the active one turns to bright glass ---------- */
.sections { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 15;
            display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sections button { border: 0; border-radius: 999px; height: 42px; min-width: 42px; padding: 0 12px; font: 500 14px/1 var(--font); letter-spacing: .01em;
                   cursor: pointer; color: rgba(255,255,255,.86); white-space: nowrap;
                   display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: center;   /* icon right, name slides out to its left */
                   transition: color .2s ease-out, transform .2s ease-out, opacity .5s, box-shadow .2s ease-out, padding .32s var(--ease-out); }
.sections .ic { width: 17px; height: 17px; flex: none; fill: currentColor; position: relative; z-index: 2; }
.sections .lbl { display: inline-flex; align-items: baseline; gap: 6px; overflow: hidden; max-width: 0; opacity: 0; margin-right: 0;
                 position: relative; z-index: 2;
                 transition: max-width .34s var(--ease-out), opacity .22s ease-out, margin-right .34s var(--ease-out); }
/* the name appears on hover / keyboard focus, and always on the active section */
.sections button[aria-pressed="true"] { padding: 0 14px 0 16px; }
.sections button[aria-pressed="true"] .lbl, .sections button:focus-visible .lbl { max-width: 180px; opacity: 1; margin-right: 9px; }
.sections button[aria-pressed="true"] { color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.42), rgba(255,255,255,.18) 55%, rgba(255,255,255,.28));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.42), inset 0 0 18px rgba(255,255,255,.10), 0 10px 28px rgba(0,0,0,.32); }
.sections button .n { font: 400 10.5px/1 var(--mono); color: rgba(255,255,255,.5); letter-spacing: 0; }
.sections button[aria-pressed="true"] .n { color: rgba(255,255,255,.8); }
body.is-ready .sections button { animation: section-in .7s var(--ease-out) both; }
@keyframes section-in { from { opacity: 0; transform: translateX(24px); } }

/* ---------- focused card title: glass pill ---------- */
.focus-label { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 15;
               display: flex; align-items: center; gap: 11px; border-radius: 999px;
               padding: 6px 18px 6px 6px; font: 500 15px/1.1 var(--font); letter-spacing: .005em;
               max-width: calc(100vw - 260px); pointer-events: none; }
.focus-label img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; flex: none; position: relative; z-index: 2; }
.focus-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 2; }

/* ---------- menu: dark glass card grown out of the glass menu pill ---------- */
.menu { position: fixed; z-index: 40; overflow: hidden; border-radius: 34px;
        /* sits at its open size; a clip-path reveals it out of the button (no layout work per frame) */
        clip-path: var(--clip-closed, inset(0 round 34px));
        transition: clip-path .55s cubic-bezier(.76, 0, .24, 1); }
.menu.is-open { clip-path: inset(0 round 34px); }
.menu.is-closing { transition-duration: .4s; }
.menu-inner { position: absolute; inset: 0; z-index: 2;
              padding: 24px 30px 30px; display: flex; flex-direction: column;
              opacity: 0; transition: opacity .25s; }
.menu.is-open .menu-inner { opacity: 1; transition: opacity .35s .18s; }
.menu-ghost { position: absolute; z-index: 2; top: var(--ghost-top, 0); right: var(--ghost-right, 0); height: var(--btn-h, 46px); padding: 0 19px;
              display: flex; align-items: center; gap: 9px; font: 500 16px/1 var(--font); white-space: nowrap; transition: opacity .2s; }
.menu.is-open .menu-ghost { opacity: 0; }
.menu-close { align-self: flex-end; padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px/1 var(--font);
              display: flex; align-items: center; gap: 10px; color: var(--muted); }
.menu-close .x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
                 transition: transform .4s var(--ease-spring); }
.menu-close .x svg { width: 14px; height: 14px; position: relative; z-index: 2; }
.menu-links { list-style: none; margin: 26px 0 0; padding: 0; }
.menu-links li { overflow: hidden; }
.menu-links a { display: block; text-decoration: none; font: 300 clamp(48px, 13vw, 74px)/1.04 var(--font); letter-spacing: -.03em;
                transform: translateY(105%); transition: transform .7s var(--ease-out), color .25s; color: #fff; }
.menu-links a span { display: inline-block; transition: transform .45s var(--ease-out); }
.menu-links a.is-current { color: var(--faint); }
.menu.is-open .menu-links a { transform: none; }
.menu.is-open .menu-links li:nth-child(1) a { transition-delay: .12s; }
.menu.is-open .menu-links li:nth-child(2) a { transition-delay: .19s; }
.menu.is-open .menu-links li:nth-child(3) a { transition-delay: .26s; }
.menu-foot { margin-top: auto; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu.is-open .menu-foot { opacity: 1; transform: none; transition-delay: .3s; }
.menu-mail { font: 400 14px/1 var(--font); color: var(--muted); text-decoration: none; letter-spacing: .01em; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center;
             transition: transform .15s ease-out; }
.socials svg { width: 19px; height: 19px; fill: currentColor; position: relative; z-index: 2; }

@media (hover: hover) and (pointer: fine) {
  .intro-enter:hover { box-shadow: inset 0 1px 1px rgba(255,255,255,.4), inset 0 0 22px rgba(255,255,255,.12), 0 12px 30px rgba(0,0,0,.36); }
  .home:hover { transform: scale(1.08) rotate(-8deg); }
  .sections button:hover { transform: translateX(-4px); color: #fff; padding: 0 14px 0 16px; }
  .sections button:hover .lbl { max-width: 180px; opacity: 1; margin-right: 9px; }
  .menu-close:hover .x { transform: rotate(90deg); }
  .menu-links a:hover span { transform: translateX(10px); }
  .menu-links a.is-current:hover { color: rgba(255,255,255,.5); }
  .socials a:hover { transform: translateY(-3px); }
  .contact-list a:hover { color: var(--muted); }
}

/* ---------- about / contact: frosted pane over the spiral ---------- */
.page { position: fixed; inset: 0; z-index: 18; background: rgba(8, 8, 10, .62);
        -webkit-backdrop-filter: blur(34px) saturate(140%); backdrop-filter: blur(34px) saturate(140%);
        overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .6s ease-out; }
.page.is-open { opacity: 1; }
.page-inner { max-width: 680px; margin: 0 auto; padding: 120px 28px 160px; text-align: center; font: 300 19px/1.42 var(--font); color: rgba(255,255,255,.86); }
.page-inner > * { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .9s var(--ease-out); }
.page.is-open .page-inner > * { opacity: 1; transform: none; }
.page.is-open .page-inner > *:nth-child(2) { transition-delay: .06s; }
.page.is-open .page-inner > *:nth-child(3) { transition-delay: .12s; }
.page.is-open .page-inner > *:nth-child(4) { transition-delay: .18s; }
.page.is-open .page-inner > *:nth-child(5) { transition-delay: .24s; }
.page.is-open .page-inner > *:nth-child(n+6) { transition-delay: .3s; }
.page-kicker { font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 0 0 24px; }
.page-inner .page-kicker:not(:first-child) { margin-top: 64px; }
.page-about { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; padding-bottom: 90px; max-width: 1000px; }
.page-about .page-lead { font-size: clamp(28px, 4.4vw, 44px); margin: 0; text-wrap: balance; }
.page-lead { font: 300 clamp(24px, 4.2vw, 34px)/1.2 var(--font); letter-spacing: -.02em; color: #fff; margin: 0 0 28px; }
.contact-big { font: 300 clamp(54px, 12vw, 108px)/.98 var(--font); letter-spacing: -.035em; color: #fff; margin: 0 0 26px; }
.contact-list { list-style: none; padding: 8px 28px; margin: 40px 0 0; text-align: left; border-radius: 32px; }
.contact-list li { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; }
.contact-list li + li { border-top: 1px solid rgba(255,255,255,.08); }
.contact-list span { font: 400 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.contact-list a { font: 400 clamp(18px, 3vw, 23px)/1.2 var(--font); text-decoration: none; transition: color .2s; }

/* ---------- video player / photo viewer: content on a frosted stage, glass controls ---------- */
.player { position: fixed; inset: 0; z-index: 60; background: rgba(6, 6, 8, .78);
          -webkit-backdrop-filter: blur(40px) saturate(130%); backdrop-filter: blur(40px) saturate(130%);
          user-select: none; -webkit-user-select: none; opacity: 0; transition: opacity .35s ease-out; }
.player.is-open { opacity: 1; }
.player video, .player > img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
                width: auto; height: auto; max-width: calc(100% - 48px); max-height: calc(100% - 300px);
                border-radius: 28px; background: #000; cursor: pointer; transition: transform .6s var(--ease-out);
                box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.player.is-open video, .player.is-open > img { transform: translate(-50%, -50%); }
.player > img { cursor: default; background: none; }
.player-close { position: absolute; top: 40px; left: 40px; z-index: 2; }
.player-close svg { width: 12px; height: 12px; position: relative; z-index: 2; }
.player-close span { position: relative; z-index: 2; }
.player .bar { position: absolute; left: 50%; bottom: calc(28px + var(--safe-b)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
               border-radius: 999px; padding: 10px; width: min(580px, calc(100vw - 32px)); }
.player .bar > * { position: relative; z-index: 2; }
.viewer .bar { width: auto; gap: 14px; }
.viewer .count { font: 400 14px/1 var(--mono); color: rgba(255,255,255,.8); min-width: 70px; text-align: center; letter-spacing: .02em; }
.player .strip { position: relative; flex: 1; height: 56px; margin-left: 12px; margin-right: 6px; border-radius: 18px; overflow: hidden;
                 background: #1a1a1d center / 100% 100% no-repeat; cursor: ew-resize; touch-action: none;
                 box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.player .head { position: absolute; top: 6px; bottom: 6px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: #fff;
                box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 10px rgba(255,255,255,.5); pointer-events: none; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  .top { padding: max(14px, env(safe-area-inset-top)) 14px 14px; }
  .home { width: 40px; height: 40px; }
  .menu-btn { font-size: 15px; padding: 11px 17px 12px; }
  .sections { right: 10px; gap: 6px; top: auto; bottom: calc(18px + var(--safe-b)); transform: none; }
  .sections button { font-size: 13px; height: 38px; min-width: 38px; padding: 0 11px; }
  .sections .ic { width: 15px; height: 15px; }
  .focus-label { top: calc(82px + env(safe-area-inset-top, 0px)); bottom: auto; max-width: calc(100vw - 40px); font-size: 14px; padding: 5px 15px 5px 5px; }
  .focus-label img { width: 28px; height: 28px; }
  .player-close { top: calc(20px + env(safe-area-inset-top, 0px)); left: 18px; }
  .player video, .player > img { max-width: calc(100% - 32px); max-height: calc(100% - 220px); border-radius: 22px; }
  .player .disc { width: 48px; height: 48px; }
  .player .strip { height: 48px; margin-left: 6px; border-radius: 16px; }
  .page-inner { padding-top: 96px; font-size: 17px; }
  .contact-list { padding: 4px 20px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* monochrome keyboard focus ring */
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* enter button: clean glass, no outer stroke */
.intro-enter::before { display: none; }
.intro-enter:focus { outline: none; }
.intro-enter:focus-visible { outline: 2px solid rgba(255, 255, 255, .5); }
.glass:focus-visible, .disc:focus-visible { outline-offset: 4px; }
