/* Ornn website. Built on design-system/tokens.css (Ornn Ironworks). Colours come from tokens only. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--label); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 16px; }

/* layout */
.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(64px, env(safe-area-inset-left, 0px));
  padding-right: max(64px, env(safe-area-inset-right, 0px));
}
.section { padding-block: var(--space-9); }
.section-flush-top { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }
.head { max-width: 920px; }
.split { display: flex; flex-wrap: wrap; gap: 48px 32px; }
.split-center { align-items: center; }
.split-col { flex: 1 1 480px; min-width: 0; }

/* type helpers (sizes come from tokens.css classes) */
.display-xl, .display-l, .display-m { text-wrap: balance; }
.section-label { color: var(--label); }
/* Section tag: the number in a small chamfered plate (the button's corner cut), then the name and a
   short tick. Sections without a number get a hollow diamond instead. */
.section-tag { display: flex; align-items: center; gap: 12px; color: var(--label); }
.section-tag::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.tag-num { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 22px; padding: 0 6px; background: var(--label); color: var(--surface); font-weight: 500; letter-spacing: .06em; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.tag-dia { width: 9px; height: 9px; margin: 0 4px; flex-shrink: 0; transform: rotate(45deg); box-shadow: inset 0 0 0 1px currentColor; }
.muted { color: var(--ink-muted); }
.body-color { color: var(--ink-body); }
.small { font-size: 15px; line-height: 1.45; }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink-body); max-width: 540px; }
.accent-text { color: var(--accent); }
/* Logo: the cog-N icon opens into ORNN ROBOTICS on hover and focus (logo/animation/ornn-logo-hover.css). Phones get it open. */
.site-logo { height: 40px; color: var(--ink); }
.footer-logo { display: block; width: 40px; height: 40px; }
@media (max-width: 520px) { .site-logo { height: 26px; } }

/* shapes */
.dia { width: 9px; height: 9px; flex-shrink: 0; display: inline-block; transform: rotate(45deg); background: var(--c, var(--ink)); }
.dia.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); }
.dia.outline.accent { box-shadow: inset 0 0 0 1px var(--accent); }
.hazard { height: 8px; background: repeating-linear-gradient(135deg, var(--yellow-500) 0 14px, var(--navy-900) 14px 28px); }
.rec { color: var(--yellow-500); animation: blink 1s steps(2, start) infinite; }  /* yellow recording light, same as the headset in motion.js */
@keyframes blink { to { visibility: hidden; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 28px;
  border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font: 600 16px/1 var(--font-sans); text-decoration: none;
  clip-path: polygon(var(--cut-md) 0, 100% 0, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%, 0 var(--cut-md));
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; clip-path: polygon(var(--cut-sm) 0, 100% 0, 100% calc(100% - var(--cut-sm)), calc(100% - var(--cut-sm)) 100%, 0 100%, 0 var(--cut-sm)); }
.btn:focus-visible { outline-offset: 3px; }

/* cards */
.card { background: var(--surface-raised); border: 1px solid var(--border); }

/* 01 hero */
.hero { position: relative; min-height: min(900px, 100svh); display: flex; flex-direction: column; overflow: hidden; background: var(--navy-900); color: var(--ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14,26,43,.86) 0%, rgba(14,26,43,.55) 45%, rgba(14,26,43,.15) 100%),
  linear-gradient(180deg, rgba(14,26,43,.55) 0%, rgba(14,26,43,0) 30%, rgba(14,26,43,.85) 100%); }
.hero-grid { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; background-image: radial-gradient(circle, var(--blue-300) 1.2px, transparent 1.6px); background-size: 14px 14px; opacity: .12; }
.hud { position: absolute; inset: 96px 40px 40px; pointer-events: none; }
.hud-corner { position: absolute; width: 22px; height: 22px; border-color: rgba(238,242,247,.55); border-style: solid; border-width: 0; }
.hud-corner.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-corner.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-corner.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-corner.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.site-header { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-block: 28px; }
.hero-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-bottom: 72px; scroll-margin-top: 0; }
.hero-readout { color: var(--ink-body); padding-top: 12px; }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; flex: 1 1 520px; max-width: 840px; min-width: 0; }
@media (min-width: 761px) {
  .hero-bottom { flex: 1; }
  .hero-copy { min-width: auto; align-self: center; }
  .hero-side { align-self: flex-end; }
  .hero-copy .lede { max-width: none; white-space: nowrap; }
}
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.partner-card { display: flex; flex-direction: column; gap: 10px; min-width: 300px; padding: 20px 24px; background: var(--steel-100); color: var(--navy-900); text-decoration: none; border-left: 4px solid var(--yellow-500); }
.partner-card .label-s { color: #4E5D70; }
.partner-card-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.1; text-transform: uppercase; }
.partner-card:hover { background: #FFFFFF; }
.partner-card:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }
.js .partner-card { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out, background .2s; }
.js .partner-card.is-in { opacity: 1; transform: none; }

/* 02 get paid */
.points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: var(--ink-body); }
.points li { display: flex; align-items: center; gap: 14px; }
.js .points li { opacity: 0; transform: translateY(8px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .points.is-in li { opacity: 1; transform: none; }
.js .points.is-in li:nth-child(2) { transition-delay: .15s; }
.js .points.is-in li:nth-child(3) { transition-delay: .3s; }
.referral {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 28px; background: var(--surface); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut-md)) 0, 100% var(--cut-md), 100% 100%, var(--cut-md) 100%, 0 calc(100% - var(--cut-md)));
}
.referral-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.referral .accent-text { font-variant-numeric: tabular-nums; }

/* 03 who + where */
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.chip {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 48px; padding: 14px 16px; text-align: left;
  background: var(--surface-raised); color: var(--ink); border: 1px solid var(--border); border-radius: 0;
  font: 600 16px/1.2 var(--font-display); text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.numeral { font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: 1; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.numeral small { font-size: 18px; color: var(--ink-muted); }
.ramp { height: 8px; background: linear-gradient(90deg, var(--blue-700), var(--blue-600) 35%, var(--yellow-500) 70%, var(--yellow-200)); }
.estimate { display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.estimate-key { font-weight: 700; color: var(--ink); }
.estimate-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.estimate-control { display: flex; align-items: center; gap: 12px; flex: 0 1 320px; }
.estimate-control .label-s { white-space: nowrap; }
.estimate-slider { flex: 1; min-width: 100px; margin: 0; accent-color: var(--blue-600); cursor: pointer; }
.estimate-count { display: inline-block; min-width: 3ch; margin-left: 6px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip-num { font: 10px/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-muted); }
/* Not clickable: a sector turns navy while hovered, like the "This is just the beginning" cards (Rayan, 15 Nov). */
.chip:hover { background: var(--navy-900); color: #EEF2F7; border-color: var(--navy-900); }
.chip:hover .chip-num { color: var(--accent); }

.map { position: relative; width: 100%; aspect-ratio: 2 / 1; background: var(--navy-950); overflow: hidden; color: #EEF2F7; }
.map-inner { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.map-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-glow { position: absolute; left: 77.2%; top: 48.5%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,199,44,.55) 0%, rgba(255,199,44,.18) 40%, transparent 70%); animation: region-glow 3s ease-in-out infinite; }
@keyframes region-glow { 0%, 100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; transform: rotate(45deg); }
.pin.live { background: var(--yellow-500); box-shadow: 0 0 16px var(--yellow-500); }
.pin.live.is-active { background: var(--yellow-200); box-shadow: 0 0 22px var(--yellow-200); }
.pin.next { width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 1px solid var(--blue-300); }
.pin-label { position: absolute; transform: translateY(-50%); white-space: nowrap; padding: 4px 8px; background: rgba(14,26,43,.85); border: 1px solid var(--navy-700); font: 10px/1.4 var(--font-mono); letter-spacing: .12em; color: #EEF2F7; }
.pin-label em { font-style: normal; color: var(--blue-300); }
.pin-label.to-left { transform: translate(-100%, -50%); }
.pin-label.below { transform: translateX(-50%); }
.pin-label.live { border-color: var(--yellow-500); color: var(--yellow-500); }
.map-tag { position: absolute; left: 24px; top: 20px; color: #9FB0C4; }
.map-cards { position: absolute; inset: 0; }
.map-card {
  position: absolute; width: 10%; border: 1px solid var(--yellow-500); min-width: 100px; display: flex; flex-direction: column;
  background: var(--steel-100); color: var(--navy-900);
  opacity: 0; transform: scale(.96); transform-origin: left top; transition: opacity .3s ease-out, transform .3s ease-out;
}
.map-card.is-in { opacity: 1; transform: none; }
.map-card video { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: var(--navy-800); }

/* 04 how it works */
.band-raised { background: var(--surface-raised); border-block: 1px solid var(--border); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.rail { position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--border); }
.rail i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--progress, 0%); background: var(--accent); transition: width 0s linear; }  /* duration set in main.js */
.step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step-dia { width: 14px; height: 14px; transform: rotate(45deg); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--ink); transition: background .3s, box-shadow .3s; }
.step.is-lit .step-dia, html:not(.js) .step-dia { background: var(--accent); box-shadow: none; }
.step > .section-label { padding-top: 10px; }
.step p { font-size: 15px; line-height: 1.45; color: var(--ink-body); }
.step-loop { position: relative; height: 120px; background: linear-gradient(170deg, var(--navy-700), var(--navy-900)); }
.step-loop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: .55; transition: opacity .4s; }
.step.is-lit .step-loop canvas { opacity: 1; }
.step-loop .label-s { position: absolute; left: 10px; bottom: 8px; color: #9FB0C4; }
.beginning { position: relative; display: flex; flex-wrap: wrap; gap: 32px; padding-top: 56px; }
.rail-next { top: 0; background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px); }
.rail-next i { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
.twin { flex: 1 1 100%; position: relative; aspect-ratio: 16 / 6; background: var(--navy-950, #0A1422); overflow: hidden; }
.twin video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.beginning-head { flex: 1 1 360px; min-width: 0; }
.beginning-title { font-size: 40px; line-height: 1.05; }
.offers { flex: 2 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.offer { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--steel-100); border: 1px solid var(--border); }
.offer h4 { font: 600 20px/1.2 var(--font-display); text-transform: uppercase; }
.offer p { font-size: 15px; line-height: 1.45; color: var(--ink-body); }
/* Nothing is highlighted until hovered; hover turns the card navy (Rayan, 15 Nov). */
.offer { transition: background .2s, border-color .2s, color .2s; }
.offer:hover { background: var(--navy-900); border-color: var(--navy-900); color: #EEF2F7; }
.offer:hover p { color: #C3CEDC; }
.offer:hover .dia.outline { box-shadow: inset 0 0 0 1px var(--yellow-500); }

/* 05 labs */
.band-dark { background: var(--surface); color: var(--ink); }
.labs-player { display: flex; flex-direction: column; gap: 14px; }
.labs-media { position: relative; aspect-ratio: 16 / 13; background: var(--navy-800); overflow: hidden; }
.labs-media video { width: 100%; height: 100%; object-fit: cover; }
.labs-hud { position: absolute; inset: 0; pointer-events: none; }
.labs-hud::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,34,.5), rgba(10,20,34,0) 22%); }
.labs-rec { position: absolute; left: 16px; top: 14px; color: #EEF2F7; }
.labs-media video { cursor: pointer; }
.labs-hud::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,34,.5), rgba(10,20,34,0) 22%); }
/* Legend for the depth view. Its colours match the video's depth colour map (near red to far blue), not the brand tokens. */
.labs-depth { position: absolute; z-index: 1; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; color: #EEF2F7; opacity: 0; }
.labs-depth i { width: 72px; height: 6px; background: linear-gradient(90deg, #A51A15, #FEE839, #28CA90, #3669DD); }
/* Step bars: each li gets flex: <frames> inline, so widths follow the step lengths. */
.labs-phases { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.labs-phases li { min-width: 0; }
.labs-now { display: none; color: var(--ink); }
.labs-phases button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100%; padding: 10px 0 0; cursor: pointer; text-align: left; background: none; border: 0; border-top: 3px solid var(--border); color: var(--ink-muted); font: 12px/1.3 var(--font-sans); }
.labs-phases button::before { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: var(--progress, 0%); background: var(--accent); }
.labs-phases button span { display: block; margin-bottom: 4px; font: 10px/1.4 var(--font-mono); letter-spacing: 0; }
.labs-phases button[aria-current="step"] { color: var(--ink); }

/* 06 book */
.book { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.book-copy { flex: 0 1 auto; min-width: 0; position: sticky; top: 96px; }
.book-col { flex: 1 1 400px; min-width: 0; }
/* Desktop: heading and intro each stay on one line; the form takes the rest (Rayan, 15 Nov). */
@media (min-width: 1101px) {
  .book-copy h2, .book-copy p { white-space: nowrap; }
}
.form { display: flex; flex-direction: column; gap: 24px; padding: 32px; }
.intent { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; }
.intent legend { padding: 0 0 12px; }
.intent-options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 48px; padding: 0 18px; border: 1px solid var(--border); border-radius: 0; background: #FFFFFF; color: var(--navy-900); font: 600 15px/1 var(--font-sans); cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #EEF2F7; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.fields .full { grid-column: 1 / -1; }
.fields input, .fields select { height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 0; background: #FFFFFF; color: var(--navy-900); font: 400 16px var(--font-sans); width: 100%; }
.fields textarea { padding: 12px 14px; border: 1px solid var(--border); border-radius: 0; background: #FFFFFF; color: var(--navy-900); font: 400 16px/1.4 var(--font-sans); width: 100%; resize: vertical; }
.fields select:invalid { color: var(--ink-muted); }
.fields .optional { font-weight: 400; color: var(--ink-muted); }
.fields input:focus, .fields select:focus, .fields textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.fields [aria-invalid="true"], .intent-options[aria-invalid="true"] .opt { border-color: #B42318; }
.form-error { color: #B42318; font-size: 15px; }
.form-foot { display: flex; justify-content: flex-end; }
.book-success { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.book-success:focus { outline: none; }
.speaker { display: flex; align-items: center; gap: 16px; }
.speaker-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.speaker p { margin: 0; }
.speaker-name { font: 600 22px/1.2 var(--font-display); text-transform: uppercase; margin: 4px 0 2px !important; }
.cal-embed { flex: 1; min-height: 520px; overflow: auto; background: var(--steel-50, #F4F7FA); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { background: var(--navy-950); color: var(--ink-body); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 48px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.site-footer nav a { color: var(--ink-body); }
.site-footer nav a:hover { color: var(--ink); }

/* tablet */
@media (max-width: 1100px) {
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { display: none; }
  .rail-next { display: block; }
  .twin { aspect-ratio: 16 / 9; }
}

/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .section { padding-block: 64px; }
  .section-flush-top { padding-top: 0; }
  .display-xl { font-size: 44px; }
  .display-l { font-size: 34px; }
  .display-m { font-size: 24px; }
  .beginning-title { font-size: 30px; }
  .lede { font-size: 18px; }
  .hero { min-height: 92svh; }
  .hud, .hero-grid { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(14,26,43,.5) 0%, rgba(14,26,43,.2) 35%, rgba(14,26,43,.92) 75%); }
  .hero-side { align-items: flex-start; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeral { font-size: 40px; }
  .hide-phone { display: none; }
  .partner-card { min-width: 0; align-self: stretch; }
  .partner-card-title { font-size: 22px; }
  .map-tag { display: none; }
  .pin-label { font-size: 8px; padding: 2px 5px; }
  /* phone: zoom to West Africa through Southeast Asia (the right 56% of the map) */
  .map { aspect-ratio: 10 / 9; }
  .map-inner { width: 180%; height: 100%; left: -78%; }
  .map-card { width: 34%; min-width: 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .offers { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .form, .book-success { padding: 20px; }
  .split { gap: 32px; }
  /* phone: the bars are too narrow for names, so they show as bars only and the current step is named below */
  .labs-phases button { font-size: 0; padding-top: 0; min-height: 24px; }
  .labs-phases button span { display: none; }
  .labs-now { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
