@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

/* Layout: hero splits text / drifting frame field; below, one column with a narrow label rail.
   Palette from the decks: brown ink, taupe, peach hairlines, the orange kept to frames and labels. */
:root {
  --paper: #FCF8F5;
  --ink: #17171A;
  --muted: #6B6B70;
  --rule: #F0DDD0;
  --orange: #E07535;
  --accent: #B85A26;
  --hl: #CF6429;
  --peach: #F7C9AA;
  --tint: #FAEBE0;
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s-1: 0.8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: clamp(1.75rem, 3.4vw, 2.25rem); --s4: clamp(2.25rem, 5.6vw, 3.75rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214; --ink: #EDEDEA; --muted: #9A9AA0; --rule: #2A2A2E;
    --orange: #E08A5C; --accent: #E8996C; --hl: #EC9A6A; --peach: #2E2119; --tint: #18181B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214; --ink: #EDEDEA; --muted: #9A9AA0; --rule: #2A2A2E;
  --orange: #E08A5C; --accent: #E8996C; --hl: #EC9A6A; --peach: #2E2119; --tint: #18181B; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--s0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

/* The official logo (seaya-catalyst-logos), white on transparent, used as a mask so it
   takes the text colour in both themes. */
.mark { display: block; width: 7.25rem; aspect-ratio: 282 / 188; }
/* On a pseudo-element, so the mask does not clip the link's focus outline. */
.mark::before {
  content: ""; display: block; width: 100%; height: 100%; background: var(--ink);
  -webkit-mask: url("/logo.png") center / contain no-repeat;
  mask: url("/logo.png") center / contain no-repeat;
}

header .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 24px; gap: 16px; }
nav { display: flex; gap: 24px; font-size: var(--s-1); color: var(--muted); }
nav a { text-decoration: none; }
nav a:hover { color: var(--ink); }
@media (max-width: 640px) { nav .opt { display: none; } }

/* Hero */
/* The hero fills the first screen, less the header, so the sections start below the fold. */
.hero { position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - 96px); min-height: calc(100svh - 96px); }
.hero > .wrap { width: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0 -5% 0 30%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--peach) 60%, transparent), transparent);
}
.hero .wrap {
  position: relative; display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr; padding-block: clamp(40px, 8vw, 104px) clamp(48px, 8vw, 96px);
}
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero h1 .hl { font-style: normal; color: var(--hl); }
.hero h1 { font-size: var(--s4); line-height: 1.06; max-width: 15ch; }
.hero p { margin-top: 24px; font-size: var(--s1); color: var(--muted); max-width: 38ch; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 500; background: var(--ink); color: var(--paper); padding: 0.8em 1.3em; }
.btn:hover { background: var(--accent); }
.link { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.link:hover { color: var(--ink); border-color: var(--orange); }

/* Frame field: the deck's cover, redrawn on canvas as a quiet blueprint */
.field { position: relative; width: 100%; max-width: 100%; aspect-ratio: 5 / 4; }
@media (max-width: 899px) { .field { aspect-ratio: 16 / 9; order: -1; max-height: 260px; } }
.field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Sections: label rail + content */
section { border-top: 1px solid var(--rule); }
section > .wrap { padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 20px 48px; grid-template-columns: 1fr; }
@media (min-width: 860px) { section > .wrap { grid-template-columns: 13rem minmax(0, 1fr); } }
.label { font-size: var(--s-1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; padding-top: 0.5em; }
.body { min-width: 0; display: grid; gap: 32px; }
.body h2 { font-size: var(--s3); line-height: 1.15; max-width: 24ch; }
.lede { font-size: var(--s1); color: var(--muted); max-width: 50ch; }

.two { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); grid-template-columns: 1fr; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.two > div { background: var(--paper); padding: clamp(22px, 4vw, 32px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.two h3 { font-size: var(--s2); }
.two h3::before { content: ""; display: inline-block; width: 0.42em; height: 0.42em; border: 1px solid var(--orange); margin-right: 0.5em; vertical-align: 0.12em; }
.two > div:last-child h3::before { background: var(--orange); }
.two .what { color: var(--muted); }
dl { margin: 0; display: grid; gap: 14px; }
dt { font-size: var(--s-1); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
dd { margin: 2px 0 0; color: var(--muted); }

/* Three stages: ordered because it is a progression */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 20px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; min-width: 0; }
@media (min-width: 760px) { .steps li { padding: 22px 24px 22px 0; } .steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); } }
.steps li:last-child { border-top: 2px solid var(--orange); }
.steps h3 { font-size: var(--s1); }
.steps li:last-child h3 { color: var(--accent); }
.steps p { color: var(--muted); }

.layers > div { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding-block: 18px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .layers > div { grid-template-columns: 14rem minmax(0, 1fr); } }
.layers h3 { font-size: var(--s1); }
.layers p { color: var(--muted); }
.layers > div:last-child { border-bottom: 1px solid var(--rule); }

/* Tinted sections alternate with white ones: What we do, Contact. */
.tinted { background: var(--tint); }
.contact h2 { font-size: var(--s4); line-height: 1.06; }
.addr { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.addr .email { font-size: var(--s2); text-decoration: none; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.addr .email:hover { border-color: var(--orange); }
.copy { font: inherit; font-size: var(--s-1); color: var(--muted); background: none; border: 1px solid var(--rule); padding: 0.5em 0.9em; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--orange); }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px 36px; font-size: var(--s-1); color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .link, .copy { transition: background .2s, color .2s, border-color .2s; }
}
