/* Home page (v4). Tokens first; everything else uses them. */
:root {
  --paper: #f3f1ea;
  --ink: #121210;
  --ink-2: #2d2c28;
  --ink-3: #45433d;
  --muted: #6f6d66;
  --faint: #9a978d;
  --line: #dcd9cf;
  --line-2: #cfccc2;
  --dark-line: #3a3934;
  --dark-muted: #a9a69c;
  --card: #ffffff;
  --accent: #c23a1f;
  --ok: #1f9d55;

  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2 { margin: 0; }
img { display: block; }

.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.hl { color: var(--accent); }

/* ---------- Intro ---------- */
.intro {
  min-height: 100vh;
  padding: 28px var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.intro__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.intro__name {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
}
.intro__name span + span { color: var(--muted); font-weight: 500; }
.intro__nav { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.intro__nav a { color: var(--muted); }
.intro__nav a:hover { color: var(--accent); }
.intro__title {
  max-width: 1280px;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.intro__who { display: flex; align-items: center; gap: 18px; }
.intro__who img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}
.intro__meta { display: flex; flex-direction: column; gap: 4px; }
.uptime { display: flex; align-items: center; gap: 8px; }
.uptime #uptime { font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Journey ---------- */
.journey { position: relative; }
.journey__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3vh, 28px);
  padding: clamp(12px, 3vh, 28px) 0 clamp(16px, 3vh, 32px);
}
.journey__head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 32px;
}
.journey__year-wrap { display: flex; flex-direction: column; gap: 8px; }
.journey__year {
  display: flex;
  font-size: clamp(56px, min(9vw, 14vh), 132px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.roll { display: block; height: 1em; overflow: hidden; }
.roll__col {
  display: flex;
  flex-direction: column;
  transition: transform 0.7s var(--ease);
}
.roll__col span { height: 1em; }
.journey__chapter { font-size: clamp(18px, 1.8vw, 24px); font-weight: 500; color: var(--ink-3); }

.track {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
  flex: 1 1 auto;
  min-height: 0;
}
.year { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.year__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.year__label::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: var(--line-2); }
.year__items { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-height: 0; }
.slot { flex: none; width: 100%; min-height: 260px; display: flex; }
.slot--trip { height: 360px; }

.card {
  flex: 1;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(18px, 3vh, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.card__text { font-size: 15.5px; line-height: 1.5; text-wrap: pretty; color: var(--ink-3); }

.card--work { background: var(--ink); color: var(--paper); gap: 18px; }
.card--work .card__meta { color: var(--dark-muted); }
.card--work .card__title {
  font-size: clamp(30px, min(3.4vw, 6vh), 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: auto;
}
.card--work .card__sub { font-size: 16px; color: var(--line-2); }
.card--work .card__text { color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-family: var(--mono);
  font-size: 11.5px;
  border: 1px solid var(--ink-3);
  border-radius: 999px;
  padding: 4px 10px;
}

.card--build { background: var(--card); border: 1px solid var(--line); }
.card--build .card__big {
  font-size: clamp(44px, min(5.4vw, 9vh), 84px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--accent);
  margin-top: auto;
}
.card--build .card__unit { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.card--build .card__title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; padding-top: 10px; }

.card--trip { position: relative; background: var(--ink); color: #fff; padding: 24px; }
.card--trip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card--trip:hover img { transform: scale(1.05); }
.card--trip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.78) 100%);
}
.card--trip > :not(img) { position: relative; z-index: 1; }
.card--trip .card__meta { color: #fff; }
.card--trip .card__title {
  font-size: clamp(40px, 3.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-top: auto;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card--trip .card__text { font-size: 16px; line-height: 1.4; color: #fff; }

.card--note { border: 1.5px solid var(--ink); padding: 24px; }
.card--note .card__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: auto;
  text-wrap: balance;
}

.ruler { display: none; padding: 0 var(--gutter); flex-direction: column; gap: 10px; }
.ruler__bar { height: 2px; background: var(--line); position: relative; }
.ruler__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.ruler__years { display: flex; justify-content: space-between; font-size: 12px; }
.ruler__years button {
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  color: var(--faint);
}
.ruler__years button[aria-current="true"] { color: var(--ink); }
.ruler__years button:hover { color: var(--accent); }

/* Sideways scroll on wide screens (class set by site.js) */
.journey.is-wide .journey__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.journey.is-wide .journey__head { position: relative; }
.journey.is-wide .track {
  flex-direction: row;
  gap: 56px;
  width: max-content;
  padding: 0 45vw 0 var(--gutter);
  will-change: transform;
}
.journey.is-wide .year__items { flex-direction: row; }
.journey.is-wide .slot { height: 100%; max-height: 480px; min-height: 0; }
.journey.is-wide .slot--work { width: 440px; }
.journey.is-wide .slot--build { width: 360px; }
.journey.is-wide .slot--trip { width: 320px; }
.journey.is-wide .slot--note { width: 280px; }
.journey.is-wide .ruler { display: flex; }

/* ---------- Modes ---------- */
.modes {
  padding: clamp(96px, 12vw, 180px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.modes__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.modes__head h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 1000px;
  text-wrap: balance;
}
.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: var(--ink); color: var(--paper); }
.modes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 32px;
}
.mode {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1.5px solid var(--ink);
  padding-top: 18px;
}
.mode__n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.mode__title { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; }
.mode__text { font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.mode__tools { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(120px, 14vw, 200px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.contact h2 {
  text-align: center;
  font-size: clamp(44px, 7vw, 112px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.booking {
  width: 100%;
  max-width: 820px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform 0.3s var(--ease);
}
.booking:hover { color: var(--paper); transform: translateY(-4px); }
.booking__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--dark-muted);
}
.booking__title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.booking__list { display: flex; flex-direction: column; font-size: 18px; }
.booking__list span { padding: 14px 0; border-top: 1px solid var(--dark-line); }
.booking__list span:last-child { border-bottom: 1px solid var(--dark-line); }
.booking__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.booking__cta {
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
}
.booking__mail { color: var(--dark-muted); }

.footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  padding-top: 40px;
}
.footer__left { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.footer__credits { font-size: 11px; line-height: 1.5; color: var(--faint); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .roll__col, .card--trip img, .booking, .pill { transition: none; }
}
