/* ============================================================
   Michael — Video Editor & Content Creator
   Editorial monochrome + NLE details + lightbox player
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #eef0f4;
  --bg-grad:
    radial-gradient(1100px 700px at 12% -10%, #fff 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 25%, #dde2ea 0%, transparent 55%),
    linear-gradient(180deg, #eef0f4, #cdd2da);
  --surface: rgba(255, 255, 255, .7);
  --text: #0a0b0e;
  --muted: #5d6370;
  --line: #cfd3dc;
  --accent: #0a0b0e;
  --on-accent: #fff;
  --hot: #e5484d;   /* REC red — used sparingly */
  --ok: #1f9d55;    /* availability green */
  --scrollbar: #b6bcc8;
  --scrollbar-hover: #8e96a5;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07080a;
    --bg-grad:
      radial-gradient(1200px 750px at 12% -10%, #2b313c 0%, transparent 60%),
      radial-gradient(900px 600px at 100% 25%, #1b212b 0%, transparent 55%),
      linear-gradient(180deg, #0d0f13, #040506);
    --surface: rgba(255, 255, 255, .04);
    --text: #f4f5f7;
    --muted: #9aa0ac;
    --line: #272b34;
    --accent: #fff;
    --on-accent: #0a0b0e;
    --hot: #ff5c62;
    --ok: #37c871;
    --scrollbar: #2e3440;
    --scrollbar-hover: #47505f;
  }
  :root:not([data-theme="light"]) body::after { opacity: .07; }
}

:root[data-theme="dark"] {
  --bg: #07080a;
  --bg-grad:
    radial-gradient(1200px 750px at 12% -10%, #2b313c 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 25%, #1b212b 0%, transparent 55%),
    linear-gradient(180deg, #0d0f13, #040506);
  --surface: rgba(255, 255, 255, .04);
  --text: #f4f5f7;
  --muted: #9aa0ac;
  --line: #272b34;
  --accent: #fff;
  --on-accent: #0a0b0e;
  --hot: #ff5c62;
  --ok: #37c871;
  --scrollbar: #2e3440;
  --scrollbar-hover: #47505f;
}
:root[data-theme="dark"] body::after { opacity: .07; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

body {
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed gradient layer (avoids background-attachment jank on mobile) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: var(--bg-grad);
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--hot); color: #fff; }

/* ---------- Scrollbars (follow the theme) ---------- */
:root {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active { background-color: var(--scrollbar-hover); }

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--mono); }
.dim { color: var(--muted); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 500;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

body:has(dialog[open]) { overflow: hidden; }

/* ---------- Header (transparent at top) ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}

/* solid once scrolled — or while the mobile menu is open */
header.scrolled,
header:has(.mobile-menu:not([hidden])) {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  margin-right: auto;
  white-space: nowrap;
}

/* avatar with monogram fallback while no photo is set */
.avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
}
.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  user-select: none;
}
.avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  border: 1px solid var(--line);
}
.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--bg);
}

nav.primary { display: flex; gap: .25rem; }
nav.primary a {
  text-decoration: none;
  color: var(--muted);
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
nav.primary a:hover { color: var(--text); background: var(--surface); }
nav.primary a.active { color: var(--text); background: var(--surface); }

.actions { display: flex; align-items: center; gap: .6rem; }

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* burger → X */
.menu-btn { display: none; }
.menu-btn line {
  transition: transform .25s, opacity .2s;
  transform-box: fill-box;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] .ln1 { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .ln2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .ln3 { transform: translateY(-3px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.4rem 1.4rem;
}
.mobile-menu:not([hidden]) { animation: drop .25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu nav { display: flex; flex-direction: column; gap: .15rem; }
.mobile-menu nav a {
  padding: .8rem .5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}
.mobile-menu nav a:hover { background: var(--surface); }
.mobile-menu .btn { margin-top: 1rem; text-align: center; }

@media (max-width: 760px) {
  nav.primary { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 560px) {
  .cta-head { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  transition: transform .2s, background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
[hidden] { display: none !important; }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); }

.btn.small { padding: .5rem 1.1rem; font-size: .9rem; }

.btn .arr {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-left: .35rem;
  transition: transform .2s;
}
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* right column: image slot — empty for now */
.hero-media { display: grid; }
.hero-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  display: grid;
  place-items: center;   /* image stays centered inside */
  padding: .75rem;       /* …and never flush against the edges */
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: .75rem;
  border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  border-radius: 14px;
  pointer-events: none;
}
.hero-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.hero-frame img:active,
.hero-frame img:hover {
  filter: grayscale(0%);
  transform: scale(1.01);
}

/* floating deco icons hugging the frame */
.floaty {
  position: absolute;
  z-index: 2;
  width: clamp(52px, 6vw, 66px);
  height: clamp(52px, 6vw, 66px);
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5);
  pointer-events: none;
  transform: rotate(var(--rot, 0deg));
  animation: floaty var(--dur, 5.5s) ease-in-out var(--delay, 0s) infinite;
}
.floaty svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.floaty.clap {
  top: -22px;
  right: -14px;
  color: var(--hot);
  --rot: 8deg;
}
.floaty.vid {
  bottom: -20px;
  left: -16px;
  color: var(--accent);
  --rot: -7deg;
  --dur: 6.5s;
  --delay: .9s;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.frame-mark {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { display: grid; }
  .hero-frame { max-width: 320px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-block: .07em;  /* room for descenders — no clipped letters */
  margin-block: -.07em;  /* …without extra space between lines */
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hot);
  letter-spacing: -.01em;
}

/* Entrance animations — SAFE by design:
   content is visible in plain CSS and the keyframes only perform the
   reveal. If any CSS/JS fails to load, text shows statically instead
   of disappearing. */
.hero h1 .l {
  animation: rise .75s cubic-bezier(.19, .84, .22, 1) both;
  animation-delay: calc(var(--i, 0) * .09s + .1s);
}
@keyframes rise {
  from { transform: translateY(110%); }
}

.fade {
  animation: fadein .7s ease both;
  animation-delay: calc(.35s + var(--i, 0) * .1s);
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(12px); }
}

.hero-copy > p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 34rem;
  margin: 1.5rem 0 2.2rem;
}

.cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Timeline (NLE) ---------- */
.timeline {
  margin-top: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: .9rem 1rem 1.1rem;
}

.tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rec { display: inline-flex; align-items: center; gap: .45rem; color: var(--hot); }
.rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  animation: blink 1.6s infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.tl-top .tc { color: var(--hot); }

.tl-scroll { position: relative; --tlx: 3.7rem; }

.tl-ruler {
  display: flex;
  justify-content: space-between;
  padding-left: var(--tlx);
  font-size: .6rem;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.track {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: .5rem;
  align-items: center;
  padding: .3rem 0;
}
.track .lbl { font-size: .68rem; }

.clips { display: flex; gap: 4px; height: 38px; }
.track.audio .clips { height: 22px; }
.track.audio .clip { padding: 0; }

.clip {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--accent);
  opacity: .9;
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .02em;
  padding: .6rem .65rem;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s, filter .2s;
}
.clip:hover { opacity: 1; filter: brightness(1.15); }
.clip.b { opacity: .55; }
.clip.wave {
  background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 6px);
  opacity: .3;
}
.clip.wave:hover { opacity: .55; filter: none; }

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tlx);
  width: 2px;
  background: var(--hot);
  z-index: 2;
  pointer-events: none;
  animation: scrub 12s linear infinite;
}
.playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border: 6px solid transparent;
  border-top: 8px solid var(--hot);
  border-width: 8px 6px 0;
}
@keyframes scrub {
  from { left: var(--tlx); }
  to { left: calc(100% - 2px); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-top: 2.6rem;
}
.stats > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.stats dt {
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.stats dd {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
  line-height: 1;
  margin-top: .4rem;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: .85rem 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .group {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
  font-family: var(--mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee .group b { color: var(--hot); font-weight: 400; font-size: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 4.75rem 0 1.5rem; }

.head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 2.25rem;
}
.head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.head p { color: var(--muted); max-width: 34rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}
.kicker::before { content: ""; width: 1.75rem; height: 1px; background: var(--hot); }

/* ---------- Cards ---------- */
.card { text-decoration: none; display: block; }

.thumb {
  display: block;
  position: relative;
  border-radius: 12px;
  background: var(--line) center / cover no-repeat;
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.card:hover .thumb {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 55%);
}

.play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  transition: transform .25s;
}
.play::before {
  content: "";
  border-left: 15px solid #16141f;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.card:hover .play { transform: scale(1.12); }

.tag {
  position: absolute;
  z-index: 1;
  right: .6rem;
  bottom: .6rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  padding: .15rem .5rem;
  border-radius: 4px;
}

.card h3 {
  font-size: 1.05rem;
  margin-top: .7rem;
  line-height: 1.3;
}
.card:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.card p { color: var(--muted); font-size: .88rem; margin-top: .3rem; }

/* Shorts: horizontal scroll row — real vertical-video size, transparent container */
.shorts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22%, 280px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.1rem;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}
.shorts .card { scroll-snap-align: start; }
.shorts .thumb { aspect-ratio: 9 / 16; }
@media (max-width: 960px) {
  .shorts { grid-auto-columns: 32%; }
}
@media (max-width: 720px) {
  .shorts { grid-auto-columns: 54%; }
}

/* YouTube grid */
.yt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.25rem; }
.yt .thumb { aspect-ratio: 16 / 9; }
@media (max-width: 900px) { .yt { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yt { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* ---------- Services ---------- */
.services { display: flex; flex-direction: column; }

.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto 2.2rem;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem .9rem;
  text-decoration: none;
  border-top: 1px solid var(--line);
  transition: background .25s;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { background: var(--surface); }

.service .num { color: var(--hot); font-size: .8rem; }
.service h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.service p { color: var(--muted); font-size: .95rem; margin-top: .3rem; max-width: 46rem; }

.service .tags { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: flex-end; }
.service .tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service .arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s, stroke .25s;
}
.service:hover .arrow { stroke: var(--hot); transform: translateX(4px); }

@media (max-width: 760px) {
  .service { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .9rem 1rem; padding: 1.25rem .5rem; }
  .service .tags { grid-column: 2; justify-content: flex-start; }
  .service .arrow { display: none; }
}

/* ---------- Quote ---------- */
.quote {
  margin: 4.5rem 0 1rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--hot);
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  max-width: 52rem;
}
.quote figcaption {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- About ---------- */
.about .statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  max-width: 46rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.panel-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-weight: 500;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .9rem;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-family: var(--mono); font-size: .85rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding: 6.5rem 0 4rem; }
.contact h2 {
  font-size: clamp(2.2rem, 6.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.contact h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--hot);
}
.contact > p { color: var(--muted); max-width: 36rem; margin: 1.1rem auto 2.1rem; }

.mail { margin-top: 1.2rem; font-size: .85rem; }
.mail a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.mail a:hover { color: var(--text); border-color: var(--hot); }

.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.25rem;
}
.links a {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  transition: all .2s;
}
.links a:hover {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.links svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.links svg.glyph {
  fill: currentColor;
  stroke: none;
  width: 24px;
  height: 24px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  font-size: .85rem;
  color: var(--muted);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); text-decoration: none; font-size: .78rem; letter-spacing: .1em; }
.foot a:hover { color: var(--text); }

/* ---------- Lightbox player ---------- */
.player {
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  padding: 0;
  width: min(880px, 92vw);
  max-height: 88vh;
  overflow: auto;
}
.player::backdrop {
  background: rgba(4, 6, 10, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.player[open] { animation: pop .3s cubic-bezier(.2, .8, .25, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* vertical (shorts) player: as tall as the screen allows, never cropped */
.player[data-orient="vertical"] {
  --pw: min(88vw, calc((100vh - 150px) * 9 / 16), 560px);   /* video width from available height */
  width: max(var(--pw), min(430px, 92vw));
  max-height: calc(100vh - 20px);
}
@supports (height: 100dvh) {
  .player[data-orient="vertical"] {
    --pw: min(88vw, calc((100dvh - 150px) * 9 / 16), 560px);
    max-height: calc(100dvh - 20px);
  }
}

.player-media { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player[data-orient="vertical"] .player-media {
  width: var(--pw);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}
.player-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain; /* full frame always visible, never cropped */
}

/* placeholder when no video link yet */
.ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.1rem;
  background: linear-gradient(135deg, #39404d, #101319);
  color: #aab1bf;
  padding: 1.5rem;
  text-align: center;
}
.ph-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
}
.ph-play::before {
  content: "";
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}
.ph .mono { font-size: .72rem; letter-spacing: .08em; max-width: 28ch; line-height: 1.7; }

.player-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.player-info h3 { font-size: 1.05rem; }
.player-info .dim { font-size: .72rem; letter-spacing: .06em; margin-top: .25rem; }

.player-close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(8, 10, 14, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s, color .2s;
}
.player-close:hover { background: #fff; color: #0a0b0e; }
.player-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Scroll reveal ----------
   The hidden state only applies when JS is running (html.js class),
   so a missing or broken script.js can never leave sections invisible. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .6, .2, 1);
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Placeholder gradients ---------- */
.g1 { background-image: linear-gradient(135deg, #4a5160, #12141a); }
.g2 { background-image: linear-gradient(135deg, #2f3540, #0b0c10); }
.g3 { background-image: linear-gradient(135deg, #6b7280, #1a1d24); }
.g4 { background-image: linear-gradient(135deg, #232830, #080a0d); }
.g5 { background-image: linear-gradient(135deg, #565d6b, #101217); }
.g6 { background-image: linear-gradient(135deg, #394049, #0d0f13); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero h1 .l { animation: none; }
  .fade { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .playhead { animation: none; left: 40%; }
}