/* Pandora X website. Instrument-panel style: off-white page, near-black bands, thin lowercase type,
   small monospace labels, one LED orange. System fonts only (nothing loaded from other servers). */

:root {
  --bg: #f2f2f0;
  --tile: #fafaf8;
  --ink: #0f0e12;
  --ink-2: #47464d;
  --ink-3: #7c7b82;
  --rule: #d6d6d2;
  --rule-strong: #a9a9a4;
  --dark: #0f0e12;
  --dark-2: #1b1a20;
  --on-dark: #ececea;
  --on-dark-2: #a4a3aa;
  --led: #ff4f1f;        /* LED orange: lights, buttons (with black text) */
  --link: #0f0e12;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e12;
    --tile: #17161b;
    --ink: #ececea;
    --ink-2: #b4b3b9;
    --ink-3: #85848b;
    --rule: #2a2930;
    --rule-strong: #46454d;
    --dark: #050507;
    --dark-2: #141318;
    --link: #ececea;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; }

h1, h2, h3, .h3 {
  font-family: var(--display); font-weight: 300; color: var(--ink); line-height: 1.08;
  margin: 0 0 0.5em; letter-spacing: -0.02em; text-transform: lowercase; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.2rem); font-weight: 200; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); }
h3, .h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }

/* small technical labels */
.code, .crumbs, .tile-meta, .led, .facts dt, .nav-sub, .foot-small, .research-meta, .stack dt, .contacts dt {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0; text-transform: lowercase; font-weight: 400;
}
.code { color: var(--ink-3); }

/* status light */
.led { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.led::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--led) 25%, transparent), 0 0 10px var(--led); flex: none;
}
.led.dim::before { background: transparent; border: 1.5px solid var(--led); box-shadow: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--bg); }
.bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 32px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: flex-start; gap: 12px; color: var(--ink); text-decoration: none; font: 300 1.15rem/1.1 var(--display); letter-spacing: -0.01em; }
.brand img { margin-top: 2px; }
.site-nav { display: flex; gap: 16px clamp(20px, 3vw, 44px); flex-wrap: wrap; }
.site-nav a { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); text-decoration: none; }
.picto { flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.picto .fill { fill: currentColor; }
.site-nav a[aria-current="page"] .picto .fill, .site-nav a:hover .picto .fill { fill: var(--led); stroke: var(--led); }
.nav-text { display: flex; flex-direction: column; }
.nav-word { font: 300 1.2rem/1.05 var(--display); text-transform: lowercase; letter-spacing: -0.01em; }
.site-nav a[aria-current="page"] .nav-word { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.nav-sub { color: var(--ink-3); font-size: 0.66rem; line-height: 1.35; margin-top: 6px; }
@media (max-width: 760px) {
  .nav-sub { display: none; }
  .picto { width: 20px; height: 20px; }
  .site-nav { width: 100%; gap: 10px 22px; }
  .site-nav a { align-items: center; gap: 7px; }
  .nav-word { font-size: 1.05rem; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 0; padding: 0; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- dark bands ---------- */
.dark { background: var(--dark); color: var(--on-dark); --ink: var(--on-dark); --ink-2: var(--on-dark-2); --ink-3: #75747b; --rule: #2c2b31; --link: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }

/* ---------- page heads ---------- */
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(48px, 8vw, 112px); }
.hero-grid { display: grid; gap: 48px 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero h1 { max-width: 12ch; margin-top: 18px; }
.hero .lede { color: var(--on-dark-2); }
.hero-object { margin: 0; }
.hero-object img { border-radius: 4px; box-shadow: 0 40px 80px -20px #000, 0 0 0 1px #2c2b31; transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); }
.hero-object figcaption { margin-top: 20px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-object img { transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
  .hero-object a:hover img { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
}

.page-head { padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { max-width: 16ch; }
.product-head .tile-top { margin-bottom: 20px; }
.lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; font-weight: 300; }
.subtitle { font: 300 clamp(1.2rem, 1rem + 0.8vw, 1.6rem)/1.35 var(--display); color: var(--ink-2); max-width: 40ch; margin: 0; }

/* ---------- buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.btn {
  display: inline-block; background: var(--led); color: #0f0e12; border-radius: 999px;
  padding: 12px 24px; text-decoration: none; font-weight: 500; font-size: 0.97rem; line-height: 1.3; text-transform: lowercase;
}
.btn:hover { background: #ff6a3d; color: #0f0e12; }
.btn:active { transform: translateY(1px); }
.contact-band .btn, .actions a { white-space: nowrap; }
.link-arrow { text-transform: lowercase; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.tight { padding: clamp(28px, 4vw, 52px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 48px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 56ch; }
@media (min-width: 860px) { .section-head { grid-template-columns: 320px minmax(0, 1fr); align-items: baseline; } }
.small-h { font-size: 1.3rem; }

/* ---------- product catalogue ---------- */
.catalogue { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; height: 100%; padding: 16px 18px 20px; background: var(--tile);
  border-radius: 6px; color: var(--ink); text-decoration: none; outline-offset: 2px;
}
.tile:hover { background: color-mix(in srgb, var(--tile) 80%, var(--rule)); }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.tile-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--dark); margin-bottom: 18px; }
.tile-visual img { position: absolute; inset: 7% 4%; width: 92%; height: 86%; object-fit: contain; object-position: center; }
.tile-visual.empty { background: var(--bg); }
.tile-num { font: 100 clamp(4rem, 3rem + 4vw, 7rem)/1 var(--display); letter-spacing: -0.05em; color: var(--rule-strong); }
.tile:hover .tile-num { color: var(--led); }
.tile-name { font: 300 1.6rem/1.1 var(--display); letter-spacing: -0.02em; text-transform: lowercase; }
.tile-desc { color: var(--ink-2); margin: 8px 0 16px; font-size: 0.95rem; }
.tile-meta { color: var(--ink-3); margin-top: auto; }

/* linked cards (doors, services, research, in development) */
.cards .tile { min-height: 220px; }
.cards .tile-name { margin-top: 4px; }
.cards .tile-desc { margin-bottom: 18px; }
.cards.dashed .tile { background: transparent; border: 1px dashed var(--rule-strong); }
.cards.dashed .tile:hover { background: var(--tile); }
.tile-icon { display: block; margin: 8px 0 22px; }
.tile-icon .picto { width: 44px; height: 44px; stroke-width: 1.2; }
.tile:hover .tile-icon .fill { fill: var(--led); stroke: var(--led); }
.doors .tile { min-height: 280px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- in development ---------- */
.dev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.dev-list li { border: 1px dashed var(--rule-strong); border-radius: 6px; padding: 16px 18px 6px; }
.dev-list h3 { font-size: 1.6rem; font-weight: 300; margin-bottom: 8px; }
.dev-list p { color: var(--ink-2); max-width: 46ch; }
@media (min-width: 860px) { .dev-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- columns ---------- */
.cols-3 { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
.cols-3 > div { border-top: 1px solid var(--ink); padding-top: 16px; }
.cols-3 p { color: var(--ink-2); }
@media (min-width: 860px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- product page ---------- */
.split { display: grid; gap: 40px 72px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) 420px; } }
.split-main .lede { color: var(--ink); }
.facts { background: var(--tile); border-radius: 6px; padding: 16px 20px 8px; }
.facts-title { font-size: 1.3rem; margin-bottom: 8px; }
.facts dl { margin: 0; }
.facts dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); padding-top: 3px; }
.facts dd { margin: 0; font-size: 0.93rem; overflow-wrap: anywhere; }

.object-band { padding: clamp(40px, 7vw, 96px) 0; }
.shot { margin: 0; }
.shot img { margin: 0 auto; border-radius: 4px; box-shadow: 0 40px 80px -24px #000, 0 0 0 1px #2c2b31; }
.shot figcaption { color: var(--on-dark-2); font: 0.75rem/1.5 var(--mono); text-transform: lowercase; margin: 24px auto 0; max-width: 70ch; text-align: center; }
.shot.portrait img { max-width: 340px; width: 70vw; }

.features { display: grid; gap: 0 48px; grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
.features > div { border-top: 1px solid var(--rule); padding: 16px 0 4px; }
.features .code { display: block; margin-bottom: 6px; color: var(--led); }
.features h3 { margin-bottom: 8px; }
.features p { color: var(--ink-2); max-width: 60ch; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.table-scroll { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.93rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
thead th { font: 400 0.75rem var(--mono); color: var(--ink-3); text-transform: lowercase; border-bottom-color: var(--ink); }
tbody th { font-weight: 500; }

.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a { display: inline-block; background: var(--tile); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: 0.93rem; text-transform: lowercase; }
.chip-list a:hover { background: var(--ink); color: var(--bg); }

/* ---------- services ---------- */
.steps { list-style: none; counter-reset: step; margin: 16px 0 0; padding: 0; display: grid; gap: 24px 40px; grid-template-columns: minmax(0, 1fr); }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(step); font: 100 3rem/1 var(--display); letter-spacing: -0.04em; color: var(--led); display: block; margin-bottom: 12px; }
.steps p { color: var(--ink-2); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.stack { margin: 0; border-top: 1px solid var(--ink); }
.stack > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.stack dt { color: var(--ink-3); padding-top: 3px; }
.stack dd { margin: 0; }
@media (min-width: 700px) { .stack > div { grid-template-columns: 200px minmax(0, 1fr); } }

.case { background: var(--tile); border-radius: 6px; padding: 20px 22px 12px; }
.case + .case { margin-top: 24px; }
.case-title { font-size: 2rem; margin-bottom: 4px; }
.case-text { max-width: 70ch; }
.case .features h4 { font: 400 1.1rem/1.2 var(--display); text-transform: lowercase; margin: 0 0 6px; }
.case-facts { margin-top: 20px; }
.dev-kind { color: var(--ink-3); font: 0.75rem var(--mono); text-transform: lowercase; margin-bottom: 12px; }

/* ---------- research ---------- */
.research { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.research li { background: var(--tile); border-radius: 6px; padding: 18px 20px 6px; }
.research-meta { color: var(--ink-3); margin: -2px 0 10px; }
.research p { color: var(--ink-2); }
@media (min-width: 760px) { .research { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact ---------- */
.contact-band { padding: clamp(48px, 7vw, 96px) 0; }
.contact-band h2 { margin-bottom: 0.4em; }
.contact-band p { color: var(--on-dark-2); max-width: 60ch; }
.contact-band .btn { margin-top: 12px; }
.big-mail { font: 200 clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 32px; overflow-wrap: anywhere; }
.big-mail a { text-decoration: none; }
.big-mail a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.contacts { margin: 0 0 40px; border-top: 1px solid var(--ink); }
.contacts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contacts dt { color: var(--ink-3); padding-top: 3px; }
.contacts dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) { .contacts > div { grid-template-columns: 240px minmax(0, 1fr); } }
.plain { padding-left: 1.2em; color: var(--ink-2); }
.plain li { margin-bottom: 4px; }

.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); max-width: 66ch; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: 48px 0 56px; font-size: 0.93rem; border-top: 1px solid #2c2b31; }
.site-footer a { color: var(--on-dark); }
.foot { display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1fr); }
.foot p { margin: 0 0 4px; }
.foot-name { font: 300 1.3rem/1.2 var(--display); text-transform: lowercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot ul a { text-decoration: none; text-transform: lowercase; color: var(--on-dark-2); }
.foot ul a:hover { color: var(--on-dark); text-decoration: underline; }
.foot-small { color: #75747b; grid-column: 1 / -1; }
@media (min-width: 760px) { .foot { grid-template-columns: minmax(0, 1fr) auto; } }

@media print {
  .site-header, .site-footer, .contact-band, .skip { display: none; }
  .dark { background: none; color: #000; }
  body { font-size: 12pt; background: #fff; }
  a { color: inherit; }
}
