/* =========================================================
   Teman Teknologi Anda — Deep navy + burnt orange
   ========================================================= */

/* ---------- Colour tokens ---------- */
:root {
  --paper: #F2EFE8;          /* main background */
  --paper-2: #E9E5DA;        /* tinted sections */
  --paper-3: #FBF9F4;        /* cards, inputs */
  --ink: #14202B;            /* body text */
  --ink-2: #39454F;          /* secondary text */
  --meta: #9A4A15;           /* labels and metadata on paper */
  --rule: #CBC3B4;
  --rule-2: #E1DBCF;

  --brand: #0F2A3E;          /* navy grounds */
  --brand-ink: #F4F1EA;
  --brand-soft: #A7BDCC;
  --brand-line: #39586E;

  --accent: #C2571A;         /* rules and markers */
  --accent-strong: #A6450E;  /* solid fills behind white text */
  --accent-on-dark: #E08A4E; /* small accent text on navy / dark */
  --accent-wash: #F6E6D6;

  --dark: #12202C;           /* Selected work + footer */
  --dark-ink: #EEEBE3;
  --dark-mute: #A49C90;
  --dark-rule: #3A4854;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 74px;
}

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a {
  color: var(--ink);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--meta);
  text-decoration-color: var(--meta);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Clearly visible text selection on every background */
::selection { background: #F4C7A1; color: #14202B; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.js .no-js-only { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 13px;
}
.skip-link:focus { left: 8px; top: 8px; z-index: 200; color: var(--paper); }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 92px) var(--gutter);
}

.section {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.section--tint { background: var(--paper-2); }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(30px, 4vw, 52px);
}
.split--wide { gap: clamp(28px, 4vw, 64px); }

.card-grid {
  list-style: none;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
}

/* ---------- Typography ---------- */
.label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
  margin: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 22ch;
}

.prose p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 60ch;
  text-wrap: pretty;
}
.prose p:last-child { margin-bottom: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  font-family: var(--sans);
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.btn--accent {
  background: var(--accent-strong);
  color: #FFFFFF;
  font-weight: 500;
}
.btn--accent:hover { background: var(--ink); color: #FFFFFF; }

.btn--ghost-light {
  background: none;
  border: 1px solid var(--brand-soft);
  color: var(--brand-ink);
}
.btn--ghost-light:hover {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: var(--brand);
}

.btn--outline {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0 22px;
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 38px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}
.site-nav a {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.site-nav .nav-cta {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--brand-ink);
  background: var(--brand);
  padding: 10px 18px;
  border-bottom: 0;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--brand-ink); }

.nav-mobile-only { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 11px 14px;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--brand);
  color: var(--brand-ink);
  border-bottom: 4px solid var(--accent);
}
.hero-grid {
  padding-top: clamp(44px, 6vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
}
.hero-main { flex: 1 1 520px; min-width: 0; }

.hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 clamp(20px, 3vw, 34px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brand-line);
  max-width: 640px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.62;
  opacity: 0.92;
  max-width: 56ch;
  margin: clamp(22px, 3vw, 32px) 0 0;
  text-wrap: pretty;
}
.hero .btn--accent:hover { background: var(--brand-ink); color: var(--brand); }

.hero-rail {
  flex: 0 1 330px;
  min-width: 250px;
  align-self: flex-start;
  border-left: 1px solid var(--brand-line);
  padding-left: clamp(20px, 2.5vw, 36px);
}
.hero-rail dl { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-rail dl > div + div { border-top: 1px solid var(--brand-line); padding-top: 22px; }
.hero-rail dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin-bottom: 6px;
}
.hero-rail dd {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0;
}
.hero-rail .hero-clock {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent-on-dark);
  margin-top: 8px;
}

/* ---------- Who we work with ---------- */
.audience {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.audience-inner {
  padding-top: clamp(28px, 3.5vw, 44px);
  padding-bottom: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(20px, 4vw, 56px);
}
.audience-inner .label { flex: 0 0 auto; }
.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 420px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.audience-list li { font-size: 15px; color: var(--ink-2); }
.audience-list .is-highlight {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
}

/* ---------- What we build ---------- */
.service-list {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.service-tab {
  display: block;
  width: 100%;
  margin: 0;
  padding: 22px 0 24px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.service-tab.is-active {
  border-top: 2px solid var(--accent);
  background: var(--paper-3);
  padding: 22px 18px 24px;
  margin: 0 -18px;
}
.service-tab-row { display: flex; gap: 18px; align-items: baseline; }
.service-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-desc {
  display: block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

.service-panels {
  flex: 1 1 380px;
  min-width: 0;
  align-self: flex-start;
}
.service-panel {
  border: 1px solid var(--rule);
  background: var(--paper-3);
}
.service-panel + .service-panel { margin-top: 20px; }
.js .service-panel:not(.is-active) { display: none; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 20px;
  background: var(--brand);
  color: var(--brand-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.panel-timing { color: var(--brand-soft); }

.panel-list {
  list-style: none;
  margin: 0;
  padding: 6px 20px 14px;
}
.panel-list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 15px;
  line-height: 1.5;
}
.panel-list li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}
.panel-note {
  margin: 0;
  padding: 16px 20px 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  border-top: 1px solid var(--rule-2);
  background: var(--accent-wash);
}

/* ---------- For NGOs ---------- */
.essay { flex: 1 1 400px; min-width: 0; }
.essay h3,
.about-main h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin: 0 0 22px;
  max-width: 22ch;
}

.pull-quote {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 22px;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  margin: 0;
  max-width: 54ch;
  text-wrap: pretty;
}

.audit { flex: 1 1 400px; min-width: 0; }
.audit-head {
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.audit dl { margin: 0; }
.audit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
}
.audit-row dt { flex: 1 1 190px; line-height: 1.5; color: var(--meta); }
.audit-row dd { flex: 2 1 250px; margin: 0; line-height: 1.55; }

.pillars {
  list-style: none;
  margin: clamp(36px, 5vw, 68px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.pillars li {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}
.pillars h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  margin: 0 0 8px;
}
/* An arrow after each step shows the sequence without numbering */
.pillars li:not(:last-child) h3::after {
  content: " →";
  color: var(--accent);
}
.pillars p:last-child {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  text-wrap: pretty;
}
.chain-note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
  line-height: 1.8;
  max-width: 90ch;
}

/* ---------- Selected work ---------- */
.section--dark {
  background: var(--dark);
  color: var(--dark-ink);
  border-bottom: 0;
}
.section-head--dark { border-bottom: 1px solid var(--dark-rule); }
.section-head--dark .label { color: var(--dark-mute); }

.case-tabs {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 340px;
}
.case-tab {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 0 20px;
  text-align: left;
  font: inherit;
  color: var(--dark-mute);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dark-rule);
  cursor: pointer;
}
.case-tab.is-active {
  border-top: 2px solid var(--accent);
  color: var(--dark-ink);
}
.case-tab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.case-tab-status { color: var(--dark-mute); }
.case-tab-name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}
.case-tab-loc {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--dark-mute);
  margin-top: 5px;
}
.case-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
  line-height: 1.9;
  margin: 24px 0 0;
}

.cases { flex: 1 1 420px; min-width: 0; }
.case + .case { margin-top: 56px; }
.js .case:not(.is-active) { display: none; }

.case-shot {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: #00000033;
  border: 1px solid var(--dark-rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
}
/* With a screenshot inside, the frame takes the image's own shape — no cropping */
.case-shot:has(img) {
  aspect-ratio: auto;
  padding: 0;
}
.case-shot img {
  width: 100%;
  height: auto;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--dark-rule);
  margin-top: clamp(22px, 3vw, 32px);
  padding-top: 18px;
}
.case-head > div { flex: 1 1 240px; min-width: 0; }
.case-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
}
.case-descriptor,
.case-location {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.case-descriptor { color: var(--accent-on-dark); margin: 9px 0 0; }
.case-location { color: var(--dark-mute); margin: 0; flex: 0 0 auto; }

.case-body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.66;
  margin: 18px 0 0;
  max-width: 62ch;
  text-wrap: pretty;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--dark-rule);
  padding: 8px 12px;
}

.case-foot {
  border-top: 1px solid var(--dark-rule);
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
}
.btn--case { padding: 0 22px; }
.btn--case:hover { background: var(--dark-ink); color: var(--dark); }
.case-url {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
  margin: 0;
  overflow-wrap: anywhere;
}
.phases {
  margin: 20px 0 0;
  border-top: 1px solid var(--dark-rule);
}
.phases > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-rule);
}
.phases dt {
  flex: 0 0 72px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  padding-top: 3px;
}
.phases dd {
  flex: 1 1 220px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Working with us ---------- */
.stage {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
.stage h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px;
}
.stage p:last-child {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.callout {
  margin-top: 8px;
  background: var(--brand);
  color: var(--brand-ink);
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 34px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
}
.callout h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.callout p {
  font-size: 15.5px;
  line-height: 1.62;
  opacity: 0.92;
  margin: 0;
  flex: 1 1 320px;
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- About ---------- */
.about-main { flex: 1 1 420px; min-width: 0; }
.about-main h3 {
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.3;
  max-width: 26ch;
}

.facts {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(24px, 4vw, 52px);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
  margin-bottom: 6px;
}
.facts dd {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 19px;
}
.facts .facts-clock { font-family: var(--mono); font-size: 17px; }

.specialists {
  flex: 0 1 320px;
  min-width: 250px;
  align-self: flex-start;
  border-left: 1px solid var(--rule);
  padding-left: clamp(20px, 2.5vw, 36px);
}
.specialists-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.specialists-lead {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.specialists-note {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.specialists dl { margin: 0; border-top: 1px solid var(--rule); }
.specialists dl > div {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}
.specialists dt { flex: 1 1 auto; font-size: 14.5px; color: var(--ink-2); }
.specialists dd {
  margin: 0;
  align-self: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--brand);
  color: var(--brand-ink);
  border-top: 4px solid var(--accent);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 72px);
}
.contact-intro { flex: 1 1 400px; min-width: 0; }
.contact-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brand-line);
}
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.018em;
  line-height: 1.12;
  margin: 0 0 22px;
}
.contact-lede {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.66;
  opacity: 0.92;
  margin: 0 0 28px;
  max-width: 56ch;
  text-wrap: pretty;
}
.contact-direct {
  border-top: 1px solid var(--brand-line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-email {
  align-self: flex-start;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--brand-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--brand-ink); border-bottom-color: var(--brand-ink); }
.contact-alt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0;
}

/* Enquiry card */
.enquiry {
  flex: 1 1 380px;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
}
.enquiry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}

.enquiry-form {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { margin: 0; }
.captcha-field { border: 0; padding: 0; min-width: 0; }

.field-label {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
}
.req { color: var(--ink); }
.opt { color: var(--ink-2); }

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--rule);
  border-radius: 0;
}
select.field-input { cursor: pointer; }
textarea.field-input { min-height: 132px; resize: vertical; }

/* Error state: heavier border + accent bar + text message (never colour alone) */
.field-input[aria-invalid="true"] {
  border: 2px solid var(--ink);
  border-left: 4px solid var(--accent);
  padding: 11px 13px;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.field-error {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 500;
}

.form-summary {
  border: 1px solid var(--ink);
  border-left: 4px solid var(--accent);
  background: var(--accent-wash);
  padding: 14px 16px;
}
.form-summary p {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.form-summary ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  line-height: 1.5;
}

.captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
}
.captcha.is-invalid {
  border: 2px solid var(--ink);
  border-left: 4px solid var(--accent);
}
.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  cursor: pointer;
}
.captcha-label input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
  cursor: pointer;
}
.captcha-brand {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--meta);
  text-align: right;
  line-height: 1.6;
}

.form-foot {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.form-foot p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}

/* Success state */
.enquiry-success { padding: clamp(28px, 4vw, 44px) 20px clamp(30px, 4vw, 48px); }
.success-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.enquiry-success h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.enquiry-success h3:focus { outline: none; }
.success-text {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 46ch;
  text-wrap: pretty;
}
.success-summary { margin: 0 0 26px; border-top: 1px solid var(--rule); }
.success-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.success-summary dt {
  flex: 0 0 96px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--meta);
}
.success-summary dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); }

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(24px, 4vw, 48px);
}
.footer-name {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 10px;
}
.footer-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--dark-mute);
  margin: 0;
}
.footer-heading {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin: 0 0 14px;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
}
.footer-list a {
  color: var(--dark-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-rule);
  overflow-wrap: anywhere;
}
.footer-list a:hover { color: var(--dark-ink); border-bottom-color: var(--accent); }
.footer-clock {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dark-mute);
}

.footer-base {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 18px var(--gutter) 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-mute);
  background-image: linear-gradient(var(--dark-rule), var(--dark-rule));
  background-size: calc(100% - 2 * var(--gutter)) 1px;
  background-position: center top;
  background-repeat: no-repeat;
}
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */

/* Below 1000px the primary nav collapses behind the Menu button. */
@media (max-width: 999.98px) {
  .nav-mobile-only { display: inline; }

  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }

  .js .site-nav a {
    padding: 14px 0;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--rule-2);
  }
  .js .site-nav .nav-cta {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 15px;
    text-align: center;
    color: var(--brand-ink);
    border-bottom: 0;
  }

  /* Without JavaScript the links simply wrap under the logo. */
  .no-js .header-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
  .no-js .site-nav { flex-wrap: wrap; gap: 8px 18px; }

  /* Let the brand shrink (its tagline wraps) so the Menu button always fits. */
  .header-inner { gap: 16px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-tag { line-height: 1.5; }
  .nav-toggle { flex: 0 0 auto; }

  /* The active service card stays inside the column instead of bleeding into
     the gutter; every tab gets the same inset so text doesn't jump on tap. */
  .service-tab,
  .service-tab.is-active {
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Once the project list stacks above the case study, it spans the full column. */
@media (max-width: 799.98px) {
  .case-tabs { flex-basis: 100%; max-width: none; }
}

/* Phones */
@media (max-width: 599.98px) {
  /* The tagline breaks cleanly onto two lines: place, then year. */
  .brand-tag-sep { display: none; }
  .brand-tag-year { display: block; }

  /* Side rails sit under the main content: rule on top, aligned to the text edge. */
  .hero-rail,
  .specialists {
    flex: 1 1 100%;
    min-width: 0;
    border-left: 0;
    padding-left: 0;
  }
  .hero-rail {
    border-top: 1px solid var(--brand-line);
    padding-top: 22px;
  }

  /* One audience per line instead of a ragged inline wrap. */
  .audience-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* The enquiry card runs edge to edge so the 300px spam-check widget fits;
     its text lines up with the page gutter. */
  .enquiry { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .enquiry-head,
  .enquiry-form,
  .enquiry-success { padding-left: var(--gutter); padding-right: var(--gutter); }
  .captcha { padding: 8px; }
}

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

/* ---------- Privacy policy page (privacy.html) ---------- */
.policy-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.015em;
  margin: 0;
}
.policy-body { max-width: 760px; margin-top: clamp(30px, 4vw, 52px); }
.policy-body h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.policy-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body a { overflow-wrap: anywhere; }
.policy-body ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 60ch;
}
.policy-body li {
  position: relative;
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
  padding: 6px 0 6px 26px;
}
.policy-body li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.policy-table { overflow-x: auto; margin: 6px 0 26px; }
.policy-table table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
.policy-table th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--meta);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 2px solid var(--ink);
}
.policy-table td {
  vertical-align: top;
  color: var(--ink-2);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
}
.policy-table td:first-child { color: var(--ink); font-weight: 500; }

@media (max-width: 599.98px) {
  /* Privacy tables: no forced width, so nothing hides off to the side. */
  .policy-table table { min-width: 0; }
  /* Wider tables stack into one block per row, each cell labelled. */
  .policy-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .policy-table--stack table,
  .policy-table--stack tbody,
  .policy-table--stack tr,
  .policy-table--stack td { display: block; }
  .policy-table--stack tbody { border-top: 2px solid var(--ink); }
  .policy-table--stack tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .policy-table--stack td { padding: 4px 0; border-bottom: 0; }
  .policy-table--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin: 6px 0 2px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--meta);
  }
}
