/* DK825: the departure board. Black board, signal yellow, chalk-white letters, cool paper. */
:root {
  --black: #0A0B0D;
  --flap: #1F2228;
  --split: #0A0B0D;
  --chalk: #F4F4EF;
  --chalk-2: #A9AEB7;
  --yellow: #FFD000;
  --yellow-hover: #FFE14D;
  --paper: #EDEEF0;
  --paper-2: #E1E3E7;
  --ink: #0A0B0D;
  --ink-2: #3A3F47;
  --pass: #15803D;
  --fail: #B91C1C;

  --f: "Bricolage Grotesque", system-ui, sans-serif;
  --t-display: clamp(52px, 9vw, 150px);
  --t-h2: clamp(36px, 5vw, 76px);
  --t-h3: clamp(24px, 2.4vw, 34px);
  --t-statement: clamp(20px, 1.9vw, 26px);
  --t-body: 18px;
  --t-small: 14px;

  --margin: clamp(16px, 3vw, 32px);
  --gap-section: clamp(112px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { font: 400 var(--t-body)/1.55 var(--f); font-optical-sizing: auto; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
.frame { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.04em; line-height: .95; text-wrap: balance; }
h1 { font-size: var(--t-display); }
.section-title { font-size: var(--t-h2); margin-bottom: 28px; }
h3 { font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.statement { font-size: var(--t-statement); line-height: 1.4; max-width: 34ch; font-weight: 500; }
.lead { font-size: var(--t-statement); line-height: 1.4; max-width: 40ch; font-weight: 500; color: var(--chalk-2); }

/* Buttons: square corners */
.btn { display: inline-block; background: var(--ink); color: var(--chalk); padding: 17px 28px; font: 700 17px/1 var(--f); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, color .2s, transform .15s var(--ease); }
.btn:hover { background: #2A2E35; }
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link .ico { transition: transform .2s var(--ease); }
.text-link:hover .ico { transform: translateX(4px); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Bar: part of the board */
.bar { position: sticky; top: 0; z-index: 20; background: var(--black); color: var(--chalk); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mark { font-weight: 800; font-size: 26px; letter-spacing: -0.04em; text-decoration: none; }
.links { display: flex; align-items: center; gap: 32px; font-weight: 500; }
.links a:not(.btn) { text-decoration: none; color: var(--chalk-2); transition: color .2s; }
.links a:not(.btn):hover { color: var(--chalk); }
.links .btn { padding: 12px 20px; font-size: 16px; }
.menu-toggle, .menu-btn { display: none; }

/* ---- Split-flap board (a real interface, keeps its own seams) ---- */
.board { container-type: inline-size; margin-top: clamp(40px, 5vw, 72px); }
.board-head, .row { display: grid; grid-template-columns: repeat(var(--cols, 41), 1fr); column-gap: .45cqi; }
.board-head { font-size: 14px; color: var(--chalk-2); padding-bottom: 10px; }
.grp { display: grid; grid-template-columns: subgrid; }
.board-rows li + li { margin-top: .9cqi; }
.f {
  position: relative; display: grid; place-items: center; aspect-ratio: 5 / 7;
  background: var(--flap); color: var(--chalk); border-radius: 3px;
  font-weight: 700; font-size: calc(100cqi / var(--cols, 41) * .78); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.f::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--split); }
.f.flip { animation: flap .065s linear; }
@keyframes flap { 0% { transform: scaleY(1); } 50% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }
.row .ans .f { color: var(--yellow); }
.mine .grp .f { color: var(--yellow); background: #2B2A1E; }
.ans-line { color: var(--yellow); font-weight: 700; font-size: 15px; margin-top: 6px; }
/* Before the script builds it: a plain readable list */
.board:not(.built) li { display: flex; gap: 24px; color: var(--chalk); font-weight: 700; font-size: 20px; padding: 10px 0; }
.board:not(.built) li span:last-child { color: var(--yellow); }

/* Hero */
.hero { background: var(--black); color: var(--chalk); padding: clamp(40px, 6vw, 96px) 0 clamp(72px, 8vw, 128px); }
.hero h1 { color: var(--chalk); }
.hero-copy { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: end; }
.put { margin-top: clamp(28px, 3vw, 44px); max-width: 720px; }
.put label { display: block; font-weight: 700; margin-bottom: 12px; }
.put-row { display: flex; gap: 8px; }
.put input { flex: 1; min-width: 0; font: 700 20px/1 var(--f); text-transform: uppercase; color: var(--chalk); background: var(--flap); border: 0; padding: 16px 18px; border-radius: 0; }
.put input::placeholder { color: var(--chalk-2); text-transform: none; font-weight: 500; }
.put input:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.put-next { margin-top: 16px; color: var(--yellow); }

/* The 08:25 moment: one full field of yellow */
.moment { background: var(--yellow); padding: var(--gap-section) 0; overflow: hidden; }
.moment-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.moment-time { font-weight: 800; font-size: clamp(120px, 21vw, 340px); line-height: .8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.moment-copy p + p { margin-top: 20px; max-width: 48ch; }

/* Solutions: steps beside a sticky flap clock */
.fit { padding: var(--gap-section) 0; }
.fit-in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.fit-side { position: sticky; top: calc(50vh - 120px); }
.clock { container-type: inline-size; display: grid; grid-template-columns: repeat(8, 1fr); gap: 1.2cqi; background: var(--black); padding: 3cqi; border-radius: 6px; }
.clock .f { font-size: calc(100cqi / 8 * .72); }
.clock-cap { margin-top: 14px; font-size: var(--t-small); color: var(--ink-2); }
.clock-fallback { color: var(--chalk); font-weight: 800; font-size: 48px; grid-column: 1 / -1; }
.step { padding: 36px 0; transition: opacity .4s; }
.js .step:not(.on) { opacity: .35; }
.js .step.on, .js .step:hover { opacity: 1; }
.step h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.step .t { font-size: .6em; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.step p { max-width: 50ch; }
.early-btn { margin-top: 28px; }

/* Three pillars: the page's index, set huge */
.pillars { padding: var(--gap-section) 0; }
.pillar { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 32px; align-items: center; text-decoration: none; padding: clamp(24px, 3vw, 44px) clamp(20px, 2.6vw, 36px); background: var(--paper-2); margin-top: 4px; transition: background .25s; }
.pillar h3 { font-size: clamp(44px, 7vw, 112px); line-height: .9; letter-spacing: -0.045em; margin: 0; }
.pillar p { font-size: var(--t-statement); line-height: 1.35; font-weight: 500; max-width: 32ch; }
.pillar .ico { width: clamp(32px, 4vw, 56px); height: clamp(32px, 4vw, 56px); stroke-width: 2.5; transition: transform .25s var(--ease); }
.pillar:hover { background: var(--yellow); }
.pillar:hover .ico { transform: translateX(8px); }

/* AI Products: an arrivals board on black */
.prod { background: var(--black); color: var(--chalk); padding: var(--gap-section) 0; }
.prod-head, .eng-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.prod-head .section-title, .eng-head .section-title { margin-bottom: 0; }
.prod .statement { color: var(--chalk-2); }
.board-title { font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.02em; color: var(--yellow); margin-bottom: 18px; }
.arrivals { margin-top: clamp(48px, 6vw, 88px); }
.prod-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.prod-foot p { font-size: var(--t-statement); line-height: 1.4; max-width: 40ch; color: var(--chalk-2); }

/* AI Engineering */
.eng { background: var(--paper-2); padding: var(--gap-section) 0; }
.eng-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: clamp(48px, 6vw, 88px) 0 48px; }
.eng-list li { background: var(--paper); padding: clamp(24px, 2.8vw, 40px); transition: background .2s; }
.eng-list li:hover { background: var(--yellow); }
.eng-list p { max-width: 42ch; }

/* How we work: back on the board */
.approach { background: var(--black); color: var(--chalk); padding: var(--gap-section) 0; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 24px; }
.principles li { background: var(--flap); padding: clamp(28px, 3.5vw, 52px); transition: background .2s, color .2s; }
.principles li:hover { background: var(--yellow); color: var(--ink); }
.principles li:hover p { color: var(--ink); }
.principles h3 { font-size: clamp(28px, 3.4vw, 52px); }
.principles p { color: var(--chalk-2); max-width: 36ch; transition: color .2s; }

/* About: the photograph runs edge to edge */
.about { padding-bottom: var(--gap-section); }
.about-photo { overflow: hidden; }
.about-photo img { width: 100%; height: clamp(320px, 62vw, 820px); object-fit: cover; object-position: 50% 45%; }
.about-photo figcaption { font-size: var(--t-small); color: var(--ink-2); margin-top: 14px; }
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); margin-top: clamp(56px, 6vw, 96px); }
.about-copy p { max-width: 52ch; }
.about-copy p + p { margin-top: 20px; }
.about-copy .statement { max-width: 30ch; }

/* Contact: yellow field */
.contact { background: var(--yellow); padding: var(--gap-section) 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); }
.info { margin-top: 44px; }
.info div { display: grid; grid-template-columns: 100px 1fr; padding: 8px 0; }
.info a { font-weight: 700; }
.form { background: var(--black); color: var(--chalk); padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: 400 17px/1.4 var(--f); padding: 14px; border: 0; background: var(--flap); width: 100%; border-radius: 0; color: var(--chalk); }
.form select { appearance: auto; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.form .btn { justify-self: start; background: var(--yellow); color: var(--ink); }
.form .btn:hover { background: var(--yellow-hover); }
.hp { position: absolute; left: -9999px; }
.notice { background: #DCFCE7; color: var(--pass); padding: 14px; font-weight: 700; }
.notice.err { background: #FEE2E2; color: var(--fail); }

/* Footer: the name returns on the board, full width */
.footer { background: var(--black); color: var(--chalk); padding: clamp(56px, 6vw, 96px) 0 32px; }
.foot-name { container-type: inline-size; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2cqi; }
.foot-name .f { font-size: calc(100cqi / 5 * .72); border-radius: 6px; }
.foot-name .f::after { height: 4px; margin-top: -2px; }
.foot-name .clock-fallback { font-size: 22vw; line-height: .8; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; font-weight: 500; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-row a { text-decoration: none; color: var(--chalk-2); }
.footer-row a:hover { color: var(--chalk); }

/* Motion: content is visible without script; with it, parts rise in order */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .step[data-reveal].in:not(.on) { opacity: .35; }
.js .about-photo img { transform: scale(1.1); transition: transform 2.6s var(--ease); }
.js .about-photo.in img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tablet */
@media (max-width: 1080px) {
  .hero-copy, .moment-in, .fit-in, .prod-head, .eng-head, .about-in, .contact-in { grid-template-columns: 1fr; }
  .prod-head, .eng-head { gap: 0; }
  .prod-head .section-title, .eng-head .section-title { margin-bottom: 28px; }
  .pillar { grid-template-columns: 1fr auto; }
  .pillar p { grid-column: 1; }
  .pillar .ico { grid-row: 1; grid-column: 2; }
  .eng-list { grid-template-columns: 1fr 1fr; }
  .fit-side { position: sticky; top: 72px; z-index: 5; background: var(--paper); padding: 12px 0; }
  .clock-cap { display: none; }
  .js .step:not(.on) { opacity: 1; }
  .js .step[data-reveal].in:not(.on) { opacity: 1; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .menu-btn { display: block; width: 44px; height: 44px; position: relative; cursor: pointer; }
  .menu-btn span[aria-hidden], .menu-btn span[aria-hidden]::before, .menu-btn span[aria-hidden]::after { position: absolute; left: 8px; width: 28px; height: 3px; background: var(--chalk); content: ""; }
  .menu-btn span[aria-hidden] { top: 20px; }
  .menu-btn span[aria-hidden]::before { top: -8px; left: 0; }
  .menu-btn span[aria-hidden]::after { top: 8px; left: 0; }
  .links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); padding: 8px var(--margin) 24px; }
  .links a:not(.btn) { padding: 14px 0; font-size: 22px; font-weight: 700; color: var(--chalk); }
  .links .btn { text-align: center; margin-top: 12px; padding: 16px; }
  .menu-toggle:checked ~ .links { display: flex; }
  .menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--yellow); }
  .board-rows li + li { margin-top: 14px; }
  .board .f { font-size: calc(100cqi / var(--cols) * .92); border-radius: 2px; }
  .board .f::after { height: 1px; margin-top: 0; }
  .put-row { flex-direction: column; }
  .moment-time { font-size: 34vw; }
  .principles, .eng-list { grid-template-columns: 1fr; }
  .pillar { gap: 12px 16px; }
  .info div { grid-template-columns: 84px 1fr; }
  .form .btn { justify-self: stretch; text-align: center; }
}
