@font-face {
  font-family: "Archivo";
  src: url("./assets/fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand primitives */
  --p-plum: oklch(0.2664 0.0942 346.01);
  --p-magenta: oklch(0.5188 0.2046 339.15);
  --p-ink: oklch(0.3211 0 89.88);
  --p-night: oklch(0.228 0.0024 325.66);
  --p-paper: oklch(0.9701 0.0041 91.45);
  --p-stone: oklch(0.943 0.0042 91.45);
  --p-lime: oklch(0.8841 0.1922 114.53);
  --p-muted: oklch(0.5136 0.0097 337.64);

  /* Semantic palette */
  --surface: var(--p-paper);
  --surface-subtle: var(--p-stone);
  --surface-tint: oklch(0.925 0.022 340);
  --surface-dark: var(--p-night);
  --surface-brand: var(--p-plum);
  --text: var(--p-ink);
  --text-muted: var(--p-muted);
  --text-on-dark: oklch(0.97 0.004 340);
  --text-dark-muted: oklch(0.81 0.012 340);
  --accent: var(--p-magenta);
  --accent-deep: var(--p-plum);
  --signal: var(--p-lime);
  --line: oklch(0.3211 0 89.88 / 0.2);
  --line-dark: oklch(0.97 0.004 340 / 0.2);
  --error: oklch(0.5 0.19 18);

  /* Component tokens */
  --header-bg: var(--surface);
  --button-bg: var(--accent);
  --button-text: var(--text-on-dark);
  --focus: var(--accent);
  --shell: 1440px;
  --header-height: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--surface);
  color: var(--text);
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button { color: inherit; }
p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding: 0; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--p-night); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.contact :focus-visible, .audit :focus-visible, .site-footer :focus-visible { --focus: var(--signal); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 80px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section-label-light { color: var(--text-dark-muted); }
.section-label-lime { color: var(--signal); }
.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--signal);
}
h1, h2, h3 { font-weight: 650; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.65rem, 10vw, 4.5rem); }
h2 em, h1 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -.02em;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 12px 18px;
  transform: translateY(-160%);
  background: var(--signal);
  color: var(--p-night);
  font-weight: 650;
  transition: transform 180ms ease-out;
}
.skip-link:focus { transform: translateY(0); }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: 16px; }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { width: 154px; height: auto; }
.desktop-nav, .header-cta { display: none; }
.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 220ms var(--ease), top 220ms var(--ease);
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 28px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px 20px 20px;
  transform: translateY(-8px);
  opacity: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: transform 220ms var(--ease), opacity 180ms ease-out;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 550;
}
.mobile-menu a:last-child { color: var(--accent); border-bottom: 0; }

/* Reusable actions */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 180ms ease-out; }
.button:hover svg { transform: translateX(4px); }
.button:active { transform: scale(.98); }
.button-primary { background: var(--button-bg); color: var(--button-text); }
.button-primary:hover { background: var(--accent-deep); }
.button-lime { background: var(--signal); color: var(--p-night); }
.button-lime:hover { background: var(--text-on-dark); }
.button[disabled] { cursor: wait; opacity: .65; }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding-block: 8px;
  border-bottom: 1px solid var(--text);
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.text-link span { font-size: 15px; font-weight: 600; }
.text-link small { color: var(--text-muted); font-size: 12px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero { padding-block: 24px 40px; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { padding-top: 24px; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero h1 { max-width: 9ch; font-size: clamp(3.15rem, 13.5vw, 4.9rem); line-height: .94; letter-spacing: -.06em; }
.hero h1 em { font-size: 1.13em; }
.hero-tagline { margin-top: 24px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero-intro { max-width: 40ch; margin-top: 20px; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
.hero-visual {
  position: relative;
  min-height: 450px;
  padding: 24px;
  overflow: hidden;
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, oklch(0.16 0.01 330 / .68) 0%, transparent 42%, transparent 68%, oklch(0.16 0.01 330 / .82) 100%);
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  animation: hero-photo-enter 900ms 100ms var(--ease) both;
}
.visual-title { position: relative; z-index: 2; color: var(--text-on-dark); font-size: 24px; font-weight: 550; letter-spacing: -.035em; line-height: 1.12; text-shadow: 0 1px 18px oklch(0.1 0 0 / .3); }
.visual-disciplines {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 14px;
  border-top: 1px solid oklch(1 0 0 / .35);
  color: var(--text-on-dark);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.visual-disciplines span:nth-child(2) { text-align: center; }
.visual-disciplines span:last-child { text-align: right; }
@keyframes hero-photo-enter { from { opacity: .75; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }

/* Statistics */
.stats { padding-block: 72px; background: var(--surface-dark); color: var(--text-on-dark); }
.stats-heading { display: grid; gap: 20px; margin-bottom: 48px; }
.stats-heading h2 { font-size: clamp(2.35rem, 9vw, 4rem); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.stat { padding: 24px 16px 28px 0; border-bottom: 1px solid var(--line-dark); }
.stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
.stat strong { display: block; margin-bottom: 16px; font-size: clamp(3rem, 13vw, 4.8rem); font-weight: 500; letter-spacing: -.07em; line-height: 1; }
.stat strong span { color: var(--signal); font-size: .45em; letter-spacing: -.02em; }
.stat p { color: var(--text-dark-muted); font-size: 14px; line-height: 1.55; }
.stats-footnote { margin-top: 16px; color: var(--text-dark-muted); font-size: 12px; }

/* Services */
.section-intro { display: grid; gap: 24px; margin-bottom: 56px; }
.section-intro h2 { margin-bottom: 24px; }
.section-intro > div > p { max-width: 48ch; color: var(--text-muted); font-size: 18px; }
.service-list { border-top: 1px solid var(--text); }
.service-item { border-bottom: 1px solid var(--line); }
.service-item:last-child { border-bottom-color: var(--text); }
.service-item summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  gap: 4px 12px;
  align-items: center;
  min-height: 96px;
  padding-block: 20px;
  list-style: none;
}
.service-item summary::-webkit-details-marker { display: none; }
.service-number { grid-row: 1 / 3; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.service-name { font-size: 21px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; transition: color 180ms ease-out; }
.service-tagline { grid-column: 2; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.service-toggle { position: relative; grid-column: 3; grid-row: 1 / 3; width: 32px; height: 32px; }
.service-toggle::before, .service-toggle::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 220ms var(--ease);
}
.service-toggle::after { transform: rotate(90deg); }
.service-item[open] .service-toggle::after { transform: rotate(0); }
.service-item[open] .service-name, .service-item summary:hover .service-name { color: var(--accent); }
.service-content { display: grid; gap: 20px; padding: 0 0 32px 48px; animation: detail-enter 240ms var(--ease); }
.service-content > p { max-width: 65ch; color: var(--text-muted); }
.service-content ul { display: grid; gap: 10px; list-style: none; }
.service-content li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; }
.service-content li::before { content: ""; position: absolute; top: .68em; left: 0; width: 8px; height: 2px; background: var(--accent); }
@keyframes detail-enter { from { opacity: .5; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Document digitisation feature */
.digitisation { padding-block: 80px; overflow: hidden; background: var(--surface-tint); }
.digitisation-grid { display: grid; gap: 56px; align-items: center; }
.document-motif { position: relative; width: 100%; max-width: 440px; height: 350px; margin-inline: auto; overflow: visible; }
.paper {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 49%;
  aspect-ratio: .73;
  border: 1px solid oklch(0.79 0.008 90);
  background: var(--surface);
  box-shadow: 0 14px 28px oklch(0.25 0.02 330 / .09);
  transform-origin: center;
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
}
.paper-back { transform: translate(-73%, -50%) rotate(-12deg); background: oklch(0.94 0.006 90); }
.paper-middle { transform: translate(-30%, -52%) rotate(9deg); background: oklch(0.972 0.004 90); }
.paper-front { display: flex; flex-direction: column; gap: 13px; padding: 26px 20px; transform: translate(-50%, -50%) rotate(-1deg); background: oklch(0.995 0.002 90); }
.paper-back::before, .paper-middle::before {
  content: "";
  position: absolute;
  inset: 28px 22px;
  background: repeating-linear-gradient(to bottom, transparent 0 20px, oklch(0.75 0.008 90 / .42) 20px 21px);
}
@media (hover: hover) and (pointer: fine) {
  .document-motif:hover .paper-back { transform: translate(-77%, -53%) rotate(-14deg); }
  .document-motif:hover .paper-middle { transform: translate(-26%, -55%) rotate(11deg); }
  .document-motif:hover .paper-front { transform: translate(-50%, -53%) rotate(0deg); box-shadow: 0 20px 34px oklch(0.25 0.02 330 / .12); }
}
.paper-front > span { display: block; width: 100%; height: 2px; background: var(--line); }
.paper-front > span:nth-child(2) { width: 78%; }
.paper-front > span:nth-child(3) { width: 88%; }
.paper-front > span:nth-child(4) { width: 58%; }
.paper-search {
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.paper-search i { position: absolute; right: -11px; bottom: -7px; width: 17px; height: 2px; transform: rotate(48deg); background: var(--accent); }
.document-motif > p { position: absolute; right: 0; bottom: 0; left: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.digitisation-copy h2 { margin-block: 20px 24px; }
.digitisation-copy > p:not(.section-label) { max-width: 48ch; color: var(--text-muted); font-size: 18px; }
.benefit-list { display: flex; flex-wrap: wrap; margin-top: 32px; border-block: 1px solid var(--text); list-style: none; }
.benefit-list li { flex: 1 1 30%; padding: 14px 8px; font-size: 13px; font-weight: 600; text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.benefit-list li + li { border-left: 1px solid var(--line); }

/* Audit */
.audit { padding-block: 80px; background: var(--surface-brand); color: var(--text-on-dark); }
.audit-top { display: grid; gap: 32px; }
.audit h2 { margin-top: 20px; }
.audit h2 em { color: var(--signal); }
.audit-cta { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
.audit-cta p { max-width: 43ch; color: var(--text-on-dark); font-size: 18px; }
.audit-cta .button { align-self: flex-start; }
.audit-steps { display: grid; gap: 32px; margin-top: 64px; }
.audit-steps article { padding-top: 20px; border-top: 1px solid var(--line-dark); }
.audit-steps article > span { color: var(--signal); font-size: 12px; font-weight: 650; letter-spacing: .1em; }
.audit-steps h3 { margin-block: 24px 12px; font-size: 28px; }
.audit-steps p { max-width: 38ch; color: var(--text-dark-muted); }
.audit-note { margin-top: 40px; color: var(--text-dark-muted); font-size: 12px; }

/* Why WiserOwl */
.why-intro { display: grid; gap: 24px; }
.why-intro > p:last-child { max-width: 58ch; color: var(--text-muted); font-size: 18px; }
.reasons { display: grid; margin-top: 56px; border-top: 1px solid var(--text); }
.reason {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 18px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.reason::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--accent); transition: transform 240ms var(--ease); }
.reason:hover::before { transform: scaleX(1); }
.reason-number { grid-row: 1 / 3; font-size: 48px; font-weight: 450; letter-spacing: -.06em; line-height: 1; }
.reason h3 { font-size: 22px; line-height: 1.12; }
.reason p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* Portfolio */
.portfolio { padding-block: 80px; background: var(--surface-subtle); }
.portfolio-intro { display: grid; gap: 24px; margin-bottom: 48px; }
.portfolio-intro > p:last-child { color: var(--text-muted); font-size: 18px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.portfolio-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 116px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms ease-out;
}
.portfolio-grid > div:hover { background: var(--surface); }
.client-logo { display: block; width: 100%; max-width: 180px; height: 64px; object-fit: contain; }
.profile-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-block: 20px;
  border-block: 1px solid var(--text);
  font-weight: 600;
  transition: color 180ms ease-out;
}
.profile-link-meta { color: var(--text-muted); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.profile-link-meta b { display: inline-block; margin-left: 8px; color: var(--accent); font-size: 18px; transition: transform 180ms ease-out; }
.profile-link:hover { color: var(--accent); }
.profile-link:hover b { transform: translateY(3px); }

/* Contact */
.contact { padding-block: 80px; background: var(--surface-dark); color: var(--text-on-dark); }
.contact-grid { display: grid; gap: 56px; }
.contact-copy h2 { margin-block: 24px; }
.contact-copy h2 em { color: var(--signal); }
.contact-lead { max-width: 44ch; color: var(--text-dark-muted); font-size: 18px; }
.contact-details { display: grid; gap: 24px; margin-top: 48px; }
.contact-details > div { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.contact-details > div > span { display: block; margin-bottom: 8px; color: var(--signal); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; transition: color 180ms ease-out; }
.contact-details a:hover { color: var(--signal); }
.contact-details a b { margin-left: 8px; font-weight: 400; }
.contact-details p a { min-height: 44px; }
.form-wrap { padding: 24px 20px; background: var(--surface); color: var(--text); }
.form-heading h3 { font-size: 28px; }
.form-heading p { margin-top: 6px; color: var(--text-muted); }
.field-row { display: grid; }
.field { min-width: 0; margin-top: 22px; }
.field label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; font-size: 13px; font-weight: 600; }
.field label > span:not([aria-hidden]) { color: var(--text-muted); font-size: 11px; font-weight: 450; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--text-muted);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field-error { display: block; min-height: 18px; padding-top: 3px; color: var(--error); font-size: 12px; line-height: 1.4; }
.captcha-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.captcha-label-row label { flex: 1; }
.captcha-refresh { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.captcha-refresh:hover { color: var(--accent); }
.captcha-challenge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, .65fr); gap: 12px; align-items: stretch; }
.captcha-question { display: flex; align-items: center; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface-subtle); font-size: 16px; font-weight: 650; }
.captcha-challenge input { text-align: center; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-footer { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.form-footer > p { max-width: 46ch; color: var(--text-muted); font-size: 12px; line-height: 1.55; }
.submit-button { width: 100%; }
.submit-button.is-loading svg { animation: sending 800ms linear infinite; }
@keyframes sending { to { transform: rotate(360deg); } }
.form-status { margin-top: 24px; padding: 16px; border: 1px solid currentColor; font-size: 14px; line-height: 1.55; }
.form-status.is-success { background: oklch(0.93 0.08 114); color: var(--p-night); }
.form-status.is-error { background: oklch(0.94 0.03 18); color: var(--error); }
.form-status a { display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }

/* Footer */
.site-footer { padding-block: 48px 24px; background: oklch(0.18 0.003 330); color: var(--text-on-dark); }
.footer-top { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; width: fit-content; min-height: 48px; }
.footer-brand img { width: 180px; height: auto; }
.footer-top > p { color: var(--text-dark-muted); font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.footer-top nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.footer-top nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; transition: color 180ms ease-out; }
.footer-top nav a:hover { color: var(--signal); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--text-dark-muted); font-size: 12px; }
.footer-bottom a { display: inline-flex; align-items: center; width: fit-content; min-height: 44px; transition: color 180ms ease-out; }
.footer-bottom a:hover { color: var(--signal); }

/* Progressive, non-blocking scroll motion */
.reveal { opacity: 1; transform: none; }
.reveal-enabled .reveal { opacity: .72; transform: translateY(18px) scale(.99); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }
.reveal-enabled .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Tablet */
@media (min-width: 640px) {
  .shell { padding-inline: 32px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 24px; }
  .hero-actions .button { min-width: 218px; }
  .hero-actions .text-link { flex: 1; }
  .hero-visual { padding: 32px; }
  .visual-disciplines { right: 32px; left: 32px; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .form-wrap { padding: 36px; }
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .submit-button { width: auto; flex: 0 0 auto; }
  .profile-link { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .footer-bottom a { min-height: 44px; }
}

@media (min-width: 768px) {
  :root { --header-height: 84px; }
  .section, .digitisation, .audit, .contact, .portfolio { padding-block: 104px; }
  .brand img { width: 174px; }
  .hero { padding-block: 40px 56px; }
  .hero-grid { gap: 40px; }
  .hero h1 { font-size: 5.5rem; }
  .hero-visual { min-height: 540px; }
  .stats { padding-block: 96px; }
  .stats-heading { grid-template-columns: 1fr 2fr; align-items: start; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat, .stat:nth-child(even) { min-height: 280px; padding: 32px 24px; border-left: 1px solid var(--line-dark); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .stat p { font-size: 15px; }
  .section-intro { grid-template-columns: 1fr 2fr; }
  .section-intro h2 { font-size: 4.5rem; }
  .service-item summary { grid-template-columns: 48px minmax(0, 1.2fr) minmax(0, .8fr) 40px; gap: 16px; min-height: 108px; }
  .service-number { grid-row: auto; }
  .service-name { font-size: 26px; }
  .service-tagline { grid-column: 3; font-size: 14px; }
  .service-toggle { grid-column: 4; grid-row: auto; }
  .service-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 0 56px 40px 64px; }
  .service-content li { font-size: 16px; }
  .digitisation-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .digitisation-copy h2 { font-size: 4.4rem; }
  .audit-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; gap: 64px; }
  .audit h2 { font-size: 4.8rem; }
  .audit .button { width: 100%; gap: 12px; padding-inline: 16px; font-size: 14px; white-space: nowrap; }
  .audit-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .why-intro { grid-template-columns: 1fr 2fr; }
  .why-intro > p:last-child { grid-column: 2; }
  .reason { grid-template-columns: 72px minmax(0, 1fr); }
  .reason-number { font-size: 58px; }
  .reason h3 { font-size: 26px; }
  .portfolio-intro { grid-template-columns: 1fr 2fr; }
  .portfolio-intro > p:last-child { grid-column: 2; }
  .portfolio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portfolio-grid > div { min-height: 170px; }
  .contact-copy h2 { font-size: 4.6rem; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-top nav { grid-column: 2; }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --header-height: 88px; }
  .shell { padding-inline: 48px; }
  .section, .digitisation, .audit, .contact, .portfolio { padding-block: 128px; }
  .desktop-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
  .desktop-nav a { position: relative; display: flex; align-items: center; min-height: 48px; font-size: 14px; font-weight: 500; }
  .desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; transform: scaleX(0); transform-origin: right; background: var(--accent); transition: transform 200ms var(--ease); }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .header-cta { display: inline-flex; align-items: center; gap: 20px; min-height: 48px; margin-left: 12px; padding: 0 0 0 24px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 650; }
  .header-cta span { color: var(--accent); font-size: 20px; transition: transform 180ms ease-out; }
  .header-cta:hover span { transform: translate(3px, -3px); }
  .menu-toggle, .mobile-menu { display: none !important; }
  .hero { padding-block: 32px 48px; }
  .hero-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; min-height: calc(100svh - var(--header-height) - 80px); }
  .hero-copy { grid-column: 1 / 8; align-self: center; padding-block: 40px; }
  .hero h1 { max-width: 9ch; font-size: clamp(4.6rem, 7.1vw, 6.9rem); }
  .hero-kicker { margin-bottom: 40px; }
  .hero-intro { margin-top: 24px; }
  .hero-actions { margin-top: 36px; }
  .hero-note { max-width: 560px; margin-top: 40px; }
  .hero-visual { grid-column: 8 / 13; min-height: 620px; padding: 36px; }
  .visual-title { font-size: 28px; }
  .visual-disciplines { right: 36px; bottom: 28px; left: 36px; font-size: 12px; }
  .stats-heading { grid-template-columns: 1fr 2.2fr; margin-bottom: 64px; }
  .stats-heading h2 { font-size: 4.2rem; }
  .stat, .stat:nth-child(even) { min-height: 300px; padding: 36px 32px; }
  .stat strong { font-size: 5.4rem; }
  .section-intro { grid-template-columns: 1fr 2.5fr; margin-bottom: 72px; }
  .section-intro h2 { font-size: 5.2rem; }
  .service-item summary { grid-template-columns: 64px minmax(0, 1.3fr) minmax(0, .7fr) 48px; gap: 20px; }
  .service-name { font-size: 30px; }
  .service-content { gap: 72px; padding-left: 84px; padding-right: 68px; }
  .digitisation-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .document-motif { max-width: 520px; height: 440px; }
  .paper-front { padding: 36px 28px; }
  .digitisation-copy h2 { font-size: 5.2rem; }
  .audit-top { grid-template-columns: 1.35fr .65fr; }
  .audit h2 { font-size: 5.3rem; }
  .audit .button { width: auto; gap: 24px; padding-inline: 20px; font-size: 15px; }
  .audit-steps { gap: 48px; margin-top: 88px; }
  .why-intro { grid-template-columns: 1fr 2.5fr; }
  .why-intro h2 { font-size: 5.2rem; }
  .reasons { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--text); }
  .reason { display: block; min-height: 400px; padding: 28px 22px 32px; border-right: 1px solid var(--line); border-bottom: 0; }
  .reason:first-child { border-left: 1px solid var(--line); }
  .reason-number { font-size: 76px; }
  .reason h3 { margin-block: 56px 20px; font-size: 24px; }
  .reason p { font-size: 15px; }
  .reason:hover { background: var(--surface-tint); }
  .portfolio-intro { grid-template-columns: 1fr 2.5fr; margin-bottom: 64px; }
  .portfolio-intro h2 { font-size: 5rem; }
  .portfolio-grid > div { min-height: 190px; }
  .client-logo { max-width: 210px; height: 76px; }
  .contact-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
  .contact-copy { position: sticky; top: calc(var(--header-height) + 32px); }
  .contact-copy h2 { font-size: clamp(3.8rem, 5.5vw, 5.1rem); }
  .contact-details { grid-template-columns: 1fr; }
  .form-wrap { padding: 48px; }
  .form-heading h3 { font-size: 34px; }
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-top nav { grid-column: auto; justify-self: end; min-width: 220px; }
}

@media (min-width: 1280px) {
  .shell { padding-inline: 64px; }
  .desktop-nav { gap: 36px; }
  .hero-grid { gap: 48px; }
  .hero h1 { font-size: 7rem; }
  .hero-visual { padding: 44px; }
  .visual-disciplines { right: 44px; left: 44px; }
  .reason { padding-inline: 26px; }
  .contact-grid { gap: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .document-motif:hover .paper-back { transform: translate(-73%, -50%) rotate(-12deg); }
  .document-motif:hover .paper-middle { transform: translate(-30%, -52%) rotate(9deg); }
  .document-motif:hover .paper-front { transform: translate(-50%, -50%) rotate(-1deg); }
  .reveal-enabled .reveal, .reveal-enabled .reveal.is-visible { opacity: 1; transform: none; }
}
