: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);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; line-height: 1.55; }
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%; 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: 12px; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current], .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.header-contact { flex-shrink: 0; font-size: 13px; font-weight: 800; text-decoration: none; border-bottom: 2px solid; padding-bottom: 4px; }
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: 11px; }
.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); }
.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 { font-size: clamp(50px, 6.2vw, 105px); line-height: .9; letter-spacing: -.085em; margin: 0; font-weight: 900; }
.home-enhanced .panel:not(.active) h2 { font-size: clamp(26px, 2.7vw, 45px); }
.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; font-size: clamp(23px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 12px; }
.panel-detail p { font-size: clamp(15px, 1.3vw, 19px); line-height: 1.35; 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; font-size: 36px; 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; }
body:not(.home-enhanced) .panel h2 { font-size: clamp(36px, 4vw, 64px); }

/* Content pages */
.theme-ai { --section-colour: #2446d7; --section-ink: #f7f5ed; }
.theme-software { --section-colour: #ff6545; --section-ink: #241c19; }
.theme-blockchain { --section-colour: #f3cf57; --section-ink: #241f16; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
.back-link { align-self: flex-start; font-size: 13px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.focus-hero { background: var(--section-colour); color: var(--section-ink); padding: clamp(28px, 5vw, 64px); }
.focus-hero h1, .focus-hero-copy h1 { font-size: clamp(52px, 8vw, 110px); font-weight: 900; letter-spacing: -.075em; line-height: .95; }
.lede { max-width: 65ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--fg-muted); }
.focus-hero .lede { margin-top: 24px; color: inherit; }
.section-jumps { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 32px; font-size: 15px; font-weight: 700; }
.section-jumps a { text-underline-offset: 5px; }
.ai-area { display: grid; gap: 36px; scroll-margin-top: 24px; }
.ai-area-header { padding-top: 24px; border-top: 4px solid var(--section-colour); }
.ai-area-header h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 900; letter-spacing: -.05em; }
.ai-area-header .lede { margin-top: 18px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.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; font-size: 18px; }
.capability p { font-size: 15px; 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 { font-size: 23px; letter-spacing: -.025em; }
.case-evidence { margin: 24px 0 0; display: grid; gap: 18px; }
.case-evidence dt { font-size: clamp(21px, 2vw, 29px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.case-evidence dd { margin: 4px 0 0; max-width: 24ch; color: var(--fg-muted); font-size: 13px; }
.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); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.contact-panel { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 16px; }
.contact-panel h2 { margin-top: 14px; font-size: clamp(28px, 3vw, 44px); font-weight: 900; letter-spacing: -.05em; }
.text-link { display: inline-flex; gap: 12px; font-size: 16px; 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: 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 900; letter-spacing: -.06em; }
.network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.network-role { padding: 30px 24px; border-bottom: 1px solid var(--rule); }
.network-role h2 { font-size: 22px; }
.network-role p { margin-top: 16px; max-width: 48ch; color: var(--fg-muted); }
.legal { max-width: 70ch; }
.legal h2 { font-size: 22px; 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); }

@media (max-width: 850px) {
  .site-header { 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; }
  .panel h2, .home-enhanced .panel:not(.active) h2 { font-size: clamp(46px, 9vw, 80px); }
  .panel-detail strong { font-size: clamp(25px, 4vw, 36px); }
  .panel-detail p { font-size: 17px; }
  main { gap: 40px; padding-top: 20px; }
  .contact-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
  .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) {
  .site-header { min-height: 70px; }
  .wordmark { font-size: 22px; }
  .header-contact { font-size: 12px; }
  .panel h2, .home-enhanced .panel:not(.active) h2 { font-size: clamp(38px, 10.5vw, 56px); }
  .panel-bottom { gap: 12px; }
  .panel-detail strong { font-size: 25px; }
  .panel-detail p { font-size: 15px; }
  .panel-link { width: 36px; }
  .focus-hero { padding: 28px 24px; }
  .focus-hero h1, .focus-hero-copy h1 { font-size: clamp(42px, 11vw, 56px); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
