/* ==========================================================================
   HDco — Ideas Media Creative
   Design system + site stylesheet
   ========================================================================== */

/* --- Fonts (self-hosted — no requests leave this site) -------------------- */
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Ink and paper */
  --ink: #101318;
  --ink-2: #1b2027;
  --ink-3: #2a3038;
  --paper: #ffffff;
  --paper-warm: #f6f4f0;
  --paper-cool: #f1f2f4;
  --text: #24282e;
  --muted: #5f646c;
  --muted-2: #686d75;
  --muted-dark: #a9afb8;
  --field-border: #8b9099;
  --rule: #e3e0da;
  --rule-strong: #d3cfc7;

  /* Petal palette, taken from the mark */
  --crimson: #d2266e;
  --red: #e8402a;
  --orange: #f0731e;
  --amber: #f5a81b;
  --yellow: #f7c728;
  --sky: #3fa9e2;
  --blue: #1670be;
  --silver: #c3c7cd;

  /* Page accent — each page sets its own, blue is the default.
     --accent is for decoration; --accent-deep is the text and button
     variant, dark enough to clear 4.5:1 on white. */
  --accent: var(--blue);
  --accent-deep: #125f9f;

  /* Type */
  --display: "Jost", "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Rhythm */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Each page carries its own accent, pulled from the logo */
body[data-page="books"] { --accent: var(--crimson); --accent-deep: #a3184f; }
body[data-page="signage"] { --accent: var(--blue); --accent-deep: #125f9f; }
body[data-page="production"] { --accent: var(--orange); --accent-deep: #a84a08; }
body[data-page="work"] { --accent: var(--red); --accent-deep: #a82a18; }
body[data-page="about"] { --accent: var(--sky); --accent-deep: #12688f; }
body[data-page="contact"] { --accent: var(--crimson); --accent-deep: #a3184f; }
body[data-page="legal"] { --accent: var(--blue); --accent-deep: #125f9f; }

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(0.975rem, 0.35vw + 0.9rem, 1.05rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

/* On ink and colour panels the deep accent disappears, so the ring goes white */
.section--ink :focus-visible,
.band :focus-visible,
.case__panel :focus-visible,
.work-card:focus-visible,
.cta :focus-visible,
.site-footer :focus-visible,
.consent :focus-visible {
  outline-color: #ffffff;
}

/* --- Type ----------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.15rem, 1.2vw + 0.95rem, 1.45rem);
  line-height: 1.28;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 0.35em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration: underline; }

strong { font-weight: 600; color: var(--ink); }

.lede {
  font-size: clamp(1.06rem, 0.55vw + 0.95rem, 1.24rem);
  line-height: 1.62;
  color: #3e444c;
  max-width: 46ch;
}

.prose { max-width: 62ch; }
.prose p { color: #3e444c; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--accent);
  flex: none;
}

.eyebrow__index { color: var(--muted-2); }

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--warm { background: var(--paper-warm); }
.section--cool { background: var(--paper-cool); }
.section--ink { background: var(--ink); color: #b9bec6; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .lede, .section--ink .prose p { color: #a9afb8; }
.section--ink .eyebrow { color: var(--muted-dark); }
.section--flush-top { padding-top: 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head h2 { margin-bottom: 0; }
.section__head .lede { margin-bottom: 0.25rem; }

.stack > * + * { margin-top: var(--stack-gap, 1.5rem); }

/* --- Header --------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(16, 19, 24, 0.55); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(0.7rem, 1.4vw, 1.05rem);
}

.brand { display: inline-flex; flex: none; }
.brand img { width: clamp(132px, 14vw, 176px); height: auto; display: block; }

.nav { display: flex; align-items: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--ink);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__link:hover { text-decoration: none; border-bottom-color: var(--ink); }

.nav__link.is-current { border-bottom-color: var(--accent); }

.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle__bars { top: 50%; margin-top: -0.75px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* The colour strip that runs under the header and over the footer */
.colour-strip { display: flex; height: 4px; }
.colour-strip span { flex: 1; }
.colour-strip span:nth-child(1) { background: var(--crimson); }
.colour-strip span:nth-child(2) { background: var(--red); }
.colour-strip span:nth-child(3) { background: var(--orange); }
.colour-strip span:nth-child(4) { background: var(--amber); }
.colour-strip span:nth-child(5) { background: var(--yellow); }
.colour-strip span:nth-child(6) { background: var(--sky); }
.colour-strip span:nth-child(7) { background: var(--blue); }
.colour-strip span:nth-child(8) { background: var(--silver); }
.colour-strip span:nth-child(9) { background: var(--ink); }

/* on the ink footer the black swatch would disappear, so it lightens there */
.site-footer .colour-strip span:nth-child(9) { background: #4a515b; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.92rem 1.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { text-decoration: none; background: var(--ink); color: #fff; }

.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn--small { padding: 0.68rem 1.05rem; font-size: 0.88rem; }

.btn--light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.link-arrow {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.card .link-arrow { color: var(--ink); }

.link-arrow:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* --- Page head (inner pages) --------------------------------------------- */
.page-head { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }

.page-head--rule { border-bottom: 1px solid var(--rule); }

.page-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.page-head h1 { margin-bottom: 0; }

/* --- Hero (home) ---------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); }
.hero__lede { margin-bottom: 2rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Capability list ------------------------------------------------------ */
.cap-list { border-top: 1px solid var(--rule-strong); }

.cap {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--rule);
}

.cap::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.6);
  background: var(--paper-warm);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.cap:hover::before { opacity: 1; }

.cap__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-top: 0.45rem;
}

.cap__title h3 { margin-bottom: 0.35rem; }
.cap__title p { color: var(--muted); font-size: 0.94rem; }

.cap__body p { color: #3e444c; }
.cap__body p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.15rem; list-style: none; padding: 0; }

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.32rem 0.6rem;
  white-space: nowrap;
}

/* --- Figures -------------------------------------------------------------- */
.figure { margin: 0; position: relative; }

.figure__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-cool);
}

.figure__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.figure:hover .figure__media img { transform: scale(1.02); }

.figure--wide .figure__media { aspect-ratio: 16 / 10; }
.figure--photo .figure__media { aspect-ratio: 3 / 2; }
.figure--portrait .figure__media { aspect-ratio: 4 / 5; }
.figure--tall .figure__media { aspect-ratio: 5 / 7; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--free .figure__media { aspect-ratio: auto; }

.figure__caption {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
}

.figure__caption::before {
  content: "—";
  color: var(--accent);
  flex: none;
}

/* corner registration marks */
.figure--marked .figure__media::before,
.figure--marked .figure__media::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 2;
}

.figure--marked .figure__media::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.9);
}

.figure--marked .figure__media::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.9);
}

/* --- Split ----------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.split--top { align-items: start; }
.split__media--flip { order: -1; }

.split--wider-media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split--wider-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

/* --- Band ------------------------------------------------------------------ */
.band { position: relative; background: var(--ink); }

.band__media { position: relative; }
.band__media img {
  display: block;
  width: 100%;
  height: clamp(320px, 44vw, 600px);
  object-fit: cover;
  opacity: 0.92;
}

.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 19, 24, 0.15) 0%, rgba(16, 19, 24, 0.72) 100%);
}

.band__media .wrap { position: absolute; inset: 0; z-index: 2; }

.band__card {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 3rem);
  max-width: 560px;
  background: rgba(16, 19, 24, 0.94);
  border-left: 3px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: #b9bec6;
}

.band__card h2, .band__card h3 { color: #fff; margin-bottom: 0.5rem; }
.band__card p { margin-bottom: 0; font-size: 0.98rem; }

.band__caption {
  padding-block: 0.9rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.band__card .link-arrow {
  display: inline-block;
  margin-top: 1.1rem;
  color: #eef0f3;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.band__card .link-arrow:hover { border-bottom-color: #fff; }

/* --- Case studies --------------------------------------------------------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-top: 1px solid var(--rule-strong);
}

.case + .case { margin-top: clamp(3rem, 6vw, 5rem); }

.case__panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  min-height: clamp(20rem, 32vw, 27rem);
}

.case__panel::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -14%;
  width: 62%;
  aspect-ratio: 727 / 301;
  background: url("../img/hdco-mark.png") no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
}

.case--crimson .case__panel { background: #b01d5c; }
.case--blue .case__panel { background: #125f9f; }

.case__panel-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  z-index: 1;
}

.case__panel-name {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
}

.case__detail {
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
}

.case__detail h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.case__detail > p { color: #3e444c; max-width: 52ch; }

/* --- Work cards (home) ---------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.work-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: clamp(19rem, 26vw, 24rem);
  padding: clamp(1.6rem, 2.8vw, 2.35rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.work-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 26px 40px -34px rgba(16, 19, 24, 0.8);
}

.work-card::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 66%;
  aspect-ratio: 727 / 301;
  background: url("../img/hdco-mark.png") no-repeat center / contain;
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
}

.work-card:hover::after { opacity: 0.26; transform: translateY(-6px); }

.work-card--crimson { background: #b01d5c; }
.work-card--blue { background: #125f9f; }

.work-card__meta,
.work-card__name,
.work-card__scope,
.work-card__link { position: relative; z-index: 1; }

.work-card__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.work-card__name {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
}

.work-card__scope { margin-top: auto; font-size: 0.95rem; }

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--display);
  font-size: 0.95rem;
  color: #fff;
}

.work-card:hover .work-card__link span { transform: translateX(4px); }
.work-card__link span { transition: transform 0.25s var(--ease); }

/* --- Scope / spec list ---------------------------------------------------- */
.spec { margin-top: 1.75rem; border-top: 1px solid var(--rule); }

.spec__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.spec__key {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 0.25rem;
}

.spec__val { font-size: 0.96rem; color: var(--ink); }
.spec__val ul { margin: 0; padding: 0; list-style: none; }
.spec__val li + li { margin-top: 0.2rem; }

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.step {
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1.1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--rule);
}

.step:first-child { border-left: 0; padding-left: 0; }

.step__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 0.9rem;
}

.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0; }

/* --- Tick lists ----------------------------------------------------------- */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem clamp(1.5rem, 4vw, 3rem);
}

.ticks li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.97rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.ticks--single { grid-template-columns: minmax(0, 1fr); }

/* --- Definition cards (facility / capabilities) --------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.card {
  background: var(--paper);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}

.card h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 0; }

.card__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

/* --- Client list ---------------------------------------------------------- */
.clients { border-top: 1px solid var(--rule-strong); }

.clients__row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  border-bottom: 1px solid var(--rule);
}

.clients__name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.clients__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.clients__scope { font-size: 0.96rem; color: #3e444c; margin: 0; }

/* --- Palette swatches ----------------------------------------------------- */
.swatches {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.swatch { border-left: 1px solid var(--rule); }
.swatch:first-child { border-left: 0; }

.swatch__chip { display: block; height: clamp(2.5rem, 6vw, 4.5rem); }

.swatch__label {
  padding: 0.75rem 0.7rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.5;
  word-break: break-all;
}

.swatch__label b { display: block; color: var(--ink); font-weight: 500; }

/* --- Gallery -------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.gallery--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- CTA band ------------------------------------------------------------- */
.cta {
  background: var(--ink);
  color: #b9bec6;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta h2 { color: #fff; margin-bottom: 0.6rem; }
.cta p { max-width: 44ch; margin-bottom: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 1.35rem; }

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .req { color: var(--crimson); }

.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea { resize: vertical; min-height: 8.5rem; }

.field select { appearance: none; background-image: none; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(22, 112, 190, 0.16);
}

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--crimson); }

.field__error { font-size: 0.82rem; color: var(--crimson); min-height: 1.1em; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.form__note { font-size: 0.85rem; color: var(--muted); margin: 0; max-width: 40ch; }

/* Consent checkboxes: body type, not the mono field labels */
.field--check { gap: 0.35rem; }

.field .check__label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  color: #3e444c;
  cursor: pointer;
}

.check__label input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  accent-color: var(--accent-deep);
  flex: none;
}

.check__label a { text-decoration: underline; text-decoration-color: var(--field-border); }
.check__label a:hover { text-decoration-color: var(--ink); }

.field--check .field__error { margin-left: 1.85rem; }
.field--check.has-error .check__label input { outline: 2px solid var(--crimson); outline-offset: 2px; }

.form__status {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  font-size: 0.92rem;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #a9afb8; }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.9fr)) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__logo { display: flex; align-items: center; }
.footer__logo img { display: block; width: min(300px, 100%); height: auto; }

.footer__tagline {
  margin: 1.25rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: #fff;
  letter-spacing: -0.01em;
}

.footer__note { margin-top: 1rem; font-size: 0.92rem; max-width: 34ch; }

.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}

.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.94rem; }
.footer__list a { color: #d7dae0; }
.footer__list a:hover { color: #fff; }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.86rem;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.footer__legal a,
.footer__legal button { color: #cfd3d9; }

.footer__legal a:hover,
.footer__legal button:hover { color: #fff; }

.footer__legal [data-cookie-settings] {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  text-decoration: none;
}

.footer__legal [data-cookie-settings]:hover {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

/* Leave room under the footer so the fixed notice never covers its controls */
body.has-consent .site-footer { padding-bottom: 20rem; }

.footer__legal button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__business {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted-dark);
}

.footer__bottom {
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

/* --- Reveal on scroll ----------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Utilities ------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-m { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.mono-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}

/* --- Legal pages ---------------------------------------------------------- */
.legal { max-width: 72ch; }

.legal__updated {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: clamp(1.35rem, 1vw + 1.05rem, 1.75rem);
  margin-top: 2.9rem;
  scroll-margin-top: 7rem;
}

.legal h3 {
  font-size: 1.08rem;
  margin-top: 1.9rem;
}

.legal p,
.legal li { color: #3e444c; }

.legal code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-cool);
  padding: 0.12em 0.35em;
  word-break: break-word;
}

.legal ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal li::marker { color: var(--accent-deep); }

.legal__note {
  border-left: 3px solid var(--accent);
  background: var(--paper-warm);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

.legal__note p:last-child { margin-bottom: 0; }

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 0 0 2.5rem;
  padding: 0.95rem 0 1.1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
}

.legal__toc a { text-decoration: underline; text-decoration-color: var(--rule-strong); }
.legal__toc a:hover { text-decoration-color: var(--ink); }

.legal__foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

.legal__foot a { text-decoration: underline; text-decoration-color: var(--rule-strong); }
.legal__foot a:hover { text-decoration-color: var(--ink); }

/* --- Cookie notice -------------------------------------------------------- */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 90;
  width: min(26rem, calc(100vw - (var(--gutter) * 2)));
  max-height: 70vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--accent-deep);
  box-shadow: 0 22px 55px -30px rgba(16, 19, 24, 0.55);
  padding: 1.15rem 1.25rem 1.25rem;
}

.consent[hidden] { display: none; }

.consent__title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.consent p {
  font-size: 0.89rem;
  line-height: 1.6;
  color: #3e444c;
  margin-bottom: 0.95rem;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.15rem;
}

.consent__link {
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.consent__forget {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}

.consent__forget-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--body);
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}

.consent__status {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.consent__status[hidden] { display: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 6.5rem var(--gutter) 2.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 50px -30px rgba(16, 19, 24, 0.5);
    display: none;
  }

  .nav.is-open { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__list li { border-bottom: 1px solid var(--rule); }

  .nav__link {
    display: block;
    padding-block: 1.05rem;
    font-size: 1.35rem;
    border-bottom: 0;
  }

  .nav-cta { border-bottom: 0 !important; padding-top: 1.5rem; margin-left: 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .hero__grid, .split, .split--wider-media, .split--wider-text,
  .section__head, .page-head__grid, .cta__grid, .case {
    grid-template-columns: minmax(0, 1fr);
  }

  .split__media--flip { order: 0; }

  .section__head { align-items: start; gap: 1.25rem; }

  .cap { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .cap__body { grid-column: 2 / -1; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-top: 1px solid var(--rule); }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step:nth-child(-n+2) { border-top: 0; }

  .card-grid, .gallery, .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case__detail { padding-left: 0; }
  .cta__actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .swatch:nth-child(3n + 1) { border-left: 0; }
  .swatch:nth-child(n + 4) { border-top: 1px solid var(--rule); }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .card-grid, .gallery, .gallery--two, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .clients__row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .band__media img { height: 60vw; min-height: 280px; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { border-left: 0; padding-left: 0; }
  .step:nth-child(2) { border-top: 1px solid var(--rule); }
  .btn { width: 100%; justify-content: center; }
  .actions .btn, .cta__actions .btn, .form__foot .btn { width: 100%; }
  .actions, .cta__actions { gap: 0.6rem; }
  .consent { left: 0; right: 0; bottom: 0; width: auto; border-left: 0; border-right: 0; border-bottom: 0; max-height: 55vh; }
  .consent__actions .btn { width: auto; }
}

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .figure:hover .figure__media img { transform: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .cta, .site-footer, .nav-toggle, .figure__caption, .consent, .footer__legal, .legal__toc { display: none; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1.5rem; }
  a { text-decoration: underline; }
}
