/* =====================================================================
   romeorozario.com: shared styles
   One stylesheet for every page. Light theme by default, dark theme via
   <html data-theme="dark">. Motion respects prefers-reduced-motion.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --orange: #FF6B2C;
  --cobalt: #2F4BFF;
  --ink: #0B1530;
  --on-dark: #C9D1E6;

  --bg: #F6F7FB;
  --surf: #FFFFFF;
  --text: #0B1530;
  --body: #3A4560;
  --muted: #5B6478;
  --line: #E3E7F0;
  --peach: #FFEDE3;
  --sky: #E8EDFF;
  --link: #2F4BFF;
  --orange-text: #C2410C;
  --badge-fg: #9A3412;
  --inkbtn-bg: #0B1530;
  --inkbtn-fg: #FFFFFF;
  --ghost-bd: #C9D0E0;
  --nav-bg: rgba(246, 247, 251, 0.78);
  --hero-bg: linear-gradient(180deg, #FFFFFF 0%, #EEF2FF 100%);
  --hero-fg: var(--text);
  --hero-mut: var(--body);
  --chip-bg: #FFFFFF;
  --chip-bd: var(--line);
  --glow-a: rgba(47, 75, 255, 0.14);
  --glow-b: rgba(255, 107, 44, 0.14);
  --card-shadow: 0 1px 2px rgba(11, 21, 48, 0.04), 0 18px 40px -22px rgba(11, 21, 48, 0.22);
  --card-shadow-hover: 0 2px 4px rgba(11, 21, 48, 0.05), 0 30px 60px -24px rgba(11, 21, 48, 0.3);
  --logo-panel: transparent;
  --logo-plate: transparent;
  --contact-bg: linear-gradient(135deg, #FFF3EB 0%, #EEF2FF 100%);
  --contact-card: #FFFFFF;
  --footer-bg: #FFFFFF;

  --display: "Manrope", "Geist", system-ui, sans-serif;
  --serif: "Unna", Georgia, "Times New Roman", serif;
  /* Accent gradient: the cobalt of the portfolio photo frame into the orange of the home photo frame.
     Drawn blue > orange > blue at 200% width: at rest it shows blue > orange, on hover it glides to orange > blue. */
  --accent-grad: linear-gradient(90deg, #2F4BFF 0%, #FF6B2C 50%, #2F4BFF 100%);
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;
  --header-h: 76px;
  --wrap: 1200px;
  --gutter: 40px;

  color-scheme: light;
}

[data-theme="dark"] {
  --accent-grad: linear-gradient(90deg, #8EA0FF 0%, #FF8A57 50%, #8EA0FF 100%);
  --bg: #070C1A;
  --surf: #0F1730;
  --text: #EEF1F8;
  --body: #B8C1D9;
  --muted: #97A2BF;
  --line: #1E2A4D;
  --peach: #24140F;
  --sky: #101A3F;
  --link: #8EA0FF;
  --orange-text: #FF8A57;
  --badge-fg: #FDBA74;
  --inkbtn-bg: #EEF1F8;
  --inkbtn-fg: #0B1530;
  --ghost-bd: rgba(255, 255, 255, 0.28);
  --nav-bg: rgba(7, 12, 26, 0.72);
  --hero-bg: #111D45;
  --hero-fg: #FFFFFF;
  --hero-mut: var(--on-dark);
  --chip-bg: rgba(255, 255, 255, 0.08);
  --chip-bd: rgba(255, 255, 255, 0.14);
  --glow-a: rgba(47, 75, 255, 0.45);
  --glow-b: rgba(255, 107, 44, 0.28);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 34px 60px -24px rgba(0, 0, 0, 0.75);
  --logo-panel: #F4F6FB;
  --logo-plate: #F4F6FB;
  --contact-bg: #111D45;
  --contact-card: rgba(255, 255, 255, 0.06);
  --footer-bg: #111D45;

  color-scheme: dark;
}

@supports (background: linear-gradient(in oklab, red, blue)) {
  :root { --accent-grad: linear-gradient(in oklab 90deg, #2F4BFF 0%, #FF6B2C 50%, #2F4BFF 100%); }
  [data-theme="dark"] { --accent-grad: linear-gradient(in oklab 90deg, #8EA0FF 0%, #FF8A57 50%, #8EA0FF 100%); }
}

/* ---------- Desktop scale ----------
   On desktop everything renders at 90%, the same as browser zoom at 90%.
   js/site.js corrects for this wherever it turns a measurement into a CSS
   length (Z()). Tablets and phones are untouched. */
@media (min-width: 1061px) {
  html { zoom: 0.9; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.h2 { font-family: var(--display); font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--body); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transform: translate3d(var(--bx), var(--by), 0);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.btn svg { transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translate3d(var(--bx), var(--by), 0) scale(0.97); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--primary { background: var(--orange); color: var(--ink); border-color: var(--orange); box-shadow: 0 10px 24px -10px rgba(255, 107, 44, 0.6); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px rgba(255, 107, 44, 0.75); }
.btn--ink { background: var(--inkbtn-bg); color: var(--inkbtn-fg); border-color: var(--inkbtn-bg); box-shadow: 0 10px 24px -10px rgba(11, 21, 48, 0.45); }
.btn--ghost { background: var(--surf); color: var(--text); border-color: var(--ghost-bd); }
.btn--ghost:hover { border-color: var(--text); }
.btn--outline { background: transparent; color: var(--hero-fg); border-color: var(--ghost-bd); }
.btn--outline:hover { border-color: var(--hero-fg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.site-header.is-hidden { transform: translateY(-101%); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(11, 21, 48, 0.35); }
.header-row { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1; letter-spacing: 0.005em; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf);
  box-shadow: 0 1px 2px rgba(11, 21, 48, 0.05); transition: border-color 0.4s ease, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
[data-theme="dark"] .brand-name { background: rgba(255, 255, 255, 0.05); }
.brand:hover .brand-name { border-color: var(--orange); box-shadow: 0 10px 24px -14px rgba(249, 115, 22, 0.6); transform: translateY(-1px); }
.grad {
  background: var(--accent-grad) 0% 50% / 200% 100%; transition: background-position 0.9s var(--ease); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.04em;
}

.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted);
  transition: color 0.3s ease, background-color 0.3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--surf); box-shadow: 0 1px 2px rgba(11, 21, 48, 0.08); }
[data-theme="dark"] .nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.theme-toggle span {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color 0.4s var(--ease);
}
.theme-toggle::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 36px; height: 36px; border-radius: 999px; background: var(--orange);
  transition: transform 0.55s var(--ease);
}
.theme-toggle .t-sun { color: var(--ink); }
[data-theme="dark"] .theme-toggle::before { transform: translateX(38px); }
[data-theme="dark"] .theme-toggle .t-sun { color: var(--muted); }
[data-theme="dark"] .theme-toggle .t-moon { color: var(--ink); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle i { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background-color 0.2s; }
.menu-toggle i::before, .menu-toggle i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease);
}
.menu-toggle i::before { transform: translateY(-6px); }
.menu-toggle i::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] i { background: transparent; }
.menu-toggle[aria-expanded="true"] i::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { transform: rotate(-45deg); }

/* Scroll progress bar (supported browsers only) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%;
    background: var(--orange);
    animation: progress-grow linear both; animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-fg); border-bottom: 1px solid var(--line); }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow--a { right: -160px; top: -200px; width: 640px; height: 640px; background: radial-gradient(circle, var(--glow-a), transparent 70%); animation: drift-a 18s var(--ease-in-out) infinite alternate; }
.glow--b { left: -120px; bottom: -260px; width: 520px; height: 520px; background: radial-gradient(circle, var(--glow-b), transparent 70%); animation: drift-b 22s var(--ease-in-out) infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(70px, -40px, 0) scale(1.1); } }

.hero-grid { position: relative; padding-top: 80px; padding-bottom: 96px; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.chip {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--chip-bd); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hero-mut);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse 2.4s ease-out infinite; }
/* Gradient text (brand name, "king."): blue to orange at rest, glides to orange to blue on hover */
.brand:hover .grad, .punch:hover .king { background-position: 100% 50%; }

/* Punchline under the hero headline: italic serif, "king." in the brand gradient, crown drops in */
.punch { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.1vw, 27px); line-height: 1.3; color: var(--text); max-width: 600px; }
.punch .king {
  font-weight: 700; background: var(--accent-grad) 0% 50% / 200% 100%; transition: background-position 0.9s var(--ease); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding-right: 0.05em;
}
.punch .crown {
  display: inline-block; width: 0.95em; height: 0.95em; margin-left: 0.2em; vertical-align: -0.1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF6B2C' d='M3 18h18l1.5-11-5.5 4.5L12 4l-5 7.5L1.5 7z'/%3E%3Crect x='3' y='19.5' width='18' height='2.5' rx='1' fill='%23FF6B2C'/%3E%3C/svg%3E") center / contain no-repeat; transform-origin: 50% 90%;
  animation: crown-drop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}
.punch:hover .crown { animation: crown-tip 0.9s var(--ease); }
@keyframes crown-drop { from { opacity: 0; transform: translateY(-1.1em) rotate(-30deg) scale(0.6); } }
@keyframes crown-tip { 30% { transform: rotate(-14deg) translateY(-3px); } 60% { transform: rotate(8deg); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero h1 {
  font-family: var(--display); font-size: clamp(48px, 6.6vw, 84px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; max-width: 680px;
}
.hero h1 .accent { color: var(--orange-text); }
[data-theme="dark"] .hero h1 .accent { color: var(--orange); }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--hero-mut); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border-radius: 32px; background: var(--orange); transition: transform 0.9s var(--ease); }
.hero-photo:hover::before { transform: translate(6px, 6px); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 32px; }

/* Hero entrance: pure CSS, runs once on load */
.hero [data-enter] { animation: enter 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
.hero-photo[data-enter] { animation-name: enter-photo; animation-duration: 1.3s; }
@keyframes enter-photo { from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.96); } }
.hero-photo img { animation: photo-wipe 1.4s var(--ease) 0.2s both; }
@keyframes photo-wipe { from { clip-path: inset(14% 0 0 0 round 32px); } to { clip-path: inset(0 0 0 0 round 32px); } }
.hero-photo::before { animation: frame-in 1.2s var(--ease) 0.7s both; }
@keyframes frame-in { from { opacity: 0; translate: -18px -18px; } }

/* Headline split into words by JS: each word slides up from a mask */
.js .hero h1:not(.is-split) { opacity: 0; animation: show 0s 1.2s forwards; }
@keyframes show { to { opacity: 1; } }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.hero h1 .w > span { display: inline-block; animation: word-up 1.05s var(--ease) both; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes word-up { from { transform: translate3d(0, 105%, 0) rotate(4deg); } }

/* ---------- Stats ---------- */
.stats { background: var(--surf); border-bottom: 1px solid var(--line); }
.stats dl { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { font-family: var(--display); font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats .c-link { color: var(--link); }
.stats .c-orange { color: var(--orange-text); }

/* ---------- Start here ---------- */
.start { padding: 56px 0 24px; }
.start .wrap { display: flex; flex-direction: column; gap: 24px; }
.start .h2 { font-size: clamp(32px, 3.4vw, 40px); }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.start-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 340px; padding: 26px;
  border-radius: 28px; color: var(--text); text-decoration: none; overflow: hidden; box-shadow: var(--card-shadow); isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.start-card--peach { background: var(--peach); }
.start-card--sky { background: var(--sky); }
.start-card--plain { background: var(--surf); border: 1px solid var(--line); }
.start-card img {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 74%; object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
  transition: transform 1.1s var(--ease);
}
.start-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.start-card:hover img { transform: scale(1.06); }
.start-card .t { display: flex; flex-direction: column; gap: 8px; }
.start-card .t b { font-family: var(--display); font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.start-card .t span { font-size: 15px; color: var(--body); }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(11, 21, 48, 0.25);
}
.pill svg { transition: transform 0.45s var(--ease); }
.start-card:hover .pill svg { transform: translateX(4px); }
.pill--ink { background: var(--inkbtn-bg); color: var(--inkbtn-fg); }
.pill--cobalt { background: var(--cobalt); color: #FFFFFF; }
.pill--orange { background: var(--orange); color: var(--ink); }

/* ---------- Logo wall ---------- */
.brands { padding: 48px 0 0; }
.brands .wrap { display: flex; flex-direction: column; gap: 14px; }
.brands .eyebrow { text-align: center; }
.logo-wall { display: flex; flex-direction: column; gap: 28px; padding: 8px 0; border-radius: 28px; background: var(--logo-panel); }
[data-theme="dark"] .logo-wall { padding: 28px 40px; margin: 0 calc(var(--gutter) * -1); }
.logo-row { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 20px 38px; }
.logo-row li { flex: 0 0 auto; height: 56px; display: flex; align-items: center; justify-content: center; }
.logo-row img { width: auto; max-width: var(--mw, 128px); height: var(--h, 28px); object-fit: contain; filter: saturate(0.9); transition: transform 0.5s var(--ease), filter 0.4s ease; }
.logo-row img:hover { transform: scale(1.08); filter: saturate(1.1); }

/* ---------- Selected work (bento) ---------- */
.work { padding: 72px 0 80px; }
.work .wrap { display: flex; flex-direction: column; gap: 32px; }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.work-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 28px; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.work-card--peach { background: var(--peach); }
.work-card--sky { background: var(--sky); }
.work-card--surf { background: var(--surf); }
.work-card.span-7 { grid-column: span 7; grid-row: span 2; padding: 26px; }
.work-card.span-5 { grid-column: span 5; }
.work-card.span-4 { grid-column: span 4; }
.shot { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--surf); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform 1.2s var(--ease); }
.work-card:hover .shot img { transform: scale(1.04); }
.shot-pair { display: flex; gap: 8px; }
.shot-pair .shot:first-child { flex: 1.35 1 0; border-radius: 14px; }
.shot-pair .shot:last-child { flex: 1 1 0; border-radius: 14px; }
.work-card .label { margin-top: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); }
.work-card h3 { font-family: var(--display); font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.work-card.span-7 h3 { font-size: clamp(26px, 2.6vw, 34px); }
.work-card .desc { color: var(--body); font-size: 15px; }
.work-card.span-7 .desc { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 12px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--body); }
.wstats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: auto; padding-top: 6px; }
.wstats b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.work-card.span-7 .wstats b { font-size: 30px; }
.wstats span { display: block; font-size: 13px; color: var(--body); }
.work-card .more { margin-top: auto; padding-top: 4px; }
.work-card .wstats ~ .more { margin-top: 0; }

/* ---------- Launch badges (Product Hunt, Open Launch) ----------
   Loaded from the platforms; js/site.js swaps in a text chip if one fails to load. */
.launch-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lbadge { display: inline-flex; border-radius: 10px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.lbadge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(11, 21, 48, 0.45); }
.lbadge img { height: 34px; width: auto; max-width: none; display: block; }
.exp-card .launch-badges { flex-wrap: nowrap; gap: 6px; margin-top: 2px; }
.exp-card .lbadge { border-radius: 7px; }
.exp-card .lbadge img { height: 24px; }
.launch-badges.big .lbadge img { height: 40px; }
.lbadge.is-text { padding: 5px 10px; border: 1px solid var(--line); background: var(--bg); font-size: 12px; font-weight: 600; color: var(--body); text-decoration: none; }
.launches { padding: 0 0 48px; }
.launches-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 22px 26px; border-radius: 22px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.launches-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.launches-copy p { font-size: 15.5px; color: var(--body); max-width: 620px; }
.launches-copy b { color: var(--text); }

/* ---------- What I do ---------- */
.services { background: var(--surf); padding: 64px 0; }
.services .wrap { display: flex; flex-direction: column; gap: 36px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 22px; border-radius: 22px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--card-shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); transform-origin: 0 50%; transition: height 0.5s var(--ease); }
.svc:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.svc:hover::before { height: 6px; }
.svc h3 { font-family: var(--display); font-size: 22px; line-height: 1.15; font-weight: 700; }
.svc p { font-size: 15.5px; color: var(--body); }
.svc .go { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--link); }
.svc .go svg { transition: transform 0.45s var(--ease); }
.svc:hover .go svg { transform: translateX(5px); }

/* ---------- Experience ---------- */
.exp { padding: 56px 0; }
.exp .wrap { display: flex; flex-direction: column; gap: 22px; }
.exp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exp-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.exp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.plate { height: 34px; padding: 0 10px; margin-left: -10px; border-radius: 10px; display: flex; align-items: center; background: var(--logo-plate); }
.plate img { height: 22px; width: auto; max-width: 130px; object-fit: contain; }
[data-theme="dark"] .plate { margin-left: 0; }
.exp-card .visit {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; transition: border-color 0.3s ease, background-color 0.3s ease;
}
.exp-card .visit svg { width: 13px; height: 13px; transition: transform 0.45s var(--ease); }
.exp-card .visit:hover { border-color: var(--text); }
.exp-card .visit:hover svg { transform: translateX(3px); }
.exp-card .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); line-height: 1.5; }
.exp-card h3 { font-family: var(--display); font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 800; }
.exp-card .desc {
  font-size: 13.5px; line-height: 1.5; color: var(--body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.estats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; padding-top: 2px; }
.estats b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--orange-text); line-height: 1.25; }
[data-theme="dark"] .estats b { color: var(--orange); }
.estats span { display: block; font-size: 11.5px; color: var(--muted); }
.exp-card .chips { gap: 6px; }
.exp-card .chips span { padding: 3px 9px; background: var(--bg); font-size: 11.5px; }
.exp-card .estats + .chips { margin-top: 2px; }
.exp-card h3 + .chips, .exp-card .desc + .chips { margin-top: auto; }

/* ---------- About ---------- */
.about { background: var(--peach); padding: 80px 0; }
.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.about-photo { flex: 1 1 380px; max-width: 480px; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 48px rgba(154, 52, 18, 0.18); }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.4s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.about-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-copy .h2 { font-size: clamp(34px, 4.2vw, 52px); }
.about-copy p { color: var(--body); font-size: 18px; max-width: 540px; }
.about-copy .ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* ---------- Blogs ---------- */
.blogs { padding: 80px 0; }
.blogs .wrap { display: flex; flex-direction: column; gap: 36px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post {
  display: flex; flex-direction: column; gap: 14px; padding: 12px 12px 20px; border-radius: 20px; background: var(--surf); color: var(--text); text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 21, 48, 0.06), 0 8px 24px rgba(11, 21, 48, 0.06);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.post:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.post .cover { overflow: hidden; border-radius: 12px; background: var(--sky); }
.post .cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.1s var(--ease); }
.post:hover .cover img { transform: scale(1.05); }
.post .meta { padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--link); }
.post .meta span { color: var(--muted); font-weight: 500; }
.post .title { padding: 0 8px; font-family: var(--display); font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact { padding: 0 0 80px; }
.contact-panel {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--contact-bg); color: var(--hero-fg); border: 1px solid var(--line);
  padding: 56px 48px; display: flex; flex-direction: column; gap: 28px;
}
.contact-panel .glow { right: -120px; top: -140px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255, 107, 44, 0.22), transparent 70%); animation: drift-a 16s var(--ease-in-out) infinite alternate; }
[data-theme="dark"] .contact-panel .glow { background: radial-gradient(circle, rgba(255, 107, 44, 0.5), transparent 70%); }
.contact-panel > *:not(.glow) { position: relative; }
.contact-panel .h2 { font-size: clamp(36px, 5vw, 60px); max-width: 780px; }
.contact-panel > p { font-size: 18px; color: var(--hero-mut); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(240px, (100% - 24px) / 3), 1fr)); gap: 12px; }
.contact-grid li:first-child { grid-column: 1 / -1; }
/* two columns (under 744px wide): an odd last card spans the row instead of sitting alone */
.contact-panel { container-type: inline-size; }
@container (max-width: 743.98px) {
  .contact-grid li:last-child:nth-child(even) { grid-column: 1 / -1; }
  .contact-grid li:last-child:nth-child(even) a { flex-direction: row; align-items: center; }
}
.contact-grid a {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 16px 18px; border-radius: 14px; background: var(--contact-card); border: 1px solid var(--line);
  color: var(--hero-fg); text-decoration: none; transition: transform 0.5s var(--ease), border-color 0.3s ease;
}
.contact-grid a:hover { transform: translateY(-3px); border-color: var(--orange); }
.contact-grid a { flex-direction: row; align-items: center; gap: 14px; }
.contact-grid .ci {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--b); color: var(--f);
  box-shadow: 0 8px 18px -10px rgba(11, 21, 48, 0.5); transition: transform 0.5s var(--ease);
}
.contact-grid .ci svg { width: 20px; height: 20px; fill: currentColor; }
.contact-grid a:hover .ci { transform: rotate(-6deg) scale(1.08); }
[data-theme="dark"] .contact-grid .ci { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.contact-grid .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-grid .ct > span { font-size: 13px; color: var(--muted); }
.contact-grid b { font-size: 15px; font-weight: 600; overflow-wrap: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); padding: 64px 0 48px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .name { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: 0.005em; }
.footer-top .trio { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; color: var(--text); margin-top: -4px; }
.footer-top .tag { color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 48px; font-size: 15px; }
.footer-nav a, .footer-social a { text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover, .footer-social a:hover { color: var(--orange-text); }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-social a { color: var(--muted); }
.copyright { font-size: 13px; color: var(--muted); }

/* ---------- Scroll reveal ----------
   Uses the individual `translate` / `scale` properties so it never fights
   with hover effects, which use `transform`. */
.js [data-reveal] {
  --rd: calc(var(--i, 0) * 45ms);
  opacity: 0; translate: 0 32px;
  transition: opacity 0.55s var(--ease) var(--rd), translate 0.65s var(--ease) var(--rd), scale 0.65s var(--ease) var(--rd),
              transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.3s ease;
}
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="scale"] { translate: none; scale: 0.96; }
.js [data-reveal].is-in { opacity: 1; translate: none; scale: none; }

/* ---------- Lightbox ---------- */
[data-zoom] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 48px; border: 0;
  background: transparent; display: none; align-items: center; justify-content: center; overflow: hidden;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(7, 12, 26, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease); }
.lightbox.is-open::backdrop { background: rgba(7, 12, 26, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox video { max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto; border-radius: 14px; background: #000; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); transform-origin: 0 0; }
.lightbox video[hidden], .lightbox img[hidden] { display: none; }
.lightbox img {
  max-width: min(1200px, 92vw); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); cursor: zoom-out; transform-origin: 0 0;
}
.lightbox .close {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-size: 26px; line-height: 1; cursor: pointer;
  opacity: 0; transform: scale(0.8); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), background-color 0.3s;
}
.lightbox.is-open .close { opacity: 1; transform: none; }
.lightbox .close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Page transitions (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -12px, 0); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); } }
::view-transition-group(site-header) { animation-duration: 0.4s; }
/* Theme switch: circular reveal instead of the page cross-fade */
html.theme-vt::view-transition-old(root),
html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* lights out: the old (light) page sits on top and shrinks into the toggle */
html.theme-vt-out::view-transition-old(root) { z-index: 2; }
html.theme-vt-out::view-transition-new(root) { z-index: 1; }

/* =====================================================================
   Inner pages: Portfolio, Blogs, Music, Qualifications
   ===================================================================== */

/* ---------- Shared page pieces ---------- */
.hero-grid.single { grid-template-columns: 1fr; }
.hero-grid.single .hero-copy { max-width: 820px; }
.hero-grid.single h1 { max-width: none; }
.hero .chips-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600;
  text-decoration: none; background: var(--chip-bg); color: var(--hero-fg); border: 1px solid var(--ghost-bd);
  transition: transform 0.5s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}
.chip-link:hover { transform: translateY(-2px); border-color: var(--hero-fg); }
.chip-link.is-primary { background: var(--orange); color: var(--ink); border-color: var(--orange); font-weight: 700; }
.sec { padding: 88px 0; }
.sec > .wrap { display: flex; flex-direction: column; gap: 32px; }
.sec-head { display: flex; flex-direction: column; gap: 10px; }
.sec-head .h2 { font-size: clamp(32px, 4vw, 48px); }
.tint-bg { background: var(--bg); }
.tint-surf { background: var(--surf); }
.tint-sky { background: var(--sky); }
.tint-peach { background: var(--peach); }
.sub-h { font-family: var(--display); font-size: 20px; font-weight: 700; }

.cta-wrap { position: relative; z-index: 2; }
/* glow drawn as a background (not a clipped ::after), so a DM menu can float past the band's edge */
.cta-band {
  border-radius: 36px; background: radial-gradient(circle 210px at calc(100% - 90px) 50px, rgba(255, 255, 255, 0.35), transparent 70%), var(--orange); color: var(--ink); padding: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  position: relative;
}
.cta-band > div { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.cta-band .h2 { color: var(--ink); font-size: clamp(34px, 4.4vw, 52px); }
.cta-band p { font-size: 18px; }
.cta-band .ctas { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.btn--dark { background: var(--ink); color: #FFFFFF; border-color: var(--ink); box-shadow: 0 12px 26px -12px rgba(11, 21, 48, 0.6); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: rgba(11, 21, 48, 0.06); }
.cta-wrap { padding: 0 0 96px; }

/* Round gradient arrow buttons for sliders and pagers */
.arrow-btn {
  position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; margin-top: -27px; border-radius: 999px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #FFFFFF;
  background: var(--cobalt); box-shadow: 0 14px 30px -10px rgba(47, 75, 255, 0.5);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.arrow-btn:hover { transform: scale(1.08); box-shadow: 0 18px 36px -10px rgba(47, 75, 255, 0.65); }
.arrow-btn:active { transform: scale(0.96); }
.arrow-btn[disabled] { opacity: 0; pointer-events: none; transform: scale(0.8); }
.arrow-btn.prev { left: -27px; }
.arrow-btn.next { right: -27px; }
.count { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Portfolio: intro ---------- */
.intro { position: relative; overflow: hidden; padding: 56px 0 40px; }
.intro .glow { right: -200px; top: -120px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(47, 75, 255, 0.16), transparent 70%); animation: drift-a 18s var(--ease-in-out) infinite alternate; }
.intro-grid { position: relative; display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 64px; align-items: center; }
.intro-photo { position: relative; }
.intro-photo::before { content: ""; position: absolute; inset: 22px 22px -22px -22px; border-radius: 30px; background: var(--cobalt); animation: frame-in-l 1.2s var(--ease) 0.7s both; }
@keyframes frame-in-l { from { opacity: 0; translate: 18px -18px; } }
.intro-photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 30px; animation: photo-wipe 1.4s var(--ease) 0.2s both; }
.intro-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.intro h1 { font-family: var(--display); font-size: clamp(44px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
.intro h1 .accent { color: var(--orange-text); }
[data-theme="dark"] .intro h1 .accent { color: var(--orange); }
.intro h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.intro h1 .w > span { display: inline-block; animation: word-up 1.05s var(--ease) both; animation-delay: calc(120ms + var(--i) * 70ms); }
.js .intro h1:not(.is-split) { opacity: 0; animation: show 0s 1.2s forwards; }
.intro [data-enter] { animation: enter 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.badge { align-self: flex-start; padding: 8px 18px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 15px; font-weight: 700; }
.intro-copy > .badge { color: var(--ink); }
.intro-copy > p { color: var(--body); font-size: 18px; max-width: 620px; }
.highlights { padding: 22px 24px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.highlights h2 { margin-bottom: 12px; font-family: var(--display); font-size: 19px; font-weight: 700; }
.highlights ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; font-size: 15.5px; }
.highlights li { display: flex; gap: 10px; }
.highlights li::before { content: "+"; font-weight: 800; color: var(--orange); }
.highlights li:nth-child(even)::before { color: var(--link); }
.pf-brands { padding: 8px 0 48px; }
.pf-brands .wrap { display: flex; flex-direction: column; gap: 14px; }
.pf-brands .eyebrow { text-align: center; }

/* ---------- Portfolio: sticky jump nav with scrollspy ---------- */
.jump {
  position: sticky; top: var(--header-h); z-index: 40; background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); transition: top 0.5s var(--ease);
}
.site-header.is-hidden ~ main .jump { top: 0; }
.jump .wrap { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump .lbl { flex: 0 0 auto; font-size: 14px; color: var(--muted); margin-right: 6px; }
.jump a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap;
  transition: background-color 0.4s var(--ease), color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.jump a:hover { transform: translateY(-1px); border-color: var(--text); }
.jump a.is-active { background: var(--orange); color: var(--ink); border-color: var(--orange); }

/* ---------- Portfolio: sections ---------- */
.pf { padding: 80px 0; scroll-margin-top: 140px; }
.pf > .wrap { display: flex; flex-direction: column; gap: 36px; }
.pf-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px 64px; align-items: start; }
.pf-head .lead { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-head .h2 { font-size: clamp(32px, 3.8vw, 44px); }
.pf-head .lead > p { color: var(--body); font-size: 18px; max-width: 600px; }
.pf-head .links { display: flex; flex-wrap: wrap; gap: 10px; }
.results { padding: 26px 28px; border-radius: 24px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.results h3 { margin-bottom: 12px; font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--acc-text); }
.results ul { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.results li { display: flex; gap: 12px; align-items: baseline; }
.results li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 2px; background: var(--acc); transform: translateY(-2px); }
.acc-orange { --acc: var(--orange); --acc-text: var(--orange-text); }
.acc-cobalt { --acc: var(--cobalt); --acc-text: var(--link); }
.center-cta { display: flex; justify-content: center; }

.bento > figure, .band-card, .edu, a.ccard { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }

/* Compact blog cards */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ccard {
  display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 14px; border-radius: 16px; background: var(--surf); color: var(--text); text-decoration: none;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 21, 48, 0.06), 0 6px 18px rgba(11, 21, 48, 0.06);
}
a.ccard:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.ccard .cover { overflow: hidden; border-radius: 10px; background: var(--sky); }
.ccard .cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; transition: transform 1.1s var(--ease); }
a.ccard:hover .cover img { transform: scale(1.05); }
.ccard .pub { padding: 0 6px; font-size: 12px; font-weight: 600; color: var(--link); }
.ccard .title { padding: 0 6px; font-family: var(--display); font-size: 15px; line-height: 1.25; font-weight: 700; }
.ccard .tag { margin: 0 6px; align-self: flex-start; padding: 3px 8px; border-radius: 999px; background: var(--peach); color: var(--badge-fg); font-size: 12px; font-weight: 600; }

/* Social post slider: native scrolling with snap, swipe on touch */
.slider { display: flex; flex-direction: column; gap: 14px; }
.slider-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.slider-view { position: relative; }
.slider-track {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 6px 2px 20px; margin: -6px -2px 0;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 calc((100% - 54px) / 4.35); min-width: 0; scroll-snap-align: start; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.slide img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 14px; background: #F7F8FC;
  box-shadow: 0 12px 28px rgba(11, 21, 48, 0.14); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.slide img:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -12px rgba(11, 21, 48, 0.35); }
.js .slide.is-peek { opacity: 0.45; }
.js .slide.is-peek img { outline: 2px dashed var(--ghost-bd); outline-offset: 4px; }

/* Long carousel strips scroll sideways on small screens */
.strips { display: flex; flex-direction: column; gap: 22px; }
.strip-scroll { overflow-x: auto; scrollbar-width: thin; border-radius: 14px; }
.strip-scroll img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 12px 28px rgba(11, 21, 48, 0.14); }

/* Motion graphics */
.motion { display: flex; flex-direction: column; gap: 28px; }
.motion-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.motion-row figure { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.motion-row video { width: 100%; border-radius: 18px; background: #0B0F0D; box-shadow: 0 20px 44px rgba(11, 21, 48, 0.25); }
.motion-row figcaption { font-family: var(--display); font-size: 17px; line-height: 1.3; font-weight: 700; }

/* Ads */
.ads-wall { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px; }
.ads-wall figure { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ads-wall img { height: 320px; max-width: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 20px 40px -12px rgba(11, 21, 48, 0.35); transition: transform 0.6s var(--ease); }
.ads-wall img:hover { transform: translateY(-5px) rotate(-0.6deg); }
.ads-wall img.mock { border: 1px solid var(--line); }
.ads-wall .t { font-family: var(--display); font-weight: 700; font-size: 16px; }
.ads-wall .s { font-size: 13px; color: var(--muted); }

/* Bento grids */
.bento { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); grid-auto-rows: var(--rowh, 40px); grid-auto-flow: dense; gap: var(--gap, 14px); }
.bento > figure {
  position: relative; min-width: 0; min-height: 0; border-radius: 22px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.bento > figure:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.bento .fill { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento .contain { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.bento > figure:hover .fill { transform: scale(1.04); }
.bento .fit { width: 100%; height: 100%; padding: 12px 12px 52px; display: flex; align-items: center; justify-content: center; }
.bento .fit img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.bento .fit.dark { background: #202124; }
.bento .fit.cert { padding: 18px 18px 60px; background: #F3F5FA; }
[data-theme="dark"] .bento .fit.cert { background: #0C1428; }
.bento .fit.cert img { border-radius: 6px; box-shadow: 0 10px 24px rgba(11, 21, 48, 0.18); }
.bchip {
  position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; padding: 7px 12px; border-radius: 999px; background: var(--label-bg, rgba(255, 255, 255, 0.88));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.25;
}
[data-theme="dark"] .bchip { --label-bg: rgba(7, 12, 26, 0.78); }
.panel-stats { width: 100%; height: 100%; padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: linear-gradient(160deg, #FFF3EB, #FFFFFF); }
[data-theme="dark"] .panel-stats { background: linear-gradient(160deg, #24140F, #0F1730); }
.panel-stats b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.panel-stats span { display: block; margin-top: 4px; font-size: 14px; color: var(--body); }
.panel-text { width: 100%; height: 100%; padding: 26px 24px 60px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: linear-gradient(135deg, #FFF3EB, #FFFFFF); }
[data-theme="dark"] .panel-text { background: linear-gradient(135deg, #24140F, #0F1730); }
.panel-text b { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.panel-text strong { font-family: var(--display); font-size: 18px; font-weight: 700; }
.panel-text span { font-size: 14px; color: var(--muted); }
.c-orange { color: var(--orange-text); }
[data-theme="dark"] .c-orange { color: var(--orange); }
.c-link { color: var(--link); }
.topper { width: 100%; height: 100%; padding: 20px 20px 58px; background: linear-gradient(135deg, #0E0B2E, #141B4D); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.topper .zoomed { height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.6); }
.topper .zoomed img { width: 100%; height: 100%; object-fit: cover; }
.topper > img { width: 100%; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); }

/* Compact gallery (Landing pages, web and UI/UX): small tiles that open full size in the lightbox */
.bento.gallery { --cols: 3; grid-auto-rows: clamp(150px, 15.5vw, 210px); gap: 12px; }
.bento.gallery > figure { border-radius: 18px; }
.bento.gallery .fill { width: 100%; height: 100%; object-fit: cover; }
.bento.gallery video.fill { display: block; object-position: left top; cursor: zoom-in; background: #0B0F0D; }
.bento.gallery .bchip { left: 10px; bottom: 10px; right: auto; max-width: calc(100% - 20px); padding: 5px 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento.gallery .topper { padding: 12px 12px 42px; gap: 8px; }
.bento.gallery .topper .zoomed { height: 52px; border-radius: 10px; }

/* Email */
.flows { padding: 24px 26px; border-radius: 22px; background: var(--surf); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.flows-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.flows-head .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.flows-head .tools span { padding: 6px 12px; border-radius: 999px; background: var(--sky); font-size: 13px; font-weight: 600; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.flow .name { flex: 0 0 200px; }
.flow .name b { display: block; font-family: var(--display); font-size: 17px; }
.flow .name span { font-size: 13px; color: var(--muted); }
.steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.steps .st { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); }
.steps .st.last { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.steps .ar { color: var(--muted); }
.email-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.email-grid figure { display: flex; flex-direction: column; gap: 10px; }
.email-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: #FFFFFF; box-shadow: 0 12px 28px rgba(11, 21, 48, 0.12); transition: transform 0.6s var(--ease); }
.email-grid img:hover { transform: translateY(-5px); }
.email-grid figcaption span { display: block; font-size: 13px; font-weight: 600; color: var(--link); }
.email-grid figcaption b { font-family: var(--display); font-size: 16px; }

/* ---------- Blogs page ---------- */
.pager { position: relative; }
.pager-pages { display: grid; }
.pager-page { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-content: start; }
.js .pager-page { transition: opacity 0.55s var(--ease), translate 0.7s var(--ease), visibility 0s; }
.js .pager-page:not(.is-current) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.35s var(--ease), translate 0.5s var(--ease), visibility 0s 0.5s; }
.js .pager-page.from-right { translate: 40px 0; }
.js .pager-page.from-left { translate: -40px 0; }
.bcard {
  display: flex; flex-direction: column; gap: 12px; padding: 10px 10px 18px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; box-shadow: var(--card-shadow); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); }
.bcard .cover { overflow: hidden; border-radius: 12px; background: var(--sky); }
.bcard .cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.1s var(--ease); }
.bcard:hover .cover img { transform: scale(1.05); }
.bcard .pub { padding: 0 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.bcard .title { padding: 0 6px; font-family: var(--display); font-size: 16px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.bcard .date { padding: 0 8px; margin-top: auto; font-size: 13px; color: var(--muted); }
.journal { border-radius: 32px; background: var(--peach); padding: 56px; display: flex; flex-direction: column; gap: 16px; }
.journal .h2 { font-size: clamp(32px, 3.8vw, 44px); }
.journal p { color: var(--body); font-size: 18px; max-width: 620px; }
.journal ul { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.journal li { padding: 10px 18px; border-radius: 999px; background: var(--surf); font-size: 15px; font-weight: 600; }
.journal-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding-top: 8px; }

/* ---------- Blog post pages (/blog/<slug>, written in /admin) ---------- */
.post-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 3vw, 36px); }
.post-head { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.post-head .chip { display: inline-flex; align-self: flex-start; gap: 8px; align-items: center; }
.post-head .chip a { color: inherit; text-decoration: none; }
.post-head .chip a:hover { color: var(--orange); }
.post-title { font-family: var(--display); font-size: clamp(36px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; color: var(--text); }
.post-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); cursor: zoom-in; }
.post-body { display: flex; flex-direction: column; gap: 48px; padding-top: clamp(32px, 4vw, 56px); padding-bottom: 104px; }
.prose { max-width: 740px; font-size: 18.5px; line-height: 1.75; color: var(--body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--display); color: var(--text); letter-spacing: -0.02em; line-height: 1.2; font-weight: 800; }
.prose h2 { font-size: clamp(27px, 3vw, 34px); margin-top: 1.9em; }
.prose h3 { font-size: clamp(22px, 2.4vw, 26px); margin-top: 1.6em; }
.prose h4, .prose h5, .prose h6 { font-size: 20px; margin-top: 1.4em; }
.prose strong { color: var(--text); }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); }
.prose blockquote { border-left: 4px solid var(--orange); padding: 4px 0 4px 22px; font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--text); }
.prose img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); cursor: zoom-in; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--surf); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: #0B1530; color: #EEF1F8; font-size: 15px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surf); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; color: var(--text); background: color-mix(in oklab, var(--cobalt) 6%, transparent); }
.prose tr:last-child td { border-bottom: 0; }
.post-foot { max-width: 740px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li { padding: 8px 14px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.post-author { display: flex; gap: 16px; align-items: center; }
.post-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; }
.post-author p:last-child { color: var(--body); font-size: 16px; }
.post-author a { color: var(--text); font-weight: 700; text-decoration: none; }

/* ---------- Music page ---------- */
.mhero .hero-photo::before { background: var(--cobalt); }
.mhero h1 { font-size: clamp(50px, 7vw, 88px); line-height: 0.95; }

/* Music hero: "Learn guitar with me" opens a small DM menu (details/summary, closes on outside click and Esc) */
.hero .hero-copy { position: relative; z-index: 3; }
.dm-menu { position: relative; }
.dm-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.dm-menu > summary::-webkit-details-marker { display: none; }
.dm-menu > summary svg { transition: transform 0.35s var(--ease); }
.dm-menu[open] > summary svg { transform: rotate(90deg); }
.dm-pop { position: absolute; left: 0; top: calc(100% + 10px); z-index: 30; min-width: 270px; padding: 8px; display: flex; flex-direction: column; gap: 2px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); box-shadow: 0 22px 48px -18px rgba(10, 16, 40, 0.38); animation: dm-in 0.26s var(--ease) both; }
.dm-pop .dm-title { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 6px; }
.dm-pop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; transition: background-color 0.25s ease; }
.dm-pop a:hover, .dm-pop a:focus-visible { background: color-mix(in oklab, var(--orange) 12%, transparent); }
.dm-pop .ci { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--b); color: var(--f); }
.dm-pop .ci svg { width: 18px; height: 18px; fill: currentColor; }
[data-theme="dark"] .dm-pop .ci { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.dm-pop .ct { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dm-pop .ct b { font-size: 14.5px; font-weight: 600; }
.dm-pop .ct span { font-size: 12.5px; color: var(--muted); }
.dm-menu.dm-up .dm-pop { top: auto; bottom: calc(100% + 10px); }
.dm-menu.dm-up[open] > summary svg { transform: rotate(-90deg); }
@keyframes dm-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.band-feature { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 28px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.band-feature .photo { overflow: hidden; min-height: 480px; }
.band-feature .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.band-feature:hover .photo img { transform: scale(1.04); }
.band-body { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.band-body .logo { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; }
.band-body .genre { font-size: 14px; font-weight: 600; color: var(--orange-text); }
[data-theme="dark"] .band-body .genre { color: var(--orange); }
.band-body h3 { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.band-body p { color: var(--body); }
.band-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.band-card { border-radius: 28px; overflow: hidden; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.band-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.band-card .photo { overflow: hidden; height: 300px; }
.band-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.band-card:hover .photo img { transform: scale(1.05); }
.band-card .band-body { padding: 28px; gap: 12px; }
.band-card .band-body .row { display: flex; align-items: center; gap: 14px; }
.band-card .band-body .logo { width: 52px; height: 52px; border-radius: 12px; }
.band-card .band-body h3 { font-size: 32px; line-height: 1.05; }
.band-links { display: flex; flex-wrap: wrap; gap: 8px; }
.band-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ghost-bd); color: var(--text);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.5s var(--ease);
}
.band-links a:hover { border-color: var(--text); transform: translateY(-2px); }
.releases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.release { padding: 28px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.release h3 { font-size: 14px; font-weight: 700; color: var(--orange-text); text-transform: uppercase; letter-spacing: 0.08em; }
[data-theme="dark"] .release h3 { color: var(--orange); }
.release b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; }
.release span { display: block; font-size: 14px; color: var(--muted); }
.listen-top { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 24px; align-items: start; }
.teaser { display: flex; flex-direction: column; gap: 12px; }
.teaser video { width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; background: #000000; box-shadow: 0 24px 48px rgba(11, 21, 48, 0.22); }
.teaser figcaption span { display: block; font-size: 13px; font-weight: 600; color: var(--orange-text); }
.teaser figcaption b { font-family: var(--display); font-size: 20px; }
.yt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.yt { display: flex; flex-direction: column; gap: 12px; color: var(--text); text-decoration: none; }
.yt .frame { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000000; box-shadow: 0 24px 48px rgba(11, 21, 48, 0.22); }
[data-theme="dark"] .yt .frame, [data-theme="dark"] .teaser video { box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
.yt .frame img, .yt .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt .frame img { transition: transform 1.1s var(--ease), filter 0.5s ease; }
.yt:hover .frame img { transform: scale(1.05); filter: brightness(0.85); }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 14px; background: #FF0033;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); transition: transform 0.5s var(--ease);
}
.yt:hover .play { transform: scale(1.12); }
.yt .who { display: block; font-size: 13px; font-weight: 600; color: var(--orange-text); }
[data-theme="dark"] .yt .who { color: var(--orange); }
.yt .what { display: block; font-family: var(--display); font-size: 16px; line-height: 1.3; font-weight: 700; }
.yt.big .what { font-size: 22px; }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; box-shadow: var(--card-shadow); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.sp:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.sp img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.sp .meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp b { font-family: var(--display); font-size: 19px; font-weight: 800; }
.sp small { font-size: 13px; color: var(--muted); }
.sp .go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #1DB954; color: #04140A; font-size: 13px; font-weight: 700; }
.sp-embed { border-radius: 18px; overflow: hidden; height: 152px; }
.sp-embed iframe { width: 100%; height: 152px; border: 0; }
.beyond { border-radius: 32px; background: linear-gradient(135deg, var(--cobalt), #1B2A9E); padding: 56px; display: flex; flex-direction: column; gap: 18px; color: #FFFFFF; position: relative; overflow: hidden; }
.beyond .h2 { font-size: clamp(32px, 4vw, 48px); }
.beyond p { color: #E3E8FF; font-size: 18px; max-width: 640px; }
.beyond ul { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.beyond li { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 15px; font-weight: 600; }

/* Guitar lessons FAQ: compact accordion inside the "Beyond the band" panel */
.beyond .faq { margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.2); display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.beyond .faq h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 4px; }
.beyond details { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.beyond summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.beyond summary::-webkit-details-marker { display: none; }
.beyond summary::after { content: "+"; font-size: 18px; font-weight: 400; transition: transform 0.4s var(--ease); }
.beyond details[open] summary::after { transform: rotate(45deg); }
.beyond details p { font-size: 14.5px; color: #E3E8FF; padding: 0 0 12px; max-width: 680px; }

/* ---------- Qualifications page ---------- */
.q-grid { grid-template-columns: 1.3fr 1fr; align-items: end; }
.qstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qstats > div { padding: 20px 22px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.qstats > div:first-child { grid-column: span 2; }
.qstats dt { font-size: 13px; color: var(--muted); }
.qstats dd { margin-top: 4px; font-family: var(--display); font-size: 30px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.qstats dd.c-link { color: var(--link); }
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edu {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 26px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
.edu:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.edu.big { padding: 32px; }
.edu .yr { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--link); }
.edu h3 { font-family: var(--display); font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.edu.big h3 { font-size: clamp(24px, 2.6vw, 30px); }
.edu .school { font-weight: 600; }
.edu .place { font-size: 15px; color: var(--muted); }
.edu ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.edu li { padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--body); }

/* ---------- Inner pages: responsive ---------- */
@media (max-width: 1180px) {
  .arrow-btn.prev { left: -12px; }
  .arrow-btn.next { right: -12px; }
}
@media (max-width: 1060px) {
  .bento.gallery { --cols: 2; grid-auto-rows: clamp(140px, 24vw, 220px); }
  /* the 7th small tile would sit alone in 2 columns: let it span the row */
  .bento.gallery > figure.wide-sm { grid-column: span 2 !important; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .intro-photo { max-width: 380px; margin-left: 22px; }
  .pf-head { grid-template-columns: 1fr; }
  .slide { flex-basis: calc((100% - 36px) / 2.6); }
  .pager-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-feature { grid-template-columns: 1fr; }
  .band-feature .photo { min-height: 0; height: 380px; }
  .releases { grid-template-columns: 1fr; }
  .listen-top { grid-template-columns: 1fr; }
  .teaser { max-width: 380px; }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-grid { grid-template-columns: 1fr; }
  .q-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sec { padding: 64px 0; }
  .pf { padding: 64px 0; }
  .highlights ul { grid-template-columns: 1fr; }
  .slide { flex-basis: 76%; }
  .arrow-btn { width: 46px; height: 46px; margin-top: -23px; }
  .arrow-btn.prev { left: -6px; }
  .arrow-btn.next { right: -6px; }
  .strip-scroll img { width: 960px; max-width: none; }
  .motion-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .motion-row figure.wide { grid-column: span 2; }
  .motion-row figcaption { font-size: 15px; }
  .ads-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .ads-wall img { height: auto; width: 100% !important; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  /* screenshots show whole at their natural shape; very long pages get a tall window */
  .bento > figure { grid-column: auto !important; grid-row: auto !important; height: auto; }
  .bento .fill, .bento .contain { height: auto; }
  .bento .fit { height: auto; min-height: 160px; }
  .bento > figure.tall { height: 540px; }
  .bento > figure.tall .fill, .bento > figure.tall .contain { height: 100%; }
  .bento > figure.tall .fit { height: 100%; }
  .bento.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .bento.gallery > figure, .bento.gallery > figure.tall { height: auto; aspect-ratio: 4 / 3; }
  .bento.gallery > figure.wide, .bento.gallery > figure.feature, .bento.gallery > figure.wide-sm { grid-column: span 2 !important; aspect-ratio: 16 / 9; }
  .bento.gallery .fill { height: 100%; }
  .bento.gallery .bchip { font-size: 11px; padding: 4px 8px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .pager { padding-bottom: 76px; }
  .pager .arrow-btn { top: auto; bottom: 0; margin-top: 0; }
  .pager .arrow-btn.prev { left: calc(50% - 58px); }
  .pager .arrow-btn.next { right: calc(50% - 58px); }
  .pager .arrow-btn[disabled] { opacity: 0.3; transform: none; }
  .flow .name { flex-basis: 100%; }
  .pager-page { grid-template-columns: 1fr; }
  .journal, .beyond, .cta-band { padding: 36px 24px; border-radius: 28px; }
  .band-body { padding: 28px 22px; }
  .band-feature .photo { height: 260px; }
  .band-grid { grid-template-columns: 1fr; }
  .band-card .photo { height: 240px; }
  .yt-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .qstats dd { font-size: 26px; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 10px; }
  /* logos flow as one wrapped group instead of three uneven rows */
  .logo-wall { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 34px; }
  .logo-row { display: contents; }
  /* js/site.js splits the logos into even rows: each logo gets a share of its row */
  .logo-wall.is-balanced { column-gap: 0; }
  .logo-wall.is-balanced .logo-row li { flex: 1 0 var(--lw-b); min-width: 0; padding: 0 8px; }
  .logo-wall.is-balanced .logo-row img { max-width: min(var(--mw, 128px), 100%); }
}
@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(11, 21, 48, 0.4);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.55s var(--ease); }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 72px; }
  .hero-photo { max-width: 460px; }
  .start-grid, .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card.span-7, .work-card.span-5 { grid-column: span 12; grid-row: auto; }
  .work-card.span-4 { grid-column: span 6; }
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .brand-name { font-size: 19px; padding: 8px 14px; }
  .brand-name .mid { display: none; }
  .hero-sub { font-size: 17px; }
  .start-grid, .svc-grid, .exp-grid, .blog-grid { grid-template-columns: 1fr; }
  .start-card { min-height: 300px; }
  .work-card.span-4 { grid-column: span 12; }
  .work-card .shot { height: 220px !important; }
  .shot-pair { height: 200px !important; }
  .logo-row { gap: 14px 26px; }
  .logo-row li { height: 44px; }
  [data-theme="dark"] .logo-wall { padding: 24px 20px; margin: 0; }
  .contact-panel { padding: 36px 22px; border-radius: 28px; }
  .about .wrap { gap: 36px; }
}

/* ---------- Phones: denser layout, two cards per row where a card fits ---------- */
@media (max-width: 680px) {
  /* Home: Start here */
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .start-card { min-height: 220px; padding: 16px; border-radius: 20px; gap: 10px; }
  .start-card img { height: 62%; }
  .start-card .t { gap: 4px; }
  .start-card .t b { font-size: 19px; }
  .start-card .t span { font-size: 12.5px; line-height: 1.4; }
  .pill { min-height: 34px; padding: 0 12px; font-size: 12px; gap: 5px; }
  .pill svg { width: 12px; height: 12px; }

  /* Home: Selected work (the three small cards sit 2 + 1) */
  .work-grid { gap: 12px; }
  .work-card { padding: 14px; border-radius: 20px; gap: 8px; }
  .work-card.span-4 { grid-column: span 6; }
  .work-card.span-4:last-child { grid-column: span 12; }
  .work-card.span-4 .shot { height: 110px !important; border-radius: 12px; }
  .work-card.span-4 h3 { font-size: 15px; }
  .work-card.span-4 .label { font-size: 10px; }
  .work-card.span-4 .wstats { gap: 12px; }
  .work-card.span-4 .wstats b { font-size: 18px; }
  .work-card.span-4 .wstats span { font-size: 11px; }
  .work-card .btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }

  /* Home: What I do */
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .svc { padding: 16px 14px 14px; border-radius: 18px; gap: 8px; }
  .svc h3 { font-size: 16px; }
  .svc p { font-size: 13px; line-height: 1.45; }
  .svc .go { font-size: 12.5px; }

  /* Home: Experience */
  .exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .exp-card { padding: 12px; border-radius: 16px; gap: 6px; }
  .exp-top { min-height: 28px; gap: 6px; }
  .plate { height: 28px; padding: 0 8px; margin-left: -8px; }
  .plate img { height: 16px; max-width: 96px; }
  .exp-card .visit { min-height: 28px; padding: 0 8px; font-size: 0; gap: 0; }
  .exp-card .visit svg { width: 14px; height: 14px; }
  .exp-card .role { font-size: 9px; letter-spacing: 0.05em; }
  .exp-card h3 { font-size: 14px; }
  .exp-card .desc { font-size: 12px; -webkit-line-clamp: 3; }
  .estats { gap: 4px 12px; }
  .estats b { font-size: 15px; }
  .estats span { font-size: 10.5px; }
  .exp-card .chips span { font-size: 10.5px; padding: 3px 7px; }
  .exp-card .launch-badges { flex-wrap: wrap; gap: 4px; }
  .exp-card .lbadge img { height: 20px; }
  .launch-badges.big .lbadge img { height: 34px; }
  .launches-box { padding: 16px; }

  /* Home: latest blogs (one wide, two side by side) */
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .blog-grid .post:first-child { grid-column: span 2; }
  .post { padding: 8px 8px 14px; gap: 8px; border-radius: 16px; }
  .post .meta { padding: 0 4px; font-size: 11.5px; }
  .post .title { padding: 0 4px; font-size: 14px; }
  .blog-grid .post:first-child .title { font-size: 18px; }

  /* Contact: two per row, icon above the handle */
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact-grid a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .contact-grid li:first-child a { flex-direction: row; align-items: center; }
  .contact-grid .ci { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; }
  .contact-grid .ci svg { width: 16px; height: 16px; }
  .contact-grid .ct > span { font-size: 11.5px; }
  .contact-grid b { font-size: 12.5px; overflow-wrap: anywhere; }

  /* Portfolio */
  .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ccard { padding: 6px 6px 10px; gap: 6px; border-radius: 14px; }
  .ccard .pub { font-size: 10.5px; padding: 0 4px; }
  .ccard .title { font-size: 12.5px; padding: 0 4px; }
  .ccard .tag { font-size: 10px; margin: 0 4px; }
  .slide { flex-basis: calc((100% - 18px) / 2.15); }
  .email-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .email-grid figcaption span { font-size: 11px; }
  .email-grid figcaption b { font-size: 13px; }
  .bento:not(.gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bento:not(.gallery) > figure { border-radius: 16px; }
  .bento:not(.gallery) > figure.tall { height: 300px; }
  .bento:not(.gallery) .fit { min-height: 130px; padding: 8px 8px 40px; }
  .bento:not(.gallery) .bchip { font-size: 10.5px; padding: 4px 8px; left: 8px; right: auto; bottom: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bento:not(.gallery) > figure:last-child:nth-child(odd) { grid-column: span 2 !important; }
  .panel-stats { padding: 14px 12px; gap: 10px; }
  .panel-stats b { font-size: 22px; }
  .panel-stats span { font-size: 11.5px; }
  .panel-text { padding: 14px 12px 44px; gap: 4px; }
  .panel-text b { font-size: 28px; }
  .panel-text strong { font-size: 14px; }
  .panel-text span { font-size: 11.5px; }

  /* Blogs page */
  .pager-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bcard { padding: 6px 6px 12px; gap: 8px; border-radius: 16px; }
  .bcard .pub { font-size: 10px; padding: 0 4px; letter-spacing: 0.06em; }
  .bcard .title { font-size: 13px; padding: 0 4px; }
  .bcard .date { font-size: 11px; padding: 0 4px; }

  /* Music */
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .band-card { border-radius: 18px; }
  .band-card .photo { height: 120px; }
  .band-card .band-body { padding: 12px; gap: 8px; }
  .band-card .band-body .row { gap: 8px; }
  .band-card .band-body .logo { width: 34px; height: 34px; border-radius: 8px; }
  .band-card .band-body h3 { font-size: 18px; }
  .band-card .genre { font-size: 11px; }
  .band-card .band-body > p { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .band-card .band-links { gap: 6px; }
  .band-card .band-links a { min-height: 30px; padding: 0 10px; font-size: 11.5px; }
  .releases { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
  .releases .release:nth-child(2) { grid-column: span 2; }
  .release { padding: 16px; gap: 10px; border-radius: 16px; }
  .release b { font-size: 16px; }
  .release span { font-size: 12px; }
  .yt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .yt .frame { border-radius: 14px; }
  .yt .play { width: 48px; height: 34px; margin: -17px 0 0 -24px; border-radius: 10px; }
  .yt .who { font-size: 11px; }
  .yt .what { font-size: 13px; }
  .sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .sp { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
  .sp img { width: 100%; height: auto; aspect-ratio: 1; }
  .sp b { font-size: 14px; }
  .sp small { display: none; }
  .sp .go { font-size: 11px; padding: 5px 8px; }

  /* Qualifications */
  .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .edu, .edu.big { padding: 14px; border-radius: 18px; gap: 6px; }
  .edu h3, .edu.big h3 { font-size: 15px; }
  .edu .yr { font-size: 11px; }
  .edu .school { font-size: 13px; line-height: 1.35; }
  .edu .place { font-size: 12px; }
  .edu ul { gap: 5px; }
  .edu li { font-size: 10.5px; padding: 3px 8px; }
}

/* ---------- Phones: hero polish (iPhone-size screens) ---------- */
@media (max-width: 680px) {
  /* hero buttons: same width, stacked, so the pair looks deliberate */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 2px; }
  .hero-ctas .btn { width: 100%; min-height: 50px; font-size: 15px; }
  .hero-ctas .dm-menu { width: 100%; }
  .dm-pop { right: 0; min-width: 0; }
  /* small labels stay on one line */
  .chip { font-size: 10.5px; letter-spacing: 0.08em; padding: 7px 12px; gap: 8px; }
  /* Portfolio intro on phones: name first, then a smaller photo, then the role label */
  .intro { padding: 28px 0 28px; }
  .intro-grid { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .intro-copy { display: contents; }
  .intro-copy > h1 { order: -2; }
  .intro-photo { order: -1; width: 58%; max-width: 230px; margin: 6px 0 14px 14px; }
  .intro-photo::before { inset: 12px 12px -12px -12px; border-radius: 22px; }
  .intro-photo img { border-radius: 22px; }
  /* the role is a label, not a button: soft tint, smaller type */
  .intro-copy > .badge {
    padding: 6px 12px; font-size: 13px; font-weight: 600;
    background: color-mix(in oklab, var(--orange) 14%, var(--surf)); color: var(--orange-text);
    border: 1px solid color-mix(in oklab, var(--orange) 35%, transparent);
  }
  [data-theme="dark"] .intro-copy > .badge { color: var(--orange); }
}

/* ---------- Desktop: hero and stats fit the first screen ----------
   Headline and photo scale with screen height so the stats strip is visible
   on load on common laptop sizes (1366x768 and up). */
@media (min-width: 1061px) {
  .hero-grid { padding-top: 36px; padding-bottom: 40px; gap: 48px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: clamp(52px, min(6.4vw, 8.4vh), 82px); }
  .punch { font-size: clamp(19px, min(2vw, 2.7vh), 25px); }
  .hero-sub { font-size: 17.5px; line-height: 1.55; }
  .hero-ctas { padding-top: 2px; }
  .hero-photo { justify-self: end; width: min(100%, calc((100vh - 330px) * 0.8)); min-width: 300px; }
  .stats dl { padding-top: 20px; padding-bottom: 20px; }
  .stats dd { font-size: clamp(30px, 3vw, 38px); line-height: 1.15; }
  .stats dt { font-size: 13px; }
}

/* ---------- Desktop: tighter vertical rhythm on inner pages ---------- */
@media (min-width: 1061px) {
  .sec { padding: 60px 0; }
  .sec > .wrap { gap: 26px; }
  .pf { padding: 60px 0; }
  .pf > .wrap { gap: 30px; }
  .cta-wrap { padding: 0 0 72px; }
  .intro { padding: 36px 0 28px; }
}

/* ---------- Justified photo gallery (Music "On stage"): every photo keeps its own shape ---------- */
.justified { display: flex; flex-direction: column; gap: 12px; }
.jrow { display: flex; gap: 12px; }
.jrow figure { min-width: 0; margin: 0; overflow: hidden; border-radius: 20px; background: var(--surf); box-shadow: var(--card-shadow); }
.jrow img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jrow figure:hover img { transform: scale(1.03); }
/* phones: two-column masonry, each photo still at its natural shape */
@media (max-width: 680px) {
  .justified { display: block; columns: 2; column-gap: 8px; }
  .jrow { display: contents; }
  .jrow figure { display: block; width: 100%; margin: 0 0 8px; break-inside: avoid; border-radius: 14px; }
  .jrow figure.span-all { column-span: all; margin-top: 0; }
}

/* Gallery pager: two-row pages that swipe sideways, arrows top right */
.gpager { position: relative; }
.gp-track {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; align-items: flex-start;
}
.gp-track::-webkit-scrollbar { display: none; }
.gp-page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
@media (max-width: 680px) { .gp-track { gap: 10px; } }


/* ---------- Photo stack (Music hero): cards slide out from under the stack ---------- */
.photo-stack { position: relative; aspect-ratio: 4 / 5; }
.hero-photo .photo-stack img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 32px; backface-visibility: hidden; }
.hero-photo .photo-stack img:not(:first-child) { animation: none; }
.js .photo-stack img:not(:first-child) { box-shadow: 0 24px 48px -20px rgba(7, 12, 26, 0.55); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dm-pop { animation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .js .hero h1:not(.is-split) { opacity: 1; }
  @view-transition { navigation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
