/* -----------------------------------------------------------
   Lycian — minimal, elite, dark navy + cyan
   ----------------------------------------------------------- */

:root {
  /* Cream Cobalt — Starry Night village/daytime palette */
  --bg:       #F1ECDF;   /* warm cream */
  --bg-2:     #E6DFCB;
  --ink:      #13234E;   /* deep cobalt ink */
  --ink-2:    #2C3458;
  --muted:    #7B7F8E;
  --hair:     #D3CAB4;   /* warm beige hairline */
  --accent:   #3A6BC9;   /* cobalt — primary accent */
  --accent-2: #C9A23A;   /* warm ochre — secondary */

  /* Brand cyan (kept for the logo + GoL canvas tinting) */
  --brand:    #3A6BC9;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max:      1080px;
  --reading:  620px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}
a:hover { opacity: 0.6; }

.mark { object-fit: contain; display: block; }
.dim  { color: var(--muted); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.reading   { max-width: var(--reading); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ----- Game of Life canvas — only inside hero ----- */
#life {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  /* Vignette so the field fades into the bg at the edges */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, #000 35%, transparent 88%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ----- Reveal ----- */
.rv {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(.2,.6,.2,1),
              transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.rv.in { opacity: 1; transform: none; }

/* ----- Nav ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ----- Hero ----- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 80px 32px 120px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle grid overlay above canvas, below content */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(58, 107, 201, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 107, 201, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hero__inner { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(72px, 14vw, 168px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 28px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  white-space: nowrap;
}
.hero__tagline {
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.hero__sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ----- Sections ----- */
.strip   { padding: 80px 0; border-top: 1px solid var(--hair); }
.section { padding: 140px 0; border-top: 1px solid var(--hair); }
.section--center { text-align: center; }

.section__head { margin-bottom: 64px; max-width: 640px; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 12px 0 0;
}
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.prose { font-size: 17px; line-height: 1.65; margin: 16px 0; color: var(--ink-2); }

/* ----- Products ----- */
.rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hair);
}
.row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--hair);
}
.row__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
.row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}
.row__name-wrap {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.row__name {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.row__name--link {
  color: var(--ink);
  transition: color 0.2s ease;
}
.row__name--link:hover { color: var(--accent); opacity: 1; }
.row__arrow {
  font-size: 0.55em;
  color: var(--muted);
  transform: translateY(-0.1em);
  transition: color 0.2s ease, transform 0.2s ease;
}
.row__name--link:hover .row__arrow {
  color: var(--accent);
  transform: translate(2px, -0.2em);
}
.row__status {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}
.row__tagline { font-size: 17px; line-height: 1.5; margin: 0 0 8px; color: var(--ink); }
.row__detail  { font-size: 15px; line-height: 1.6; margin: 0 0 16px; max-width: 64ch; }
.row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.row__domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.row__host {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  transition: opacity 0.2s ease;
}
.row__host:hover { opacity: 0.7; }

/* ----- Philosophy ----- */
.quote {
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 24px 0 32px;
  color: var(--ink);
}
.quote__sig {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----- Engage CTA ----- */
.section__sub {
  font-size: 16px;
  margin: 14px 0 0;
  max-width: 56ch;
}
.engage__cta { margin-top: 32px; }
.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.cta:hover { opacity: 1; border-color: var(--accent); }
.cta span { transition: transform 0.2s ease; }
.cta:hover span { transform: translateX(3px); }

/* ----- AI / Engage two-col ----- */
.ai__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pillars { display: flex; flex-direction: column; gap: 32px; }
.pillar  { padding-top: 20px; border-top: 1px solid var(--hair); }
.pillar__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.pillar__t { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; color: var(--ink); }
.pillar__b { font-size: 14.5px; line-height: 1.55; }

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 40px 0;
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.footer__mail { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--accent); }
.footer__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }

/* ----- Responsive ----- */
@media (max-width: 760px) {
  .nav { padding: 16px 24px; }
  .nav__links { gap: 18px; font-size: 12.5px; }
  .container, .reading { padding: 0 24px; }
  .section { padding: 96px 0; }
  .strip   { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .ai__grid { grid-template-columns: 1fr; gap: 48px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 36px 0; }
  .row__idx { padding-top: 0; }
  .row__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  #life { opacity: 0.4; }
}

/* ----- A11y ----- */
@media (prefers-reduced-motion: reduce) {
  .rv { transition: none; opacity: 1; transform: none; }
}

::selection { background: var(--accent); color: var(--bg); }
