/* Cloud Brewery · cloudbrewery.co
   Port of design/Main.dc.html (inline styles moved here; CSP style-src 'self').
   Copper: #B5652B for rules and drawings; small copper text #9A5222 on light, #C9793E on ink (WCAG AA). */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.71ea65b4ca.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.d4c815a9d3.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.a7d4b4ecd5.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500-normal.9ec4b747a4.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/space-grotesk-latin-600-normal.c710479709.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700-normal.0127331958.woff2") format("woff2"); }

:root {
  --ink: #121212; --warm: #F7F5F0; --white: #FFFFFF;
  --text-2: #3A3632; --text-3: #5A554E; --grey: #8C867D; --rule: #E2DDD3;
  --soft: #CFCAC1; --faint: #A8A49C; --pale: #E4DFD6; --ghost: #6B655E; --line-ink: #2A2724; --line-ink-2: #3A3632;
  --copper: #B5652B; --copper-text: #9A5222; --copper-ink: #C9793E;
  --display: "Space Grotesk", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--warm); color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; }
p, h1, h2, h3, figure, ol { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--copper-text); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible, .ink:focus-visible { outline-color: var(--copper-ink); }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--warm); font-weight: 600; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 16px; color: var(--warm); }
main:focus { outline: none; }

.wrap { max-width: 1200px; margin: 0 auto; }
.pad { padding: 96px 24px; }
.stack-8, .stack-12, .stack-16, .stack-36, .stack-40, .stack-44 { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; } .stack-12 { gap: 12px; } .stack-16 { gap: 16px; } .stack-36 { gap: 36px; } .stack-40 { gap: 40px; } .stack-44 { gap: 44px; }
.intro { max-width: 760px; }
.ink { background: var(--ink); color: var(--warm); }
.rule-b { border-bottom: 1px solid var(--rule); }
.copper { color: var(--copper-text); }
.soft { color: var(--soft); } .faint { color: var(--faint); } .warm { color: var(--warm); }
.fs13 { font-size: 13px; } .fs14 { font-size: 14px; } .fs16 { font-size: 16px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-text); }
.eyebrow-ink { color: var(--copper-ink); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 24px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { text-decoration: none; padding: 15px 24px; border-radius: 8px; display: inline-block; }
.btn-ink { background: var(--ink); color: var(--warm); font-weight: 600; }
.btn-ink:hover { color: var(--warm); background: #2A2724; }
.btn-line { color: var(--ink); border: 1px solid var(--grey); padding: 15px 22px; }
.btn-line:hover { color: var(--ink); border-color: var(--ink); }
.btn-line-sm { padding: 15px 20px; }
.btn-md { padding: 14px 22px; }
.btn-copper { background: var(--copper-ink); color: var(--ink); font-weight: 600; }
.btn-copper:hover { background: #D68A50; color: var(--ink); }
.btn-line-ink { color: var(--warm); border: 1px solid var(--ghost); padding: 14px 20px; }
.btn-line-ink:hover { color: var(--warm); border-color: var(--faint); }

/* Header */
.site-header { padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.05; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.wm-top { border-bottom: 2px solid var(--copper); padding-bottom: 2px; align-self: flex-start; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--copper-text); }
.nav .nav-cta { background: var(--ink); color: var(--warm); font-weight: 600; padding: 11px 18px; border-radius: 6px; }
.nav .nav-cta:hover { color: var(--warm); background: #2A2724; }

/* Hero */
.hero { padding: 40px 24px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6vw, 80px); line-height: 1.0; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--text-2); max-width: 32em; }
.hero-btns { margin-top: 6px; }
.hero-art { flex: 1 1 420px; min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* The film (after the hero): width and height on the element reserve its 16:9 box, so nothing shifts */
.film { padding: 0 24px 96px; display: flex; flex-direction: column; gap: 16px; }
.film-v { width: 100%; height: auto; display: block; background: var(--ink); border-radius: 12px; }
.film-fallback img { width: 100%; height: auto; display: block; }
.film-note { font-size: 15px; color: var(--text-3); }
.film-note a { white-space: nowrap; }

/* Assurance */
.as-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.as-title { flex: 1 1 520px; min-width: 0; }
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.step { border-top: 2px solid var(--line-ink-2); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.step-first { border-top-color: var(--copper); }
.step-n { font-family: var(--display); color: var(--copper-ink); font-size: 15px; }
.step-h { font-family: var(--display); font-weight: 600; font-size: 22px; }
.step-t { color: var(--soft); font-size: 16px; }
.watch { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; border: 1px solid var(--line-ink); border-radius: 14px; padding: 24px; }
.watch-a { flex: 0 1 320px; min-width: 0; display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--line-ink-2); }
.watch-a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; left: calc(50% - 26px); top: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--warm); background: rgba(18, 18, 18, 0.6); display: flex; align-items: center; justify-content: center; }
.watch-text { flex: 1 1 320px; min-width: 0; }
.watch-h { font-family: var(--display); font-weight: 600; font-size: 20px; }

/* Academy */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-rule { width: 28px; height: 2px; background: var(--copper); }
.card-who { font-size: 15px; color: var(--text-3); }
.card-cta { margin-top: auto; align-self: flex-start; color: var(--ink); font-weight: 600; text-decoration: none; padding: 12px 0; border-bottom: 2px solid var(--copper); }
.codes { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.4em; }
.codes a { color: var(--ink); display: inline-flex; align-items: center; min-height: 24px; }
.codes a:hover { color: var(--copper-text); }
@media (max-width: 720px), (pointer: coarse) { .codes a { min-height: 44px; } }
.free { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--text-3); }

/* Writing */
.pubs { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.pub { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between; padding: 24px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.pub:hover { color: var(--ink); }
.pub:hover .pub-name { color: var(--copper-text); }
.pub-name { flex: 0 1 320px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.pub-desc { flex: 1 1 360px; min-width: 0; color: var(--text-2); font-size: 16px; }
.pub-cta { flex: none; font-weight: 600; color: var(--copper-text); }

/* Proof */
.proof { padding: 64px 24px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.figures { display: flex; flex-wrap: wrap; gap: 40px; }
.fig { display: flex; flex-direction: column; }
.fig-n { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.fig-l { font-size: 14px; color: var(--soft); }
.proof-text { flex: 1 1 360px; min-width: 0; color: var(--soft); font-size: 16px; }

/* Team */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.person { display: flex; flex-direction: column; gap: 12px; }
.ring { width: 128px; height: 128px; border-radius: 50%; padding: 5px; border: 2px solid var(--copper); }
.ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: grayscale(1); }
.person-h { font-family: var(--display); font-weight: 600; font-size: 21px; }
.person-role { color: var(--text-3); font-size: 15px; }
.person-creds { font-size: 14px; color: var(--text-2); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; }
.h2-ct { flex: 1 1 520px; min-width: 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }

/* Footer */
.foot-band { color: var(--faint); }
.foot { padding: 48px 24px 56px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; font-size: 14px; }
.brand-foot { font-size: 18px; color: var(--warm); }
.privacy { max-width: 30em; }
.privacy-h { color: var(--pale); font-weight: 600; }

/* 404 */
.nf { padding: 40px 24px 120px; display: flex; flex-direction: column; gap: 26px; }
.nf h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.02em; }
