/* depressionisntreal.co — built from Pope's Figma "DIR[LP]DESIGN_#3" (1440 x 6222), mobile-first.
   Every section is one viewport tall. Desktop values are the design's pixel measurements scaled by --u,
   which shrinks with viewport width (below 1440) and viewport height (so the tallest section, 1089 design px, fits). */

:root {
  --black: #000;
  --ink: #0d0d0d;
  --paper: #eeeeee;
  --dim: #9aa4ad;
  --dim-2: #6b6b6b;
  --card-2: #777777;
  --card-3: #4b4b4b;
  --field-grey: #c5c5c5;
  --blue-deep: #081e2b;
  --blue: #1d6693;
  --knight-blue: #75a9d0;
  --bw-bg: #0f2233;

  --disp: "Six Caps", "Impact", "Arial Narrow", sans-serif;
  --disp-lc: "Antonio", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --hand: "Architects Daughter", "Segoe Print", cursive;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* cap-height ratio of the display face, measured in-browser */
  --capr: 0.844;
  /* 1 design px at 1440 x (tallest section 1089). Never scales up. */
  --u: min(1px, 0.06944vw, 0.0918svh);
  --ticker-h: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.06;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One section = one viewport */
body > section, body > footer {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
body > section.hero { min-height: calc(100svh - var(--ticker-h)); }

.disp {
  font-family: var(--disp);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 34px; border-radius: 999px;
  background: var(--paper); color: #111;
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
}
.pill:hover { background: #fff; transform: translateY(-1px); }
.pill:disabled { opacity: .7; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink); color: #e6e6e6;
  font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  height: var(--ticker-h); overflow: hidden; white-space: nowrap; position: relative;
}
.ticker .track { display: inline-flex; align-items: center; height: var(--ticker-h); animation: marquee 40s linear infinite; }
.ticker span { padding: 0 44px; }
.ticker span::before { content: "-"; margin-right: 44px; color: #9a9a9a; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } }

/* ---------- Hero + header ---------- */
.hero { position: relative; overflow: hidden; background: #072238; justify-content: flex-start; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,20,34,.10) 0%, rgba(3,20,34,.0) 35%, rgba(3,20,34,.55) 100%);
  pointer-events: none;
}
.site-header {
  position: relative; z-index: 3; height: 72px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.45);
}
.brand img { height: 28px; width: auto; }

.hero-copy {
  position: relative; z-index: 2; flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 24px 20px 40px;
}
.kicker { margin: 0 0 min(14px, 1.6svh); font-size: min(14px, 1.7svh); letter-spacing: .14em; text-transform: uppercase; color: #dbe6ef; }
.hero-copy h1 { font-size: min(170px, 34vw, 18svh); line-height: .82; }
.hero-sub { max-width: 300px; margin: min(20px, 2.4svh) 0 min(24px, 2.8svh); font-size: min(20px, 2.4svh); line-height: .98; }
.hero-sub em { font-style: italic; }
.hero-sub strong { font-weight: 700; }

/* Signup forms (hero, bar, final screen) */
.signup { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.signup input[type="email"] {
  height: 54px; width: 100%; border: 0; border-radius: 999px; background: var(--paper); color: #111;
  padding: 0 22px; font-size: 17px;
}
.signup input::placeholder { color: #6b6b6b; }
.signup .pill { height: 54px; width: 100%; font-size: 20px; text-transform: none; letter-spacing: 0; }
.fine { margin: 2px 0 0; font-family: var(--sans); font-size: 12px; color: rgba(255,255,255,.7); }
.fine a { text-decoration: underline; }
.hero-form { margin-top: 0; }
.hero-form input[type="email"] { box-shadow: 0 8px 26px rgba(0,0,0,.3); }

/* ---------- Storyteller ---------- */
.story { background: var(--black); padding: min(44px, 5svh) 0 min(40px, 4svh); text-align: center; }
.story-head { position: relative; margin: 0 auto; width: min(100% - 40px, 766px); }
.story-head .disp { font-size: min(120px, 22vw, 10svh); line-height: .84; position: relative; z-index: 1; }
.story-head .disp.ghost { position: absolute; inset: 0; z-index: 3; color: rgba(255,255,255,.72); }
.story-card {
  position: relative; z-index: 2; margin: -34px auto 0; width: min(100% - 40px, 766px, 42svh);
  aspect-ratio: 766 / 482; border-radius: 18px; overflow: hidden; background: #071726;
}
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { width: min(100% - 48px, 450px); margin: min(34px, 3.5svh) auto 0; }
.story-copy p { margin: 0 0 min(19px, 1.8svh); font-size: min(18px, 2.1svh); line-height: 1.06; }
.story-copy p.lead, .story-copy p.punch { font-size: min(20px, 2.4svh); }
.story-copy p.punch { font-weight: 700; }
.story-copy em { font-style: italic; }
.story-copy strong { font-weight: 700; }
.signature { font-family: var(--hand); font-size: min(34px, 4svh); letter-spacing: .12em; color: #d2d2d2; margin: min(24px, 2svh) 0 min(26px, 2.4svh); }
.knight { width: min(40px, 5svh); height: auto; margin: 0 auto; }
.knight.blue { filter: brightness(0) saturate(100%) invert(67%) sepia(18%) saturate(700%) hue-rotate(170deg) brightness(95%) drop-shadow(0 0 14px rgba(117,169,208,.85)); }

/* ---------- It's never black & white ---------- */
.bw { position: relative; background: var(--bw-bg); overflow: hidden; justify-content: flex-start; }
.bw-photo { position: relative; width: 100%; height: min(62vw, 22svh); flex: 0 0 auto; }
.bw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 45%; }
.bw-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(15,34,51,0), var(--bw-bg)); }
.bw-copy { position: relative; padding: min(20px, 2svh) 20px min(40px, 4svh); flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bw-copy h2 { font-size: min(130px, 24vw, 11svh); line-height: .88; margin-bottom: min(22px, 2svh); }
.bw-copy p { margin: 0 0 min(14px, 1.3svh); font-size: min(17px, 1.9svh); line-height: 1.06; color: #f3f3f3; }
.bw-copy p.lead { font-size: min(19px, 2.2svh); }
.bw-copy p.punch { font-weight: 700; }
.bw-copy .pill { margin-top: min(10px, 1svh); height: min(56px, 6svh); font-size: min(22px, 2.5svh); }

/* ---------- Made of pain ---------- */
.pain {
  position: relative; text-align: center; color: #141414;
  background: linear-gradient(180deg, #7a7a7a 0%, #b9b9b9 30%, #dedede 60%, #e9e9e9 100%);
  padding: min(48px, 5svh) 0 min(20px, 2svh);
}
.pain h2 { font-size: min(140px, 26vw, 11svh); color: #111; }
.pain-chair { height: min(340px, 33svh); width: auto; max-width: 78vw; object-fit: contain; margin: min(20px, 2svh) auto 0; }
.pain-copy { width: min(100% - 48px, 640px); margin: min(8px, 1svh) auto 0; font-size: min(18px, 2svh); line-height: 1.06; }
.pain-copy em { font-style: italic; }
.pain-copy strong { font-weight: 700; }

.bar {
  margin: min(28px, 3svh) 14px 0; padding: min(20px, 2svh) 18px; border-radius: 14px; background: var(--black); color: #dcdcdc; text-align: left;
  display: grid; gap: min(14px, 1.4svh);
}
.bar .bar-logo { height: min(32px, 3.6svh); width: auto; }
.bar-text { font-size: min(13px, 1.5svh); letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; margin: 0; }
.bar form { display: grid; gap: min(10px, 1svh); max-width: none; }
.bar input[type="email"] {
  height: min(46px, 5.2svh); width: 100%; border: 0; border-radius: 8px; background: var(--field-grey); color: #222;
  padding: 0 16px; font-size: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.bar input::placeholder { color: #6b6b6b; text-transform: uppercase; }
.bar .pill { height: min(46px, 5.2svh); padding: 0 26px; font-size: min(20px, 2.3svh); text-transform: none; letter-spacing: 0; box-shadow: none; }
.bar-divider { display: none; }

/* ---------- Fresh off the press (photos) ---------- */
.storyline { background: var(--black); padding: min(40px, 4svh) 0 min(36px, 4svh); }
.storyline h2 { text-align: center; font-size: min(140px, 26vw, 11svh); }
.photo-nav button { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.photos { position: relative; margin-top: min(40px, 4svh); }
.photos .track { display: flex; gap: 12px; padding: 0 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photos .track::-webkit-scrollbar { display: none; }
.photo { flex: 0 0 min(86vw, 626px, 48svh); aspect-ratio: 626 / 349; scroll-snap-align: start; border-radius: 4px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-nav { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.photo-nav button { filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.photo-nav svg { width: 22px; height: 38px; }

/* ---------- Get early access (final screen, footer inside) ---------- */
.press {
  text-align: center; padding: min(44px, 5svh) 20px 0;
  background: radial-gradient(60% 80% at 50% 40%, var(--blue) 0%, #17496b 45%, var(--blue-deep) 100%);
  justify-content: flex-start;
}
.press-main { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.press .knight { width: min(34px, 4svh); margin: 0 auto; }
.press h2 { margin-top: min(22px, 2.5svh); font-size: min(140px, 26vw, 11svh); }
.press p { width: min(100%, 470px); margin: min(22px, 2.5svh) auto 0; font-size: min(18px, 2svh); line-height: 1.06; color: #e9e9e9; }
.press form { width: min(100%, 420px); margin: min(32px, 3.5svh) auto 0; text-align: left; }
.press label.field { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #eaeaea; }
.press input[type="email"] { background: #000; color: #fff; border: 1px solid #2a4a60; }
.press .fine { text-align: center; }

.form-msg { margin: 0; font-family: var(--sans); font-size: 14px; color: #bfe0ff; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #ffb4a8; }
form.is-done input, form.is-done button, form.is-done .fine, form.is-done label { display: none; }
form.is-done .form-msg { font-family: var(--serif); font-size: 22px; color: #fff; }

.site-footer { width: 100%; margin-top: min(36px, 4svh); padding-bottom: min(18px, 2svh); text-align: left; }
.foot-logo { height: min(30px, 3.4svh); width: auto; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: min(14px, 1.5svh) 0; border-top: 1px solid rgba(255,255,255,.35); font-size: min(15px, 1.8svh); line-height: 1.2; color: #dfe6ec; }
.foot-row .right { text-align: right; }
.foot-links { display: flex; gap: 22px; }

/* ================= Desktop ================= */
@media (min-width: 1024px) {
  .pill { height: calc(60 * var(--u)); padding: 0 calc(40 * var(--u)); font-size: calc(26 * var(--u)); min-width: calc(262 * var(--u)); }

  .hero-bg { object-position: right center; }
  .hero::after { background: linear-gradient(90deg, rgba(3,20,34,.28) 0%, rgba(3,20,34,0) 45%); }
  .site-header { height: calc(107 * var(--u)); }
  .brand img { height: calc(36 * var(--u)); }

  .hero-copy { padding: 0 0 calc(28 * var(--u)) calc(53 * var(--u)); }
  .kicker { font-size: calc(14 * var(--u)); margin-bottom: calc(16 * var(--u)); }
  .hero-copy h1 { font-size: calc(176 * var(--u) / var(--capr)); line-height: calc(184 * var(--u)); }
  .hero-sub { max-width: calc(350 * var(--u)); margin: calc(18 * var(--u)) 0 calc(24 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(19 * var(--u)); }
  .hero-form { max-width: calc(560 * var(--u)); grid-template-columns: 1fr auto; column-gap: calc(12 * var(--u)); }
  .hero-form input[type="email"] { height: calc(60 * var(--u)); font-size: calc(18 * var(--u)); padding: 0 calc(26 * var(--u)); }
  .hero-form .pill { height: calc(60 * var(--u)); width: auto; min-width: calc(262 * var(--u)); font-size: calc(22 * var(--u)); }
  .hero-form .form-msg, .hero-form .fine { grid-column: 1 / -1; }
  .fine { font-size: calc(12 * var(--u)); }

  .story { padding: calc(40 * var(--u)) 0 calc(30 * var(--u)); }
  .story-head { width: calc(766 * var(--u)); }
  .story-head .disp { font-size: calc(172 * var(--u) / var(--capr)); line-height: calc(180 * var(--u)); width: calc(1000 * var(--u)); margin-left: calc(-117 * var(--u)); white-space: nowrap; }
  .story-card { margin-top: calc(-128 * var(--u)); width: calc(766 * var(--u)); border-radius: calc(22 * var(--u)); }
  .story-copy { width: calc(450 * var(--u)); margin-top: calc(42 * var(--u)); }
  .story-copy p { font-size: calc(18 * var(--u)); line-height: calc(19 * var(--u)); margin-bottom: calc(19 * var(--u)); }
  .story-copy p.lead, .story-copy p.punch { font-size: calc(20 * var(--u)); }
  .signature { font-size: calc(40 * var(--u)); margin: calc(30 * var(--u)) 0 calc(36 * var(--u)); }
  .knight { width: calc(41 * var(--u)); }

  .bw { display: grid; grid-template-columns: calc(700 * var(--u)) 1fr; align-items: center; }
  .bw-photo { position: absolute; left: 0; top: 0; height: 100%; width: calc(690 * var(--u)); max-height: none; }
  .bw-photo img { object-position: left top; }
  .bw-photo::after { display: none; }
  .bw-copy { grid-column: 2; padding: calc(40 * var(--u)) calc(90 * var(--u)) calc(40 * var(--u)) 0; display: block; }
  .bw-copy h2 { font-size: calc(113 * var(--u) / var(--capr)); line-height: calc(126 * var(--u)); margin-bottom: calc(28 * var(--u)); }
  .bw-copy p { font-size: calc(18 * var(--u)); line-height: calc(19 * var(--u)); margin-bottom: calc(19 * var(--u)); }
  .bw-copy p.lead { font-size: calc(20 * var(--u)); }
  .bw-copy .pill { margin-top: calc(40 * var(--u)); height: calc(60 * var(--u)); font-size: calc(26 * var(--u)); }

  .pain { padding: calc(40 * var(--u)) 0 calc(28 * var(--u)); }
  .pain h2 { font-size: calc(115 * var(--u) / var(--capr)); line-height: 1; }
  .pain-chair { height: calc(625 * var(--u)); max-width: none; margin-top: calc(30 * var(--u)); }
  .pain-copy { width: calc(640 * var(--u)); margin-top: calc(6 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(19 * var(--u)); }
  .bar {
    position: relative;
    margin: calc(40 * var(--u)) calc(18 * var(--u)) 0; height: calc(74 * var(--u)); padding: 0 calc(30 * var(--u)) 0 calc(66 * var(--u));
    border-radius: calc(14 * var(--u)); display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 0;
  }
  .bar .bar-logo { height: calc(40 * var(--u)); }
  .bar-divider { display: block; width: 1px; height: calc(46 * var(--u)); background: #5a5a5a; margin: 0 calc(66 * var(--u)) 0 calc(48 * var(--u)); }
  .bar-text { font-size: calc(12.5 * var(--u)); width: calc(360 * var(--u)); }
  .bar form { grid-template-columns: calc(499 * var(--u)) calc(193 * var(--u)); gap: calc(48 * var(--u)); justify-content: end; align-items: center; }
  .bar input[type="email"] { height: calc(49 * var(--u)); font-size: calc(16 * var(--u)); }
  .bar .pill { height: calc(49 * var(--u)); min-width: 0; font-size: calc(20 * var(--u)); }
  .bar .form-msg { position: absolute; right: calc(30 * var(--u)); top: 100%; margin-top: calc(8 * var(--u)); }
  .bar form.is-done .form-msg { position: static; margin: 0; grid-column: 1 / -1; text-align: right; font-size: calc(20 * var(--u)); }

  .storyline { padding: calc(40 * var(--u)) 0 calc(40 * var(--u)); }
  .storyline h2 { font-size: calc(120 * var(--u) / var(--capr)); line-height: 1; }
  .photos { margin-top: calc(60 * var(--u)); }
  .photos .track { padding: 0 calc(82 * var(--u)); gap: calc(12 * var(--u)); }
  .photo { flex-basis: calc(626 * var(--u)); }
  .photo-nav { right: calc(90 * var(--u)); }

  .press { padding: calc(44 * var(--u)) calc(35 * var(--u)) 0; }
  .press .knight { width: calc(35 * var(--u)); }
  .press h2 { margin-top: calc(23 * var(--u)); font-size: calc(114 * var(--u) / var(--capr)); line-height: 1; }
  .press p { margin-top: calc(30 * var(--u)); font-size: calc(18 * var(--u)); line-height: calc(19 * var(--u)); width: calc(470 * var(--u)); }
  .press form { width: calc(498 * var(--u)); margin-top: calc(34 * var(--u)); gap: calc(8 * var(--u)); }
  .press input[type="email"] { height: calc(52 * var(--u)); }
  .press .pill { height: calc(52 * var(--u)); font-size: calc(20 * var(--u)); }

  .site-footer { margin-top: calc(40 * var(--u)); padding-bottom: calc(20 * var(--u)); }
  .foot-logo { height: calc(34 * var(--u)); }
  .foot-row { padding: calc(16 * var(--u)) 0; font-size: calc(16 * var(--u)); }
  .foot-links { gap: calc(40 * var(--u)); }
}
