/* A2K AI — local visual refresh.
   Original colour values and surface assignments are deliberately retained.
   Archivo and IBM Plex Mono remain self-hosted; no new runtime dependencies. */

/* Archivo, self-hosted. Not loaded from Google.
     One variable font file covers 400 to 700, so Android, Windows, Linux, iPhone
     and Mac all render identically, and the page does not depend on a Google
     server being reachable (which also keeps it clear of the GDPR question that
     hangs over remote Google Fonts in the UK and EU). */
  @font-face{
    font-family:'Archivo';
    font-style:normal;
    font-weight:100 900;
    font-stretch:100%;
    font-display:swap;
    src:url('fonts/archivo-latin.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'Archivo';
    font-style:normal;
    font-weight:100 900;
    font-stretch:100%;
    font-display:swap;
    src:url('fonts/archivo-latin-ext.woff2') format('woff2');
    unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* IBM Plex Mono remains the quiet voice for the existing small labels. */
  @font-face{
    font-family:'IBM Plex Mono';
    font-style:normal;
    font-weight:400;
    font-display:swap;
    src:url('fonts/plexmono-400.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  @font-face{
    font-family:'IBM Plex Mono';
    font-style:normal;
    font-weight:500;
    font-display:swap;
    src:url('fonts/plexmono-500.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

:root {
  --paper: #EBEFE8;
  --card: #F6F8F4;
  --deep: #1E382A;
  --deep-hover: #16291F;
  --deep-soft: #BECBBF;
  --accent: #9B5A2A;
  --ink: #14201A;
  --ink-soft: #3D4C42;
  --ink-muted: #4E5E54;
  --grey-label: #4E5E54;
  --rule: #C6D2C0;
  --rule-soft: #DAE2D6;
  --white: #ffffff;
  --work-copy: #DDE5DB;
  --max: 1240px;
  --gutter: clamp(22px, 5vw, 64px);
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --section-space: clamp(64px, 7.5vw, 108px);
  --column-gap: clamp(40px, 6vw, 88px);
  --control-radius: 4px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(30, 56, 42, .12);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-label);
}

/* The existing two-control navigation stays simple and legible. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  max-width: var(--max);
}
.logo, .mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep);
  font-family: var(--font);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.035em;
  text-decoration: none;
}
.logo span, .mark span { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  background: var(--deep);
  color: var(--paper);
  border: 1px solid var(--deep);
  border-radius: var(--control-radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.btn:hover { background: var(--deep-hover); border-color: var(--deep-hover); }
.btn-ghost { background: transparent; color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.masthead .btn { min-height: 44px; padding: 11px 17px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* An open introduction: proposition and proof share the first viewport. */
.hero { padding: clamp(48px, 5.5vw, 80px) 0 clamp(64px, 6.5vw, 96px); }
.hero > .wrap > .label { margin-bottom: 34px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
}
.hero h1 {
  color: var(--deep);
  margin: 0;
  max-width: 17ch;
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.hero .lede {
  max-width: 58ch;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.75;
}
.hero .lede strong { color: var(--ink); font-weight: 600; }
.hero .kicker {
  color: var(--deep);
  font-size: 24px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: 32px 0 20px;
}
.hero .actions { gap: 10px; }
.hero .actions .btn { padding-inline: 15px; font-size: 13px; }
.heartbeat { display: block; width: 100%; height: auto; overflow: visible; }
.hero-heartbeat { margin-top: 30px; max-width: 460px; }
.heartbeat-line {
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.heartbeat-point { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-heartbeat .heartbeat-point { animation: pulse-settle 1800ms cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes pulse-settle { from { opacity: .35; } to { opacity: 1; } }

section { border-top: 1px solid var(--rule); scroll-margin-top: 84px; }
.sec { padding-top: var(--section-space); padding-bottom: var(--section-space); }
.sec h2 {
  color: var(--deep);
  margin: 0;
  max-width: 22ch;
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.03em;
}

/* Project records, with clear client names and unabridged descriptions. */
#work { background: var(--deep); border-top: 0; }

/* The artwork's rounded heartbeat becomes a watermark on the existing green.
   It is decoration only: no text, layout, pointer or accessibility-tree impact. */
#work, .contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
#work::before, .contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background-image: url('brand-watermark.svg');
  background-repeat: no-repeat;
  opacity: .065;
}
#work::before {
  background-size: max(1100px, 122%) auto;
  background-position: center 40px;
}
.contact::before {
  background-size: max(1000px, 118%) auto;
  background-position: center 46%;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0) 70%, transparent);
  mask-image: linear-gradient(to bottom, rgb(0 0 0) 70%, transparent);
}
#work .section-heading { margin-bottom: 48px; }
#work h2 { color: var(--white); }
#work .label { color: var(--deep-soft); margin-bottom: 18px; }
#work .credits { border-block: 1px solid rgba(235, 239, 232, .24); }
.credit {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr);
  gap: var(--column-gap);
  padding: 38px 0;
  border-bottom: 1px solid rgba(235, 239, 232, .16);
}
.credit:last-child { border-bottom: 0; }
.credit .who { margin: 0; }
.credit .client {
  display: block;
  color: var(--white);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  max-width: 20ch;
  text-wrap: balance;
}
.credit .discipline {
  display: block;
  color: var(--deep-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.65;
  margin-top: 12px;
}
.credit .what { margin: 0; max-width: 68ch; }
.credit .what p { color: var(--work-copy); margin: 0 0 16px; font-size: 16.5px; line-height: 1.75; }
.credit .what p:last-child { margin-bottom: 0; }
.credit .what strong { color: var(--white); font-weight: 600; }

.idea { background: var(--card); }
.idea .sec, .contact .sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--column-gap);
}
.idea .pull { font-size: clamp(30px, 3.1vw, 42px); font-weight: 500; line-height: 1.2; }
.idea-copy { padding-top: 43px; }
.idea p.body { color: var(--ink-soft); max-width: 60ch; margin: 0 0 22px; }
.idea p.body:last-child { margin-bottom: 0; }
.idea p.body strong { color: var(--ink); font-weight: 600; }

.contact { background: var(--deep); color: var(--white); border-top: 0; }
.contact h2 { color: var(--white); max-width: 18ch; }
.contact .label { color: var(--deep-soft); }
.contact-heartbeat { max-width: 330px; margin-top: 30px; }
.contact-heartbeat .heartbeat-line { stroke: var(--deep-soft); opacity: .35; }
.contact-heartbeat .heartbeat-point { fill: var(--deep-soft); }
.contact-copy { padding-top: 42px; }
.direct { color: var(--white); margin: 0 0 20px; font-size: 21px; font-weight: 500; line-height: 1.45; letter-spacing: -.015em; }
.contact .intro { color: var(--deep-soft); max-width: 54ch; margin: 0 0 28px; font-size: 16.5px; }
.contact .actions { gap: 10px; }
.contact .btn { background: var(--paper); color: var(--deep); border-color: var(--paper); font-size: 13px; padding-inline: 15px; }
.contact .btn:hover { background: var(--white); border-color: var(--white); }
.contact .btn-ghost { background: transparent; color: var(--white); border-color: var(--deep-soft); }
.contact .btn-ghost:hover { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.contact a:focus-visible, footer a:focus-visible { outline-color: var(--paper); }
.direct-sub { color: var(--deep-soft); margin: 20px 0 0; max-width: 48ch; font-size: 13px; line-height: 1.6; }

footer { background: var(--deep); color: var(--deep-soft); }
footer .wrap {
  max-width: var(--max);
  padding: 28px var(--gutter) 32px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  justify-content: space-between;
  gap: 16px 48px;
}
footer .wrap > span:first-child { max-width: 390px; }
footer .wrap > span:last-child { text-align: right; }
footer a:hover { color: var(--white); }

/* Keep both existing actions in thumb reach, with their exact labels. */
.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: none;
  gap: 8px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.callbar .btn { flex: 1 1 auto; min-width: 0; padding: 12px 8px; font-size: 12px; gap: 7px; white-space: nowrap; }
.callbar .btn svg { width: 15px; height: 15px; }

@media (max-width: 1000px) and (min-width: 761px) {
  .hero h1 { font-size: 43px; }
  .hero .lede { font-size: 16px; line-height: 1.7; }
  .hero .actions .btn, .contact .actions .btn { flex: 1 1 auto; }
  .credit { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
}
@media (max-width: 760px) {
  :root { --column-gap: 32px; --section-space: 64px; }
  #work::before {
    background-size: 1000px auto;
    background-position: 58% 48px;
  }
  .contact::before {
    background-size: 1100px auto;
    background-position: 54% 56%;
  }
  .hero-layout, .idea .sec, .contact .sec { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 44px 0 60px; }
  .hero > .wrap > .label { margin-bottom: 26px; }
  .hero h1 { font-size: clamp(34px, 6.4vw, 48px); max-width: 24ch; }
  .hero-heading { position: relative; padding-bottom: 28px; }
  .hero-heartbeat { width: 170px; margin-top: 12px; margin-bottom: -16px; }
  .hero-layout { gap: 0; }
  .hero .lede { max-width: 64ch; font-size: 16.5px; line-height: 1.7; }
  .hero .kicker { margin-top: 28px; font-size: 23px; }
  .hero .actions .btn { font-size: 14px; padding-inline: 20px; }
  #work .section-heading { margin-bottom: 32px; }
  .credit { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 32px 0; }
  .credit .client { max-width: none; font-size: 23px; text-wrap: pretty; }
  .credit .discipline { margin-top: 8px; }
  .credit .what p { font-size: 16px; }
  .idea .pull { max-width: 26ch; }
  .idea-copy { padding-top: 32px; }
  .contact h2 { max-width: 22ch; }
  .contact-heartbeat { width: 180px; margin: 16px 0 0; }
  .contact-copy { padding-top: 24px; }
  .contact .actions .btn { flex: 1 1 auto; padding-inline: 18px; font-size: 14px; }
  footer .wrap { flex-direction: column; gap: 10px; }
  footer .wrap > span:last-child { text-align: left; }
}
@media (max-width: 640px) {
  .masthead .wrap { min-height: 70px; }
  .masthead .btn { display: none; }
  .label .place { display: none; }
  .hero > .wrap > .label { font-size: 9.5px; letter-spacing: .06em; }
  .hero .actions { display: none; }
  .hero .kicker { margin-bottom: 0; }
  .home-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .callbar { display: flex; }
  section { scroll-margin-top: 70px; }
  .contact .actions { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
  .hero > .wrap > .label { font-size: 9px; letter-spacing: .025em; }
  .hero h1 { font-size: 33px; }
  .callbar { gap: 6px; padding-inline: 12px; }
  .callbar .btn { font-size: 11px; gap: 6px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .masthead, .callbar, .actions, .heartbeat { display: none; }
  #work::before, .contact::before { display: none; }
  .home-page { padding-bottom: 0; }
  .hero-layout, .idea .sec, .contact .sec { display: block; }
}
