:root {
  --bg: #eeeee6;
  --fg: #182124;
  --fg-muted: #454b4b;
  --rule: #cdcec5;
  --pad-x: clamp(20px, 4vw, 64px);
  --maxw: 1360px;
  --section-colour: var(--bg);
  --section-ink: var(--fg);
  --booking-bar-height: 32px;
  --type-display: clamp(40px, calc(24px + 4.5vw), 96px);
  --type-title: clamp(28px, 2.5vw, 32px);
  --type-heading: clamp(22px, 2vw, 24px);
  --type-intro: clamp(18px, 1.5vw, 20px);
  --type-body: 16px;
  --type-small: 14px;
  --weight-regular: 400;
  --weight-bold: 700;
  --line-heading: 1.15;
  --line-body: 1.5;
  --tracking-heading: -.025em;
  --tracking-label: .06em;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--booking-bar-height) + 12px); }
body { margin: 0; padding-top: var(--booking-bar-height); min-height: 100vh; display: flex; flex-direction: column; font-size: var(--type-body); font-weight: var(--weight-regular); line-height: var(--line-body); }
a { color: inherit; }
button { font: inherit; color: inherit; }
.arrow-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.125em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 15px; background: var(--fg); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { width: 100%; }
.header-main { width: 100%; max-width: 1600px; margin: auto; min-height: 82px; padding: 18px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-size: 23px; font-weight: 900; letter-spacing: -.07em; text-decoration: none; line-height: 1; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.site-nav a { font-size: var(--type-small); font-weight: var(--weight-bold); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current], .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.consultation-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; width: 100%; height: var(--booking-bar-height); margin: 0; display: flex; justify-content: center; align-items: center; padding: 4px 12px; background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--rule); text-decoration: none; font-size: var(--type-small); font-weight: var(--weight-bold); line-height: var(--line-body); text-align: center; }
.consultation-link-word { text-decoration: underline; text-underline-offset: 3px; }
.consultation-bar:hover .consultation-link-word { text-decoration-thickness: 2px; }
.notice-copy { position: relative; }
.travelling-line { position: absolute; top: 0; left: 0; height: 2px; background: #2446d7; pointer-events: none; opacity: 0; }
.notice-underline .consultation-link-word { text-decoration: none; }
.notice-underline[data-home-notice]:not(.notice-ready) .consultation-link-word { border-bottom: 2px solid #2446d7; padding-bottom: 3px; }
main { flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 30px var(--pad-x) 64px; display: flex; flex-direction: column; gap: 56px; }
.site-footer { width: 100%; max-width: 1600px; margin: 0 auto; padding: 16px var(--pad-x); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; color: var(--fg-muted); font-size: var(--type-small); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

/* Homepage */
.doors { max-width: 1600px; flex-direction: row; gap: 8px; padding: 0 var(--pad-x); min-height: calc(100svh - 135px - var(--booking-bar-height)); }
.panel { position: relative; min-width: 0; min-height: 600px; flex: 1; padding: clamp(24px, 3vw, 47px); display: flex; flex-direction: column; justify-content: space-between; transition: flex .5s cubic-bezier(.2,.75,.15,1); }
.panel.active { flex: 2.25; cursor: pointer; }
.panel:nth-of-type(1) { background: #2446d7; color: #f7f5ed; }
.panel:nth-of-type(2) { background: #ff6545; color: #241c19; }
.panel:nth-of-type(3) { background: #f3cf57; color: #241f16; }
.panel h2 { margin: 0; }
.home-enhanced .panel:not(.active) h2, body:not(.home-enhanced) .panel h2 { font-size: var(--type-title); letter-spacing: var(--tracking-heading); line-height: var(--line-heading); }
.panel-select { border: 0; padding: 0; background: transparent; text-align: left; font: inherit; letter-spacing: inherit; line-height: inherit; cursor: pointer; }
.panel-select::after { content: ''; position: absolute; inset: 0; }
.panel-select:focus-visible { outline: none; }
.panel:has(.panel-select:focus-visible) { outline: 3px solid currentColor; outline-offset: -7px; }
.panel-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 36px; }
.panel-detail { position: relative; z-index: 1; pointer-events: none; max-width: 470px; }
.panel-detail strong { display: block; margin-bottom: 12px; }
.panel-detail p { margin: 0; }
.panel-link { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; line-height: 1; text-decoration: none; }
.panel-link .arrow-icon { width: 36px; height: 36px; transition: transform .2s; }
.panel-link:hover .arrow-icon { transform: translate(3px, -3px); }
body:not(.home-enhanced) .doors { flex-wrap: wrap; }
body:not(.home-enhanced) .panel { flex-basis: 280px; }

/* Content pages */
.theme-ai { --section-colour: #2446d7; --section-ink: #f7f5ed; }
.theme-software { --section-colour: #ff6545; --section-ink: #241c19; }
.theme-crypto { --section-colour: #f3cf57; --section-ink: #241f16; }
.theme-who-we-are { --section-colour: #b9cbb7; --section-ink: #182124; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: var(--line-heading); font-weight: var(--weight-bold); }
/* Six shared text roles. The wordmark remains a separate brand style. */
.panel h2, .focus-hero h1, .hero h1 {
  font-size: var(--type-display);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: -.05em;
}
.panel-detail strong, .case-meta h3, .contact-panel h2, .booking-intro h1 {
  font-size: var(--type-title);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-heading);
}
.case-evidence dt, .network-role h2, .legal h2, .capability h3, .empty-state h3, .booking-unavailable h2 {
  font-size: var(--type-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-heading);
}
.lede, .booking-intro > p { font-size: var(--type-intro); line-height: var(--line-body); }
.eyebrow, .case-label {
  font-size: var(--type-small);
  font-weight: var(--weight-bold);
  line-height: var(--line-body);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.focus-hero { background: var(--section-colour); color: var(--section-ink); padding: clamp(28px, 5vw, 64px); }
.lede { max-width: 65ch; color: var(--fg-muted); }
.focus-hero .lede { margin-top: 24px; color: inherit; }
.focus-hero .lede { max-width: none; }
.lede-sentence { display: block; }
.lede-sentence + .lede-sentence { margin-top: .35em; }
.legacy-anchor { display: block; height: 0; scroll-margin-top: 24px; }
.section-header { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.capability { padding: 28px 24px; border-right: 1px solid var(--rule); }
.capability:first-child { padding-left: 0; }
.capability:last-child { border-right: 0; }
.capability h3 { margin-bottom: 12px; }
.capability p { color: var(--fg-muted); }
.case-list { list-style: none; margin: 0; padding: 0; }
.case-study { padding: 40px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(160px, .6fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 80px); scroll-margin-top: 24px; }
.case-meta h3 { overflow-wrap: break-word; }
.case-evidence { margin: 24px 0 0; display: grid; gap: 18px; }
.case-evidence dt { overflow-wrap: anywhere; }
.case-evidence dd { margin: 4px 0 0; max-width: 24ch; color: var(--fg-muted); font-size: var(--type-small); }
.case-copy { max-width: 66ch; color: var(--fg-muted); }
.case-copy p + p { margin-top: 20px; }
.case-label { display: block; margin-bottom: 6px; color: var(--fg); }
.contact-panel { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 16px; }
.contact-panel h2 { margin-top: 14px; }
.text-link { display: inline-flex; gap: 12px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.hero { display: grid; gap: 24px; }
.hero-header { display: flex; flex-wrap: wrap; gap: 10px; color: var(--fg-muted); font-size: var(--type-small); }
.network-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.network-role { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.network-role p { margin-top: 16px; color: var(--fg-muted); }
.legal { max-width: 70ch; }
.legal h2 { margin-top: 32px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-top: 12px; color: var(--fg-muted); }
.empty-state { padding: 32px; display: grid; gap: 16px; border-bottom: 1px solid var(--rule); }

/* Consultation booking */
.booking-main { max-width: 1060px; padding-top: 40px; }
.booking-intro { padding: clamp(24px, 4vw, 48px); }
.booking-intro > p { margin-top: 18px; }
.booking-meta { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--type-small); }
.booking-form { padding: 0 clamp(12px, 3vw, 32px) 24px; }
.booking-calendar { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
.booking-help { margin: 14px 0 0; font-size: var(--type-small); }
.booking-help a { text-underline-offset: 3px; }
.booking-unavailable { padding: 28px; background: var(--bg); display: grid; gap: 16px; }

@media (max-width: 850px) {
  .header-main { flex-wrap: wrap; gap: 16px; }
  .site-nav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; }
  .home-page .site-nav { display: none; }
  .doors { display: block; }
  .panel { min-height: 180px; margin-bottom: 8px; padding: 25px; }
  .panel.active { min-height: 340px; }
  main { gap: 40px; padding-top: 20px; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
  :root { --booking-bar-height: 52px; }
  .notice-intro, .notice-booking { display: block; }
  .capability-grid, .case-study, .network-grid { grid-template-columns: 1fr; }
  .capability { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 0; }
  .capability:last-child { border-bottom: 0; }
  .case-study { gap: 24px; }
  .case-evidence { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .network-role { padding: 24px 0; }
  .site-footer { align-items: flex-start; }
  .site-footer > span:last-child { width: 100%; }
}
@media (max-width: 480px) {
  .header-main { min-height: 70px; }
  .wordmark { font-size: 22px; }
  .booking-calendar { height: 900px; }
  .booking-unavailable { padding: 22px 16px; }
  .panel-bottom { gap: 12px; }
  .panel-link { width: 36px; }
  .focus-hero { padding: 28px 24px; }
  .focus-hero h1, .hero h1 { overflow-wrap: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .notice-underline .consultation-link-word { border-bottom: 2px solid #2446d7; padding-bottom: 3px; }
  .travelling-line { display: none; }
}
