/* ============================================================
   LUMETRIC · PHOTON
   Cool paper, near-black ink, optical-cyan accent.
   Manrope (display + body), IBM Plex Mono (data).
   ============================================================ */

:root {
  /* Photon tokens (mirror lumetric-accounting) */
  --ink: #0E1014;
  --ink-90: rgba(14, 16, 20, 0.90);
  --ink-65: rgba(14, 16, 20, 0.65);
  --ink-45: rgba(14, 16, 20, 0.45);
  --ink-25: rgba(14, 16, 20, 0.25);
  --ink-10: rgba(14, 16, 20, 0.10);
  --ink-05: rgba(14, 16, 20, 0.05);

  --paper: #FBFCFD;
  --mist: #EEF2F6;
  --graphite: #3F4854;

  --photon: #00B6D4;
  --halo: #7DEBF7;

  --rule: rgba(14, 16, 20, 0.10);

  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Photon ring background — sparse dot field, stationary on scroll. */
  --photon-field:
    radial-gradient(circle at 9% 17%, var(--ink-05) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 23% 73%, var(--ink-05) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 41% 31%, var(--ink-05) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 59% 88%, var(--ink-05) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 76% 12%, rgba(0, 182, 212, 0.18) 0 1.2px, transparent 1.6px),
    radial-gradient(circle at 88% 56%, var(--ink-05) 0 1.2px, transparent 1.6px);

  --gutter: clamp(20px, 5vw, 56px);

  color-scheme: light;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  background-image: var(--photon-field);
  background-size: 720px 720px;
  background-attachment: fixed;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";

  display: grid;
  grid-template-rows: auto 1fr auto;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--photon);
  transition: color 0.15s, border-color 0.15s;
}
a:hover { color: var(--photon); }

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  letter-spacing: inherit;
}

::selection { background: var(--photon); color: var(--paper); }

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 0;
  z-index: 100;
}
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid var(--photon);
  outline-offset: 2px;
}

/* --- Header --- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--gutter);
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
}
.brand-mark:hover { color: var(--ink); }
.brand-mark:hover .ring { border-color: var(--photon); }

/* Photon ring: outline circle + cyan center dot, drawn in CSS. */
.ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: radial-gradient(circle at center, var(--photon) 0 2.5px, transparent 3px);
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.wordmark {
  font-family: var(--sans);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ink);
}

/* The ° in lumetric° rendered in cyan when the wordmark is split.
   We render the full string from i18n, so we colour the entire char
   via a CSS trick: use a pseudo-element on .wordmark--lg to emphasise
   the degree mark. For the small wordmark in the header we keep the
   degree the same colour as the rest for restraint. */
.wordmark--lg {
  font-size: clamp(56px, 11vw, 128px);
  font-weight: 200;
  letter-spacing: -0.05em;
}

/* --- Lang toggle --- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lang-toggle button {
  padding: 6px 10px;
  color: var(--ink-45);
  border: 1px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.is-active {
  color: var(--ink);
  border-color: var(--rule);
}
.lang-toggle button:focus-visible {
  outline: 1px solid var(--photon);
  outline-offset: 2px;
}

/* --- Hero card --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 10vh, 120px) var(--gutter);
}

.card {
  width: 100%;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vw, 28px);
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--photon);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before,
.kicker::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--photon);
  opacity: 0.6;
}

.display {
  margin: 0;
  font-weight: 200;
  line-height: 1;
}

.tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 32ch;
}

.intro {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--graphite);
  max-width: 52ch;
  line-height: 1.65;
}

.contact {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-65);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-label { color: var(--ink-45); }
.contact-sep { color: var(--ink-25); }
.contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--photon);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.contact a:hover { color: var(--photon); }

/* --- Chronolett reference (sister-product callout) --- */
.chronolett-ref {
  margin-top: clamp(28px, 5vh, 56px);
  padding-top: clamp(20px, 3vh, 32px);
  border-top: 1px solid var(--rule);
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.chronolett-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.chronolett-link {
  border-bottom: 0;
  display: block;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.chronolett-link:hover { opacity: 1; }

.chronolett-wordmark {
  width: clamp(180px, 28vw, 240px);
  height: auto;
  display: block;
}

/* --- Footer --- */
.page-footer {
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.page-footer .rule {
  display: block;
  height: 1px;
  background: var(--rule);
  width: 100%;
}
.footer-meta {
  align-self: center;
}

/* --- Responsive --- */
@media (max-width: 520px) {
  .page-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .ring { width: 22px; height: 22px; }
  .wordmark { font-size: 1.05rem; }
  .kicker::before, .kicker::after { width: 18px; }
}
