@font-face { font-family: 'Minimolo'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/InterDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Minimolo'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/InterDisplay-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Minimolo'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/InterDisplay-Medium.woff2') format('woff2'); }
/* Minimolo — shared styles. Light ground, black sans, single vermilion accent. */
@font-face {
  font-family: 'Minimolo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/InterDisplay-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Minimolo';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/InterDisplay-Black.woff2') format('woff2');
}

:root {
  --bg: #F2F2ED;
  --ink: #111111;
  --accent: #EC3C22;
  --muted: #4D4D48;
  --field: #FBFBF8;
  /* Local web fonts keep typography consistent across devices. */
  --display: 'Minimolo', 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --text: 'Minimolo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 3.2vw, 48px);
  --max: 1560px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); }
h1 {
  max-width: 20ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  word-spacing: .04em;
}
h2 { margin-bottom: 1.25rem; font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; word-spacing: .04em; }
h3 { margin-bottom: .5rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }
strong { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.read { max-width: 68ch; }
.wrap.read { margin-left: max(var(--gutter), (100% - var(--max)) / 2); margin-right: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  top: -6rem;
  left: 1rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--ink);
}
.brand { display: inline-flex; align-items: center; flex: none; min-height: 48px; text-decoration: none; }
.brand img { width: 124px; height: auto; }
.nav-note { margin: 0; font-size: .8125rem; font-weight: 500; }
.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin-left: auto;
}
.menu a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.menu a:hover, .menu a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Buttons: vermilion with black text (about 4.7:1) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .8rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--ink);
  font: 600 1rem/1.2 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.button:focus-visible { outline-color: var(--ink); }
.header-cta { min-height: 40px; padding: .5rem 1rem; font-size: .875rem; }

/* Labels and section heads */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font: 600 .75rem/1.3 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.sec-head .eyebrow { flex: 1; margin: 0; }
.sec-meta {
  margin: 0;
  color: var(--muted);
  font: 600 .75rem/1.3 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; }
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }

/* Inner-page sections: a black rule over each block */
.section { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.section > .wrap { padding-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--ink); }
.section h2 { max-width: 24ch; }

/* Legacy service grid */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.service {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.6rem 1rem 1.6rem 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
}
.service h3 { margin: 0 0 .5rem; }
.service p { max-width: 48ch; margin: 0; }
.num { font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { padding-top: .75rem; border-top: 1px solid var(--ink); counter-increment: step; }
.steps li::before {
  display: block;
  margin-bottom: .75rem;
  font-size: .875rem;
  font-weight: 700;
  content: counter(step, decimal-leading-zero);
}

/* Service pages */
.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.service-hero h1 { max-width: 18ch; }
.deliverables { align-self: start; padding-top: 1rem; border-top: 3px solid var(--accent); }
.deliverables h2 { margin: 0 0 .75rem; font-size: clamp(1.375rem, 2vw, 1.75rem); }
.deliverables ol { margin: 0; padding: 0; list-style: none; counter-reset: deliverable; }
.deliverables li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--ink);
  counter-increment: deliverable;
}
.deliverables li::before {
  content: counter(deliverable, decimal-leading-zero);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}
.timeline { margin: 0; padding: 0; list-style: none; counter-reset: tl; }
.timeline li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .5rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, .25);
  counter-increment: tl;
}
.timeline li::before {
  content: counter(tl, decimal-leading-zero);
  font-size: .875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.85;
}
.timeline li:last-child { border-bottom: 0; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin: .5rem 0; }
.plain-list li::marker { color: var(--accent); }
.read h2 + p, .read h2 + ul { margin-top: 0; }
.read p + h2 { margin-top: 2.5rem; }

.faq details { padding: 0; border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: .75rem 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.75rem/1 var(--display); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 1.1rem; max-width: 62ch; }

.related { display: flex; flex-wrap: wrap; gap: .6rem; }
.related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
}
.related a:hover { background: var(--ink); color: var(--bg); }

/* Closing: heavy multi-word headline. Tight letters, open word gaps. */
.closing { padding: 0 0 clamp(3.5rem, 7vw, 6rem); }
.closing > .wrap { padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--ink); }
.closing h2 {
  max-width: 18ch;
  margin-bottom: 1.75rem;
  font-weight: 900;
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  word-spacing: .1em;
}

/* Forms */
.form, .contact-form { display: grid; gap: 1.4rem; max-width: 46rem; margin-top: 2rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field textarea { min-height: 11rem; resize: vertical; }
.help { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: .85rem; line-height: 1.5; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: .15rem 0 0; accent-color: var(--ink); }
.hp { display: none; }
.submit { width: 100%; }

/* Footer */
footer { padding: 0 0 2.5rem; }
footer > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { text-decoration: underline; }
footer p { margin: 0; font-size: .875rem; font-weight: 600; }

/* ---------- Home ---------- */
.mark-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(.5rem, 1.4vw, 1rem) 0 clamp(.5rem, 1.2vw, 1rem);
}
.wordmark { width: 100%; height: auto; overflow: visible; }
.mark-note {
  margin: 0 0 .9rem;
  font: 600 .75rem/1.55 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mark-note::after { content: ""; display: block; width: 1rem; height: 1px; margin-top: .6rem; background: var(--ink); }

/* Triptych: paper wide, vermilion geometry narrow, fibre medium; one shared height (about 0.35 of the width). */
.triptych {
  display: grid;
  grid-template-columns: 52fr 18fr 30fr;
  height: clamp(300px, 32.5vw, 500px);
}
.tri { position: relative; min-width: 0; margin: 0; overflow: hidden; }
.tri img { width: 100%; height: 100%; object-fit: cover; }
.tri-paper img { object-position: 50% 45%; }
.tri-fiber img { object-position: 70% 50%; }
.tri-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, .66) 0, rgba(17, 17, 17, 0) 42%);
  pointer-events: none;
}
.tag {
  position: absolute;
  top: clamp(.75rem, 1.4vw, 1.25rem);
  left: clamp(.75rem, 1.4vw, 1.25rem);
  z-index: 1;
  margin: 0;
  color: #fff;
  font: 600 .75rem/1.45 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.tag > span { display: block; }
.tag > span::after { content: ""; display: block; width: .9rem; height: 1px; margin: .45rem 0; background: currentColor; }
.tag > .geo-label-text::after { content: none; }
/* Keep the fibre label in a narrow column in the top-left corner, clear of the red stitch. */
.tri-fiber .tag { max-width: 10em; }

.tri-geo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  background: var(--accent);
}
.geo-cell {
  display: grid;
  place-items: center;
  min-height: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.geo-cell:nth-child(2n) { border-right: 0; }
.geo-cell:nth-child(n+5) { border-bottom: 0; }
.geo-cell svg { width: min(62%, 96px); height: auto; max-height: 76%; }
.geo-cell.is-label { place-items: start; padding: clamp(.75rem, 1.4vw, 1.25rem); }
.tri-geo .tag { position: static; color: var(--ink); }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem) auto;
  align-items: center;
  gap: 1.5rem clamp(2rem, 4vw, 4rem);
  padding: clamp(1.5rem, 2.6vw, 2.5rem) 0 clamp(1.25rem, 2vw, 1.75rem);
}
.home-hero h1 { max-width: none; margin: 0; font-size: clamp(2.25rem, 3.9vw, 4rem); line-height: 1.02; }
.hero-lead { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block: 0;
  color: var(--muted);
  font-size: .8125rem;
}
.hero-meta::after { content: ""; flex: 1; height: 1px; background: var(--ink); }

.block { padding-top: clamp(4rem, 8vw, 7.5rem); }
.h-xl { max-width: none; margin-bottom: 1rem; font-size: clamp(2.25rem, 4.5vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; word-spacing: .05em; }
.block-intro { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

.svc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: clamp(3rem, 7vw, 7rem) minmax(0, 1.05fr) minmax(0, 1.35fr) 3rem;
  align-items: start;
  gap: 1rem clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.25rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid var(--ink);
}
.svc-num { margin: 0; padding-top: .5rem; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc-num::after { content: ""; display: block; width: .9rem; height: 1px; margin-top: .5rem; background: var(--ink); }
.svc-row h3 { margin: 0; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
.svc-body p { margin: .35rem 0 .5rem; }
.svc-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.svc-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.svc-links a:hover { text-decoration-color: var(--ink); }
.svc-arrow { justify-self: end; width: 40px; margin-top: .9rem; transition: transform .25s ease; }
.svc-arrow path { stroke: var(--ink); transition: stroke .25s ease; }
.svc-row:has(a:hover) .svc-arrow, .svc-row:has(a:focus-visible) .svc-arrow { transform: translateX(6px); }
.svc-row:has(a:hover) .svc-arrow path, .svc-row:has(a:focus-visible) .svc-arrow path { stroke: var(--accent); }

.lab-grid { display: grid; grid-template-columns: 65fr 35fr; gap: clamp(.5rem, 1vw, .75rem); }
.lab-item { min-width: 0; margin: 0; }
.lab-media { position: relative; height: clamp(380px, 40vw, 600px); overflow: hidden; }
.lab-paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 80%;
  transform: scale(1.4);
  transform-origin: 46% 80%;
}
.lab-form .lab-media { background: var(--accent); }
.lab-form svg { width: 100%; height: 100%; }
.lab-media .tag h3 {
  margin: 0;
  color: inherit;
  font: 600 .9375rem/1.4 var(--text);
  letter-spacing: .02em;
  text-transform: none;
}
.lab-form .tag { color: var(--ink); }
.lab-note { max-width: 46ch; margin: .8rem 0 0; color: var(--muted); font-size: .9375rem; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding: 0; list-style: none; }
.steps3 li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); padding: .5rem clamp(1rem, 2.5vw, 2.5rem) .75rem 0; }
.steps3 li + li { padding-left: clamp(1rem, 2.5vw, 2.5rem); border-left: 1px solid var(--ink); }
.steps3 .svc-num { padding-top: .35rem; }
.steps3 h3 { margin: 0 0 .4rem; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.025em; }
.steps3 p { margin: 0; }

.closing.home-close { padding-top: clamp(4rem, 8vw, 7.5rem); }
.home-close > .wrap { padding-top: 0; border-top: 0; }
.close-grid { display: grid; grid-template-columns: auto minmax(4rem, 1fr) auto; align-items: center; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); }
.home-close h2 { max-width: none; margin: 0; font-size: clamp(2.5rem, 6.2vw, 6.25rem); line-height: 1; letter-spacing: -.03em; word-spacing: .1em; }
.close-arrow { justify-self: center; width: 100%; max-width: 170px; height: auto; }
.close-grid .button { min-height: 60px; padding-inline: 1.8rem; font-size: 1.125rem; }
.close-sub { margin: 1.25rem 0 0; font-size: 1.125rem; }

.home-footer > .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.home-footer .foot-logo img { width: 110px; height: auto; }
.home-footer .foot-logo { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.home-footer .foot-mid { font-weight: 500; }
.home-footer .foot-links { justify-self: end; gap: 0 .5rem; }
.home-footer .foot-links .sep { margin-right: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .home-hero h1 { grid-column: 1 / -1; }
  .tri-geo .tag { padding: .25rem; font-size: .75rem; line-height: 1.1; letter-spacing: 0; }
  .tri-geo .tag > span::after { margin: .15rem 0; }
  .tri-geo .tag > .geo-label-text { display: block; }
  .close-grid { grid-template-columns: minmax(3rem, 1fr) auto; }
  .home-close h2 { grid-column: 1 / -1; }
  .close-arrow { justify-self: start; }
}
@media (max-width: 760px) {
  .site-header .header-cta { order: 2; margin-left: auto; }
  .menu { order: 3; flex-basis: 100%; gap: 0 1.25rem; margin-left: 0; }
  .home-header .menu { justify-content: space-between; gap: 0 .9rem; }
  .home-header .nav-note { display: none; }
  .service-grid, .service-hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; }
  .steps li::before { margin: 0; }
  .hero { padding-top: 2.5rem; }

  .mark-row { grid-template-columns: 1fr; padding-top: 1rem; }
  .mark-note { display: none; }
  .triptych { grid-template-columns: 42fr 58fr; grid-template-rows: auto clamp(170px, 50vw, 260px); height: auto; }
  .tri-paper { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .tri-geo { grid-row: 2; }
  .home-hero { grid-template-columns: 1fr; gap: 1rem; padding-top: 1.75rem; }
  .home-hero .button { width: 100%; margin-top: .5rem; }

  .svc-row { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .25rem 1rem; }
  .svc-row h3 { grid-column: 2; }
  .svc-body { grid-column: 2; }
  .svc-arrow { display: none; }

  .lab-grid { grid-template-columns: 1fr; gap: 2rem; }
  .lab-media { height: auto; aspect-ratio: 4 / 3; }
  .lab-form .lab-media { aspect-ratio: 4 / 5; }

  .steps3 { grid-template-columns: 1fr; }
  .steps3 li, .steps3 li + li { padding: 1.25rem 0; border-left: 0; border-top: 1px solid var(--ink); }

  .close-grid { grid-template-columns: 1fr; }
  .close-arrow { display: none; }
  .close-grid .button { width: 100%; }

  .home-footer > .wrap { grid-template-columns: 1fr; gap: .5rem; }
  .home-footer .foot-links { justify-self: start; }
}
@media (max-width: 380px) {
  .menu { justify-content: space-between; gap: 0 .75rem; }
  .menu a { font-size: .8125rem; }
  /* Home menu stays on one line: drop the decorative arrow, tighten gaps. */
  .home-header .menu { flex-wrap: nowrap; gap: 0 .5rem; }
  .home-header .menu a > span[aria-hidden="true"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .svc-row:has(a:hover) .svc-arrow, .svc-row:has(a:focus-visible) .svc-arrow { transform: none; }
}

/* Contact recovery and real studio examples. */
.form-errors { max-width: 68ch; padding: 1.25rem; border: 2px solid var(--accent); margin-bottom: 2rem; }
.form-errors h2 { font-size: 1.5rem; }
.form-errors li { margin: .5rem 0; }
.form-errors a { display: inline-block; min-height: 24px; }
[aria-invalid="true"] { border: 2px solid var(--accent); }
.lab-identity img { width: 100%; height: 100%; object-fit: cover; }
.lab-note a { display: inline-block; min-height: 28px; }
.work-example { margin-block: 0 4rem; }
.work-example > .wrap { padding-top: 2rem; border-top: 1px solid var(--ink); }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.example-grid img { width: 100%; border: 1px solid var(--ink); }
.example-grid p { max-width: 58ch; }
.example-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: flow; border-top: 1px solid var(--ink); }
.example-flow li { padding: 1.5rem 1rem; border-bottom: 1px solid var(--ink); counter-increment: flow; }
.example-flow li::before { content: counter(flow, decimal-leading-zero); display: block; color: var(--muted); font-size: .875rem; margin-bottom: 1rem; }
.example-flow li + li { border-left: 1px solid var(--ink); }
.scope-note { font-size: 1rem; max-width: 68ch; }
@media(max-width:760px) { .example-grid { grid-template-columns: 1fr; } .example-flow { grid-template-columns: 1fr 1fr; } .example-flow li:nth-child(3) { border-left: 0; } }

.lab-identity .tag { color: var(--ink); }
.example-grid img { height: auto; }

/* Clear entry scopes within the selected editorial design. */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.offer-card { display: flex; flex-direction: column; padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--ink); }
.offer-card:first-child { padding-left: 0; }
.offer-card:last-child { padding-right: 0; }
.offer-card + .offer-card { border-left: 1px solid var(--ink); }
.offer-card h3 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1.1; }
.offer-card ul { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.offer-card > a { margin-top: auto; display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; }
.scope-detail { scroll-margin-top: 2rem; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 2rem; }
.case-facts dt { font-weight: 600; margin-bottom: .5rem; }
.case-facts dd { margin: 0; max-width: 62ch; }
.contact-next { max-width: 46rem; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.contact-next h2 { font-size: 1.25rem; }
.contact-next p { font-size: 1rem; }
@media(max-width:760px) {
  .offer-grid, .case-facts { grid-template-columns: 1fr; }
  .offer-card, .offer-card:first-child, .offer-card:last-child { padding: 1.5rem 0; }
  .offer-card + .offer-card { border-left: 0; }
}

.lab-site .lab-media { height: auto; aspect-ratio: 4 / 3; border: 1px solid var(--ink); }
.lab-site .lab-media img { object-fit: contain; }
.work-caption { padding-bottom: 1rem; }
.work-caption > span { font-size: .75rem; }
.work-caption h3 { font-size: 1rem; margin: .25rem 0 0; }

/* Agency project index and case studies. */
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; padding-bottom: 3rem; }
.project-card { border-top: 1px solid var(--ink); padding-top: 1rem; }
.project-cover { display: block; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1.5rem; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-card h2,.project-card h3 { font-size: 2.25rem; line-height: 1.1; margin: .5rem 0 1rem; }
.project-card h2 a,.project-card h3 a { text-decoration: none; }
.project-card .eyebrow { font-size: .75rem; }
.project-label { color: var(--muted); font-size: .875rem; }
.project-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.case-hero h1 { max-width: 22ch; }
.case-name { font-size: clamp(2rem,6vw,5rem); line-height: 1; margin: 1.5rem 0; font-weight: 600; }
.case-cover { margin-block: 0; }
.case-cover img { width: 100%; height: auto; max-height: 760px; object-fit: cover; }
.case-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,6rem); }
.case-story p { max-width: 60ch; }
.case-screen { display: block; border: 1px solid var(--ink); }
.case-screen img { width: 100%; height: auto; }
.case-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem 3rem; padding-left: 1.25rem; margin-top: 2rem; }
@media(max-width:900px) { .project-grid { grid-template-columns: 1fr; gap: 3rem; } .project-card { max-width: 100%; } }
@media(max-width:760px) { .case-story,.case-features { grid-template-columns: 1fr; } }
.case-state { margin-block: 2rem 4rem; }
.case-state img { width: 100%; height: auto; border: 1px solid var(--ink); }
.case-state figcaption { margin-top: .75rem; font-size: .875rem; color: var(--muted); }

.portfolio-nav { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:2rem; }
.portfolio-nav a { display:inline-flex; align-items:center; gap:.75rem; padding:.6rem .9rem; border:1px solid var(--ink); min-height:44px; text-decoration:none; font-size:.9rem; }
.portfolio-nav a:hover,.portfolio-nav a:focus-visible { background:var(--ink); color:var(--paper,#f3f2ed); }
.portfolio-nav span { font-size:.75rem; }
.portfolio-section { scroll-margin-top:2rem; padding-top:2rem; }
.portfolio-section .sec-head { flex-wrap:wrap; gap:1rem; }

/* Allow user text-spacing preferences to reflow on narrow screens. */
.service-hero > * { min-width: 0; }

/* Optional analytics choice: both actions have equal visual weight. */
.privacy-choice{position:fixed;z-index:1000;bottom:16px;left:16px;right:16px;margin-left:auto;max-width:440px;max-height:calc(100dvh - 32px);overflow:auto;padding:20px;background:#fff;color:#222;border:1px solid #bbb;border-radius:12px;box-shadow:0 6px 28px #0002;font-size:14px;line-height:1.5}
.privacy-choice[hidden]{display:none}
.privacy-choice h2{font-size:18px;margin:0 0 8px}.privacy-choice p{margin:0 0 10px}.privacy-choice a{color:inherit;text-decoration:underline}
.privacy-choice-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.privacy-choice-actions .button{flex:1;min-width:0;white-space:normal;font-size:14px;padding:12px;color:#222;background:#fff;border:1px solid #777}
.privacy-settings{font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;background:transparent;border:0;color:inherit;padding:12px 0}
.flow-diagram { margin: .5rem 0 1.25rem; }
.flow-diagram svg { display: block; width: 100%; height: auto; }
.flow-detail { margin-top: .75rem; border-top: 1px solid var(--ink); }
.flow-detail summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.flow-detail summary:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.flow-detail[open] summary { margin-bottom: .75rem; }
.flow-detail summary { list-style: none; justify-content: space-between; }
.flow-detail summary::-webkit-details-marker { display: none; }
.flow-detail-marker::after { content: "+"; color: var(--accent); font-size: 1.25rem; font-weight: 500; }
.flow-detail[open] .flow-detail-marker::after { content: "\2212"; }

/* V4 concept slots use the existing studio palette until case artwork is ready. */
.concept-placeholder { aspect-ratio: 4/3; margin-bottom: 1.5rem; padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--ink); background: var(--accent); color: var(--ink); }
.concept-placeholder p { margin: 1rem 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.03em; }
.concept-placeholder > span:last-child { font-size: .875rem; }

/* Work imagery replaces the icon cells in the existing hero panel. */
.tri-geo.tri-work { display: block; }
.tri-geo.tri-work .tag { position: absolute; color: #fff; }

.tri-paper img[src*="/cases/kaleta/"] { object-position: left center; }

.tri-fiber img[src*="/cases/relayboard/"] { object-position: center; }

/* Guide tables and code use the existing reading column, with local scrolling. */
.read h3 { margin-top: 2rem; }
.guide-table { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; }
.guide-table table { width: 100%; min-width: 36rem; border-collapse: collapse; text-align: left; font-size: .9375rem; line-height: 1.5; }
.guide-table th, .guide-table td { padding: .75rem; border-bottom: 1px solid rgba(17,17,17,.25); vertical-align: top; }
.guide-table th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.read pre { max-width: 100%; overflow-x: auto; padding: 1.25rem; background: var(--field); border: 1px solid var(--ink); font-size: .9375rem; }
.read code { overflow-wrap: anywhere; }
.read pre code { overflow-wrap: normal; }
.guide-faq h3:not(:first-child) { margin-top: 2.5rem; }

/* Hero panels open their case study; the numbered tags read as links, so they must behave like links. */
.tri-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.tri-link img { transition: transform .5s ease; }
.tri-link .tag::after { content: "\2192"; display: inline-block; margin-left: .5em; opacity: 0; transform: translateX(-.25em); transition: opacity .2s ease, transform .2s ease; }
.tri-link:hover img, .tri-link:focus-visible img { transform: scale(1.03); }
.tri-link:hover .tag::after, .tri-link:focus-visible .tag::after { opacity: 1; transform: none; }
.tri-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: none) { .tri-link .tag::after { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tri-link img, .tri-link .tag::after { transition: none; } }

/* Monospaced template fields keep their alignment, including Turkish glyphs. */
@font-face { font-family: 'Guide Mono'; src: url('/assets/fonts/guide-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
.read .guide-template, .read .guide-template code { font-family: 'Guide Mono', monospace; }
.read .guide-template { width: min(calc(100vw - 2 * var(--gutter)), 1120px); max-width: none; }
