/* ═══════════════════════════════════════════════════════════
   lukehurd.com — 2025 redesign
   Inspired by Teenage Engineering / Nothing
   Cream + Hot Pink + Dark Gray
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

/* ── Tokens ── */
:root {
  --ff-heading: 'Instrument Serif', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --cream:      #F2EDE8;
  --cream-dark: #E8E0D8;
  --white:      #FEFCFA;
  --pink:       #FF0058;
  --pink-hover: #DB004B;
  --gray-900:   #1A1A1A;
  --gray-700:   #3D3D3D;
  --gray-500:   #6B6B6B;
  --gray-400:   #8A8A8A;
  --gray-200:   #D4D4D4;
  --gray-100:   #EDEDED;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --max-w:      1200px;
  --pad-x:      clamp(1.25rem, 4vw, 2.5rem);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

::selection {
  background: var(--pink);
  color: var(--white);
}

/* ── Skip link ── */
.skip {
  position: absolute; left: -9999px; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--gray-900); color: var(--white);
  font-size: 0.875rem; text-decoration: none; border-radius: var(--radius-sm);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── Shared layout ── */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { padding-block: clamp(4rem, 10vw, 8rem); }

/* ── Typography ── */
h1, h2, h3 { font-family: var(--ff-heading); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.label {
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.serif-italic { font-family: var(--ff-heading); font-style: italic; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--ff-body);
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease-out);
  position: relative; overflow: hidden;
}

.btn--primary {
  background: var(--gray-900); color: var(--white);
  border: 1px solid var(--gray-900);
}
.btn--primary:hover {
  background: var(--pink); border-color: var(--pink);
}

.btn--outline {
  background: transparent; color: var(--gray-900);
  border: 1px solid var(--gray-200);
}
.btn--outline:hover {
  border-color: var(--gray-900);
}

.btn--ghost {
  background: transparent; color: var(--gray-700);
  border: 1px solid transparent; padding: 0.5rem 0;
}
.btn--ghost:hover { color: var(--pink); }

.btn--coming-soon {
  background: transparent;
  color: var(--gray-600);
  border: 1px dashed var(--gray-300);
  cursor: default;
  user-select: none;
  font-size: 0.8125rem;
}
.btn--coming-soon:hover { border-color: var(--gray-300); color: var(--gray-600); }
.btn__status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: comingSoonPulse 2s ease-in-out infinite;
}
@keyframes comingSoonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .btn__status-dot { animation: none; }
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(4px); }


/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-block: 1rem;
  background: rgba(242, 237, 232, 0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.4s var(--ease-out);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
}

.site-logo {
  font-family: var(--ff-heading); font-size: 1.25rem;
  text-decoration: none; color: var(--gray-900);
}

.site-nav ul {
  list-style: none; display: flex; gap: 2rem; align-items: center;
}
.site-nav a {
  font-size: 0.8125rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; color: var(--gray-700);
  transition: color 0.3s var(--ease-out);
  position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--pink);
  transition: width 0.35s var(--ease-out);
}
.site-nav a:hover { color: var(--gray-900); }
.site-nav a:hover::after { width: 100%; }


/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-top: 6rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
}

.hero__bg,
.press__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.hero__bg::after,
.press__bg::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, var(--cream) 0%, rgba(242, 237, 232, 0.55) 42%, transparent 65%),
    linear-gradient(to top, var(--cream) 0%, rgba(242, 237, 232, 0.35) 28%, transparent 55%);
}
.hero__bg video,
.hero__bg img,
.press__bg video,
.press__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.75;
}

.press {
  position: relative;
  overflow: hidden;
}

.hero__content { width: 100%; }

.hero__label { margin-bottom: 1.5rem; }

.hero__title {
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero__title .serif-italic { color: var(--pink); }

.hero__intro {
  max-width: 42ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--gray-700);
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Hero Spotify player (custom, API-driven) ── */
.hsp {
  position: absolute;
  z-index: 2;
  top: calc(5.5rem + env(safe-area-inset-top, 0px));
  right: var(--pad-x);
  width: min(100% - var(--pad-x) * 2, 340px);
  border: 2px solid var(--pink);
  border-radius: var(--radius-md);
  background: rgba(26, 26, 26, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow:
    0 0 0 1px rgba(232, 89, 12, 0.12),
    0 10px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: var(--ff-body);
  color: #eee;
}

/* ── main row: art · info · external link ── */
.hsp__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
}

.hsp__art-wrap {
  width: 44px; height: 44px;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2a;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hsp__art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.hsp__art.is-loaded { display: block; }
.hsp__art.is-loaded + .hsp__art-ph { display: none; }
.hsp__art-ph { font-size: 1rem; color: #555; }

.hsp__info {
  flex: 1;
  min-width: 0;
}
.hsp__eyebrow {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.15rem;
  line-height: 1;
}
.hsp__track {
  font-family: var(--ff-heading);
  font-size: 0.875rem;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.25;
  margin: 0;
}
.hsp__artist {
  font-size: 0.6875rem;
  color: #aaa;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}

.hsp__link {
  flex-shrink: 0;
  color: var(--pink);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.hsp__link:hover { opacity: 1; }

/* ── progress bar ── */
.hsp__progress {
  padding: 0 0.7rem 0.35rem;
}
.hsp__bar {
  height: 3px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.hsp__fill {
  height: 100%;
  width: 0%;
  background: var(--pink);
  border-radius: 2px;
  transition: width 1s linear;
}
.hsp__times {
  display: flex;
  justify-content: space-between;
  font-size: 0.5625rem;
  color: #666;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* ── queue toggle ── */
.hsp__queue-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem 0.7rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: none;
  color: #888;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
}
.hsp__queue-toggle:hover:not(:disabled) { color: var(--pink); }
.hsp__queue-toggle:disabled { opacity: 0.35; cursor: default; }
.hsp__queue-toggle[aria-expanded="true"] { color: var(--pink); }

/* ── expandable drawer (queue + search) ── */
.hsp__drawer {
  border-top: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hsp__drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.hsp__drawer__inner {
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.hsp__queue { padding: 0.35rem 0; }
.hsp__queue-empty {
  text-align: center;
  font-size: 0.6875rem;
  color: #555;
  padding: 0.5rem 0.7rem;
}

.hsp__q-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  transition: background 0.15s;
}
.hsp__q-item:hover { background: rgba(255,255,255,0.04); }
.hsp__q-item--now { color: var(--pink); }
.hsp__q-art {
  width: 28px; height: 28px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2a;
}
.hsp__q-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsp__q-info {
  flex: 1; min-width: 0;
}
.hsp__q-name {
  font-size: 0.75rem;
  color: #ddd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsp__q-item--now .hsp__q-name { color: var(--pink); }
.hsp__q-artist {
  font-size: 0.625rem;
  color: #777;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsp__q-badge {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
  flex-shrink: 0;
}

/* ── search ── */
.hsp__search {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.5rem 0.7rem;
}
.hsp__search-hint {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 0.4rem;
  text-align: center;
}
.hsp__search-bar {
  display: flex; gap: 0.4rem;
}
.hsp__search-input {
  flex: 1;
  background: #222;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  color: #eee;
  outline: none;
}
.hsp__search-input::placeholder { color: #555; }
.hsp__search-input:focus { border-color: var(--pink); }
.hsp__search-btn {
  background: var(--pink);
  color: #fff;
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.hsp__search-btn:hover { background: var(--pink-hover); }

.hsp__search-results { margin-top: 0.4rem; }

.hsp__sr-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.hsp__sr-item:hover { opacity: 0.75; }
.hsp__sr-art {
  width: 28px; height: 28px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a2a;
}
.hsp__sr-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hsp__sr-info { flex: 1; min-width: 0; }
.hsp__sr-name {
  font-size: 0.75rem; color: #ddd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsp__sr-artist {
  font-size: 0.625rem; color: #777;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hsp__sr-add {
  flex-shrink: 0;
  color: var(--pink);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 0.2rem;
}

.hsp__toast {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--pink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
  padding: 0.35rem 0.7rem;
  animation: hspToast 2.5s ease forwards;
}
@keyframes hspToast {
  0%   { opacity: 0; transform: translateY(100%); }
  10%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(0); }
}

/* ── Mobile compact Spotify strip ── */
.hsp-strip {
  display: none;
}

@media (max-width: 48rem) {
  .hsp { display: none; }

  .hsp-strip {
    display: block;
    position: relative;
    z-index: 90;
    margin-top: calc(3.25rem + env(safe-area-inset-top, 0px));
    background: rgba(26, 26, 26, 0.94);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border-bottom: 1.5px solid var(--pink);
  }
  .hsp-strip__inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem var(--pad-x);
    position: relative;
  }
  .hsp-strip__art-wrap {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    flex-shrink: 0;
    background: #2a2a2a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .hsp-strip__art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
  }
  .hsp-strip__art[src] { display: block; }
  .hsp-strip__art[src] + .hsp-strip__art-ph { display: none; }
  .hsp-strip__art-ph {
    font-size: 0.875rem;
    color: #555;
  }
  .hsp-strip__info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
  }
  .hsp-strip__track {
    font-family: var(--ff-heading);
    font-size: 0.8125rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hsp-strip__artist {
    font-size: 0.6875rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
  }
  .hsp-strip__queue-btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #888;
    padding: 0.3rem;
    cursor: pointer;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .hsp-strip__queue-btn:disabled { opacity: 0.3; cursor: default; }
  .hsp-strip__queue-btn[aria-expanded="true"] { color: var(--pink); }
  .hsp-strip__queue-btn:not(:disabled):active { color: var(--pink); }

  .hsp-strip__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
  }
  .hsp-strip__fill {
    height: 100%;
    width: 0%;
    background: var(--pink);
    transition: width 1s linear;
  }

  .hsp-strip__drawer {
    border-top: 1.5px solid var(--pink);
    background: rgba(26, 26, 26, 0.96);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hsp-strip__drawer.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
  }
  .hsp-strip__drawer__inner {
    overflow: hidden;
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
  }

  .hsp-strip__queue { padding: 0.35rem 0; }
  .hsp-strip__search { padding: 0.5rem var(--pad-x); }
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}


/* ═══════════════════════════════════════════════════════════
   SOFTWARE
   ═══════════════════════════════════════════════════════════ */
.software {
  background:
    linear-gradient(165deg, rgba(18, 18, 18, 0.92) 0%, transparent 55%),
    linear-gradient(125deg, #1f1f1f 0%, #2a2a2a 22%, #1a1a1a 55%, #121212 100%);
  color: var(--cream);
}

.software .label { color: rgba(242, 237, 232, 0.5); }
.software .serif-italic { color: var(--pink); }

.software__header {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.software__header h2 { margin: 0; color: var(--cream); }
.software__header p { color: rgba(242, 237, 232, 0.65) !important; }

/* ── Product feature block (one per product, stacked) ── */
.product-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(242, 237, 232, 0.1);
}
.product-feature:last-child {
  border-bottom: 1px solid rgba(242, 237, 232, 0.1);
}
@media (min-width: 52rem) {
  .product-feature { grid-template-columns: 1fr 1fr; }
  .product-feature--reverse .product-feature__info { order: 2; }
  .product-feature--reverse .product-feature__device { order: 1; }
}

.product-feature__info {
  display: flex; flex-direction: column; gap: 1rem;
}

.product-feature__platform {
  font-family: var(--ff-body);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(242, 237, 232, 0.45);
}

.product-feature__name {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--cream);
  line-height: 1.1;
}

.product-feature__desc {
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  color: rgba(242, 237, 232, 0.7);
  line-height: 1.7;
  max-width: 42ch;
}

.product-feature__details {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 0.5rem;
}
.product-feature__details li {
  font-size: 0.875rem;
  color: rgba(242, 237, 232, 0.55);
  padding-left: 1.25rem;
  position: relative;
}
.product-feature__details li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--pink);
}

.product-feature__links {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 0.75rem;
}

/* Inverted buttons for dark section */
.software .btn--primary {
  background: var(--pink); color: var(--white);
  border-color: var(--pink);
}
.software .btn--primary:hover {
  background: var(--cream); color: var(--gray-900);
  border-color: var(--cream);
}

.software .btn--outline {
  color: var(--cream);
  border-color: rgba(242, 237, 232, 0.25);
}
.software .btn--outline:hover {
  border-color: var(--cream);
}

/* ── Device mockups ── */
.product-feature__device {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* MacBook chrome */
.macbook {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22)) drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.macbook__screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background: #111;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  border-bottom: none;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.12) inset;
}
.macbook__screen img,
.macbook__screen video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.macbook__base {
  width: 104%;
  margin-left: -2%;
  height: 13px;
  background: linear-gradient(180deg, #a0a0a2 0%, #7a7a7c 60%, #5e5e60 100%);
  border-radius: 0 0 6px 6px;
  position: relative;
}
.macbook__base::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 18%; height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 0 0 4px 4px;
}

/* iPhone chrome (reuse talktrack-ios frame overlay pattern) */
.iphone {
  position: relative;
  width: min(100%, 260px);
  margin-inline: auto;
  line-height: 0;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.22)) drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  /* Percentages are of the frame PNG width/height. Match top/bottom to center the screen in the bezel. */
  --iphone-screen-inset-t: 1.45%;
  --iphone-screen-inset-r: 0.35%;
  --iphone-screen-inset-b: 1.45%;
  /* NOTE: if bottom still clips, increase this value in 0.1% steps */
  --iphone-screen-inset-l: 1.45%;
}
.iphone__screen {
  position: absolute; z-index: 1;
  top: var(--iphone-screen-inset-t);
  right: var(--iphone-screen-inset-r);
  bottom: var(--iphone-screen-inset-b);
  left: var(--iphone-screen-inset-l);
  border-radius: 12% / 5.5%;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.iphone__screen img,
.iphone__screen video {
  width: 100%; height: 100%;
  display: block;
  object-fit: fill;
}
.iphone__frame {
  position: relative; z-index: 2;
  display: block; width: 100%; height: auto;
  pointer-events: none;
}

/* Paired phone mockup (two phones side by side) */
.phone-pair {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-end;
}
.phone-pair .iphone { width: min(45%, 220px); }
.phone-pair .iphone:nth-child(2) { transform: translateY(2rem); }

@media (max-width: 52rem) {
  .macbook { max-width: 380px; }
  .iphone { width: min(100%, 200px); }
  .phone-pair .iphone { width: min(40%, 180px); }
}


/* ═══════════════════════════════════════════════════════════
   WORK / BRANDS MARQUEE
   ═══════════════════════════════════════════════════════════ */
.work-section { overflow: hidden; }

.work-section__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.work-section__header p {
  max-width: 50ch;
  color: var(--gray-700);
  margin-top: 1rem;
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
}

.brand-marquee {
  overflow: hidden;
  padding-block: 1rem;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.brand-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.brand-marquee__track span {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}

/* Work pillar (VML) */
.work-pillars {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.work-pillar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-pillar__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.work-pillar__logo {
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.2s ease;
}
a.work-pillar__logo:hover { color: var(--pink); }

.work-pillar__role {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

.work-pillar__body {
  font-size: clamp(0.9rem, 1.2vw, 0.9375rem);
  line-height: 1.65;
  color: var(--gray-700);
}

.work-pillar__brands,
.work-pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.work-pillar__brands span,
.work-pillar__tags span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  background: var(--gray-100);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}

/* Work showcase intro */
.work-showcase__intro {
  max-width: 52ch;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
  color: var(--gray-500);
  margin-top: 0.75rem;
  line-height: 1.65;
}

/* Work tabs (pill-style project selector) */
.work-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-top: 1.5rem;
}
.work-tabs::-webkit-scrollbar { display: none; }

.work-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 0.5rem 1.25rem;
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.work-tab:hover {
  color: var(--gray-900);
  border-color: var(--gray-400);
}
.work-tab.is-active {
  color: var(--white);
  background: var(--gray-900);
  border-color: var(--gray-900);
}

/* Work project panels */
.work-project {
  display: none;
  margin-top: 2rem;
}
.work-project.is-active {
  display: block;
  animation: workFadeIn 0.4s var(--ease-out);
}

@keyframes workFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.work-project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.work-project__platform {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.work-project__role {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding-left: 0.75rem;
  border-left: 1px solid var(--gray-200);
}

.work-project__desc {
  max-width: 62rem;
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ── Work cards (poster thumbnails) ── */
.wc {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  font-family: var(--ff-body);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.wc:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.14), 0 4px 10px rgba(0,0,0,0.06);
}
.wc:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.wc--landscape { aspect-ratio: 16 / 9; }
.wc--portrait  { aspect-ratio: 9 / 16; }
.wc--square    { aspect-ratio: 1 / 1; }

.wc__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.35s var(--ease-out), opacity 0.5s ease-in-out;
}
.wc__poster--2,
.wc__poster--3 { opacity: 0; }

.wc:hover .wc__poster--1,
.wc:hover .wc__poster--2,
.wc:hover .wc__poster--3 {
  transform: scale(1.04);
  filter: brightness(0.92);
}

/* Crossfade through 3 frames on hover — 6s loop, ~1.6s per frame */
.wc:hover .wc__poster--1 { animation: wcFade1 6s ease-in-out infinite; }
.wc:hover .wc__poster--2 { animation: wcFade2 6s ease-in-out infinite; }
.wc:hover .wc__poster--3 { animation: wcFade3 6s ease-in-out infinite; }

@keyframes wcFade1 {
  0%, 27%  { opacity: 1; }
  33%, 94% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes wcFade2 {
  0%, 27%   { opacity: 0; }
  33%, 60%  { opacity: 1; }
  67%, 100% { opacity: 0; }
}
@keyframes wcFade3 {
  0%, 60%  { opacity: 0; }
  67%, 94% { opacity: 1; }
  100%     { opacity: 0; }
}

/* Play button */
.wc__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transform: scale(0.92);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-spring), background 0.3s var(--ease-out);
}
.wc__play::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid var(--white);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.wc:hover .wc__play {
  opacity: 1;
  transform: scale(1.06);
  background: var(--pink);
}

.wc--portrait .wc__play,
.wc--square .wc__play {
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
}

/* Card label (bottom overlay) */
.wc__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1rem 0.9rem;
  font-family: var(--ff-heading);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.25;
  color: var(--white);
  text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  pointer-events: none;
}

.wc--portrait .wc__label {
  font-size: 0.8125rem;
  padding: 2rem 0.75rem 0.7rem;
}

/* ── Work grids (per-project layouts) ── */
.wg {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Solo: single large card centered */
.wg--solo {
  max-width: 880px;
  grid-template-columns: 1fr;
}
.wg--solo-square {
  max-width: 640px;
  margin-inline: auto;
}

/* Coachella: 2 landscapes stacked left, 1 portrait right */
.wg--coachella {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}
.wg--coachella .wg__col-main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* NatGeo: 1 landscape hero on top, 4 portraits row below */
.wg--natgeo {
  grid-template-columns: 1fr;
}
.wg--natgeo .wg__row-portraits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Coke: landscape + portrait side-by-side */
.wg--coke {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

@media (max-width: 52rem) {
  .wg--coachella,
  .wg--coke {
    grid-template-columns: 1fr;
  }
  .wg--natgeo .wg__row-portraits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .work-tabs {
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }
  .wc__play {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
  }
  .wc__play::before {
    border-left-width: 12px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
}

/* ── Work Lightbox ── */
.wlb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.wlb.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wlb__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0));
  right: max(1rem, env(safe-area-inset-right, 0));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.wlb__close:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.06);
}

.wlb__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(92vw, 1400px);
  max-height: 80vh;
}
.wlb__stage video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  background: #000;
}

.wlb__caption {
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  text-align: center;
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 48rem) {
  .wlb { padding: 1rem; gap: 0.75rem; }
  .wlb__stage { max-height: 75vh; }
  .wlb__stage video { max-height: 75vh; }
  .wlb__caption { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wlb,
  .wc,
  .wc__poster,
  .wc__play { transition-duration: 0s !important; }
  .wc:hover .wc__poster--1,
  .wc:hover .wc__poster--2,
  .wc:hover .wc__poster--3 { animation: none !important; }
  .wc__poster--2,
  .wc__poster--3 { opacity: 0 !important; }
}


/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 52rem) {
  .about__grid { grid-template-columns: 1fr 1fr; }
}

.about__photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
}

.about__text { display: flex; flex-direction: column; justify-content: center; }

.about__text p {
  max-width: 55ch;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
}

.about__text p:last-of-type { margin-bottom: 2rem; }

.about__text strong { color: var(--gray-900); }

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat-strip__item {
  padding: 1.5rem;
  background: var(--cream);
  text-align: center;
}
.stat-strip__value {
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-strip__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}


/* ═══════════════════════════════════════════════════════════
   LIVE DATA
   ═══════════════════════════════════════════════════════════ */
.live-section { background: var(--white); }

.live-section__header {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ── Grid ── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Card base ── */
.live-card {
  padding: 1.5rem;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.35s var(--ease-out);
  min-height: 120px;
}
.live-card:hover { background: #F7F3EF; }

.live-card__label {
  font-family: var(--ff-body);
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.live-card__value {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  color: var(--gray-900);
  line-height: 1.2;
}
.live-card__value--big {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.live-card__sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.live-card__row {
  display: flex; align-items: center; gap: 0.5rem;
}

/* ── Status dot ── */
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-400);
  flex-shrink: 0;
}
.live-dot--away {
  background: #eab308;
  box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4);
  animation: livePulseAway 3s ease-in-out infinite;
}
.live-dot--online {
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
@keyframes livePulseAway {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.4); }
  50%      { box-shadow: 0 0 0 5px rgba(234, 179, 8, 0); }
}

/* ── Heart Rate ── */
.live-card__hr-row {
  display: flex; align-items: baseline; gap: 0.3rem;
}
.live-card__hr-num {
  font-family: var(--ff-heading);
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  color: var(--gray-900);
  line-height: 1;
  letter-spacing: -0.02em;
}
.live-card__hr-unit {
  font-family: var(--ff-body);
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.live-card--hr.has-pulse .live-card__hr-num {
  animation: hrBeat 1s ease-in-out infinite;
}
@keyframes hrBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.04); }
  30% { transform: scale(1); }
}

/* ── Activity stats row ── */
.live-card__stats {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8125rem; color: var(--gray-500);
}
.live-card__stats span:empty { display: none; }

/* ── Now Playing card (spans 2 cols) ── */
.live-card--nowplaying {
  grid-column: span 2;
}

.live-card__np {
  display: flex; gap: 1rem; align-items: center;
}

.live-card__album-wrap {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.live-card__album-art {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.live-card__album-art.is-loaded { display: block; }
.live-card__album-placeholder {
  font-size: 1.25rem;
  color: var(--gray-400);
  line-height: 1;
}
.live-card__album-art.is-loaded + .live-card__album-placeholder { display: none; }

.live-card__np-text {
  display: flex; flex-direction: column; gap: 0.1rem;
  min-width: 0;
  flex: 1;
}
.live-card__np-track {
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  color: var(--gray-900);
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-card__np-artist {
  font-size: 0.8125rem;
  color: var(--gray-700);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.live-card__np-album {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Progress bar */
.live-card__progress {
  margin-top: 0.5rem;
}
.live-card__progress-bar {
  width: 100%;
  height: 3px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}
.live-card__progress-fill {
  height: 100%;
  background: var(--pink);
  border-radius: 2px;
  width: 0%;
  transition: width 1s linear;
}
.live-card__progress-times {
  display: flex; justify-content: space-between;
  font-size: 0.6875rem; color: var(--gray-400);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* ── Devices ── */
.live-card__device-list {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-top: 0.15rem;
}
.live-card__device-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; color: var(--gray-700);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gray-200);
}
.live-card__device-row:last-child { border-bottom: none; padding-bottom: 0; }
.live-card__device-row span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Offline state ── */
.live-grid--offline .live-card { opacity: 0.5; }
.live-grid--offline .live-card--status { opacity: 1; }

/* ── Responsive ── */
@media (max-width: 52rem) {
  .live-grid { grid-template-columns: repeat(2, 1fr); }
  .live-card--nowplaying { grid-column: span 2; }
}
@media (max-width: 32rem) {
  .live-grid { grid-template-columns: 1fr; }
  .live-card--nowplaying { grid-column: span 1; }
}


/* ═══════════════════════════════════════════════════════════
   SPEAKING / PRESS
   ═══════════════════════════════════════════════════════════ */
.press__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.press-item {
  padding: 1.5rem;
  background: var(--white);
  text-decoration: none;
  border: 0.5px solid var(--gray-200);
  transition: background 0.35s var(--ease-out);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.press-item:hover { background: var(--cream); }

.press-item__source {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500);
}
.press-item__title {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  color: var(--gray-900);
}
.press-item__arrow {
  margin-top: auto; padding-top: 0.5rem;
  font-size: 0.875rem; color: var(--pink);
  transition: transform 0.3s var(--ease-out);
}
.press-item:hover .press-item__arrow { transform: translateX(4px); }


/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact { background: var(--white); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 52rem) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

.contact__text p {
  max-width: 45ch;
  color: var(--gray-700);
  margin-top: 1rem;
  font-size: clamp(0.9375rem, 1.2vw, 1rem);
}

.contact__socials {
  list-style: none; display: flex; flex-direction: column; gap: 0;
  margin-top: 2rem;
}
.contact__socials li {
  border-bottom: 1px solid var(--gray-200);
}
.contact__socials a {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
  text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  color: var(--gray-900);
  transition: color 0.3s var(--ease-out), padding-left 0.3s var(--ease-out);
}
.contact__socials a:hover {
  color: var(--pink); padding-left: 0.5rem;
}
.contact__socials .arrow {
  font-size: 0.875rem; color: var(--gray-400);
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.contact__socials a:hover .arrow {
  color: var(--pink); transform: translateX(4px);
}

/* Contact form */
.contact__form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500);
}
.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  color: var(--gray-900);
  background: var(--cream);
  transition: border-color 0.3s var(--ease-out);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}
.form-group textarea { resize: vertical; min-height: 8rem; }

.contact__form .form-status {
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.form-status--success { color: #16a34a; }
.form-status--error { color: #dc2626; }


/* ═══════════════════════════════════════════════════════════
   TERMINAL SECTION
   ═══════════════════════════════════════════════════════════ */
.terminal-section {
  background:
    linear-gradient(165deg, rgba(18,18,18,0.95) 0%, transparent 55%),
    linear-gradient(125deg, #141414 0%, #1c1c1c 22%, #161616 55%, #0e0e0e 100%);
  color: var(--cream);
}
.terminal-section .label { color: var(--pink); }
.terminal-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  background: rgba(232, 89, 12, 0.12);
  color: var(--pink);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.term-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px rgba(255,255,255,0.03);
}

.term-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  background: #1e1e1e;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-window__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.term-window__dot--red   { background: #ff5f57; }
.term-window__dot--yellow { background: #febc2e; }
.term-window__dot--green  { background: #28c840; }
.term-window__title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #555;
  letter-spacing: 0.03em;
}

.term-window__body {
  height: 380px;
}

/* jQuery Terminal theme overrides — pink on dark */
.term-window__body.terminal {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8125rem !important;
  background: #121212 !important;
  color: #ccc !important;
  padding: 0.5rem !important;
  line-height: 1.6 !important;
}
.term-window__body .terminal-output .format { line-height: 1.6 !important; }
.term-window__body .cmd .cursor {
  background: var(--pink) !important;
  color: #121212 !important;
}
.term-window__body .cmd .prompt { color: var(--pink) !important; }
.term-window__body .terminal-output { padding: 0 !important; }

@media (max-width: 48rem) {
  .terminal-section { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.site-footer__copy {
  font-size: 0.8125rem; color: var(--gray-500);
}
.site-footer__links {
  display: flex; gap: 1.5rem; list-style: none;
}
.site-footer__links a {
  font-size: 0.8125rem; color: var(--gray-500);
  text-decoration: none; transition: color 0.3s var(--ease-out);
}
.site-footer__links a:hover { color: var(--gray-900); }


/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-slide-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-slide-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-slide-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-slide-right.is-visible { opacity: 1; transform: translateX(0); }


/* ═══════════════════════════════════════════════════════════
   FAB NAV (mobile only)
   ═══════════════════════════════════════════════════════════ */
.fab-group { display: none; }

@media (max-width: 48rem) {
  .fab-group {
    --_fab-size: 72px;
    --_mini-size: 52px;
    --_margin: 1.25rem;
    --_gap: 0.6rem;

    position: fixed;
    z-index: 99;
    left: var(--_margin);
    bottom: calc(var(--_margin) + env(safe-area-inset-bottom, 0px));
    display: block;
  }
}

/* ── Main FAB button ── */
.fab-main {
  width: var(--_fab-size);
  height: var(--_fab-size);
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232, 89, 12, 0.35), 0 2px 6px rgba(0,0,0,0.2);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  flex-shrink: 0;
}
.fab-main:active { transform: scale(0.92); }
.fab-main__icon {
  transition: transform 0.3s var(--ease-out);
}
.fab-group.is-open .fab-main__icon {
  transform: rotate(45deg);
}
.fab-group.is-open .fab-main {
  box-shadow: 0 2px 10px rgba(232, 89, 12, 0.25), 0 1px 4px rgba(0,0,0,0.15);
}

/* ── Mini FAB buttons ── */
.fab-mini {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  pointer-events: none;
}

/* Vertical positions — top = Software, bottom = Contact (just above FAB) */
.fab-mini:nth-child(2) { bottom: calc(var(--_fab-size) + var(--_gap) * 1 + (var(--_mini-size) + var(--_gap)) * 5); }
.fab-mini:nth-child(3) { bottom: calc(var(--_fab-size) + var(--_gap) * 1 + (var(--_mini-size) + var(--_gap)) * 4); }
.fab-mini:nth-child(4) { bottom: calc(var(--_fab-size) + var(--_gap) * 1 + (var(--_mini-size) + var(--_gap)) * 3); }
.fab-mini:nth-child(5) { bottom: calc(var(--_fab-size) + var(--_gap) * 1 + (var(--_mini-size) + var(--_gap)) * 2); }
.fab-mini:nth-child(6) { bottom: calc(var(--_fab-size) + var(--_gap) * 1 + (var(--_mini-size) + var(--_gap)) * 1); }
.fab-mini:nth-child(7) { bottom: calc(var(--_fab-size) + var(--_gap) * 1); }

/* Icon circles */
.fab-mini svg {
  width: var(--_mini-size);
  height: var(--_mini-size);
  padding: 10px;
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--pink);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.6);
  transition:
    opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.27);
}

/* Labels */
.fab-mini__label {
  font-family: var(--ff-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-900);
  background: rgba(242, 237, 232, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

/* ── OPEN: icons fly up staggered, then labels slide out ── */
.fab-group.is-open .fab-mini {
  pointer-events: auto;
}
.fab-group.is-open .fab-mini svg {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fab-group.is-open .fab-mini__label {
  opacity: 1;
  transform: translateX(0);
}

/* Icon stagger (bottom-up: Contact first → Software last) */
.fab-group.is-open .fab-mini:nth-child(7) svg { transition-delay: 0.02s; }
.fab-group.is-open .fab-mini:nth-child(6) svg { transition-delay: 0.06s; }
.fab-group.is-open .fab-mini:nth-child(5) svg { transition-delay: 0.10s; }
.fab-group.is-open .fab-mini:nth-child(4) svg { transition-delay: 0.14s; }
.fab-group.is-open .fab-mini:nth-child(3) svg { transition-delay: 0.18s; }
.fab-group.is-open .fab-mini:nth-child(2) svg { transition-delay: 0.22s; }

/* Label stagger (starts after icons, stairstep offset from icon) */
.fab-group.is-open .fab-mini:nth-child(7) .fab-mini__label { transition-delay: 0.12s; }
.fab-group.is-open .fab-mini:nth-child(6) .fab-mini__label { transition-delay: 0.18s; }
.fab-group.is-open .fab-mini:nth-child(5) .fab-mini__label { transition-delay: 0.24s; }
.fab-group.is-open .fab-mini:nth-child(4) .fab-mini__label { transition-delay: 0.30s; }
.fab-group.is-open .fab-mini:nth-child(3) .fab-mini__label { transition-delay: 0.36s; }
.fab-group.is-open .fab-mini:nth-child(2) .fab-mini__label { transition-delay: 0.42s; }

/* ── CLOSE: labels retract fast, then icons drop (faster than open) ── */
/* Labels retract first — fast, top-down (Software first) */
.fab-mini:nth-child(2) .fab-mini__label { transition-delay: 0s; }
.fab-mini:nth-child(3) .fab-mini__label { transition-delay: 0.02s; }
.fab-mini:nth-child(4) .fab-mini__label { transition-delay: 0.04s; }
.fab-mini:nth-child(5) .fab-mini__label { transition-delay: 0.06s; }
.fab-mini:nth-child(6) .fab-mini__label { transition-delay: 0.08s; }
.fab-mini:nth-child(7) .fab-mini__label { transition-delay: 0.10s; }

/* Icons collapse after labels — top-down (Software first, Contact last) */
.fab-mini:nth-child(2) svg { transition-delay: 0.08s; }
.fab-mini:nth-child(3) svg { transition-delay: 0.10s; }
.fab-mini:nth-child(4) svg { transition-delay: 0.12s; }
.fab-mini:nth-child(5) svg { transition-delay: 0.14s; }
.fab-mini:nth-child(6) svg { transition-delay: 0.16s; }
.fab-mini:nth-child(7) svg { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .hsp__drawer,
  .hsp-strip__drawer { transition-duration: 0s !important; }
  .fab-mini svg,
  .fab-mini__label { transition-duration: 0s !important; transition-delay: 0s !important; }
  .fab-main__icon { transition-duration: 0s !important; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 48rem) {
  .site-nav { display: none; }
  .site-logo { white-space: nowrap; }
  .site-header { padding-block: 0.6rem; }
  .hero { min-height: 85vh; min-height: 85svh; }

  body {
    -webkit-user-select: none;
    user-select: none;
  }
  input, textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

@media (max-width: 32rem) {
  .hero__title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
}


/* ═══════════════════════════════════════════════════════════
   EASTER EGG FLASH
   ═══════════════════════════════════════════════════════════ */
.ee-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f0;
  opacity: 0;
  pointer-events: none;
}
.ee-flash--active {
  animation: ee-flash-anim 0.6s ease-out forwards;
}
@keyframes ee-flash-anim {
  0%   { opacity: 0; background: #0f0; }
  15%  { opacity: 1; background: #0f0; }
  40%  { opacity: 1; background: #000; }
  100% { opacity: 1; background: #000; }
}
