/* Every colour is a token: light-dark(light value, dark value). */
:root {
  color-scheme: light dark;
  --text: light-dark(#2b2e31, #eceef0);
  --muted: light-dark(#5d636b, #a9b1ba);
  --accent-text: light-dark(#a9500a, #ffa24d);
  --orange: #f5821f;
  --yellow: #ffcb08;
  --gold: light-dark(#d9a900, #ffcb08);
  --on-accent: #1c1e20;
  --bg: light-dark(#ffffff, #16181b);
  --header: light-dark(rgb(255 255 255 / .94), rgb(22 24 27 / .94));
  --tint: light-dark(#f6f6f7, #1c1f23);
  --surface: light-dark(#ffffff, #23272c);
  --line: light-dark(#e4e5e8, #353b43);
  --band: light-dark(#2b2e31, #0e0f11);
  --band-edge: light-dark(#2b2e31, #353b43);
  --band-line: light-dark(#474b50, #2c3137);
  --on-band: #ffffff;
  --on-band-soft: #d4d8dd;
  --on-band-faint: #b9bec5;
  --radius: 12px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.on-dark { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
:root[data-theme="dark"] .on-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .on-dark { display: block; }
  :root:not([data-theme]) .on-light { display: none; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .45em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 24px; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--yellow); color: var(--on-accent); padding: 8px 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .16em; font-size: 1.05rem; }
.brand b { color: var(--orange); }
.brand i { color: var(--gold); font-style: normal; font-weight: 700; }
.menu { display: flex; gap: 22px; margin-left: auto; white-space: nowrap; }
.tools { display: flex; align-items: center; gap: 10px; }
.menu a, .tools a { color: var(--text); text-decoration: none; font-size: .93rem; }
.menu a:hover, .tools a:hover { color: var(--accent-text); }
.tools .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }
.tools .lang:hover { border-color: currentColor; }
.theme { display: none; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.theme:hover { color: var(--accent-text); border-color: currentColor; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme] .theme { display: grid; }
.theme .sun, :root[data-theme="dark"] .theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }

/* hero: the AI promise on the left, what readiness covers on the right; delivered results sit in a strip below */
.hero { padding: clamp(32px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.ready { background: var(--band); color: var(--on-band); border: 1px solid var(--band-edge); border-radius: var(--radius); padding: 0 22px 8px; }
.ready h2 { font-size: .8rem; margin: 0; color: var(--on-band-faint); letter-spacing: .02em; font-weight: 500; text-wrap: wrap; }
.ready li { display: grid; grid-template-columns: 124px 1fr; column-gap: 16px; padding: 12px 0; }
.ready li + li { border-top: 1px dashed var(--band-line); }
.ready b { color: var(--yellow); font-size: 1rem; line-height: 1.45; }
.ready span { font-size: .95rem; line-height: 1.45; color: var(--on-band-soft); }
/* Console look: a terminal window. Always dark, in light mode too. */
.console { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.console .bar { display: flex; align-items: center; gap: 12px; margin: 0 -22px; padding: 10px 16px; border-bottom: 1px solid var(--band-line); }
.console .dots { display: flex; gap: 6px; }
.console .dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.console .dots i:nth-child(2) { background: #febc2e; }
.console .dots i:nth-child(3) { background: #28c840; }
.console .cmd { margin: 0; padding-top: 14px; font-size: .85rem; color: var(--on-band-soft); }
.console .cmd:last-child { padding-top: 10px; padding-bottom: 6px; }
.console .cmd em { font-style: normal; color: #7ee787; }
.console li b::before { content: "✓ "; color: #7ee787; }
.console b, .console span { font-size: .88rem; }
.caret { display: inline-block; width: .55em; height: 1em; vertical-align: text-bottom; background: var(--yellow); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.delivered { padding: 12px 0 36px; }
.ledger { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 28px; }
.ledger li { display: grid; align-content: start; row-gap: 3px; border-top: 3px solid var(--orange); padding-top: 12px; }
.ledger b { font-size: 2rem; line-height: 1.1; color: var(--accent-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger span { font-size: .93rem; line-height: 1.4; }
.ledger a, .ledger em { justify-self: start; margin-top: 2px; font-style: normal; font-size: .82rem; color: var(--muted); text-underline-offset: 3px; }
.ledger a:hover { color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.button { display: inline-block; background: var(--orange); color: var(--on-accent); font-weight: 650; text-decoration: none; border: 2px solid var(--orange); border-radius: 999px; padding: 10px 22px; }
.button:hover { background: var(--yellow); border-color: var(--yellow); }
.button:active { transform: translateY(1px); }
.cta { padding: 5px 16px; font-size: .9rem; white-space: nowrap; }
.button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.button.ghost:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); }

/* sections */
.block { padding: clamp(40px, 5vw, 60px) 0; }
.tinted { background: color-mix(in srgb, var(--tint) 82%, transparent); }
/* The huge logo behind the page, fixed and faint. Light: the flat logo. Dark: the logo on its dark glass wall.
   Dark opacity stays at .25 or below so even grey text keeps 4.5:1 over the brightest letters. */
.backdrop { position: fixed; inset: 0; z-index: -1; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.backdrop .on-light { width: min(max(135vw, 520px), 1200px); max-width: none; opacity: .07; }
.backdrop .on-dark { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .25; }
.note { color: var(--muted); font-size: .92rem; margin: 20px 0 0; }

/* work */
/* Three to a row; the last row's cards grow to fill it, so five cards read as 3 + 2. */
.cases { display: flex; flex-wrap: wrap; gap: 16px; }
.cases > .case { flex: 1 1 calc((100% - 32px) / 3); min-width: 0; }
.case { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.case.featured { border-top: 3px solid var(--orange); margin-bottom: 16px; }
/* An opened card grows alone instead of stretching its neighbours. */
.cases:has(details[open]) { align-items: start; }
.case h3 { margin-top: 12px; }
.featured h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.client { font-weight: 700; color: var(--accent-text); margin: 0; }
.badge { display: inline-block; margin-left: 8px; padding: 3px 12px; background: var(--orange); border: 1px solid var(--orange); border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--on-accent); vertical-align: 1px; }
.context { color: var(--muted); font-size: .83rem; margin: 0; }
.summary { color: var(--muted); font-size: .9rem; }
.highlight { border-left: 2px solid var(--orange); padding-left: 12px; margin: 0; font-size: .92rem; line-height: 1.4; }
.results { display: grid; gap: 12px; }
.featured .results { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
.story { display: grid; grid-template-columns: 2fr 1fr; gap: 20px 36px; margin-top: 6px; }
.story h4 { margin: 0 0 8px; font-size: .9rem; }
.start p { color: var(--muted); font-size: .92rem; }
.results li { display: flex; flex-direction: column; border-left: 2px solid var(--orange); padding-left: 12px; }
.results strong { font-size: .95rem; line-height: 1.35; }
.results span { color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.case details { margin-top: auto; padding-top: 14px; }
.story details { padding-top: 14px; }
.case summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.case summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: .9rem; width: fit-content; }
.case details[open] summary { margin-bottom: 14px; }
.stack { color: var(--muted); font-size: .78rem; margin: 0; padding-top: 16px; }

/* services, industries, steps, technologies */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.services li, .technologies li, .ai-uses li { border-top: 2px solid var(--line); padding-top: 14px; }
.services .featured-service { grid-column: 1 / -1; border-top-color: var(--orange); }
.featured-service p { max-width: 52em; font-size: 1rem; color: var(--text); }
.services p, .steps p, .technologies p, .ai-uses p { color: var(--muted); margin: 0; font-size: .93rem; }
.proof { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.proof h2 { font-size: 1.15rem; margin-bottom: 16px; }
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; }
.industries li { border-top: 2px solid var(--line); padding-top: 10px; }
.industries h3 { font-size: .83rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-bottom: 8px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; }
/* Logos sit on white tiles, so any brand colour reads in both light and dark mode. */
.logo-tile { display: grid; place-items: center; min-width: 84px; height: 52px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #1c1e20; text-decoration: none; }
.logo-tile img { display: block; width: auto; height: auto; max-width: 124px; max-height: 34px; }
.logo-item { display: grid; justify-items: start; gap: 5px; align-content: start; }
.tile-badge { margin-left: 0; font-size: .9rem; padding: 4px 14px; }
/* The partner's tile stands out: orange frame, and its label spans the tile's width. */
.logo-item:has(.tile-badge) .logo-tile { border: 2px solid var(--orange); }
.logo-item:has(.tile-badge) { justify-items: stretch; text-align: center; }
.logo-name { font-weight: 700; font-size: .9rem; line-height: 1.2; text-align: center; }
a.logo-tile:hover { border-color: var(--orange); }
a.logo-tile:focus-visible { outline-offset: 2px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--orange); color: var(--on-accent); font-weight: 700; }
.technologies, .ai-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.technologies h3, .ai-uses h3 { font-size: 1rem; }
#ai .note { margin: -12px 0 22px; max-width: 46em; }

/* what client teams say */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quotes figure { display: flex; flex-direction: column; margin: 0; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quotes blockquote { margin: 0 0 16px; font-size: .95rem; }
.quotes figcaption { display: flex; flex-direction: column; margin-top: auto; }
.quotes figcaption span { color: var(--muted); font-size: .85rem; }
h2 + .note { margin: -12px 0 20px; }
.more { margin: 20px 0 0; font-size: .93rem; }

/* about */
.about { display: grid; grid-template-columns: 190px minmax(0, 1fr) 220px; gap: 24px 48px; align-items: start; }
.about-logo { width: 100%; }
.about p { max-width: 38em; }
.about p:last-child { margin-bottom: 0; }
.about dl { margin: 0; }
.about dt { font-weight: 700; margin-top: 12px; }
.about dt:first-child { margin-top: 0; }
.about dd { margin: 2px 0 0; color: var(--muted); }
.about dd a { color: inherit; text-underline-offset: 3px; }
.about .profile { margin-top: 14px; }

.contact { background: var(--band); color: var(--on-band); border-top: 1px solid var(--band-edge); text-align: center; padding: clamp(48px, 7vw, 80px) 0; }
.contact h2 { margin-bottom: 12px; }
.contact p { max-width: 34em; margin-inline: auto; color: var(--on-band-soft); }
.contact .actions { justify-content: center; margin-block: 24px 16px; }
.contact .button { color: var(--on-accent); }
.contact .address { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; max-width: none; margin-bottom: 0; }
.contact .address a { color: var(--yellow); overflow-wrap: anywhere; }
.contact .social { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--band-line); border-radius: 50%; }
.contact .social:hover { border-color: var(--yellow); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: .86rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* digital business card */
.card-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--tint); }
.id-card { width: min(420px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 28px 24px 22px; box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.card-logo { display: block; width: 150px; margin: 0 auto 14px; }
.id-card h1 { font-size: 1.6rem; margin-bottom: 2px; }
.id-card .role { color: var(--accent-text); font-weight: 650; margin: 0; }
.id-card .where { color: var(--muted); font-size: .9rem; margin: 2px 0 20px; }
.id-card .save { display: block; width: 100%; }
.card-icons { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.card-icons a { display: grid; place-items: center; width: 54px; height: 54px; color: var(--text); border: 1px solid var(--line); border-radius: 50%; }
.card-icons a:hover { color: var(--accent-text); border-color: var(--orange); }
.card-icons svg { width: 24px; height: 24px; }
.card-icons svg:not([stroke]) { fill: currentColor; }
.qr-box { margin: 22px 0 0; display: grid; justify-items: center; gap: 8px; }
.qr { width: 220px; height: 220px; border: 1px solid var(--line); border-radius: 8px; }
.qr-box figcaption { color: var(--muted); font-size: .85rem; max-width: 24em; }
.card-lang { margin: 16px 0 0; font-size: .86rem; }

.not-found { display: grid; place-items: center; min-height: 100vh; text-align: center; padding: 20px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cases > .case { flex-basis: calc((100% - 16px) / 2); }
  .industries, .steps, .technologies, .ai-uses, .ledger { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-logo { width: 140px; }
}

/* The section menu gets its own row, which scrolls sideways, beside the contact button. */
@media (max-width: 1040px) {
  html { scroll-padding-top: 100px; }
  .top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand tools" "menu cta"; gap: 0 12px; padding-block: 8px 6px; }
  .brand { grid-area: brand; }
  .tools { grid-area: tools; justify-self: end; }
  .menu { grid-area: menu; margin: 0; gap: 20px; overflow-x: auto; padding: 8px 28px 6px 2px; scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .cta { grid-area: cta; justify-self: end; align-self: center; }
}

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; gap: 16px; }
}

/* On phones, projects and quotes sit side by side and are swiped, which keeps the page short. */
@media (max-width: 640px) {
  .rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 12px; scroll-padding-inline: 20px; }
  .rail > * { scroll-snap-align: start; }
  .featured .results { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps h3 { margin-bottom: 2px; }
  .industries { gap: 12px 16px; }
  .clients { flex-direction: column; gap: 6px; }
  .logo-item { width: 100%; }
  .logo-tile { width: 100%; height: 48px; }
  .ready { padding: 0 16px 4px; }
  .console .bar { margin: 0 -16px; }
  .ready li { grid-template-columns: 1fr; row-gap: 2px; padding: 10px 0; }
  .delivered { padding-bottom: 24px; }
  .ledger { grid-auto-columns: 62%; gap: 12px; }
  .ledger b { font-size: 1.7rem; }
  :root .about img.about-logo { display: none; }
  .hero .actions { gap: 8px; margin-top: 16px; }
  .hero .button { padding: 9px 15px; font-size: .9rem; }
  .featured .stack { display: none; }
  .technologies { gap: 16px; }
  .ai-uses { grid-auto-columns: 64%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
