/* Enthra Robotics */

@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --white: #ffffff;
  --steel: #edf1f3;
  --rule: #cdd6db;
  --ink: #13202a;
  --ink-2: #3b4a55;
  --muted: #56646f;
  --orange: #ff7500;
  --orange-text: #a94600;
  --night: #0e1924;
  --night-card: #182837;
  --on-night: #e6eef3;
  --on-night-2: #a9bac5;
  --night-rule: #2c3f4f;
  --lamp: #8be4ff;
  --sans: "Barlow", "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.6 var(--sans); }
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font: 700 clamp(36px, 4.8vw, 62px)/1 var(--cond); letter-spacing: -0.005em; }
h3 { font: 600 clamp(24px, 2.3vw, 30px)/1.1 var(--cond); }
p { margin: 0 0 1em; }
figure { margin: 0; }
figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .hero :focus-visible, dialog :focus-visible { outline-color: var(--lamp); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo img { width: clamp(172px, 24vw, 208px); }
#site-nav { display: flex; gap: 2px; align-items: center; }
#site-nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--ink-2); padding: 6px 12px; border-radius: 3px; }
#site-nav a:hover { color: var(--ink); background: var(--steel); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .js .menu-btn { display: inline-block; font: 500 16px var(--sans); color: var(--ink); background: none; border: 1px solid var(--rule); border-radius: 3px; padding: 7px 14px; cursor: pointer; }
  .js #site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 6px var(--gutter) 16px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .js #site-nav.open { display: flex; }
  .js #site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--steel); border-radius: 0; font-size: 18px; }
  html:not(.js) .head-row { height: auto; flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) #site-nav { flex-wrap: wrap; }
}

/* Hero */
.hero { position: relative; background: var(--night); color: #fff; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 45%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 25, 36, 0.92) 0%, rgba(14, 25, 36, 0.78) 38%, rgba(14, 25, 36, 0.1) 72%, rgba(14, 25, 36, 0) 100%); }
.hero-body { min-height: min(84vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 96px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero h1 { font: 700 clamp(44px, 6.4vw, 88px)/0.96 var(--cond); max-width: 12.5em; letter-spacing: -0.01em; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 33em; margin: 26px 0 32px; color: #dbe5eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; padding: 13px 22px; border-radius: 3px; background: var(--orange); color: var(--ink); border: 2px solid var(--orange); }
.btn:hover { background: #ff8a2b; border-color: #ff8a2b; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero-cap { position: relative; margin: 0 auto; padding-top: 12px; padding-bottom: 12px; font-size: 14.5px; color: var(--on-night-2); border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (max-width: 760px) {
  .hero-img { position: relative; height: 56vh; min-height: 300px; object-position: 70% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(14, 25, 36, 0) 25%, rgba(14, 25, 36, 0.6) 45%, var(--night) 56vh); }
  .hero-body { min-height: 0; padding-top: 0; margin-top: -120px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.steel { background: var(--steel); }
.head { max-width: 860px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.chapter { font-weight: 600; font-size: 17px; color: var(--orange-text); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.chapter::before { content: ""; width: 12px; height: 12px; background: var(--orange); flex: none; }
.intro { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); margin: 18px 0 0; max-width: 40em; }
.lead { font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.fine { font-size: 15px; color: var(--muted); }
.why { font-size: 16px; color: var(--ink-2); border-left: 4px solid var(--orange); padding: 2px 0 2px 14px; margin-top: 22px; max-width: 46em; }
.text-link { font-weight: 600; }

/* Stage badges */
.stage { display: inline-block; vertical-align: middle; font: 500 15px/1.2 var(--sans); padding: 4px 9px 5px; border-radius: 3px; letter-spacing: 0; white-space: nowrap; border: 1.5px solid var(--ink); }
.s-proto { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.s-design { background: transparent; color: var(--ink); }
h2 .stage, h3 .stage { margin-left: 10px; position: relative; top: -4px; }
.night .s-design { border-color: var(--on-night); color: var(--on-night); }

/* Night (disinfection) */
.night { background: var(--night); color: var(--on-night); }
.night .intro, .night p { color: var(--on-night-2); }
.night .lead { color: var(--on-night); }
.night h2, .night h3 { color: #fff; }
.night .chapter { color: var(--lamp); }
.night .chapter::before { background: var(--lamp); }
.night figcaption, .night .fine { color: var(--on-night-2); }
.night a:not(.btn):hover { color: var(--lamp); }
.night-2 { background: #132232; border-top: 1px solid var(--night-rule); }

.uv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.uv-media { background: #07111a; border-radius: 4px; padding: 18px; display: grid; place-items: center; min-height: 100%; }
.uv-panel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.uv-panel img, .uv-panel video { max-height: 580px; width: auto; max-width: 100%; border-radius: 3px; }
.play-open { position: relative; display: block; text-decoration: none; }
.play-badge { position: absolute; left: 12px; bottom: 12px; background: var(--orange); color: var(--ink); font: 600 15px var(--sans); padding: 8px 14px 8px 32px; border-radius: 3px; }
.play-badge::before { content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); border-left: 10px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.play-open:hover .play-badge { background: #fff; }

.tabs { display: inline-flex; border: 1.5px solid var(--on-night-2); border-radius: 4px; overflow: hidden; margin-bottom: 28px; max-width: 100%; }
html:not(.js) .tabs { display: none; }
.tabs button { font: 600 17px var(--sans); background: transparent; color: var(--on-night); border: 0; padding: 10px 20px; cursor: pointer; }
.tabs button + button { border-left: 1.5px solid var(--on-night-2); }
.tabs button:hover { background: var(--night-card); }
.tabs button[aria-selected="true"] { background: var(--lamp); color: var(--night); }
.model h3 { margin-bottom: 14px; }
html:not(.js) .model + .model { margin-top: 40px; }

.spec { margin: 22px 0 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.spec dt { color: var(--muted); font-size: 16px; }
.spec dd { margin: 0; font-size: 17px; }
.night .spec { border-top-color: var(--on-night-2); }
.night .spec > div { border-bottom-color: var(--night-rule); }
.night .spec dt { color: var(--on-night-2); }
.night .spec dd { color: var(--on-night); }

/* Field and records */
.field { margin-top: clamp(56px, 7vw, 88px); }
.field > p { max-width: 46em; }
.field h3, .records h3 { margin-bottom: 14px; }
.strip { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.strip a { display: block; position: relative; text-decoration: none; }
.strip img, .strip video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: #07111a; }
.strip a > span { position: absolute; left: 6px; bottom: 6px; background: rgba(7, 17, 26, 0.86); color: #fff; font-size: 14px; font-weight: 500; padding: 2px 8px; border-radius: 2px; }
.strip .is-video > span::before { content: ""; display: inline-block; margin-right: 7px; vertical-align: 0; border-left: 8px solid var(--lamp); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.strip a:hover img, .strip a:hover video { filter: brightness(1.1); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.records { margin-top: clamp(48px, 6vw, 72px); max-width: 980px; }
.rec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-rule); }
.rec-list li { padding: 14px 0; border-bottom: 1px solid var(--night-rule); color: var(--on-night-2); font-size: 17px; }
.rec-list strong { color: var(--on-night); font-weight: 600; }
.rec-list a { text-decoration-color: var(--lamp); }
.night .why { color: var(--on-night-2); border-left-color: var(--lamp); }
.night .why a { color: var(--on-night); text-decoration-color: var(--lamp); }

/* Products */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product + .product { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule); }
.product-flip .product-media { order: 2; }
.product-media { display: grid; gap: 20px; }
.product-media img { width: 100%; border-radius: 4px; }
.product-text h2 { margin-bottom: 18px; }
.product-text h3 { margin-bottom: 14px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; }
.product-text > p { color: var(--ink-2); }
.product-text > .lead { color: var(--ink); }
.night .product-text > p { color: var(--on-night-2); }
.night .product-text > .lead { color: var(--on-night); }

.steps { list-style: none; counter-reset: s; margin: 0 0 8px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 46px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 700 17px/30px var(--cond); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 2px; width: 2px; background: #f3c9a6; }

/* Concepts */
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.concepts article { border-top: 2px dashed var(--ink-2); padding-top: 20px; }
.concepts h3 { margin-bottom: 12px; }
.concepts p { color: var(--ink-2); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 172px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline > li { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 48px; padding: 0 0 36px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: 167px; top: 7px; width: 12px; height: 12px; background: var(--orange); }
.timeline > li.has-photo { grid-template-columns: 150px minmax(0, 1.25fr) minmax(0, 1fr); }
.timeline time { font-weight: 600; color: var(--ink-2); padding-top: 1px; }
.timeline h3 { font-size: 26px; margin-bottom: 6px; }
.timeline p { color: var(--ink-2); margin: 0; max-width: 40em; }
.timeline figure img { border-radius: 4px; width: 100%; }
.timeline > li > figure { margin-top: 4px; }
.press { list-style: none; margin: 12px 0 0; padding: 0; }
.press li { padding: 6px 0 6px 22px; position: relative; font-size: 16.5px; }
.press li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 2px; background: var(--ink-2); }
.tv figcaption { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tv-clip { display: block; text-decoration: none; color: var(--ink-2); }
.tv-thumb { position: relative; display: block; }
.tv-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.tv-thumb .play-badge { left: 10px; bottom: 10px; padding: 5px 11px 5px 29px; font-size: 15px; font-variant-numeric: tabular-nums; }
.tv-meta { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.45; }
.tv-meta strong { color: var(--ink); font-weight: 600; }
.tv-clip:hover { color: var(--ink); }
.tv-clip:hover .play-badge { background: var(--ink); color: #fff; }
.tv-clip:hover .play-badge::before { border-left-color: #fff; }

/* Founder */
.founder { padding: 24px 0; }

/* Footer */
.site-footer { padding: 40px 0 48px; }
.foot { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.foot-logo { width: 124px; }
.foot p { font-size: 15px; color: var(--muted); margin: 0 0 6px; max-width: 54em; }

/* Dialogs */
dialog { border: 0; padding: 0; background: transparent; color: #fff; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(7, 12, 17, 0.93); }
.lightbox[open] { width: 100vw; height: 100vh; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 56px 0 24px; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; object-fit: contain; }
.lightbox video { --r: 1.7778; aspect-ratio: var(--r); width: min(100%, calc((100vh - 120px) * var(--r))); height: auto; max-height: calc(100vh - 120px); background: #000; border-radius: 3px; }
.lightbox figcaption { color: #cfd6db; }
.lightbox button { background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 4px; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: var(--orange); color: var(--ink); }
.lb-close { position: absolute; top: 12px; right: 12px; }

/* Responsive */
@media (max-width: 1080px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .uv, .product { grid-template-columns: minmax(0, 1fr); }
  .product-flip .product-media { order: 0; }
  .concepts { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; gap: 14px; }
  .timeline > li.has-photo { grid-template-columns: 150px minmax(0, 1fr); }
  .timeline > li.has-photo > figure { grid-column: 2; margin-top: 16px; max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec > div { grid-template-columns: 112px minmax(0, 1fr); }
  .uv-panel img, .uv-panel video { max-height: 480px; }
  .timeline::before { left: 5px; }
  .timeline > li, .timeline > li.has-photo { grid-template-columns: 1fr; padding-left: 30px; padding-bottom: 32px; }
  .timeline > li::before { left: 0; top: 6px; }
  .timeline > li.has-photo > figure { grid-column: 1; }
  .timeline time { margin-bottom: 4px; }
  .lightbox[open] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  h2 .stage, h3 .stage { margin: 8px 0 0; top: 0; display: table; }
}

@media print {
  .site-header, .menu-btn, .play-badge, dialog, .tabs { display: none !important; }
  .js .uv-panel[hidden], .js .model[hidden] { display: block !important; }
  .night, .steel, .hero { background: #fff !important; color: #000 !important; }
  .hero-img, .hero::before { display: none; }
  .night p, .night h2, .night h3, .hero h1, .lede { color: #000 !important; }
  .section { padding: 28px 0; }
}
