/* Kynthos, Inc. | kynthos.space site stylesheet v1.9 (1 Oct 2026)
   Typography, header, buttons and hero follow v1.4 (Orbitron display, Inter text).
   Fonts live in fonts.css (embedded, SIL OFL 1.1). No third-party requests. */

:root {
  --ink: #f4f7fb;
  --muted: #aeb8c8;
  --accent: #cfe3ff;
  --glow: rgba(150, 190, 255, 0.55);
  --bg: #05070d;
  --bg2: #090d18;
  --display: 'Orbitron', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--text);
  color: var(--ink);
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---- Header (v1.4 layout and buttons) ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 3;
}

/* Logotype sized so its lettering matches the v1.4 wordmark: Orbitron at
   clamp(1.05rem, 2.4vw, 1.4rem), cap height 0.72 em. The logotype's cap height is
   0.347 of the image height (kit v2.1 geometry: 100 of 288.18 units), so image
   height = 0.72 / 0.347 = 2.075 x the v1.4 font size. The arc and ring marker
   make the header taller than v1.4's 30 px star. */
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: clamp(2.18rem, 4.98vw, 2.905rem); width: auto; }

.tabs { display: flex; gap: 10px; align-items: center; }

.tab {
  font-family: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(207, 227, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: rgba(207, 227, 255, 0.1); }

@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .tabs { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
  .tabs { gap: 6px; }
  .tab { padding: 7px 10px; font-size: 0.76rem; }
}

/* ---- Home hero (v1.4) ---- */
.stage {
  position: relative;
  min-height: clamp(340px, 48vh, 600px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #000;
  background-image: url('../images/hero.jpg');
  background-image: image-set(url('../images/hero.webp') type('image/webp'), url('../images/hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform-origin: center;
  animation: fadeZoomOut 6s ease-out both;
  will-change: transform, opacity;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.8) 100%);
}
@keyframes fadeZoomOut {
  0%   { opacity: 0; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12vh clamp(20px, 6vw, 80px) 3vh;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}

/* Scales with the viewport; nowrap keeps it on one line at every width.
   Text is pre-uppercased in the markup so the x in xGEO stays lowercase. */
.eyebrow {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.42rem, 2.15vw, 0.92rem);
  letter-spacing: 0.34em;
  white-space: nowrap;
  color: #dfecff;
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* nowrap plus the <br> pins the tagline to exactly two lines. */
.tagline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(0.8rem, 4.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 80px rgba(80, 120, 200, 0.25);
}
.tagline .accent { color: var(--accent); }

.sub {
  position: relative;
  z-index: 0;
  margin-top: 16px;
  max-width: 560px;
  font-size: clamp(0.9rem, 2vmin, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}
.sub::before {
  content: "";
  position: absolute;
  inset: -36px -64px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.28) 55%, transparent 78%);
  pointer-events: none;
}

/* ---- Content sections (v1.4 progress-section and careers styling) ---- */
.section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(20px, 3.5vh, 32px) clamp(20px, 6vw, 80px);
  flex: 1;
}
main.section { padding-top: clamp(32px, 6vh, 64px); padding-bottom: clamp(40px, 8vh, 72px); }
.section-inner { max-width: 880px; margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 10px;
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.4vmin, 2.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(20px, 4vh, 32px);
}

.prose p {
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  font-size: clamp(0.92rem, 2vmin, 1.05rem);
  margin-bottom: 14px;
}

/* News feed list (home) */
.feed { list-style: none; display: grid; gap: 14px; max-width: 680px; margin: 0 auto; }
.feed-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 5px 20px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(207, 227, 255, 0.08);
  border-radius: 14px;
}
.feed-item time { color: var(--muted); font-size: 0.82rem; font-weight: 300; padding-top: 1px; }
.feed-item h3 { font-family: var(--text); font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.feed-item h3 a { color: var(--ink); text-decoration: none; }
.feed-item h3 a:hover { color: var(--accent); }
.feed-item p { grid-column: 2; color: var(--muted); font-weight: 300; font-size: 0.88rem; line-height: 1.55; }
.feed-wrap .kicker { max-width: 680px; margin: 0 auto 10px; }
@media (max-width: 560px) {
  .feed-item { grid-template-columns: 1fr; }
  .feed-item p { grid-column: 1; }
}

/* News article with poster */
.article { max-width: 980px; margin: 0 auto; }
.article-head { margin-bottom: 22px; }
.article-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.article-head time { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 300; margin-top: 8px; }

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
@media (max-width: 820px) {
  .article-body { grid-template-columns: 1fr; }
  .poster { max-width: 480px; width: 100%; margin: 0 auto; order: -1; }
}

.poster { margin: 0; }
.poster a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(207, 227, 255, 0.14); box-shadow: 0 0 40px rgba(80, 150, 220, 0.18); }
.poster img { width: 100%; height: auto; aspect-ratio: 1092 / 1440; }

.tags-title {
  font-family: var(--display); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); opacity: 0.85; margin: 22px 0 10px;
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  color: var(--ink); text-decoration: none; font-size: 0.84rem;
  border: 1px solid rgba(207, 227, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px; padding: 7px 14px;
  transition: all 0.2s ease;
}
.tags a:hover { border-color: var(--accent); color: var(--accent); }
.tags .src { font-weight: 600; white-space: nowrap; }
.tags .ext { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
@media (max-width: 600px) { .tags a { border-radius: 14px; } }

.facts { list-style: none; display: grid; gap: 8px; margin: 6px 0 4px; }
.facts li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 0.92rem; font-weight: 300; line-height: 1.5; }
.facts li span:first-child { color: var(--muted); }

/* IP page (v1.4 milestone card) */
.milestone {
  padding: 16px 20px;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(207, 227, 255, 0.08);
  border-radius: 14px;
}
.patent {
  position: relative;
  padding-left: 22px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.92rem;
}
.patent + .patent { margin-top: 10px; }
.patent::before {
  content: "";
  position: absolute; left: 1px; top: 0.5em;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 4px var(--glow);
}

/* Careers CTA (v1.4) */
.cta-row { text-align: center; }
.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-family: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #06121f;
  background: linear-gradient(135deg, #eaf3ff, #bcd6ff);
  box-shadow: 0 0 30px rgba(150, 190, 255, 0.45);
  padding: 12px 28px;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 44px rgba(170, 205, 255, 0.7); }

/* ---- Footer (v1.4) ---- */
.site-footer {
  padding: 10px clamp(20px, 5vw, 64px) 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg2);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer span { letter-spacing: 0.03em; }
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 227, 255, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer a:hover { color: var(--accent); border-color: var(--accent); }

/* Scroll reveal: only elements below the fold at load are hidden, and only when JS runs. */
.reveal-pending { opacity: 0; transform: translateY(28px); }
.reveal-pending.visible { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }

@media (prefers-reduced-motion: reduce) {
  .bg { animation: none; opacity: 1; transform: none; }
  .reveal-pending { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ---- Vision film (v1.7): click-to-play card between the hero and the news ---- */
.film-section { flex: 0 0 auto; padding-top: clamp(24px, 4.5vh, 44px); padding-bottom: clamp(24px, 4.5vh, 44px); }
.film-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: clamp(18px, 3.5vw, 40px);
  align-items: center;
}
.film-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.film-sub { margin-top: 10px; font-weight: 300; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
@media (max-width: 760px) {
  .film-wrap { grid-template-columns: 1fr; }
  .film-media { max-width: 560px; width: 100%; margin: 0 auto; }
}

.film-thumb, .film-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(207, 227, 255, 0.14);
  box-shadow: 0 0 40px rgba(80, 150, 220, 0.16);
}
/* Fallback for browsers without aspect-ratio (Safari 14 and older). */
@supports not (aspect-ratio: 16 / 9) {
  .film-thumb, .film-frame { height: 0; padding-top: 56.25%; }
  .film-thumb picture, .film-thumb img, .film-frame video { position: absolute; inset: 0; }
}
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.film-thumb:hover img, .film-thumb:focus-visible img { transform: scale(1.03); }
.film-play {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #06121f;
  background: linear-gradient(135deg, #eaf3ff, #bcd6ff);
  box-shadow: 0 0 30px rgba(150, 190, 255, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.film-play svg { width: 26px; height: 26px; margin-left: 3px; }
.film-thumb:hover .film-play, .film-thumb:focus-visible .film-play { transform: scale(1.08); box-shadow: 0 0 44px rgba(170, 205, 255, 0.75); }
.film-dur {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); background: rgba(0, 0, 0, 0.6);
  border-radius: 6px; padding: 3px 7px;
}
.film-frame video { width: 100%; height: 100%; max-width: 100%; display: block; background: #000; object-fit: contain; }
@media (max-width: 480px) {
  .film-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

/* News page film article */
.article-film { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (max-width: 820px) { .article-film { grid-template-columns: 1fr; } }
.article-sep { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: clamp(28px, 5vh, 48px) auto; max-width: 980px; }

@media (prefers-reduced-motion: reduce) {
  .film-thumb img, .film-play { transition: none; }
  .film-thumb:hover img, .film-thumb:focus-visible img { transform: none; }
}
