@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("/fonts/ibm-plex-sans-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --accent: #f5a524;
  --teal: #2ec4b6;
  --teal-soft: #7fe3d9;
  --bg: #11151b;
  --bg-raised: #161b23;
  --bg-band: #141920;
  --bg-term: #0d1116;
  --line: #1f2630;
  --line-2: #232a35;
  --line-3: #2b3340;
  --line-4: #3a4454;
  --text: #eceff3;
  --text-2: #d6dbe2;
  --text-3: #c3cad4;
  --text-4: #aeb7c3;
  --muted: #8893a2;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-soft); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row-tight { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Type */
.prompt { font-family: var(--mono); font-size: 14px; color: var(--teal); letter-spacing: 0.02em; }
.prompt b { color: var(--accent); font-weight: 500; }
.prompt .comment, .muted { color: var(--muted); }
.accent { color: var(--accent); }
.teal { color: var(--teal); }
.h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--text-3); margin: 0; max-width: 62ch; }
.body { font-size: 17px; line-height: 1.7; color: var(--text-4); margin: 0; max-width: 64ch; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.label-teal { color: var(--teal); }
.label-accent { color: var(--accent); }

/* Chips and buttons */
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-2);
  border: 1px solid var(--line-3);
  border-radius: 4px;
  padding: 7px 11px;
  white-space: nowrap;
}
a.chip:hover { border-color: var(--teal); color: var(--text); }
.chip-wrap { white-space: normal; }
.chip-social { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; }
.chip-social svg { width: 16px; height: 16px; flex: 0 0 16px; }
.chip-social .handle { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line-4); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }

/* Site header (every page) */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header-inner { display: flex; align-items: center; min-height: 64px; }
.site-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.site-title:hover { color: var(--accent); }
.foot-base a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  min-height: clamp(560px, 56vw, 820px);
}
.hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(56px, 7vw, 96px) clamp(16px, 4vw, 72px) clamp(56px, 7vw, 96px) max(clamp(16px, 4vw, 48px), calc(50vw - 600px + 48px));
}
.hero-intro { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--text-3); max-width: 34ch; text-wrap: balance; }
.hero h1 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.facts b { color: var(--teal); font-weight: 400; }
.hero .lede { max-width: 52ch; }
.hero-media { position: relative; min-width: 0; min-height: 440px; background: var(--bg-raised); border-left: 1px solid var(--line); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.hero-media .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 21, 27, 0.35), transparent 22%); }
.status-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(17, 21, 27, 0.86);
  border: 1px solid var(--line-3);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.status-badge b { color: var(--teal); font-weight: 400; }
.status-badge .cursor { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .status-badge .cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

/* Photo placeholder until the real image is added */
.photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 1px dashed var(--line-4);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.hero-media .photo-missing { position: absolute; inset: 0; border-radius: 0; border: 0; }

/* Sections */
.section { border-top: 1px solid var(--line); }
.section-channels { padding-block: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 88px); }
.section-channels .h2 { max-width: 22ch; }
.section-tech { padding-block: clamp(72px, 9vw, 120px) 0; background: var(--bg-raised); }
.section-reviews { padding-block: clamp(64px, 8vw, 104px) clamp(72px, 9vw, 120px); background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.section-reviews .h2 { max-width: 20ch; }
.section-adventure { padding-block: clamp(72px, 9vw, 120px); }
.section-newsletter { padding-block: clamp(64px, 8vw, 104px); background: var(--bg-band); border-bottom: 1px solid var(--line); }
.section-contact { padding-block: clamp(72px, 9vw, 120px); background: var(--bg-raised); border-bottom: 1px solid var(--line); }

/* Channel cards */
.channels { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.chan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg-raised);
  min-width: 0;
  color: var(--text);
}
.chan:hover { border-color: var(--line-4); color: var(--text); }
.chan-featured, .chan-featured:hover { border-color: var(--accent); }
.chan-name { font-size: 24px; font-weight: 600; }
.chan .body { font-size: 16px; }
.chan .go { margin-top: 6px; font-family: var(--mono); font-size: 14px; color: var(--teal); }
.chan-featured .go { color: var(--accent); }

/* Tech with Gerard */
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split-media { flex: 1 1 380px; min-width: 0; max-width: 520px; }
.split-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.frame-portrait { aspect-ratio: 4 / 5; }
.frame-wide { aspect-ratio: 16 / 10; }
.photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 6px; }
.photo-top { object-position: 50% 30%; }
.also-label { margin-right: 4px; }
.barry {
  margin-top: 56px;
}
.barry-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line-3);
  border-radius: 6px;
  background: var(--bg);
}
.barry-photo { width: 96px; height: 96px; flex: 0 0 96px; overflow: hidden; border-radius: 4px; }
.barry-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.barry-photo .photo-missing { font-size: 10px; text-align: center; }
.barry-text { flex: 1 1 280px; min-width: 0; }
.barry-text p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-3); }

/* Reviews */
.reviews-intro { margin: 0; max-width: 60ch; font-size: 17px; line-height: 1.7; color: var(--muted); }
.reviews-intro a { color: var(--text); }
.reviews { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  min-width: 0;
}
.quote-featured { border-color: var(--accent); }
.quote .win { font-family: var(--cond); font-weight: 700; font-size: 28px; line-height: 1.1; color: var(--text); }
.quote .win em { font-style: normal; color: var(--accent); }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-3); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-2); }
.quote .av {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.quote .nm { font-size: 15px; font-weight: 600; color: var(--text); }
.quote .rl { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.shouts { margin-top: 18px; }

/* Adventure */
.gallery { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.gallery figure { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.frame-portrait, .frame-wide, .frame-banner { min-height: 0; overflow: hidden; border-radius: 6px; }
.frame-banner { aspect-ratio: 11 / 5; }
.photo-van { object-position: 50% 52%; }
/* Side by side: the Japan photo stretches to the Everest photo's height so their tops and bottoms line up. */
@media (min-width: 900px) {
  .gallery { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .gallery .small .frame-portrait { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
  .gallery .wide { grid-column: 1 / -1; }
}
.cap { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }
.pillars { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-top: 2px solid var(--line-3); min-width: 0; flex: 1 1 240px; }
.pillar-featured { border-top-color: var(--accent); }
.pillar h3 { margin: 0; font-size: 19px; font-weight: 600; color: var(--text); }
.pillar p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-4); }
.adventure-cta { margin-top: 40px; }

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.newsletter-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.newsletter-form {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line-3);
  border-radius: 6px;
  background: var(--bg);
}
.newsletter-form .label { color: var(--text-2); }
.newsletter-form .small-print { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
input.email {
  min-height: 48px;
  flex: 1 1 240px;
  min-width: 0;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--line-4);
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}

/* Contact */
.contact { margin-top: 48px; display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 64px); align-items: flex-start; }
.term { flex: 999 1 560px; border: 1px solid var(--line-3); border-radius: 8px; background: var(--bg-term); overflow: hidden; min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-band); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-3); }
.term-bar .t { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.contact-form { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, .field legend { font-family: var(--mono); font-size: 13px; color: var(--text-2); padding: 0; }
.field label span, .field legend span { color: var(--teal); }
.field .opt-hint { color: var(--muted); }
.in {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid var(--line-4);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
}
.in::placeholder, input.email::placeholder { color: var(--muted); }
.in:focus, input.email:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
select.in {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
textarea.in { min-height: 160px; resize: vertical; line-height: 1.6; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-4);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-3);
  cursor: pointer;
}
.opt span::before { content: "[ ]"; color: var(--muted); }
.opt:hover span { border-color: var(--teal); }
.opt input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.opt input:checked + span::before { content: "[x]"; color: var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot .small-print { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

.contact-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.status-card { padding: 22px 24px; border: 1px solid var(--line-3); border-radius: 6px; background: var(--bg); }
.status-card .label { margin-bottom: 16px; }
.kv { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; font-family: var(--mono); font-size: 14px; }
.kv dt { color: var(--teal); }
.kv dd { margin: 0; color: var(--text-2); }
.faq .prompt { margin-bottom: 10px; }
.faq h3 { margin: 0 0 14px; font-family: var(--cond); font-weight: 700; font-size: 30px; line-height: 1.1; }
details { border-top: 1px solid var(--line-2); }
details:last-of-type { border-bottom: 1px solid var(--line-2); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent); flex: 0 0 auto; }
details[open] summary::after { content: "−"; }
summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
details p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: var(--text-4); }

/* Footer */
.foot { background: var(--bg-band); }
.foot a { color: var(--text-4); font-size: 15px; }
.foot a:hover { color: var(--text); }
.foot a.chip { font-size: 13px; }
.foot-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 56px; padding-block: 56px 40px; }
.foot-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-brand { flex: 1 1 260px; gap: 16px; }
.foot-tech { flex: 1 1 240px; }
.foot-adv { flex: 1 1 200px; }
.foot-nav { gap: 10px; }
.foot-nav .label { margin-bottom: 4px; }
.wordmark { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--text); }
.foot-brand p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.foot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.foot-base a { color: var(--muted); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-4); text-underline-offset: 3px; }

/* Simple pages: thanks, errors, privacy, 404 */
.simple { padding-block: clamp(56px, 8vw, 112px); }
.simple h1 { margin: 0; font-family: var(--cond); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.simple h2 { margin: 16px 0 0; font-size: 20px; font-weight: 600; }
.simple p, .simple li { font-size: 17px; line-height: 1.7; color: var(--text-3); max-width: 64ch; margin: 0; }
.simple ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .chan, .opt span, .chip { transition: filter 0.15s, border-color 0.15s, background-color 0.15s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
