/* TDLWorld — design tokens */
:root {
  --paper: #f3f7f6;
  --surface: #ffffff;
  --ink: #0f2a2b;
  --muted: #55706e;
  --teal: #0e5c5e;
  --teal-deep: #0a3f41;
  --teal-soft: #dcebe8;
  --marigold: #f28c1f;
  --marigold-soft: #fff0da;
  --line: #d2dedb;
  --wa: #1f9d55;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.note { font-size: .875rem; color: var(--muted); }

/* Accounting double rule: the mark under a ledger total, used under section headings */
.ruled::after {
  content: ""; display: block; width: 84px; height: 7px; margin-top: 18px;
  border-top: 2px solid var(--marigold); border-bottom: 2px solid var(--marigold);
  transform-origin: left; transition: transform .7s var(--ease) .15s;
}
.js .reveal .ruled::after, .js .ruled.reveal::after { transform: scaleX(0); }
.js .reveal.in .ruled::after, .js .ruled.reveal.in::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 15px 22px; border-radius: 8px; border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--marigold); color: #2a1700; }
.btn-primary:hover { background: #ff9d33; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-line:hover { background: var(--teal); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: .9375rem; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
  view-transition-name: site-head;
}
.head-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .9875rem;
  padding: 10px 12px; border-radius: 6px; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--marigold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { background: var(--teal-deep); color: #fff; overflow: hidden; position: relative; }
.hero::before { /* ledger ruling */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: block; }
.hero .lede { color: #bcd6d3; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.js .hero h1 .ln > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.js .hero h1 .ln:nth-child(2) > span { animation-delay: .09s; }
.js .hero h1 .ln:nth-child(3) > span { animation-delay: .18s; }
.js .hero .lede, .js .hero-cta { opacity: 0; animation: fade-up .8s var(--ease) .4s forwards; }
.js .hero-cta { animation-delay: .52s; }
.js .hero .demo { opacity: 0; animation: fade-up 1s var(--ease) .35s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Tally screen demo */
.tw-win { background: #fdfefd; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 20, 20, .6), 0 0 0 1px rgba(255, 255, 255, .12); font-size: .875rem; }
.tw-bar { display: flex; justify-content: space-between; gap: 12px; background: var(--teal); color: #fff; padding: 9px 14px; font-weight: 600; font-size: .8125rem; }
.tw-body { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 330px; }
.tw-info { padding: 16px; border-right: 1px solid var(--line); background: #f5f9f8; display: grid; align-content: start; gap: 14px; }
.tw-info dt { font-size: .75rem; color: var(--muted); }
.tw-info dd { margin: 0; font-weight: 600; }
.tw-menu { padding: 14px 16px 16px; }
.tw-menu .title { text-align: center; background: var(--teal-soft); color: var(--teal-deep); font-weight: 700; padding: 5px; border-radius: 4px; margin-bottom: 8px; }
.tw-menu .grp { font-size: .6875rem; color: var(--muted); margin: 9px 0 2px; letter-spacing: .04em; }
.tw-menu ul { list-style: none; margin: 0; padding: 0; }
.tw-menu li { padding: 2.5px 8px; border-radius: 3px; }
.tw-menu li b { color: #b45d00; font-weight: 700; }
.tw-menu li.added { display: grid; grid-template-rows: 0fr; padding-block: 0; transition: grid-template-rows .45s var(--ease), padding .45s var(--ease), background-color 1.6s ease .5s; background: var(--marigold); }
.tw-menu li.added > span { overflow: hidden; font-weight: 600; }
.tw-menu li.added.in { grid-template-rows: 1fr; padding-block: 2.5px; background: var(--marigold-soft); }
.tw-menu .empty { color: var(--muted); font-style: italic; padding: 2.5px 8px; }
.tw-code { background: #072c2e; color: #cfe9e5; font: 400 .78rem/1.55 var(--mono); padding: 12px 14px; min-height: 66px; white-space: pre-wrap; word-break: break-word; }
.tw-code .k { color: #ffb561; }
.tw-code .caret { display: inline-block; width: 7px; height: 1em; background: var(--marigold); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.switches { margin-top: 18px; display: grid; gap: 10px; }
.switches p { color: #bcd6d3; font-size: .9375rem; }
.switch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.switch {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  font: 500 .9375rem/1 var(--body); padding: 9px 14px 9px 10px; border-radius: 999px; transition: background-color .2s, border-color .2s;
}
.switch:hover { border-color: rgba(255, 255, 255, .6); }
.switch i { width: 30px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .25); position: relative; transition: background-color .25s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch[aria-checked="true"] { background: rgba(242, 140, 31, .18); border-color: var(--marigold); }
.switch[aria-checked="true"] i { background: var(--marigold); }
.switch[aria-checked="true"] i::after { transform: translateX(12px); }

/* Sections */
.sec { padding: 104px 0; }
.sec-tight { padding: 72px 0; }
.sec-white { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 18px; margin-bottom: 52px; max-width: 760px; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Ledger index of product lines */
.ledger { border-top: 2px solid var(--ink); }
.ledger a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
  padding: 30px 16px; text-decoration: none; position: relative; border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease), padding .35s var(--ease);
}
.ledger a::before { content: ""; position: absolute; inset: 0; background: var(--teal-deep); transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease); z-index: 0; }
.ledger a > * { position: relative; z-index: 1; }
.ledger a:hover, .ledger a:focus-visible { color: #fff; padding-inline: 28px 16px; }
.ledger a:hover::before, .ledger a:focus-visible::before { transform: scaleY(1); }
.ledger .nm { font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.02em; }
.ledger .ds { color: var(--muted); transition: color .35s; }
.ledger a:hover .ds, .ledger a:focus-visible .ds { color: #bcd6d3; }
.ledger .go { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s; }
.ledger a:hover .go, .ledger a:focus-visible .go { transform: rotate(-45deg); background: var(--marigold); border-color: var(--marigold); color: #2a1700; }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy { display: grid; gap: 20px; justify-items: start; }
.ticks { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--marigold); border-bottom: 2.5px solid var(--marigold); transform: rotate(-45deg); }

/* Pivot demo */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(10, 63, 65, .35); }
.pv-ctrl { display: flex; flex-wrap: wrap; gap: 14px 22px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #f8fbfa; }
.pv-ctrl fieldset { border: 0; padding: 0; margin: 0; display: flex; align-items: center; gap: 8px; }
.pv-ctrl legend { float: left; font-size: .8125rem; color: var(--muted); margin-right: 8px; padding: 0; }
.seg { display: inline-flex; background: var(--teal-soft); border-radius: 8px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 12px; border-radius: 6px; font-size: .875rem; font-weight: 500; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--teal); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.pv-scroll { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pv-table th, .pv-table td { padding: 10px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pv-table th:first-child, .pv-table td:first-child { text-align: left; }
.pv-table thead th { font-weight: 600; color: var(--muted); font-size: .8125rem; background: #fff; }
.pv-table tbody tr { animation: row-in .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.pv-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); position: relative; }
.pv-table tfoot td::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; border-bottom: 3px double var(--ink); opacity: .0; }
.pv-table .tot { font-weight: 700; background: #f8fbfa; }
.pv-foot { padding: 10px 18px; border-top: 1px solid var(--line); }
@keyframes row-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* WhatsApp demo */
.wa { max-width: 420px; margin-inline: auto; width: 100%; }
.wa-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wa-tabs button { font: 500 .9rem/1 var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.wa-tabs button[aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.wa-phone { background: #e9efe9; border-radius: 22px; border: 8px solid var(--ink); overflow: hidden; box-shadow: 0 30px 50px -28px rgba(10, 63, 65, .5); }
.wa-top { background: var(--teal); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9375rem; }
.wa-top i { width: 30px; height: 30px; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; font: 800 .8rem var(--display); font-style: normal; color: #2a1700; }
.wa-chat { padding: 18px 14px 22px; min-height: 330px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.wa-evt { align-self: center; background: #fff8e8; border: 1px solid #f3dfb6; color: #6a4a08; font-size: .78rem; padding: 5px 12px; border-radius: 999px; }
.wa-msg { align-self: flex-end; max-width: 86%; background: #d9f6cf; border-radius: 12px 12px 2px 12px; padding: 8px 10px 6px; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg.them { align-self: flex-start; background: #fff; border-radius: 12px 12px 12px 2px; }
.wa-file { display: flex; gap: 10px; align-items: center; background: rgba(0, 0, 0, .06); border-radius: 8px; padding: 9px 10px; margin-bottom: 6px; font-weight: 600; font-size: .85rem; }
.wa-file b { background: #d93025; color: #fff; font: 700 .65rem var(--body); padding: 6px 5px; border-radius: 4px; }
.wa-meta { display: flex; justify-content: flex-end; gap: 4px; align-items: center; font-size: .68rem; color: #5c7a66; margin-top: 2px; }
.wa-meta svg { width: 16px; height: 11px; color: #8aa093; transition: color .4s; }
.wa-msg.read .wa-meta svg { color: #2f8fe0; }
.wa-evt, .wa-msg { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.wa-typing { align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; gap: 4px; }
.wa-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db0a5; animation: dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; } .wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); } 60% { transform: none; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 28px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 800 3.2rem/1 var(--display); color: var(--marigold); letter-spacing: -0.04em; }
.steps p { color: var(--muted); }
kbd { font: 500 .82em var(--mono); background: var(--teal-soft); border: 1px solid #bcd3cf; border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--teal-deep); white-space: nowrap; }

/* Knowledge hub */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; display: grid; gap: 12px; align-content: start; }
.hub p { color: var(--muted); }
.soon { justify-self: start; font-size: .8125rem; font-weight: 600; color: #7a4a00; background: var(--marigold-soft); padding: 4px 10px; border-radius: 999px; }

/* CTA band */
.cta { background: var(--teal-deep); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px); }
.cta-in { position: relative; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.cta h2 { max-width: 18ch; }
.cta p { color: #bcd6d3; margin-top: 14px; max-width: 46ch; }

/* Page header (inner pages) */
.page-head { background: var(--teal-deep); color: #fff; padding: 72px 0 76px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .045) 39px 40px); }
.page-head .wrap { position: relative; display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.page-head .lede { color: #bcd6d3; }
.js .page-head h1, .js .page-head .lede, .js .page-head .hero-cta { opacity: 0; animation: fade-up .8s var(--ease) .05s forwards; }
.js .page-head .lede { animation-delay: .15s; } .js .page-head .hero-cta { animation-delay: .25s; margin-top: 8px; }

/* Catalogue */
.cat-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 32px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; font: 400 1rem var(--body); padding: 13px 16px 13px 44px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: 500 .9rem/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--teal); }
.chips button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto 1fr auto; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; animation: pop .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.item:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 18px 30px -22px rgba(10, 63, 65, .5); }
.item .tag { font-size: .8125rem; color: var(--teal); font-weight: 600; }
.item p { color: var(--muted); font-size: .9688rem; }
.item a { font-weight: 600; color: var(--teal); text-underline-offset: 4px; margin-top: 6px; justify-self: start; }
.item a:hover { color: var(--teal-deep); text-decoration-color: var(--marigold); }
.none { padding: 40px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: 12px; color: var(--muted); grid-column: 1 / -1; }
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.industries div { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.industries p { color: var(--muted); font-size: .9688rem; }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
form.enq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enq .full { grid-column: 1 / -1; }
.enq label { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.enq input, .enq select, .enq textarea { font: 400 1rem var(--body); padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fbfdfc; color: var(--ink); width: 100%; }
.enq textarea { min-height: 130px; resize: vertical; }
.enq input:focus, .enq select:focus, .enq textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.enq .err { color: #b3261e; font-weight: 500; font-size: .875rem; min-height: 0; }
.enq [aria-invalid="true"] { border-color: #b3261e; }
.form-status { font-weight: 500; color: var(--teal); }

/* Contact details */
address { font-style: normal; }
.contact-list { margin: 0; display: grid; }
.contact-list div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); font-size: .9375rem; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a, .prose a { color: var(--teal); text-underline-offset: 4px; }
mark.todo { background: #ffe08a; color: #4a3200; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Legal */
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h2 { font-size: 1.45rem; margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.draft { background: var(--marigold-soft); border-left: 4px solid var(--marigold); padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .9375rem; }

/* Footer */
.site-foot { background: #072c2e; color: #bcd6d3; padding: 56px 0 34px; font-size: .9688rem; }
.foot-in { display: grid; grid-template-columns: 1.1fr .9fr .9fr 1.4fr; gap: 40px; }
.site-foot .brand { color: #fff; margin-bottom: 12px; }
.site-foot h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; font-family: var(--body); letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 4px; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Page transitions (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Responsive */
@media (max-width: 980px) {
  .hero-in, .split, .form-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .hero-in { padding: 56px 0 68px; }
  .grid, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 76px 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px var(--gutter) 18px; gap: 0; display: none; }
  .nav.open { display: flex; animation: fade-up .3s var(--ease); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .head-cta { display: none; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .ledger a { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 22px 8px; }
  .ledger .ds { grid-column: 1; grid-row: 2; }
  .ledger .go { grid-row: 1 / span 2; grid-column: 2; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hub, .grid, .industries { grid-template-columns: 1fr; }
  .industries div { padding-right: 0; }
  form.enq { grid-template-columns: 1fr; padding: 22px; }
  .tw-body { grid-template-columns: 1fr; min-height: 0; }
  .tw-info { display: none; }
  .foot-in { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .head-in .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  @view-transition { navigation: none; }
}
