/* chriscousens.com — 2026 redesign
   dark warm ink · vermillion · ocean behind everything */

:root {
  --ink: #0a0908;
  --ink-soft: #12100d;
  --ink-card: #161310;
  --paper: #efe8dc;
  --paper-dim: #b8b0a2;
  --paper-mute: #6b655b;
  --rule: #2a251f;
  --accent: #ff3d00;
  --amber: #ffb347;
  --font-display: "Anton", Impact, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  line-height: 1.65;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--accent); color: var(--ink);
  padding: 0.6rem 1rem; font-family: var(--font-mono); font-size: 0.8rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- ocean canvas ---------- */
#ocean {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
.sky-fallback {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 60% at 70% 78%, rgba(255, 92, 26, 0.35), transparent 60%),
    linear-gradient(to bottom, #100e14 0%, #2a1a14 55%, #4a230f 72%, #120d0a 78%, #0a0908 100%);
}
body.no-webgl #ocean { display: none; }

/* ---------- preloader ---------- */
.loader { display: none; }
html.js .loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  color: var(--paper-dim);
}
.loader__pct { font-size: clamp(2.4rem, 7vw, 4.5rem); color: var(--paper); letter-spacing: 0.02em; }
.loader__pct::after { content: ""; }
.loader__coord { color: var(--accent); }
.loader__label { color: var(--paper-mute); }
body.loaded .loader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad) 2.2rem;
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.72) 0%, rgba(10, 9, 8, 0.38) 55%, transparent 100%);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a, .nav button { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { text-decoration: none; }
.nav__brand-mark {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--paper);
  letter-spacing: 0.02em; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
  opacity: 0.8; transition: opacity 0.2s;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__num { color: var(--accent); margin-right: 0.3em; }
@media (max-width: 760px) {
  .nav__links { gap: 1rem; }
  .nav__links a .nav__num { display: none; }
}
@media (max-width: 560px) {
  .nav__links a:nth-child(2), .nav__links a:nth-child(3) { display: none; }
}

/* ---------- smooth wrapper ---------- */
#smooth-wrapper { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad);
}
.hero__inner { padding-bottom: 1rem; }
.hero__meta {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--paper-dim); margin-bottom: 1.2rem;
}
.hero__meta .tick { color: var(--accent); animation: tick 2.4s infinite; font-size: 0.6rem; }
@keyframes tick { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
.hero__meta-sep { color: var(--rule); }

.hero__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(4.2rem, 14.5vw, 14rem);
  line-height: 0.86; letter-spacing: 0.005em; text-transform: uppercase;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
.hero__line { display: block; overflow: hidden; }
.hero__word { display: inline-block; will-change: transform; }
.hero__line--accent .hero__word { color: var(--accent); }

.hero__lede {
  max-width: 34rem; margin: 1.8rem 0 0;
  font-family: var(--font-serif); font-size: clamp(1.05rem, 1vw + 0.9rem, 1.3rem);
  line-height: 1.55; color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero__lede em { font-style: italic; color: var(--paper-dim); }
.hero__lede-label { display: block; color: var(--accent); margin-bottom: 0.5rem; }

.hero__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: 2.2rem; padding-bottom: 0.6rem;
}
.hero__scroll {
  display: inline-flex; align-items: center; gap: 0.8rem;
  color: var(--paper-dim); text-decoration: none;
}
.hero__scroll-bar {
  display: block; width: 3.2rem; height: 1px; background: var(--paper-mute);
  position: relative; overflow: hidden;
}
.hero__scroll-bar::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: translateX(-100%); animation: scrollbar 2.2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes scrollbar { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.helm-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(10, 9, 8, 0.55); color: var(--paper-dim);
  border: 1px solid var(--rule); padding: 0.55rem 0.9rem;
  cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s;
}
.helm-toggle:hover { color: var(--paper); border-color: var(--paper-mute); }
.helm-toggle__icon { color: var(--accent); font-size: 1rem; }

.marquee {
  position: relative; left: calc(-1 * var(--pad)); width: 100vw;
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0; overflow: hidden; white-space: nowrap;
  background: rgba(10, 9, 8, 0.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.marquee__track { display: inline-block; white-space: nowrap; }
.marquee__track span {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.14em;
  color: var(--paper-mute);
}

/* ---------- sections ---------- */
.section {
  position: relative;
  background: var(--ink);
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
}
.section__grid { max-width: 1400px; margin: 0 auto; }
.section__head { margin-bottom: 3rem; }
.section__num { display: block; color: var(--accent); margin-bottom: 1rem; }
.section__title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.section__intro {
  max-width: 36rem; margin: 1.4rem 0 0; color: var(--paper-dim);
  font-family: var(--font-serif); font-style: italic;
}

/* split-text masking */
.split-line { display: block; overflow: hidden; }

/* about */
.section--about { border-top: 1px solid var(--rule); }
.about__body {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.4rem; color: var(--paper-dim); }
.prose .prose__lead {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 1.2vw + 1rem, 1.55rem);
  line-height: 1.5; color: var(--paper);
}
.prose em { color: var(--paper); font-style: italic; }
.prose a { color: var(--paper); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.about__figure { margin: 0; position: sticky; top: 14vh; }
.about__figure-mask { overflow: hidden; }
.about__figure img { filter: grayscale(1) contrast(1.05); will-change: transform; }
.about__figure figcaption { margin-top: 0.7rem; color: var(--paper-mute); }
@media (max-width: 860px) {
  .about__body { grid-template-columns: 1fr; }
  .about__figure { position: static; max-width: 30rem; }
}

/* ---------- voyage (horizontal) ---------- */
.voyage {
  position: relative; background: var(--ink-soft);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  overflow: clip;
}
.voyage__pin {
  min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; gap: 2.5rem; padding: clamp(4rem, 8vh, 6rem) 0 3rem;
}
.voyage__head { padding: 0 var(--pad); max-width: 1400px; margin: 0 auto; width: 100%; }
.voyage__statement {
  margin: 1rem 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.02;
}
.voyage__statement em { font-style: normal; color: var(--accent); }
.voyage__route { display: block; color: var(--paper-mute); max-width: 60ch; line-height: 1.8; }

.voyage__track {
  display: flex; gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 0 var(--pad); width: max-content; align-items: stretch;
  will-change: transform;
}
.voyage__card { margin: 0; width: clamp(16rem, 34vw, 30rem); flex-shrink: 0; }
.voyage__card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 2px; filter: saturate(0.92) contrast(1.02);
}
.voyage__card figcaption { margin-top: 0.7rem; color: var(--paper-mute); line-height: 1.6; }
.voyage__cta-card {
  width: clamp(16rem, 30vw, 26rem); flex-shrink: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  border: 1px solid var(--rule); padding: 2rem;
}
.voyage__cta-line {
  margin: 0; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.4rem); line-height: 1.5;
  color: var(--paper-dim);
}
.voyage__cta {
  color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem; align-self: flex-start; transition: color 0.2s;
}
.voyage__cta:hover { color: var(--accent); }
.voyage__progress {
  margin: 0 var(--pad); height: 1px; background: var(--rule);
  position: relative; max-width: 1400px;
}
.voyage__progress-bar {
  position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
}
@media (max-width: 899px) {
  .voyage__pin { min-height: 0; }
  .voyage__track { width: auto; flex-direction: column; padding-bottom: 1rem; }
  .voyage__card, .voyage__cta-card { width: 100%; max-width: 32rem; }
  .voyage__progress { display: none; }
}

/* ---------- interests ---------- */
.interests { list-style: none; margin: 0; padding: 0; counter-reset: interest; }
.interests__row {
  display: flex; gap: 1.6rem; align-items: baseline;
  padding: 1.6rem 0.4rem; border-top: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 2.4rem); line-height: 1.3;
  transition: background 0.25s, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.interests__row:last-child { border-bottom: 1px solid var(--rule); }
.interests__row:hover { background: var(--ink-soft); padding-left: 1.2rem; }
.interests__row:hover .interests__n { color: var(--accent); }
.interests__n { color: var(--paper-mute); min-width: 2.2em; transition: color 0.25s; }
.interests__txt a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.2rem; perspective: 1200px;
}
.card {
  background: var(--ink-card); border: 1px solid var(--rule);
  padding: 1.8rem; border-radius: 3px;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 179, 71, 0.08), transparent 65%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover::after { opacity: 1; }
.card__head {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--paper-mute); margin-bottom: 1.6rem;
}
.card__title {
  margin: 0 0 0.8rem; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2vw, 2rem); text-transform: uppercase; letter-spacing: 0.01em;
}
.card__body { margin: 0; color: var(--paper-dim); font-size: 0.95em; }

/* ---------- now ---------- */
.now { margin: 0; }
.now__row {
  display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: 1.5rem;
  padding: 1.3rem 0.4rem; border-top: 1px solid var(--rule);
}
.now__row:last-child { border-bottom: 1px solid var(--rule); }
.now__key { color: var(--accent); }
.now__val { margin: 0; font-family: var(--font-serif); font-size: clamp(1.05rem, 1vw + 0.9rem, 1.35rem); }

/* ---------- contact — translucent over the night ocean ---------- */
.section--contact {
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(10, 9, 8, 0.25) 30%, rgba(10, 9, 8, 0.15) 100%);
  min-height: 88svh; display: flex; align-items: center;
}
.section--contact .section__grid { width: 100%; }
.contact__email {
  display: inline-flex; align-items: baseline; gap: 1.2rem;
  margin: 1rem 0 1.6rem; text-decoration: none;
  font-family: var(--font-display); text-transform: lowercase;
  font-size: clamp(1.6rem, 5.4vw, 5.2rem); line-height: 1.05;
  color: var(--paper); text-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  will-change: transform;
}
.contact__line { border-bottom: 2px solid var(--accent); padding-bottom: 0.08em; }
.contact__arrow { color: var(--accent); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.contact__email:hover .contact__arrow { transform: translateX(0.4em) rotate(-45deg); }
.contact__note { color: var(--paper-dim); font-family: var(--font-serif); font-style: italic; }

/* ---------- footer ---------- */
.foot {
  position: relative; display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; padding: 1.6rem var(--pad);
  background: transparent; color: var(--paper-mute);
  border-top: 1px solid var(--rule);
}

/* ---------- helm panel ---------- */
.helm {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60;
  width: 200px; background: rgba(10, 9, 8, 0.85);
  border: 1px solid var(--rule); padding: 0.8rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.helm[hidden] { display: none; }
.helm__video {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transform: scaleX(-1); border-radius: 2px; background: #000;
}
.helm__status { margin: 0; color: var(--amber); }
.helm__note { margin: 0; color: var(--paper-mute); font-size: 0.6rem; }
.helm__stop {
  background: none; border: 1px solid var(--rule); color: var(--paper-dim);
  padding: 0.4rem; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.helm__stop:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .loader { display: none; }
}
