/* Ambla Technologies brand tokens (Midnight & Cobalt): /branding/ambla/palette.json in the project files. */
:root {
  --ink: #0E1530;          /* midnight: text, header and hero ground */
  --graphite: #1C2547;
  --accent: #7FA2FF;       /* periwinkle: logo dot, buttons and badges on any ground, midnight text on it */
  --accent-hover: #9DB8FF;
  --primary: #2E4FD8;      /* cobalt: links, eyebrows, focus rings on light */
  --primary-light: #DCE4FF;
  --paper: #F4F6FC;
  --white: #FFFFFF;
  --fog: #E2E6F2;
  --steel: #7A84A0;
  --slate: #4A5470;
  --on-ink-muted: #AEB8D6;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: var(--primary) }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0 }
p { margin: 0 }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 10 }
.skip:focus { left: 12px }

/* Header + hero share the ink ground */
.top { background: var(--ink) }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px }
.brand img { height: 32px; width: auto }
nav { display: flex; gap: 28px }
nav a { color: var(--on-ink-muted); text-decoration: none; font-weight: 500; font-size: 15px }
nav a:hover { color: var(--paper) }

.hero { background: var(--ink); color: var(--paper); padding-block: 72px 96px }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; max-width: 15ch }
.lede { margin-top: 24px; max-width: 54ch; font-size: 20px; color: var(--on-ink-muted) }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px }
.btn-primary { background: var(--accent); color: var(--ink) }
.btn-primary:hover { background: var(--accent-hover) }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--steel) }
.top a:focus-visible, .hero a:focus-visible { outline-color: var(--accent) }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--paper) }

/* Content bands */
.band { padding-block: 88px }
.band-alt { background: var(--white); border-block: 1px solid var(--fog) }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1 }
.section-head { margin-bottom: 40px }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px }
.prose { display: grid; gap: 18px; font-size: 19px; max-width: 60ch; color: var(--graphite) }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px }
.project { background: var(--paper); border: 1px solid var(--fog); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start }
.project h3 { font-size: 28px; line-height: 1.1 }
.project p { color: var(--slate) }
.status { justify-self: start; font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 7px 10px; border-radius: 6px }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none }
.facts li { font-size: 14px; background: var(--primary-light); color: var(--ink); padding: 5px 10px; border-radius: 999px }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 20px }
.video { text-decoration: none; color: var(--ink); display: grid; gap: 12px; align-content: start }
.thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink) }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease }
.video:hover .thumb img { transform: scale(1.03) }
.video h3 { font-family: var(--body); font-weight: 600; font-size: 18px; letter-spacing: 0; line-height: 1.35 }
.video time { font: 500 13px/1 var(--mono); color: var(--slate) }
.link-arrow { font-weight: 600; text-decoration: none }
.link-arrow::after { content: " →" }

.empty { background: var(--white); border: 1px dashed var(--steel); border-radius: var(--radius); padding: 40px 28px; display: grid; gap: 10px; justify-items: start }
.empty h3 { font-size: 24px }
.empty p { color: var(--slate); max-width: 52ch }

/* Footer */
.foot { border-top: 1px solid var(--fog); background: var(--paper) }
.foot-row { display: flex; align-items: center; gap: 16px; padding-block: 28px; font-size: 15px; color: var(--slate) }
.foot-row { flex-wrap: wrap }
.foot-row a { font-weight: 600 }
.foot-row a:first-of-type { margin-left: auto }
.foot-mark { width: 36px; height: 36px }

/* We Made This feature */
.featured { background: var(--graphite); color: var(--paper); padding-block: 96px }
.featured a:focus-visible { outline-color: var(--accent) }
.eyebrow-on-ink { color: var(--accent) }
.featured-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start }
.app-icon { width: 88px; height: 88px; border-radius: 22.5%; margin-bottom: 24px; box-shadow: 0 8px 24px rgb(0 0 0 / .3) }
.screens { list-style: none; margin: 64px 0 0; padding: 4px 0 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--slate) transparent }
.screens li { scroll-snap-align: start }
.screens img { width: 100%; height: auto; border-radius: 18px; background: var(--ink) }
.screens:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px }
.featured h2 { font-size: clamp(44px, 6vw, 72px); line-height: 1 }
.featured-tagline { margin-top: 14px; font: 600 clamp(22px, 2.6vw, 28px)/1.25 var(--display); color: var(--accent) }
.featured-summary { margin-top: 18px; max-width: 54ch; font-size: 19px; color: var(--on-ink-muted) }
.facts-on-ink { margin-top: 22px }
.facts-on-ink li { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--slate) }
.waitlist-card { background: var(--ink); border: 1px solid var(--slate); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px }
.waitlist-card h3 { font-size: 26px }
.waitlist-card p { color: var(--on-ink-muted) }
.btn-block { justify-content: center; margin-top: 6px }
.features { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px }
.feature { border-top: 2px solid var(--accent); padding-top: 18px; display: grid; gap: 10px; align-content: start }
.feature-num { font: 600 13px/1 var(--mono); color: var(--accent); letter-spacing: .08em }
.feature h3 { font-size: 21px; line-height: 1.2 }
.feature p { color: var(--on-ink-muted); font-size: 16px }
.featured-cta { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--slate); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between }
.featured-cta p { max-width: 52ch; color: var(--on-ink-muted) }
.project .link-arrow { justify-self: start }

@media (max-width: 720px) {
  .featured { padding-block: 64px }
  .featured-head { grid-template-columns: 1fr; gap: 32px }
  .features { margin-top: 48px }
  .app-icon { width: 72px; height: 72px; margin-bottom: 18px }
  .screens { margin: 40px -16px 0; padding-inline: 16px; scroll-padding-inline: 16px; grid-auto-columns: 62vw }
  .featured-cta { margin-top: 48px }
  body { font-size: 16px }
  .wrap { padding-inline: 16px }
  nav { gap: 18px }
  .hero { padding-block: 48px 64px }
  .lede { font-size: 18px }
  .band { padding-block: 64px }
  .split { grid-template-columns: 1fr; gap: 20px }
  .prose { font-size: 17px }
  .projects, .videos { grid-template-columns: 1fr }
}
@media (max-width: 420px) {
  nav a:not(:last-child) { display: none }
}

/* Contact */
.email { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.01em; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; overflow-wrap: anywhere }
.email:hover { color: var(--primary) }
