/* ==========================================================================
   Lattice Mediaworks — styles
   --------------------------------------------------------------------------
   Rebranding is the :root block and nothing else: every colour below
   resolves from it. Headline font is self-hosted (assets/fonts); body text
   is the system stack. Nav and reveal behaviour is scoped to .js (set in
   each page's <head>) so a JS failure leaves a plain, fully visible page.
   ========================================================================== */
@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-display.woff2") format("woff2");
  font-weight: 600 900; font-stretch: 62% 100%; font-display: swap;
}

:root {
  --ink: #121417;
  --stone: #F6F5F2;
  --stone-2: #ECEAE5;
  --card: #FFFFFF;
  --text: #121417;
  --muted: #5C6168;
  --muted-d: #A9ADB5;
  --on-dark: #F2F2F0;
  --on-dark-2: #D4D6DA;
  --line: #E1DED7;
  --line-warm: #F1D3C6;
  --accent: #E4572E;
  --accent-ink: #B73A16;
  --accent-pale: #FCEDE6;
  --ok: #0F7A55;
  --ok-pale: #DFF2EA;
  --error: #B42318;
  --white: #FFFFFF;
  --shade-strong: rgba(18, 20, 23, .92);
  --shade-mid: rgba(18, 20, 23, .78);
  --shade-soft: rgba(18, 20, 23, .25);
  --shade-cap: rgba(18, 20, 23, .75);
  --shade-photo: rgba(0, 0, 0, .55);
  --shadow: rgba(18, 20, 23, .16);
  --dot: rgba(255, 255, 255, .35);

  --cond: "Archivo Display", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--stone); color: var(--text); font: 16px/1.6 var(--body) }
a { color: inherit }
img { max-width: 100%; display: block }
[hidden] { display: none !important }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(20px, 4vw) }
h1, h2, h3 { margin: 0; line-height: 1.02; text-wrap: balance }
p { margin: 0 }
.caps { font-family: var(--cond); font-stretch: 68%; font-weight: 800; text-transform: uppercase }
.caps em { font-style: normal; color: var(--accent) }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100 }
.skip-link:focus { left: 8px }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; font: 700 15px var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap }
.btn-quiz { background: var(--accent); color: var(--white) }
.btn-quiz:hover { background: var(--accent-ink) }
.btn-line { border: 1.5px solid currentColor; background: transparent; color: inherit }
.btn-ink { background: var(--ink); color: var(--white) }
.btn[disabled] { opacity: .6; cursor: progress }

/* ---- header ----------------------------------------------------------- */
.site-head { background: var(--ink); color: var(--on-dark); position: relative; z-index: 5 }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap }
.site-head .logo img { height: 34px; width: auto }
.site-nav { display: flex; gap: 22px; align-items: center; font-size: 15px }
.site-nav a { text-decoration: none; color: var(--muted-d) }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--white) }
.site-nav .btn { color: var(--white); padding: 9px 16px }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--muted-d); color: var(--on-dark); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--body); cursor: pointer }
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px 6px }
  .js .site-nav.is-open { display: flex }
  .site-nav { flex-wrap: wrap }
}

/* ---- hero slideshow --------------------------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; min-height: 640px; display: grid }
.slides { position: absolute; inset: 0 }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease }
.slide.on, .slide:first-child { opacity: 1 }
.js .slide:first-child:not(.on) { opacity: 0 }
.slide img { width: 100%; height: 100%; object-fit: cover }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--shade-strong) 0%, var(--shade-mid) 42%, var(--shade-soft) 100%); z-index: 1 }
.hero .wrap { position: relative; z-index: 2; padding-block: 64px 170px; display: grid; gap: 20px; align-content: center; width: 100% }
.eyebrow { color: var(--accent); font: 700 14px var(--body); letter-spacing: .1em; text-transform: uppercase }
.hero h1 { font-size: clamp(48px, 8.2vw, 112px); max-width: 10ch }
.hero p { font-size: 19px; color: var(--on-dark-2); max-width: 34em }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px }
.slide-ctl { position: absolute; z-index: 3; right: max(20px, 4vw); bottom: 140px; display: flex; gap: 8px }
.dot { width: 34px; height: 4px; border-radius: 2px; border: 0; padding: 0; background: var(--dot); cursor: pointer }
.dot[aria-current=true] { background: var(--accent) }
.cap-line { position: absolute; z-index: 3; right: max(20px, 4vw); bottom: 112px; font-size: 12px; color: var(--on-dark-2) }
@media (prefers-reduced-motion: reduce) { .slide { transition: none } }
@media (max-width: 700px) {
  .hero { min-height: 600px }
  .hero::after { background: linear-gradient(180deg, var(--shade-mid), var(--shade-strong) 55%) }
  .slide-ctl { bottom: 128px; left: 20px; right: auto }
  .cap-line { display: none }
}

/* ---- program cards over the hero edge ----------------------------------- */
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: -100px; position: relative; z-index: 4 }
.prog { background: var(--card); border-radius: 16px; overflow: hidden; display: grid; grid-template-rows: 150px auto; box-shadow: 0 12px 32px var(--shadow) }
.prog img { width: 100%; height: 150px; object-fit: cover }
.prog .in { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start }
.prog .step { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink) }
.prog h3 { font-family: var(--cond); font-stretch: 72%; font-weight: 800; font-size: 28px; text-transform: uppercase }
.prog p { color: var(--muted); font-size: 15px }
.prog .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap }
.prog .btn { padding: 9px 16px }
.tag { font-size: 12px; font-weight: 700; color: var(--muted) }
@media (max-width: 880px) { .programs { grid-template-columns: minmax(0, 1fr); margin-top: -80px } }

section { padding-block: 64px }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px }
.sh h2 { font-size: clamp(36px, 5vw, 64px) }
.aside { color: var(--muted); font-size: 15px }

/* ---- proof ---------------------------------------------------------------- */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 2px solid var(--ink) }
.stat { padding: 22px 18px 20px; border-left: 1px solid var(--line) }
.stat:first-child { border-left: 0; padding-left: 0 }
.stat b { display: block; font-family: var(--cond); font-stretch: 70%; font-weight: 900; font-size: clamp(42px, 5.4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums }
.stat span { font-size: 14px; color: var(--muted) }
@media (max-width: 880px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat:nth-child(3) { border-left: 0; padding-left: 0 }
  .stat { border-top: 1px solid var(--line) }
  .stat:nth-child(-n+2) { border-top: 0 }
}

/* ---- eXp co-brand (off until eXp grants a written license) ---------------- */
.cobrand { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; background: var(--card) }
.cobrand .lockup { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.cobrand .lockup img { height: 36px; width: auto }
.cobrand h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.tools span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--stone-2) }
@media (max-width: 880px) { .cobrand { grid-template-columns: minmax(0, 1fr) } }

/* ---- workshops teaser ------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch }
.split .photo { border-radius: 16px; overflow: hidden; min-height: 380px; position: relative; margin: 0 }
.split .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.next { display: grid; gap: 12px; align-content: start }
.wcard { background: var(--card); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; border: 1px solid var(--line) }
.wcard .date { background: var(--ink); color: var(--white); border-radius: 10px; text-align: center; padding: 8px 4px; font-family: var(--cond); font-stretch: 70%; font-weight: 800; text-transform: uppercase; line-height: 1.05 }
.wcard .date small { display: block; font: 600 11px var(--body); color: var(--muted-d); letter-spacing: .06em }
.wcard h3 { font-family: var(--cond); font-stretch: 74%; font-weight: 800; font-size: 24px; text-transform: uppercase }
.wcard p { font-size: 14px; color: var(--muted) }
.ready { color: var(--accent-ink); font-weight: 700 }
@media (max-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) } .split .photo { min-height: 260px } }

/* ---- videos ---------------------------------------------------------------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 12px }
.vid { margin: 0; display: grid; gap: 10px }
.vid .frame { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; position: relative }
.vid .frame img { width: 100%; height: 100%; object-fit: cover }
.vid .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--shade-photo)) }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; background: var(--white) }
.play::after { content: ""; display: block; margin: 18px 0 0 22px; border-left: 16px solid var(--ink); border-block: 10px solid transparent; width: 0 }
.ph { position: absolute; z-index: 1; left: 10px; top: 10px; font-size: 11px; color: var(--white); background: var(--shade-photo); padding: 2px 7px; border-radius: 5px }
.vid figcaption b { display: block }
.vid figcaption span { font-size: 13px; color: var(--muted) }
.quote { background: var(--accent); color: var(--white); border-radius: 14px; padding: 26px; display: grid; align-content: space-between; gap: 20px }
.quote p { font-family: var(--cond); font-stretch: 68%; font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1.04; text-transform: uppercase }
.quote span { font-size: 13px }
@media (max-width: 960px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 520px) { .quote { grid-column: 1 / -1 } .play { width: 44px; height: 44px } .play::after { margin: 14px 0 0 17px; border-left-width: 13px; border-block-width: 8px } }

/* ---- quiz band ----------------------------------------------------------- */
.band { background: var(--accent-pale); color: var(--ink); padding-block: 0 }
.band .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch }
.band .copy { padding: 64px max(20px, 4vw); display: grid; gap: 16px; align-content: center }
.band h2 { font-size: clamp(38px, 5vw, 66px) }
.band p { font-size: 18px; max-width: 30em }
.box4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px }
.box4 div { background: var(--card); border: 1px solid var(--line-warm); border-radius: 10px; padding: 12px 14px; font-size: 14px }
.box4 b { display: block }
.box4 div:first-child { background: var(--ink); color: var(--white); border-color: var(--ink) }
.band .pic { position: relative; min-height: 360px }
.band .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
@media (max-width: 880px) { .band .inner { grid-template-columns: minmax(0, 1fr) } .band .pic { min-height: 240px } }

/* ---- guides ---------------------------------------------------------------- */
.guides-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px }
.guides { list-style: none; margin: 0; padding: 0 }
.guide { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--line) }
.guide .n { font: 800 16px var(--body); color: var(--accent) }
.guide .gtag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.guide b { font-size: 17px }
.soon { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 6px }
@media (max-width: 880px) { .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 0 } }

/* ---- inner pages ------------------------------------------------------------ */
.page-hero { background: var(--ink); color: var(--on-dark) }
.page-hero .wrap { padding-block: 56px 48px; display: grid; gap: 14px }
.page-hero h1 { font-size: clamp(44px, 7vw, 92px) }
.page-hero p { color: var(--on-dark-2); font-size: 18px; max-width: 36em }
.month { padding-block: 36px; border-bottom: 1px solid var(--line) }
.month h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px }
.cal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.cal .wcard { grid-template-columns: 72px 1fr auto }
.cal .wcard .btn { padding: 9px 14px }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px }
.chips span { font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--stone-2) }
@media (max-width: 880px) { .cal { grid-template-columns: minmax(0, 1fr) } .cal .wcard { grid-template-columns: 64px 1fr } .cal .wcard .btn { grid-column: 1 / -1; justify-self: start } }
.prose { max-width: 720px; padding-block: 48px; display: grid; gap: 16px }
.prose h2 { font-size: 28px; font-family: var(--cond); font-stretch: 74%; font-weight: 800; text-transform: uppercase; margin-top: 12px }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px }

/* ---- quiz ------------------------------------------------------------------- */
.quiz-wrap { max-width: 760px; padding-block: 40px 72px }
.progress { height: 6px; background: var(--stone-2); border-radius: 3px; overflow: hidden; margin-bottom: 8px }
.progress span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s }
.step-label { font-size: 13px; color: var(--muted); margin-bottom: 18px }
.qstep { display: grid; gap: 22px }
.qstep h2 { font-family: var(--cond); font-stretch: 72%; font-weight: 800; font-size: clamp(32px, 4.4vw, 46px); text-transform: uppercase }
fieldset.q { border: 0; margin: 0; padding: 0; display: grid; gap: 10px }
fieldset.q legend, .q-label { font-weight: 700; font-size: 17px; margin-bottom: 4px; padding: 0 }
.q .hint { font-weight: 400; color: var(--muted); font-size: 14px }
.choices { display: flex; flex-wrap: wrap; gap: 8px }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 15px }
.choice input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0 }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-pale) }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px }
.scale .choice { min-width: 52px; justify-content: center }
.field { display: grid; gap: 6px }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea { font: 16px var(--body); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); width: 100% }
.field textarea { min-height: 84px; resize: vertical }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted) }
.consent input { margin-top: 3px; accent-color: var(--accent) }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap }
.err { color: var(--error); font-size: 14px; font-weight: 600 }
.result { display: grid; gap: 18px }
.result .box { border-radius: 16px; background: var(--ink); color: var(--on-dark); padding: 28px; display: grid; gap: 10px }
.result .box h2 { font-size: clamp(36px, 5vw, 60px) }
.result .box p { color: var(--on-dark-2); font-size: 17px }
.result .first { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 6px }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 14px; background: var(--ok-pale); color: var(--ok); font-weight: 600 }
.notice.warn { background: var(--accent-pale); color: var(--accent-ink) }

/* ---- footer ------------------------------------------------------------------ */
.site-foot { background: var(--ink); color: var(--muted-d) }
.site-foot .wrap { padding-block: 36px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; align-items: center }
.site-foot img { height: 30px; width: auto }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap }
.site-foot a { color: var(--muted-d) }
.credits { font-size: 12px; padding-bottom: 28px }
.qstep h2:focus, .result h2:focus { outline: none }
