/* Spring Autumn Media. One idea per screen, very large type, one colour field per property type.
   Panel colours are taken from the four paintings. */

:root {
  --paper: #ffffff;
  --ink: #17110c;
  --ink-soft: rgba(23, 17, 12, 0.66);
  --night: #0d0906;
  --cream: #f8f3ea;
  --cream-soft: rgba(248, 243, 234, 0.72);

  /* Spring to autumn: the one gradient on the page. */
  --season: linear-gradient(100deg, #55702a 0%, #a8731c 55%, #b04a1d 100%);
  --season-light: linear-gradient(100deg, #b5cf78 0%, #efc061 55%, #f08e52 100%);

  --read: #9a4a1c;
  --belong: #74231f;
  --connect: #485226;
  --solve: #4f2f16;

  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #efc061; color: var(--ink); }

h1, h2, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
em { font-style: normal; }

:focus-visible { outline: 2px solid #efc061; outline-offset: 4px; border-radius: 2px; }

.label, .nav nav a, .nav__lead, .footer {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 60px; padding-inline: var(--gutter);
  color: var(--ink);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.nav--dark {
  background: rgba(13, 9, 6, 0.72); color: var(--cream);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.nav nav a { padding-block: 12px; text-decoration: none; opacity: 0.72; transition: opacity 160ms var(--ease-out); }
.nav nav a:hover { opacity: 1; }
.nav__lead { padding-block: 12px; opacity: 0.72; }
.nav nav { align-items: center; }
.nav__contact { margin-left: clamp(8px, 2vw, 32px); }

/* ---------- Opening ---------- */

.open {
  position: relative;
  display: grid; align-content: center; justify-items: center; gap: clamp(20px, 3vw, 40px);
  min-height: 100svh; padding: 96px var(--gutter);
  text-align: center;
}
h1 {
  font-size: clamp(2.5rem, 11vw, 11rem);
  line-height: 0.9; font-weight: 600; letter-spacing: -0.045em;
  background: var(--season); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
h1 span { display: block; }
.open p { font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.375rem); color: var(--ink-soft); letter-spacing: -0.01em; }
.open .label { color: var(--ink-soft); }

/* ---------- Who we are ---------- */

.who {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px var(--gutter);
  max-width: 1440px; margin-inline: auto;
  padding: 0 var(--gutter) clamp(80px, 12vw, 176px);
}
.who::before { content: ""; grid-column: 1 / -1; border-top: 1px solid rgba(23, 17, 12, 0.16); margin-bottom: clamp(24px, 5vw, 72px); }
.who h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; padding-top: 0.6em; }
.who p { max-width: 22em; font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem); line-height: 1.14; font-weight: 500; letter-spacing: -0.03em; text-wrap: pretty; }
.who p + p { margin-top: 0.8em; color: var(--ink-soft); }

/* ---------- Creed ---------- */

.creed {
  display: grid; align-content: center; justify-items: center;
  min-height: 100svh; padding: 104px var(--gutter) 80px;
  background: var(--night); color: var(--cream); text-align: center;
}
.creed .label { margin: 0 0 clamp(28px, 4vw, 48px); color: var(--cream-soft); }
.creed__pair { display: grid; grid-template-columns: auto auto; align-items: center; text-align: left; }
.creed p, .creed li {
  font-size: clamp(1.625rem, 0.9rem + 3vw, 3.25rem);
  line-height: 1.12; font-weight: 600; letter-spacing: -0.035em;
  color: var(--cream-soft);
}
.creed p { padding-right: clamp(20px, 3.4vw, 52px); white-space: nowrap; }
.creed ul { margin: 0; padding: 0.3em 0 0.3em clamp(20px, 3.4vw, 52px); list-style: none; border-left: 1px solid rgba(248, 243, 234, 0.34); }
.creed li + li { margin-top: 0.42em; }
.creed em, .contact em {
  background: var(--season-light); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* The five endings arrive in order, once, when the screen comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .creed li { opacity: 0; transform: translateX(-0.4em); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); }
  .js .creed.is-in li { opacity: 1; transform: none; }
  .js .creed li:nth-child(2) { transition-delay: 120ms; }
  .js .creed li:nth-child(3) { transition-delay: 240ms; }
  .js .creed li:nth-child(4) { transition-delay: 360ms; }
  .js .creed li:nth-child(5) { transition-delay: 480ms; }
}

/* ---------- What we acquire ---------- */

.acquire { max-width: 1440px; margin-inline: auto; padding: clamp(72px, 11vw, 160px) var(--gutter) clamp(40px, 6vw, 80px); }
.acquire h2 { font-size: clamp(2.5rem, 1rem + 6.4vw, 6.5rem); line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; }

/* ---------- Panels ---------- */

.panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
  color: #fff;
  scroll-margin-top: 0;
}
.panel--read { background: var(--read); }
.panel--belong { background: var(--belong); }
.panel--connect { background: var(--connect); }
.panel--solve { background: var(--solve); }

.panel__text { padding: clamp(104px, 16vh, 168px) var(--gutter) 56px; }
.panel .label { opacity: 0.9; }
.panel .label span { margin-right: 0.9em; }
.panel h3 {
  margin-bottom: 0;
  margin-top: 14px;
  font-size: clamp(3.5rem, 1rem + 9.4vw, 9.5rem);
  line-height: 0.92; font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase;
}
.panel__line { max-width: 18em; margin-top: clamp(16px, 2vw, 28px); font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.375rem); letter-spacing: -0.01em; }

.panel img {
  width: 100%; height: 100%; min-height: 100svh; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%);
  mask-image: linear-gradient(to right, transparent 0, #000 34%);
}

.panel--flip img {
  order: -1;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 34%);
  mask-image: linear-gradient(to left, transparent 0, #000 34%);
}

/* ---------- Contact ---------- */

.contact {
  display: grid; align-content: center; justify-items: center; gap: 20px;
  min-height: 100svh; padding: 120px var(--gutter);
  background: radial-gradient(60% 50% at 50% 55%, #2a1a0d 0%, var(--night) 100%);
  color: var(--cream); text-align: center;
}
.contact .label { color: var(--cream-soft); }
.contact .label { margin: 0; }
.contact p { font-size: clamp(1.125rem, 0.8rem + 1.5vw, 2rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.contact a {
  text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.16em;
  text-decoration-color: rgba(248, 243, 234, 0.35);
  transition: text-decoration-color 160ms var(--ease-out);
}
.contact a:hover { text-decoration-color: currentColor; }

/* ---------- Footer ---------- */

.footer { padding: 28px var(--gutter) 36px; background: var(--night); color: var(--cream-soft); text-align: center; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .nav nav a:not(.nav__contact), .nav__lead { display: none; }
  .who { grid-template-columns: minmax(0, 1fr); }
  .creed__pair { grid-template-columns: auto; justify-items: start; row-gap: 0.9em; }
  .creed p { padding-right: 0; }
  .who h2 { padding-top: 0; }
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .panel__text { padding: 104px var(--gutter) 32px; }
  .panel img, .panel--flip img {
    order: 0; min-height: 0; aspect-ratio: 4 / 5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%);
  }
}
