/* ============================================================
   Ontacheble — risograph two-ink, vertical spine, marquee,
   full-bleed gallery, audio-visualizer bars, colour blocks.
   ============================================================ */

:root {
  --paper: #f7f5ea;
  --paper-2: #efece0;
  --ink-a: #ff48b0;
  --ink-b: #1f3fff;
  --ink-text: #14131a;
  --ink-mute: #55525e;
  --on-blue: #f7f5ea;
  --on-pink: #14131a;
  --accent: #c4007a;      /* readable pink on paper */
  --accent-on-blue: #ffd1ea; /* readable pink on royal blue */
  --mute-on-blue: #e6e3f5;
  --line: rgba(20, 19, 26, 0.16);
  --spine-w: 4.5rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 62rem;
  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-theme="dark"] {
  --paper: #14131a;
  --paper-2: #1c1b24;
  --ink-a: #ff5cbb;
  --ink-b: #6f86ff;
  --ink-text: #f2efe4;
  --ink-mute: #b3aec0;
  --on-blue: #0d0c12;
  --on-pink: #14131a;
  --accent: #ff5cbb;
  --accent-on-blue: #ffd1ea;
  --mute-on-blue: #e6e3f5;
  --line: rgba(242, 239, 228, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.2rem);
  line-height: 1.6;
  padding-left: var(--spine-w);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink-b);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-b);
  color: var(--on-blue);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- placeholders ---------- */
.ph {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink-mute);
  background: color-mix(in srgb, var(--ink-a) 16%, transparent);
  border-bottom: 2px dotted var(--ink-a);
  padding: 0 0.2em;
  text-decoration: none;
}
a.ph:hover { color: var(--ink-text); }

/* ---------- spine (vertical H1) ---------- */
.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--spine-w);
  margin: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-b);
  border-right: 2px solid var(--ink-text);
  pointer-events: none;
}

.spine__a,
.spine__b {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spine__a { color: var(--on-blue); }
.spine__b {
  position: absolute;
  color: var(--ink-a);
  transform: translate(3px, 3px);
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink-text);
}

.mark {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}
.mark__a { color: var(--accent); }
.mark__b {
  position: absolute;
  left: 3px;
  top: 2px;
  color: var(--ink-b);
  mix-blend-mode: multiply;
  opacity: 0.8;
}
html[data-theme="dark"] .mark__b { mix-blend-mode: screen; }
.mark__c { color: var(--ink-text); }

.nav {
  margin-left: auto;
  display: flex;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink-a); }

.theme {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 2px solid var(--ink-text);
  color: var(--ink-text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme:hover { background: var(--ink-text); color: var(--paper); }
.theme__icon { display: block; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }

.hero__inner {
  max-width: var(--maxw);
  padding: 0 var(--pad) clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.25rem;
}
.eyebrow--light { color: color-mix(in srgb, var(--on-blue) 72%, transparent); }
.eyebrow--dark { color: color-mix(in srgb, var(--on-pink) 70%, transparent); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
}
.hero__title span { display: block; }
.ink-a { color: var(--accent); }
.ink-b { color: var(--ink-b); }
.ink-pink { color: var(--accent-on-blue); }

/* misregister on the headline */
.hero__title .ink-b {
  position: relative;
  text-shadow: 3px 3px 0 color-mix(in srgb, var(--ink-a) 55%, transparent);
}
.hero__title .ink-a { color: var(--accent); }

/* ---------- visualizer ---------- */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink-text);
}
.viz__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  flex: 1;
}
.viz__bars i {
  display: block;
  flex: 1 1 auto;
  min-width: 3px;
  background: var(--ink-b);
  height: 20%;
  transform-origin: bottom;
  animation: pulse 1.6s ease-in-out infinite alternate;
}
.viz__bars i:nth-child(3n) { background: var(--ink-a); }
.viz__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

@keyframes pulse {
  from { height: 12%; }
  to { height: 100%; }
}

.hero__lede {
  max-width: 40ch;
  margin: 0 0 2rem;
  font-size: 1.15em;
  text-wrap: pretty;
}
.hero__lede strong { font-weight: 400; color: var(--ink-b); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.5rem;
  min-height: 44px;
  border: 2px solid var(--ink-text);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn--a { background: var(--ink-a); color: var(--on-pink); }
.btn--b { background: transparent; color: var(--ink-text); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink-b); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

/* ---------- full-bleed figures ---------- */
.bleed { margin: 0; }
.bleed img { width: 100%; height: auto; }
.bleed figcaption,
.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 0.7rem var(--pad);
  border-bottom: 2px solid var(--line);
}

/* captions that sit inside a coloured block */
.block--blue .bleed figcaption,
.block--blue .gallery figcaption {
  color: var(--mute-on-blue);
  border-bottom-color: color-mix(in srgb, var(--on-blue) 30%, transparent);
}
.block--blue .ph {
  color: var(--on-blue);
  background: color-mix(in srgb, var(--ink-a) 34%, transparent);
  border-bottom-color: var(--accent-on-blue);
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--ink-text);
  color: var(--paper);
  border-top: 2px solid var(--ink-text);
  border-bottom: 2px solid var(--ink-text);
  padding: 0.7rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scroll 34s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee__track .dot { color: var(--ink-a); font-size: 0.6em; }
html[data-theme="dark"] .marquee { background: #f2efe4; color: #14131a; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- colour blocks ---------- */
.block { padding: clamp(3rem, 8vw, 6.5rem) 0 0; }
.block__inner { max-width: var(--maxw); padding: 0 var(--pad) clamp(3rem, 7vw, 5.5rem); }
.block__inner--narrow { max-width: 46rem; }

.block--blue { background: var(--ink-b); color: var(--on-blue); }
.block--blue .h2 { color: var(--on-blue); }
.block--blue .note { color: color-mix(in srgb, var(--on-blue) 80%, transparent); }

.block--pink { background: var(--ink-a); color: var(--on-pink); }
.block--pink .h2--dark { color: var(--on-pink); }

.block--paper { background: var(--paper-2); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}

.lede { max-width: 46ch; margin: 0 0 2.5rem; text-wrap: pretty; }
.lede--light { color: color-mix(in srgb, var(--on-blue) 92%, transparent); }

/* ---------- product cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: color-mix(in srgb, var(--on-blue) 30%, transparent);
  border: 2px solid color-mix(in srgb, var(--on-blue) 45%, transparent);
  margin-bottom: 2rem;
}
.card {
  background: var(--ink-b);
  padding: 1.6rem 1.4rem;
}
.card h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--accent-on-blue);
}
.card p {
  margin: 0;
  font-size: 0.98em;
  color: color-mix(in srgb, var(--on-blue) 88%, transparent);
  text-wrap: pretty;
}

.note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: 1fr; }
.gallery__pair { display: grid; grid-template-columns: 1fr; }
.gallery__pair figure { margin: 0; }
.gallery__pair img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- services ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 2px solid var(--line);
}
.service:last-child { border-bottom: 2px solid var(--line); }
.service__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 0.35rem;
}
.service h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.service p { margin: 0; max-width: 52ch; text-wrap: pretty; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.step {
  border-top: 2px solid color-mix(in srgb, var(--on-pink) 40%, transparent);
  padding-top: 1rem;
}
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.step p { margin: 0; font-size: 0.98em; text-wrap: pretty; }

/* ---------- faq ---------- */
.faq {
  border-top: 2px solid var(--line);
  padding: 1.1rem 0;
}
.faq:last-of-type { border-bottom: 2px solid var(--line); }
.faq summary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  flex: none;
}
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0.8rem 0 0.4rem; max-width: 56ch; text-wrap: pretty; }

/* ---------- form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--on-blue) 85%, transparent);
}
.opt { opacity: 0.7; text-transform: none; letter-spacing: 0; }
.field input,
.field textarea {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  padding: 0.85rem 0.9rem;
  min-height: 44px;
  background: var(--on-blue);
  color: #14131a;
  border: 2px solid var(--on-blue);
  border-radius: 0;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--ink-a);
  outline-offset: 2px;
}
.field textarea { resize: vertical; }

.form__status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0.9rem 0 0;
  color: var(--on-blue);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.contact-list li { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.contact-list span:first-child {
  color: color-mix(in srgb, var(--on-blue) 65%, transparent);
  min-width: 7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  padding-top: 0.15rem;
}

/* ---------- footer ---------- */
.foot {
  background: var(--ink-text);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 4.5rem;
}
.foot__inner { max-width: var(--maxw); }
.foot__mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.foot .ink-a { color: var(--ink-a); }
.foot .ink-b { color: var(--ink-b); }
html[data-theme="dark"] .foot { background: #f2efe4; color: #14131a; }
html[data-theme="dark"] .foot .ink-a { color: #c4007a; }
html[data-theme="dark"] .foot .ink-b { color: #1f3fff; }
html[data-theme="dark"] .foot__line,
html[data-theme="dark"] .foot__copy { color: #3a3742; }
html[data-theme="dark"] .attribution a { color: #3a3742; }
.foot__line,
.foot__copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

/* attribution — must stay readable */
.attribution {
  position: static;
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 1;
}
.attribution a {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.attribution a:hover { color: var(--ink-a); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery__pair { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .service { grid-template-columns: 4rem 1fr; }
}

@media (max-width: 719px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .theme { margin-left: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .viz__bars i { animation: none; height: 40%; }
  .viz__bars i:nth-child(2n) { height: 70%; }
  .viz__bars i:nth-child(3n) { height: 55%; }
  .btn:hover { transform: none; box-shadow: none; }
}
