/* Catalyst Communications
   Paper, ink, and one loud colour.
   No build step, no JavaScript. */

/* ── Fonts (vendored, latin subset, SIL OFL: see fonts/) ── */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
}

:root {
  --ink: #0b0b0a;
  --paper: #ece7dc;
  --ash: #8d887c;
  --spark: #ff3b14;

  --display: "Anton", "Haettenschweiler", "Impact", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(1rem, 3vw, 2.75rem);
  --section: clamp(5rem, 13vw, 12rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.5rem);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--spark); color: var(--ink); }

:focus-visible { outline: 2px solid var(--spark); outline-offset: 4px; }

.skip {
  position: absolute;
  left: -100vw;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.skip:focus { left: var(--gutter); top: 4rem; z-index: 20; background: var(--paper); padding: 0.5rem; }

/* ── Small type ─────────────────────────────── */

.label,
.bar,
.hero__meta,
.foot,
.services__n,
.steps__n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.label { color: var(--ash); margin-bottom: clamp(2rem, 5vw, 4rem); }

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.25rem, 11.5vw, 12rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.display em {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--spark);
}

/* ── Top bar ────────────────────────────────── */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  color: #fff;
  mix-blend-mode: difference;
}
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.bar__mark { font-weight: 500; }
.bar__mark sup { font-size: 0.6em; }
.bar__nav { display: flex; gap: clamp(0.75rem, 2.2vw, 2rem); }

@media (max-width: 40rem) {
  .bar__nav a:not(:last-child) { display: none; }
}

/* ── Photos ─────────────────────────────────── */

.shot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 78% 18%, #3a3631 0%, transparent 60%),
    radial-gradient(90% 80% at 12% 92%, #2a211d 0%, transparent 65%),
    #141312;
  color: var(--paper);
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot--portrait  { aspect-ratio: 4 / 5; }
.shot--square    { aspect-ratio: 1 / 1; }
.shot--landscape { aspect-ratio: 3 / 2; }
.shot--bleed     { aspect-ratio: 21 / 9; min-height: 24rem; width: 100%; }

/* ── Hero ───────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 0 var(--gutter) var(--gutter);
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero__shot { position: absolute; inset: 0; }
.hero__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 10 / 0.85) 0%, rgb(11 11 10 / 0) 55%);
  pointer-events: none;
}
.hero__meta,
.hero__title,
.hero__line { position: relative; z-index: 1; }

.hero__meta {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(236 231 220 / 0.35);
}
.hero__title {
  grid-row: 3;
  display: grid;
  font-weight: 400;
  line-height: 0.8;
}
.hero__word {
  font-family: var(--display);
  font-size: clamp(5rem, 27.5vw, 34rem);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-left: -0.04em;
  padding-top: 0.12em;
}
.hero__sub {
  justify-self: end;
  margin-top: -0.42em;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.25rem, 10vw, 12rem);
  letter-spacing: -0.035em;
  color: var(--spark);
  line-height: 1;
}
.hero__line {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ── Sections ───────────────────────────────── */

.manifesto,
.practice,
.company,
.method { padding: var(--section) var(--gutter); }

/* Manifesto */

.manifesto {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(2rem, 5vw, 4rem);
}
.manifesto .label { grid-column: 1 / -1; margin-bottom: 0; }
.manifesto__body { grid-column: 1 / span 8; }
.manifesto__lede {
  font-size: clamp(2.1rem, 5.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.manifesto__lede em { color: var(--spark); }
.manifesto__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: clamp(2.5rem, 6vw, 5rem);
  max-width: 46rem;
}
.creed {
  counter-reset: creed;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  max-width: 46rem;
  border-top: 1px solid var(--ink);
}
.creed li {
  counter-increment: creed;
  display: grid;
  grid-template-columns: 3rem 1fr;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
}
.creed li::before {
  content: counter(creed, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--spark);
}
.manifesto__shot {
  grid-column: 9 / -1;
  align-self: end;
  transform: translateY(clamp(2rem, 9vw, 9rem));
}

/* Practice */

.practice { background: var(--ink); color: var(--paper); }
.services { margin-top: clamp(3rem, 8vw, 7rem); border-top: 1px solid rgb(236 231 220 / 0.3); }
.services li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 6fr);
  align-items: baseline;
  column-gap: var(--gutter);
  padding: clamp(1.25rem, 2.6vw, 2.25rem) 0;
  border-bottom: 1px solid rgb(236 231 220 / 0.3);
  transition: color 0.25s, padding 0.25s;
}
.services li:hover { color: var(--spark); padding-left: 1rem; }
.services__n { color: var(--ash); }
.services h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.services p { max-width: 30em; }

/* Company */

.company .display { margin-bottom: clamp(3rem, 8vw, 7rem); }
.company__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.kind--a { grid-column: 1 / span 5; }
.kind--b { grid-column: 8 / span 4; margin-top: clamp(4rem, 14vw, 14rem); }
.kind--c { grid-column: 3 / span 4; }
.kind--d { grid-column: 7 / span 6; margin-top: clamp(3rem, 9vw, 9rem); }
.kind h3 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}
.kind p { margin-top: 0.5rem; max-width: 26em; }

/* Method */

.method { border-top: 1px solid var(--ink); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.steps li { border-top: 1px solid var(--ink); padding-top: 1rem; }
.steps__n { color: var(--spark); font-size: 0.85rem; text-transform: none; }
.steps h3 {
  margin: clamp(2rem, 6vw, 5rem) 0 0.75rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 9.5rem);
  line-height: 0.85;
  text-transform: uppercase;
}
.steps p { max-width: 22em; }
.method__shot { margin: var(--section) 0 0 auto; width: min(100%, 62rem); }

/* Contact */

.contact {
  background: var(--spark);
  color: var(--ink);
  padding-top: var(--section);
}
.contact .label { color: var(--ink); padding: 0 var(--gutter); }
.contact__ask {
  padding: 0 var(--gutter);
  max-width: 14em;
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.contact__mail {
  display: block;
  margin: clamp(2.5rem, 7vw, 6rem) 0 var(--section);
  padding: 0 var(--gutter);
  font-family: var(--display);
  font-size: clamp(1.6rem, 5.6vw, 6.5rem);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--paper); }

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--spark); }

/* ── Narrow screens ─────────────────────────── */

@media (max-width: 52rem) {
  .manifesto__body,
  .manifesto__shot { grid-column: 1 / -1; }
  .manifesto__shot { transform: none; width: 80%; justify-self: end; }
  .manifesto__cols { grid-template-columns: 1fr; }

  .services li { grid-template-columns: 2rem 1fr; }
  .services p { grid-column: 2; margin-top: 0.5rem; }

  .kind--a { grid-column: 1 / span 10; }
  .kind--b { grid-column: 4 / -1; margin-top: 0; }
  .kind--c { grid-column: 1 / span 9; }
  .kind--d { grid-column: 1 / -1; margin-top: 0; }

  .steps { grid-template-columns: 1fr; }
  .shot--bleed { aspect-ratio: 4 / 5; }
  .hero__line { display: none; }
}

/* ── Motion: scroll reveals where supported ─── */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .display,
    .manifesto__lede,
    .services li,
    .kind,
    .steps li,
    .contact__ask {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes rise {
      from { opacity: 0; translate: 0 2.5rem; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
