/* Hermes iMedia — one design system for hermesimedia.com, /spotlight/ and /fomo/.
   The creator app (spotlight.hermesimedia.com) mirrors the tokens, top bar and
   footer in client/src/components/site/site.css — keep the two in step. */

:root {
  /* Black and white only, like the hi mark. Bold comes from type and contrast, not colour. */
  --bg: #000;
  --bg-2: #0E0E0E;
  --ivory: #FFF;
  --ivory-2: #F2F2F2;
  --ink: #000;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);
  --muted-ink: #4A4A4A;
  --line: rgba(255, 255, 255, 0.18);
  --line-ink: rgba(0, 0, 0, 0.16);
  --accent: #FFF;
  --accent-ink: #000;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Times New Roman', serif;
  --sans: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 17px; line-height: 1.6; background: var(--bg); color: var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ivory); color: var(--ink); }
.light ::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ivory); color: var(--ink); }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Top bar: identical on every page, including the creator app ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar-logo img { width: 176px; height: auto; filter: brightness(0) invert(1); }
.bar-links { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.bar-links a { color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.bar-links a:hover, .bar-links a[aria-current] { color: var(--ivory); border-bottom-color: var(--ivory); }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.eyebrow::before { content: ''; flex: none; width: 44px; height: 1px; background: currentColor; }
.light .eyebrow { color: var(--accent-ink); }
.display { font-family: var(--serif); font-weight: 700; font-size: clamp(60px, 11vw, 184px); line-height: 0.88; letter-spacing: -0.04em; color: var(--ivory); }
h2, .h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(46px, 7.2vw, 118px); line-height: 0.92; letter-spacing: -0.035em; color: var(--ivory); }
h3, .h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ivory); }
.display em, h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.light h2, .light h3 { color: var(--ink); }
.light h2 em { color: var(--accent-ink); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 600px; }
.light .lead, .light p { color: var(--muted-ink); }
.fine { font-size: 14px; color: var(--muted); }

/* ---------- Buttons: one solid, one outline, one text link ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* Square, uppercase, and every hover is a full black/white inversion. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--ivory); transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--ivory); }
.btn-line { color: var(--ivory); }
.btn-line:hover { background: var(--ivory); color: var(--ink); }
.light .btn { border-color: var(--ink); }
.light .btn-solid { background: var(--ink); color: var(--ivory); }
.light .btn-solid:hover { background: transparent; color: var(--ink); }
.light .btn-line { color: var(--ink); }
.light .btn-line:hover { background: var(--ink); color: var(--ivory); }
.link { display: inline-block; font-weight: 500; color: var(--ivory); border-bottom: 1px solid var(--accent); padding-bottom: 3px; transition: color .2s; }
.link:hover { opacity: 0.7; }
.light .link { color: var(--ink); border-color: var(--accent-ink); }

/* ---------- Sections ---------- */
section { padding: clamp(88px, 11vw, 168px) 0; }
.light { background: var(--ivory); color: var(--ink); }
.raised { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .lead { justify-self: end; }

/* Full-bleed photographic hero. The gradient keeps the headline legible on any photo. */
.hero { position: relative; min-height: min(calc(100vh - var(--bar)), 940px); display: flex; align-items: flex-end; padding: 0 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.9) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.36) 60%, rgba(0, 0, 0, 0.12) 100%); }
.hero .wrap { position: relative; width: 100%; }
/* The studio photos are bright; a soft shadow keeps white type readable over white sets. */
.hero .display, .hero .lead { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45); }
.hero .lead { color: rgba(255, 255, 255, 0.86); margin-top: 28px; }

/* Numbered columns (services, steps) */
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); column-gap: clamp(24px, 3vw, 48px); }
.col { padding-top: 28px; border-top: 2px solid var(--ivory); }
.light .col { border-color: var(--ink); }
.col:has(.col-img) { padding-top: 0; border-top: none; }
.col-num { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 14px; }
.light .col-num { color: var(--accent-ink); }
.col h3 { margin-bottom: 12px; }
.col p { font-size: 16px; }
.col-img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 28px; }
.col-img img { width: 100%; height: 100%; object-fit: cover; }

/* Image + text feature */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: center; }
.feature--flip { grid-template-columns: 1fr 1.1fr; }
.feature--flip .feature-img { order: 2; }
.feature-img { aspect-ratio: 4 / 5; overflow: hidden; }
.feature-img--wide { aspect-ratio: 3 / 2; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature .lead { margin-top: 24px; }

.list { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.list li { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.list li::before { content: ''; flex: none; width: 18px; height: 1px; background: var(--accent); margin-top: 0.8em; }
.light .list, .light .list li { border-color: var(--line-ink); }

/* Full-width photograph band */
.band { aspect-ratio: 21 / 9; max-height: 82vh; width: 100%; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* Large statement */
.statement { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.2; color: var(--ivory); max-width: 1040px; }
.statement em { font-style: italic; font-weight: 500; color: var(--accent); }

/* Contact */
.contact-mail { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(32px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ivory); border-bottom: 2px solid var(--accent); padding-bottom: 6px; word-break: break-word; transition: color .2s; }
.contact-mail:hover { opacity: 0.7; }
.meta { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 5vw, 72px); margin-top: 48px; }
.meta span { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta a { border-bottom: 1px solid var(--line); }
.meta a:hover { border-color: var(--accent); }

/* Score and tier rows */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 104px); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 104px 1fr; gap: 4px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row .row-key { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--accent); }
.row h3 { font-size: 22px; margin-bottom: 4px; }
.row p { font-size: 15px; color: var(--muted); }
.note { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* Partner logos: one quiet grid, colour returns on hover */
.partners { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.partners li { background: var(--bg); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 16%; }
.partners img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter .3s, opacity .3s; }
.partners li:hover img { filter: none; opacity: 1; }

/* App screenshots (FOMO) */
.two > article { display: flex; flex-direction: column; }
.two > article .screen { margin-top: auto; }
.screen { justify-self: center; text-align: center; }
.screen img { width: min(100%, 340px); margin: 0 auto; border-radius: 36px; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.light .screen img { border-color: var(--line-ink); box-shadow: 0 30px 70px rgba(22, 20, 15, 0.22); }
.screen figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }
.light .screen figcaption { color: var(--muted-ink); }
.app-name { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-name img { width: 60px; height: 60px; border-radius: 14px; }
.app-name p { font-weight: 500; color: var(--ivory); line-height: 1.3; }
.app-name span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }

/* ---------- Journal story strip (home page, built by /assets/stories.js) ---------- */
/* Two identical halves; -50% lands on the seam. Pauses on hover or keyboard focus;
   still and hand-scrollable for reduced motion. */
.stories { overflow: hidden; border-top: 1px solid var(--line); padding: clamp(64px, 7vw, 80px) 0; }
.stories-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.stories-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.stories-all { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); transition: color .2s; }
.stories-all:hover { opacity: 0.7; }
.story-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.story-track { display: flex; gap: 22px; width: max-content; padding: 6px 22px 6px 0; animation: stories 45s linear infinite; will-change: transform; }
.story-viewport:hover .story-track, .story-viewport:focus-within .story-track { animation-play-state: paused; }
@keyframes stories { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.story { width: 300px; flex: none; }
.story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story-date { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.story-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--ivory); transition: opacity .2s; }
.story:hover .story-title { opacity: 0.7; }
@media (prefers-reduced-motion: reduce) {
  .story-track { animation: none; }
  .story-viewport { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 15px; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: clamp(48px, 6vw, 72px); }
.foot-brand img { width: 190px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.foot-brand p { max-width: 340px; }
.foot h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory); margin-bottom: 16px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a:hover { color: var(--ivory); }
/* Oversized wordmark across the foot of every page */
.foot-mark { font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 12.8vw, 180px); line-height: 0.8; letter-spacing: -0.05em; color: var(--ivory); white-space: nowrap; overflow: hidden; padding: 0 0 clamp(20px, 3vw, 36px); }
.foot-mark em { font-style: italic; font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section-head, .feature, .feature--flip { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
  .feature--flip .feature-img { order: 0; }
  .cols { grid-template-columns: 1fr; }
  .col { padding-bottom: 40px; }
  .col-img { aspect-ratio: 3 / 2; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(4, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .band { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  :root { --bar: 104px; }
  body { font-size: 16px; }
  .bar .wrap { height: auto; min-height: 64px; flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 6px; }
  .bar-logo img { width: 140px; }
  .bar-links { width: 100%; justify-content: space-between; gap: min(10px, 2vw); font-size: min(14px, 3.5vw); font-weight: 500; letter-spacing: 0; text-transform: none; overflow-x: auto; scrollbar-width: none; }
  .eyebrow { letter-spacing: 0.18em; gap: 10px; }
  .eyebrow::before { width: 28px; }
  .bar-links a { white-space: nowrap; }
  .bar-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { min-height: 86vh; }
  .actions .btn { flex: 1 1 100%; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .row { grid-template-columns: 80px 1fr; }
  .row .row-key { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
