
  :root {
    color-scheme: dark;
    /* هوية أبيض وأسود: كل الألوان درجات رمادي بين #0a0a0a و #ffffff */
    --bg: #0a0a0a;
    --bg-2: #0e0e0e;
    --surface: #141414;
    --surface-2: #1b1b1b;
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .22);
    --text: #ffffff;
    --muted: #a6a6a6;
    --dim: #8c8c8c;
    --ink: #ffffff;
    --ink-2: #d6d6d6;
    --glow: rgba(255, 255, 255, .14);
    --silver: #bfbfbf;
    --silver-2: #ededed;
    --glow-2: rgba(255, 255, 255, .08);
    --rec: #ffffff;
    --display: "Cairo", "Tajawal", "Segoe UI", system-ui, sans-serif;
    --body: "Tajawal", "Cairo", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
    --radius: 18px;
    --radius-sm: 12px;
    --gutter: clamp(16px, 4vw, 40px);
    --maxw: 1180px;
    --nav-h: 72px;
  }

  * { box-sizing: border-box; }
  /* the JS toggles el.hidden — keep it winning over display rules on any host, not only inside the Artifact viewer */
  [hidden] { display: none !important; }
  ::selection { background: #ffffff; color: #0a0a0a; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.75;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .page { direction: rtl; text-align: start; position: relative; }

  a { color: inherit; text-decoration: none; }
  img, svg { max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 6px; }

  h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
  p { margin: 0; }

  .wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

  /* ---------- fluted-glass background (drawn by JS, monochrome) ---------- */
  .glass { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .8; }

  /* ---------- film grain ---------- */
  .grain {
    pointer-events: none;
    position: fixed; inset: 0; z-index: 60;
    opacity: .07;
    mix-blend-mode: screen;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ---------- nav ---------- */
  .nav {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    height: var(--nav-h);
    background: rgba(10, 10, 10, .72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
  }
  .nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .brand { display: flex; align-items: center; gap: 12px; }
  .brand-avatar {
    width: auto; height: 42px; max-height: 42px;
    object-fit: contain; flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
    transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  }
  .brand:hover .brand-avatar { transform: scale(1.08) rotate(-3deg); }
  .brand > span:last-child { display: grid; gap: 4px; }
  .brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1; }
  .brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; direction: ltr; text-align: end; }

  .menu { display: flex; align-items: center; gap: 4px; }
  .menu a {
    padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--muted);
    transition: color .2s, background .2s;
  }
  .menu a:hover { color: var(--text); background: rgba(255,255,255,.05); }
  .menu a.active { color: var(--text); background: rgba(255,255,255,.07); }

  .nav-cta { display: flex; align-items: center; gap: 10px; }
  .burger {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
    background: transparent; cursor: pointer; place-items: center;
  }
  .burger span { display: block; width: 18px; height: 2px; background: var(--text); margin: 2.5px 0; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 49;
    background: rgba(10,10,10,.96); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) calc(22px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - var(--nav-h) - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    display: grid; gap: 4px;
  }
  .mobile-menu a { padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 17px; }
  .mobile-menu a:hover { background: rgba(255,255,255,.06); }
  .mobile-menu .btn { justify-content: center; margin-top: 8px; }

  /* ---------- buttons ---------- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
  .btn-primary { background: var(--ink); color: #0a0a0a; box-shadow: 0 10px 30px var(--glow); }
  .btn-primary:hover { box-shadow: 0 14px 40px var(--glow); }
  .btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
  .btn-ghost:hover { border-color: var(--text); background: rgba(255,255,255,.04); }
  .btn-sm { padding: 9px 16px; font-size: 14px; }
  .btn svg { width: 18px; height: 18px; flex: none; }

  /* ---------- eyebrow / section headers ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--body); font-weight: 700; font-size: 14px; letter-spacing: 0;
    color: var(--silver-2);
  }
  .eyebrow .lat { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; direction: ltr; }
  .eyebrow .tc {
    padding: 4px 8px; border-radius: 6px; background: var(--glow-2); color: var(--silver-2);
    font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--line-2);
    direction: ltr; font-variant-numeric: tabular-nums;
  }
  .sec-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
  .sec-head h2 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; letter-spacing: -.01em; }
  .sec-head p { color: var(--muted); font-size: 18px; }
  section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

  /* ---------- film strip divider ---------- */
  .strip {
    height: 34px; position: relative; overflow: hidden;
    background:
      repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.07) 22px 23px),
      linear-gradient(#080808, #080808);
    border-block: 1px solid var(--line);
  }
  .strip::before, .strip::after {
    content: ""; position: absolute; left: 0; right: 0; height: 7px;
    background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,.28) 14px 26px);
  }
  .strip::before { top: 4px; } .strip::after { bottom: 4px; }

  /* ---------- hero ---------- */
  .hero { padding-block: clamp(20px, 3.5vw, 44px) clamp(36px, 5vw, 64px); overflow: hidden; isolation: isolate; }
  .hero::before {
    content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
    background:
      radial-gradient(60% 50% at 78% 20%, var(--glow), transparent 70%),
      radial-gradient(50% 45% at 18% 70%, var(--glow-2), transparent 70%);
    filter: blur(20px);
  }
  .hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(16px, 2.5vw, 28px); }
  .rec { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--muted); direction: ltr; }
  .rec .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: blink 1.2s steps(2) infinite; }
  .rec .tcode { color: var(--text); font-variant-numeric: tabular-nums; }
  .rec .fmt { padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; }
  .hero-loc { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--dim); }

  /* ---------- hero stage: Arabic name (back) → photo → "Ryyan" script (front) — same lockup as the logo ---------- */
  .stage {
    position: relative; isolation: isolate; margin-inline: auto;
    height: clamp(460px, 74vh, 780px);
    display: flex; justify-content: center; align-items: flex-end;
  }
  /* the wordmark box: both layers share it, so the two words keep the exact logo lockup.
     No transform here on purpose — the h1 must not create a stacking context, so the grey
     script (z 3) can sit above the photo (z 2) while the white Arabic (z 1) sits behind it. */
  /* a soft pool of page-black under the subject: the faded lower body (and its black backing) melt into it
     instead of showing as a dark shape when a light band of the glass background drifts behind */
  .stage::before {
    content: ""; position: absolute; z-index: 0; left: 50%; bottom: -8%; transform: translateX(-50%);
    width: min(130%, 980px); height: 70%; pointer-events: none;
    background: radial-gradient(ellipse closest-side, rgba(10,10,10,.97) 42%, rgba(10,10,10,.8) 64%, rgba(10,10,10,0) 100%);
  }
  .lockup {
    position: absolute; left: 0; right: 0; margin-inline: auto; top: 72%; /* just below the camera */
    width: min(96%, 920px); aspect-ratio: 533 / 190;
    margin-top: calc(-.178 * min(96%, 920px)); /* half its own height (margin % = container width) */
    pointer-events: none; user-select: none;
  }
  .lockup img { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* no big-radius filter on the Arabic layer: some phone GPUs mis-scale elements whose filter region is huge */
  .lockup-ar { z-index: 1; }
  .lockup-en { z-index: 3; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
  /* the photo sits in a box with a page-coloured silhouette copy behind it, so the bottom fade
     dissolves into that silhouette instead of revealing the white name behind the body */
  .person {
    position: relative; z-index: 2; height: 100%; aspect-ratio: 661 / 1324; max-width: 100%;
    bottom: clamp(24px, 5vh, 48px); /* lifted a little off the stage floor */
    animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both;
  }
  .person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
  .person-backing {
    filter: brightness(0) invert(.04); /* → #0a0a0a, the page background */
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  }
  .stage-person {
    /* half-body crop: dissolve the cut edge instead of a hard line (no drop-shadow: the mask would clip it into a seam) */
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
  .hero-sub {
    text-align: center; max-width: 640px; margin-inline: auto; margin-top: clamp(24px, 3vw, 36px);
    font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); line-height: 1.8;
  }
  .hero-sub b { color: var(--text); font-weight: 700; }
  .hero-sub em { font-style: normal; color: var(--ink-2); }
  .hero-foot { display: flex; flex-direction: column; align-items: center; text-align: center; margin-inline: auto; }
  .hero-actions, .hero-cta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 36px); width: 100%; }
  .hero-chips { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; width: 100%; }
  .chip {
    display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; color: var(--muted);
  }
  .chip b { font-family: var(--mono); color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }

  /* timeline */
  .timeline {
    margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); overflow: hidden; direction: ltr;
  }
  .tl-ruler {
    height: 26px; border-bottom: 1px solid var(--line); position: relative;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 10%);
    background-size: 10% 100%;
  }
  .tl-ruler span { position: absolute; top: 5px; font-family: var(--mono); font-size: 10px; color: var(--dim); transform: translateX(4px); }
  .tl-tracks { display: grid; gap: 6px; padding: 10px; position: relative; }
  .tl-track { display: flex; gap: 4px; height: 34px; }
  .clip {
    border-radius: 6px; display: flex; align-items: center; padding-inline: 10px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: rgba(0,0,0,.75); white-space: nowrap; overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
  }
  .clip.v { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
  .clip.a { background: linear-gradient(180deg, var(--silver-2), var(--silver)); }
  .clip.fx { background: linear-gradient(180deg, #a8a8a8, #7a7a7a); }
  .clip.t { background: linear-gradient(180deg, #6a6a6a, #4a4a4a); color: rgba(255,255,255,.85); }
  .clip.gap { background: transparent; border-style: dashed; border-color: var(--line); }
  .playhead {
    position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rec); box-shadow: 0 0 0 1px rgba(0,0,0,.85), 0 0 10px var(--rec);
    filter: drop-shadow(0 0 1.5px rgba(0,0,0,.9));
    left: 8%; animation: scrub 14s linear infinite;
  }
  .playhead::before { content: ""; position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 9px solid var(--rec); }
  @keyframes scrub { from { left: 8%; } to { left: 96%; } }
  @keyframes blink { 50% { opacity: .25; } }

  /* ---------- marquee ---------- */
  .marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 16px; }
  .marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
  .marquee-track span { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
  .marquee-track span::after { content: "✦"; color: var(--ink); font-size: 14px; }
  @keyframes marquee { to { transform: translateX(50%); } }

  /* ---------- about ---------- */
  .about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
  .about-text { display: grid; gap: 18px; font-size: 18px; color: var(--muted); }
  .about-text .lead { font-size: clamp(22px, 2.6vw, 28px); font-family: var(--display); font-weight: 700; color: var(--ink-2); line-height: 1.5; }
  .about-text .mark { color: var(--text); }
  .quote-line { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
  .quote-line .bar { width: 4px; align-self: stretch; border-radius: 4px; background: linear-gradient(var(--ink), var(--silver)); flex: none; }

  .skills { display: grid; gap: 12px; }
  .skill { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; transition: border-color .2s, transform .2s; }
  .skill:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .skill-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .skill-head strong { font-family: var(--display); font-weight: 800; font-size: 17px; }
  .skill-head small { color: var(--muted); font-size: 14px; }
  .skill-head .pct { font-family: var(--mono); font-size: 12px; color: var(--silver-2); }
  .bar-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
  .bar-fill {
    height: 100%; border-radius: 6px;
    background: linear-gradient(90deg, var(--silver), var(--ink));
    width: 0%;
    transition: width 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: width;
  }
  .skills.in .bar-fill { width: var(--w, 80%); }
  .skills-note { display: flex; align-items: center; gap: 10px; color: var(--dim); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; margin-top: 6px; }

  /* ---------- portfolio ---------- */
  .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
  .filters button {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted);
    font-weight: 500; font-size: 14.5px; cursor: pointer; transition: all .2s;
  }
  .filters button:hover { border-color: var(--line-2); color: var(--text); }
  .filters button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }

  .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  @media (max-width: 1180px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  }
  @media (max-width: 820px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  }
  @media (max-width: 480px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-body { padding: 12px 10px 14px; gap: 4px; }
    .card-title { font-size: 15px; }
    .card-cat { font-size: 11px; }
    .thumb .play { width: 44px; height: 44px; }
    .thumb .play svg { width: 16px; height: 16px; }
    .thumb .num { font-size: 9.5px; padding: 2px 6px; top: 8px; inset-inline-start: 8px; }
  }
  .card {
    display: grid; gap: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
    overflow: hidden; cursor: pointer; text-align: start; padding: 0;
    transition: transform .25s, border-color .25s, box-shadow .25s;
  }
  .card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 50px rgba(0,0,0,.45); }
  .thumb {
    display: block; position: relative; aspect-ratio: 9/16; max-width: 100%; overflow: hidden;
    background: #0d0d0d;
  }
  .thumb::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px);
    mix-blend-mode: multiply; opacity: .6;
  }
  .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
  .thumb .word {
    position: absolute; inset-inline-start: 14px; bottom: 6px; font-family: var(--mono); font-weight: 700;
    font-size: clamp(48px, 6vw, 72px); letter-spacing: -.04em; color: rgba(255,255,255,.14); line-height: 1; direction: ltr;
  }
  .thumb .num { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); direction: ltr; }
  .play {
    position: absolute; inset: 0; margin: auto; z-index: 2; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111;
    transition: transform .25s, background .25s; box-shadow: 0 0 0 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.4);
  }
  .play svg { width: 20px; height: 20px; margin-inline-start: 3px; }
  .card:hover .play { transform: scale(1.08); background: var(--ink); }
  /* monochrome thumbnails: each category gets its own "lighting" (highlight position + grey ramp) */
  .t-ai    { background: radial-gradient(70% 90% at 20% 15%, rgba(255,255,255,.28), transparent 60%), linear-gradient(135deg, #0f0f0f, #2a2a2a 60%, #5c5c5c); }
  .t-brand { background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,.3), transparent 60%),  linear-gradient(160deg, #1a1a1a, #454545 55%, #8a8a8a); }
  .t-mkt   { background: radial-gradient(80% 60% at 50% 100%, rgba(255,255,255,.22), transparent 60%), linear-gradient(120deg, #0d0d0d, #3a3a3a 50%, #7a7a7a); }
  .t-corp  { background: radial-gradient(50% 70% at 15% 85%, rgba(255,255,255,.2), transparent 60%),  linear-gradient(145deg, #151515, #333333 60%, #666666); }
  .t-re    { background: radial-gradient(70% 70% at 85% 80%, rgba(255,255,255,.26), transparent 60%), linear-gradient(135deg, #1e1e1e, #525252 60%, #9c9c9c); }
  .t-edu   { background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.24), transparent 60%),  linear-gradient(150deg, #0c0c0c, #262626 55%, #4c4c4c); }
  .t-ev    { background: radial-gradient(90% 50% at 50% 50%, rgba(255,255,255,.18), transparent 60%), linear-gradient(125deg, #181818, #444444 60%, #7f7f7f); }
  .t-vfx   { background: radial-gradient(40% 60% at 75% 30%, rgba(255,255,255,.34), transparent 60%), linear-gradient(140deg, #111111, #363636 55%, #929292); }
  .t-ba    { background: linear-gradient(90deg, #1f1f1f 0 50%, #c4c4c4 50% 100%); }
  .t-cars  { background: radial-gradient(70% 40% at 30% 70%, rgba(255,255,255,.3), transparent 60%),  linear-gradient(135deg, #0f0f0f, #4d4d4d 60%, #d2d2d2); }
  .card-body { padding: 16px 18px 18px; display: grid; gap: 6px; }
  .card-cat { font-size: 13px; color: var(--muted); }
  .card-title { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.35; }
  .card.more { display: none; }
  .grid.expanded .card.more { display: grid; }
  .card[hidden] { display: none !important; }
  .grid-foot { display: flex; justify-content: center; margin-top: 30px; }
  .empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

  /* ---------- services ---------- */
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .svc { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
  .svc::before { content: ""; position: absolute; inset: auto -30% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: 0; transition: opacity .3s; }
  .svc:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .svc:hover::before { opacity: 1; }
  .svc-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); transition: background .25s, color .25s; }
  .svc:hover .svc-icon { background: var(--text); color: #0a0a0a; }
  .svc-icon svg { width: 22px; height: 22px; }
  .svc h3 { font-size: 21px; font-weight: 800; }
  .svc p { color: var(--muted); font-size: 16px; }
  .svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .svc-tags span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--dim); direction: ltr; }

  /* ---------- process ---------- */
  .process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; counter-reset: step; }
  .step { position: relative; padding: 20px 20px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 8px; }
  .step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .12em; }
  .step strong { font-family: var(--display); font-weight: 800; font-size: 17px; }
  .step span { color: var(--muted); font-size: 15px; }

  /* ---------- testimonials ---------- */
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .quote { padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: space-between; }
  .quote .q-mark { font-family: var(--display); font-size: 54px; line-height: .6; color: var(--ink); font-weight: 900; }
  .quote p { font-size: 17px; line-height: 1.8; }
  .who { display: flex; align-items: center; gap: 12px; }
  .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 18px; color: #0a0a0a; background: linear-gradient(135deg, #f2f2f2, #bdbdbd); flex: none; }
  .avatar.o { background: linear-gradient(135deg, #ffffff, #d0d0d0); }
  .avatar.p { background: linear-gradient(135deg, #8a8a8a, #5a5a5a); color: #ffffff; }
  .who strong { display: block; font-family: var(--display); font-weight: 800; font-size: 16px; }
  .who small { color: var(--muted); font-size: 14px; }
  .stars { color: var(--ink-2); letter-spacing: 2px; font-size: 14px; }

  /* ---------- booking ---------- */
  .book { background: rgba(14,14,14,.72); border-block: 1px solid var(--line); }
  .book-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
  .book-side { display: grid; gap: 22px; position: sticky; top: calc(var(--nav-h) + 24px); }
  .types { display: grid; gap: 10px; }
  .type { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
  .type:hover { border-color: var(--line-2); }
  .type input { position: absolute; opacity: 0; pointer-events: none; }
  .type .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; transition: border-color .2s; }
  .type .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .2s; }
  .type:has(input:checked) { border-color: var(--ink); background: rgba(255,255,255,.05); }
  .type:has(input:checked) .radio { border-color: var(--ink); }
  .type:has(input:checked) .radio::after { transform: scale(1); }
  .type:has(input:focus-visible) { outline: 2px solid var(--silver); outline-offset: 2px; }
  .type strong { display: block; font-family: var(--display); font-weight: 800; font-size: 16px; }
  .type small { color: var(--muted); font-size: 14px; }
  .side-note { padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); border: 1px solid var(--line-2); color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
  .side-note strong { color: var(--silver-2); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }

  form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .field { display: grid; gap: 7px; }
  .field label { font-weight: 700; font-size: 14.5px; }
  .field label i { font-style: normal; color: var(--ink); }
  .field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
    transition: border-color .2s, box-shadow .2s;
  }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--silver); box-shadow: 0 0 0 3px var(--glow-2); }
  /* browser autofill paints a blue tint by default — keep it black & white */
  .field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg) inset; -webkit-text-fill-color: var(--text); caret-color: var(--text);
    transition: background-color 9999s ease-out;
  }
  .field textarea { min-height: 130px; resize: vertical; }
  .field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
  .page .field select { background-position: 15px 50%, 20px 50%; }
  .field input[dir="ltr"] { direction: ltr; text-align: left; }
  .field .err { color: var(--text); font-size: 13.5px; font-weight: 700; display: none; }
  .field .err::before { content: "! "; font-family: var(--mono); }
  .field.invalid .err { display: block; }
  .field.invalid input, .field.invalid textarea { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
  .form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
  .form-foot small { color: var(--dim); font-size: 13.5px; }
  .toast { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); font-weight: 700; }
  .toast:empty { display: none; }
  .toast a { text-decoration: underline; text-underline-offset: 3px; }

  /* ---------- contact ---------- */
  .contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .contact { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; transition: transform .25s, border-color .25s; position: relative; }
  .contact:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .contact .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
  .contact .ico svg { width: 22px; height: 22px; }
  .contact .ico { transition: background .25s, color .25s, border-color .25s; }
  .contact:hover .ico { background: var(--text); color: #0a0a0a; border-color: var(--text); }
  .contact h3 { font-size: 19px; font-weight: 800; }
  .contact p { color: var(--muted); font-size: 15px; }
  .contact .val { font-family: var(--mono); font-size: 14px; color: var(--text); direction: ltr; display: inline-flex; align-items: center; gap: 8px; justify-self: start; width: fit-content; }
  .contact button.val { background: none; border: 0; padding: 0; cursor: pointer; }
  .contact .val svg { width: 14px; height: 14px; color: var(--dim); }
  .copied { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--mono); font-size: 11px; color: var(--silver-2); background: var(--glow-2); padding: 3px 8px; border-radius: 6px; direction: ltr; }
  .copied:empty { display: none; }

  .cta-band {
    margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid var(--line-2);
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  }
  .cta-band h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
  .cta-band p { color: var(--muted); margin-top: 6px; }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); padding-block: 34px; background: var(--bg-2); }
  footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
  footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
  footer .links a:hover { color: var(--text); }
  footer .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; direction: ltr; }

  /* ---------- lightbox ---------- */
  .lb { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; overflow-y: auto; padding: var(--gutter); background: rgba(0,0,0,.86); backdrop-filter: blur(10px); }
  .lb-box { flex: none; margin-block: auto; width: min(100%, 880px, calc(70vh * 16 / 9)); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; display: grid; }
  .lb-box.vert { width: min(100%, 560px); }
  .lb-frame { position: relative; aspect-ratio: 16/9; max-width: 100%; display: grid; place-items: center; overflow: hidden; }
  .lb-frame.v { aspect-ratio: 9/16; width: min(100%, calc(70vh * 9 / 16)); max-height: none; margin-inline: auto; }
  .lb-frame video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: #000; }
  .lb-frame .word { position: absolute; inset-inline-start: 18px; bottom: 8px; font-family: var(--mono); font-weight: 700; font-size: 80px; color: rgba(255,255,255,.12); line-height: 1; direction: ltr; }
  .lb-frame .poster { position: relative; z-index: 1; text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px; }
  .lb-frame .poster .play { position: static; width: 72px; height: 72px; }
  .lb-frame .poster span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.75); }
  .lb-body { padding: 20px 22px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .lb-body h3 { font-size: 22px; font-weight: 800; }
  .lb-body p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
  .lb-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,.5); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 3; }
  .lb-close svg { width: 16px; height: 16px; }

  /* ---------- hairline scroll progress bar ---------- */
  .scroll-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, #ff3b30, #ff9500, #ffffff);
    transform-origin: 0 50%; transform: scaleX(0); z-index: 999;
    pointer-events: none; will-change: transform;
    box-shadow: 0 0 10px rgba(255,149,0,.6);
  }

  /* ---------- reveal ---------- */
  .js .reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
    transition: opacity .85s cubic-bezier(0.16, 1, 0.3, 1), transform .85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
  }
  .js .reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .explore-grid .explore-card:nth-child(2),
  .services-grid .svc:nth-child(2),
  .quotes .quote:nth-child(2) {
    transition-delay: 0.12s;
  }
  .services-grid .svc:nth-child(3),
  .quotes .quote:nth-child(3) {
    transition-delay: 0.22s;
  }
  .services-grid .svc:nth-child(4) {
    transition-delay: 0.32s;
  }

  .to-top { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 22px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,20,20,.9); color: var(--text); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .to-top.show { opacity: 1; pointer-events: auto; }
  .to-top svg { width: 18px; height: 18px; }

  /* ---------- responsive ---------- */
  @media (max-width: 1180px) {
    .book-grid { grid-template-columns: 1fr; }
    .book-side { position: static; }
  }
  @media (max-width: 1024px) {
    .grid, .services, .quotes { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 980px) {
    .menu, .nav .nav-cta .btn { display: none; }
    .burger { display: grid; }
  }
  @media (max-width: 640px) {
    body { font-size: 16px; }
    .services, .quotes, .contacts, .process, .row { grid-template-columns: 1fr; }
    .stage { height: clamp(380px, 58vh, 480px); }
    .person { height: 78%; bottom: clamp(14px, 3vh, 26px); } /* smaller on phones */
    .tl-track .clip { font-size: 9px; padding-inline: 6px; }
    .cta-band { text-align: center; justify-content: center; }
    .cta-band > div { width: 100%; }
    .to-top { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
  }


/* ---------- video preview on hover / mobile scroll ---------- */
.thumb video.card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  background: #000;
}
.thumb.playing video.card-preview {
  opacity: 1;
}
.thumb.playing .play {
  opacity: 0 !important;
  transform: scale(.75) !important;
  pointer-events: none;
}
.thumb.playing .word {
  opacity: 0 !important;
  transition: opacity .25s ease;
}
.thumb .play {
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}

/* Page header for inner pages */
.page-head {
  padding-top: clamp(48px, 8vw, 84px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(36px, 5.8vw, 64px);
  font-weight: 900;
  letter-spacing: -.02em;
  margin-top: 10px;
}
.page-head p {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.7;
}
.nav .menu a.is-current {
  color: var(--text) !important;
  background: rgba(255,255,255,.1) !important;
  font-weight: 700;
}
.mobile-menu a.is-current {
  background: rgba(255,255,255,.12) !important;
  color: var(--text) !important;
}

/* Clickable services */
a.svc {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: grid;
}
a.svc:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.svc-action {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver-2);
  font-weight: 700;
  font-size: 14.5px;
  transition: color .2s, transform .2s;
}
a.svc:hover .svc-action {
  color: var(--text);
  transform: translateX(-5px);
}
.svc-action svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}
a.svc:hover .svc-action svg {
  transform: translateX(-4px);
}

/* Explore Hub cards on home page */
.explore-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 20px 48px rgba(0,0,0,.4);
}
@media (max-width: 768px) {
  .explore-grid { grid-template-columns: 1fr !important; }
}


