/* Leo Lux Consulting — design tokens and site styles (V1, dark theme only) */

:root {
  --ink: #090103;
  --graphite: #242424;
  --graphite-lift: #2e2e2e;
  --paper: #fffdf7;
  --gold: #f8ce63;
  --gold-deep: #7a5200;
  --stone: #625d5c;
  --stone-light: #b7b2ad;

  --bg: var(--ink);
  --surface: var(--graphite);
  --text: var(--paper);
  --text-muted: var(--stone-light);
  --accent: var(--gold);
  --border: rgba(98, 93, 92, 0.45);

  --font-head: "Josefin Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1100px;
  --gutter: 24px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --section: var(--s6);
  --radius: 8px;
}

@media (min-width: 720px) {
  :root { --gutter: 48px; --section: var(--s7); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body { font-size: 18px; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 var(--s2); line-height: 1.2; color: var(--text); }
h1 { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; color: var(--accent); }
h2 { font-size: 26px; }
h3 { font-size: 20px; line-height: 1.3; }
@media (min-width: 720px) { h1 { font-size: 44px; } h2 { font-size: 32px; } h3 { font-size: 22px; } }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.15em; max-width: 34em; }
.measure { max-width: 68ch; }
.muted { color: var(--text-muted); }
.small { font-size: 15px; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s2);
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
section + section { padding-top: 0; }
.band { background: var(--surface); }
.band + section, section + .band { padding-top: var(--section); }

/* Header */
.site-header { background: var(--ink); position: static; z-index: 20; }
@media (min-width: 720px) { .site-header { position: sticky; top: 0; border-bottom: 1px solid rgba(36,36,36,0.9); } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; max-width: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.mark { height: 40px; width: auto; }
.brand img.wordmark { height: 30px; width: auto; }
@media (max-width: 719px) { .brand img.mark { height: 32px; } .brand img.wordmark { height: 24px; } }
.brand:hover, .brand:focus-visible { text-decoration: none; }

.nav { display: flex; gap: var(--s4); align-items: center; }
.nav a {
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--paper); padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color 150ms ease, color 150ms ease;
}
.nav a:hover, .nav a:focus-visible { text-decoration: none; border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--paper); border-radius: 4px; padding: 8px 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; cursor: pointer; }
@media (max-width: 719px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--graphite); flex-direction: column; gap: 0; padding: var(--s2) var(--gutter) var(--s3); border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .site-header { position: relative; }
}

/* Hero */
.hero { padding: var(--s6) 0 var(--s6); }
@media (min-width: 720px) { .hero { padding: var(--s7) 0; min-height: 52vh; display: flex; align-items: center; } }
.hero .wrap { max-width: var(--max); width: 100%; }
.hero h1 { max-width: 20ch; margin-bottom: var(--s3); }
.hero p { max-width: 40em; font-size: 1.15em; margin-bottom: var(--s4); }

/* Home hero with the lockup */
.hero.home { text-align: center; padding: var(--s6) 0; min-height: auto; display: block; }
@media (min-width: 720px) { .hero.home { padding: var(--s7) 0 var(--s6); } }
.hero.home .lockup { height: 220px; width: auto; margin: 0 auto var(--s5); }
.intro-pair .wrap.grid { gap: var(--s5); }
.intro-pair p { font-size: 1.05em; }
@media (min-width: 720px) { .hero.home .lockup { height: 300px; } }
.hero.home h1 { margin: 0 auto var(--s3); max-width: none; font-size: clamp(28px, 3.3vw, 42px); }
.hero.home p { margin: 0 auto var(--s4); }

/* Page headers (Work, How we work, Contact) */
.page-head { padding: var(--s6) 0 var(--s5); text-align: center; position: relative; overflow: hidden; }
.page-head > .wrap { position: relative; z-index: 1; }
/* Lion as texture: large, cropped, low-contrast mark bleeding off the left edge */
.page-head::before {
  content: ""; position: absolute; left: -120px; top: -90px; width: 420px; height: 590px;
  background: url("../assets/logo-mark-notile.svg") no-repeat center / contain; opacity: 0.055; pointer-events: none;
}
@media (min-width: 720px) { .page-head::before { left: -140px; top: -130px; width: 560px; height: 780px; } }
/* Quote in the upper right of the page header */
.epigraph.corner { position: static; margin: var(--s4) auto 0; max-width: 40ch; text-align: center; }
.epigraph.corner p { font-size: 16px; color: var(--text-muted); font-style: italic; margin-bottom: 4px; }
.epigraph.corner cite { font-size: 13px; }
/* Separator bar carrying the page quote */
.quote-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: var(--s3) 0; }
.quote-bar .epigraph { margin: 0 auto; max-width: 64ch; text-align: center; }
.quote-bar .epigraph p { font-size: 17px; color: var(--text-muted); font-style: italic; margin-bottom: 4px; }
@media (min-width: 720px) { .quote-bar .epigraph p { font-size: 19px; } }
.quote-bar .epigraph cite { font-size: 13px; }
.quote-bar + section, .quote-bar + div > .story:first-of-type { padding-top: var(--s6); }
.page-head .lede { margin-left: auto; margin-right: auto; }
@media (min-width: 720px) { .page-head { padding: var(--s7) 0 var(--s6); } }
.page-head h1 { margin-bottom: var(--s2); }
.page-head .lede { margin-top: var(--s2); }
.page-head + section, .page-head + div > .story:first-of-type { padding-top: var(--s6); }

/* Quotes as section headers */
.epigraph { margin: 0 0 var(--s4); max-width: 60ch; }
.epigraph p { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.35; color: var(--paper); margin: 0 0 8px; }
@media (min-width: 720px) { .epigraph p { font-size: 26px; } }
.epigraph cite { font-style: normal; font-size: 15px; color: var(--text-muted); letter-spacing: 0.04em; }
.epigraph.center { margin-left: auto; margin-right: auto; text-align: center; }
/* Subtle closing quote on inner pages */
.epigraph.quiet { margin: var(--s6) auto 0; max-width: 52ch; text-align: center; padding-top: var(--s5); border-top: 1px solid var(--border); }
.epigraph.quiet p { font-size: 18px; color: var(--text-muted); font-style: italic; }
@media (min-width: 720px) { .epigraph.quiet p { font-size: 20px; } }
.epigraph.quiet cite { font-size: 14px; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 4px; border: 2px solid var(--gold); background: var(--gold); color: var(--ink); line-height: 1;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease; cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ink); text-decoration: none; }
.btn.secondary { background: transparent; color: var(--gold); }
.btn.secondary:hover, .btn.secondary:focus-visible { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* Cards */
.grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 899px) { .grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: var(--s3); color: var(--text);
  transition: background 150ms ease; display: flex; flex-direction: column; gap: var(--s2);
}
.card h3 { margin: 0; padding-bottom: 12px; position: relative; }
.card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; }
.card p { color: var(--text-muted); margin: 0; }
a.card:hover, a.card:focus-visible { background: var(--graphite-lift); text-decoration: none; }
a.card h3 { color: var(--paper); }
.band .card { background: var(--ink); }
.band a.card:hover, .band a.card:focus-visible { background: #120c0c; }

.link-more { display: inline-block; margin-top: var(--s3); font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px; }

/* Work stories */
.story { padding: var(--section) 0; border-top: 1px solid var(--border); }
.story:first-of-type { border-top: 0; }
.story h2 { color: var(--gold); }
.story .body { max-width: 68ch; }
.story .body p + p { margin-top: 1em; }
.story .figure { margin: var(--s4) 0 0; }
.story .figure + .figure { margin-top: var(--s3); }
.plate {
  background: var(--graphite); border-radius: var(--radius); padding: var(--s3); border: 1px solid var(--border);
}
.plate img { border-radius: 4px; border: 1px solid var(--graphite-lift); width: 100%; }
.plate.gold-frame { border: 2px solid var(--gold); background: var(--ink); }
.plate .placeholder { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 15px; text-align: center; padding: var(--s3); border: 1px dashed var(--border); border-radius: 4px; }
figcaption { color: var(--text-muted); font-size: 15px; margin-top: 10px; }
.next { margin-top: var(--s4); }
.credit { color: var(--text-muted); font-size: 15px; }
.quote { margin: var(--s3) 0 0; padding-left: var(--s3); border-left: 3px solid var(--gold); color: var(--text-muted); font-style: italic; }
.quote cite { display: block; font-style: normal; margin-top: 6px; font-size: 15px; }

.site-list { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-list { grid-template-columns: repeat(2, 1fr); } }
.site-list h3 { margin-bottom: 8px; }
.site-list h3 a { color: var(--paper); }
.site-list .role { margin-bottom: 8px; }

/* Work strip on the home page: full-bleed row of tiles */
.work-strip { padding: 0; overflow: hidden; }
.work-strip .strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.work-strip .strip a, .work-strip .strip div { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--graphite); }
.work-strip .strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 300ms ease; }
.work-strip .strip a.fit { padding: 12px; }
.work-strip .strip a.fit img { object-fit: contain; object-position: center; }
.work-strip .strip a:hover img { transform: scale(1.03); }
@media (max-width: 719px) { .work-strip .strip { grid-template-columns: repeat(3, 1fr); } .work-strip .strip > :nth-child(n+4) { display: none; } }
.work-strip + section { padding-top: var(--section); }

/* Scrollable full-page capture */
.scroll-frame { height: 520px; overflow-y: auto; overflow-x: hidden; border-radius: 4px; border: 1px solid var(--graphite-lift); background: var(--ink); scrollbar-color: var(--stone) var(--graphite); scrollbar-width: thin; }
.scroll-frame img { width: 100%; height: auto; border: 0; border-radius: 0; display: block; }
.scroll-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Work page hero with artwork */
.page-head.art { text-align: left; padding: 0; }
.page-head.art::before { display: none; }
.page-head.art .wrap { display: grid; grid-template-columns: 1fr; gap: var(--s4); align-items: center; padding-top: var(--s6); padding-bottom: var(--s6); }
@media (min-width: 720px) { .page-head.art .wrap { grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s7); } }
.page-head.art .lede { margin-left: 0; }
.page-head.art .art-img { justify-self: center; max-height: 420px; width: auto; }
@media (max-width: 719px) { .page-head.art .art-img { max-height: 260px; } }

/* Story accordion */
details.more { margin-top: var(--s2); }
details.more summary { cursor: pointer; list-style: none; color: var(--gold); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; }
details.more[open] summary::after { content: " \2212"; }
details.more .body { margin-top: var(--s2); }

/* Artwork gallery */
.gallery { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-top: var(--s4); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery.two { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 4px; }

/* Other clients list */
.client-list { margin: 0; max-width: 68ch; display: grid; gap: var(--s3); }
.client-list dt { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--paper); margin-bottom: 4px; }
.client-list dd { margin: 0; color: var(--text-muted); }

/* How we work */
.habits { max-width: 960px; margin: 0 auto; }
.habits .card p { color: var(--text); }
.habits .card h3 { color: var(--gold); }
.person { max-width: 760px; margin: var(--s6) auto 0; text-align: center; padding-top: var(--s5); border-top: 1px solid var(--border); }
.person .lede { margin: 0 auto var(--s4); }
.person .eyebrow { text-align: center; }
.principles { display: grid; gap: var(--s5); max-width: 68ch; }
.principles h2 { font-size: 24px; margin-bottom: 8px; color: var(--gold); }
@media (min-width: 720px) { .principles h2 { font-size: 28px; } }

/* Forms */
form { max-width: 560px; }
.field { margin-bottom: var(--s3); }
label { display: block; font-size: 15px; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.02em; }
input, textarea {
  width: 100%; background: var(--graphite); border: 1px solid var(--stone); border-radius: 4px; padding: 12px; color: var(--paper);
  font: inherit; font-size: 17px;
}
input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: var(--s2); }

/* Footer */
.site-footer { border-top: 1px solid var(--graphite); padding: var(--s5) 0; color: var(--paper); }
.site-footer .wrap { display: grid; gap: var(--s3); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: auto 1fr; gap: var(--s5); } }
.site-footer img { height: 96px; width: auto; }
.site-footer p { margin: 0 0 6px; }
.site-footer .name { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 15px; }
.site-footer .privacy { color: var(--text-muted); font-size: 15px; margin-top: var(--s2); max-width: 60ch; }

/* Utility */
.center { text-align: center; }
.cta { text-align: left; }
.cta p { max-width: 40em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
