/* Website Store AI Lab homepage. Tokens follow Website Store Brand Kit 2026.
   Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* Dark theme (default) */
  --ground: #000000;
  --surface: #0f0f0f;
  --ink: #f5f5f2;
  --ink-muted: #8a8a8a;
  --line: #262626;
  --line-strong: #8a8a8a;
  --focus-ring: #ffffff;
  --white: #ffffff;
  --graphite: #5c5c5c; /* secondary text on light grounds only; unused on this dark page */

  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 0 var(--space-4);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  z-index: 10;
}
.skip:focus {
  transform: none;
}

a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.label {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Header: wordmark left, 120px on mobile, 160px tablet, 180px desktop */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 88px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}
.brand-link img {
  display: block;
  width: 120px;
  height: auto;
}

/* Hero: label, display headline, body-lg lead */
.hero {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.hero .label + .label {
  margin-top: var(--space-3);
}
.hero .display {
  margin: var(--space-8) 0 0;
  max-width: 11ch;
  font-weight: 800;
  font-size: 44px;
  line-height: 44px;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero .lead {
  margin: var(--space-6) 0 0;
  max-width: 34rem;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
}

/* Numbered service rows */
.sections {
  border-top: 1px solid var(--line);
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line);
}
.card:last-child {
  border-bottom: 0;
}
.card .index {
  display: block;
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}
.card h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.card p {
  margin: 0;
  max-width: 24rem;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
}

/* Status: mono bracket label on the surface token */
.status {
  padding-top: var(--space-12);
  padding-bottom: var(--space-16);
}
.status .tag {
  display: inline-block;
  margin: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.status .note {
  margin: var(--space-4) 0 0;
  color: var(--ink-muted);
}

/* Footer: black, wordmark 160px, system line, locations line, contact in mono */
.site-footer {
  margin-top: auto;
  background: var(--ground);
  border-top: 1px solid var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}
.footer-logo img {
  display: block;
  width: 160px;
  height: auto;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink-muted);
}
.footer-info p {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.04em;
}
.footer-info a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.footer-info a:hover {
  text-decoration-thickness: 2px;
}

/* Tablet */
@media (min-width: 720px) {
  .brand-link img {
    width: 160px;
  }
  .hero {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
  .hero .display {
    margin-top: var(--space-12);
    max-width: 12ch;
    font-size: 72px;
    line-height: 68px;
    letter-spacing: -0.035em;
  }
  .hero .lead {
    font-size: 18px;
    line-height: 28px;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--space-12);
  }
  .card {
    padding: var(--space-12) 0 var(--space-12);
    border-bottom: 0;
  }
  .card p {
    font-size: 18px;
    line-height: 28px;
  }
  .site-footer .wrap {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-8) var(--space-12);
  }
  .footer-info {
    align-items: flex-end;
    text-align: right;
  }
  .footer-info a {
    align-self: flex-end;
  }
}

/* Desktop */
@media (min-width: 1100px) {
  .brand-link img {
    width: 180px;
  }
}

/* Motion: short opacity fade with an 8px slide, staggered */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .sections,
  .status {
    animation: rise 280ms var(--ease) both;
  }
  .sections {
    animation-delay: 50ms;
  }
  .status {
    animation-delay: 100ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Card call-to-action (Education → Money Fluency). Mono label style, 44px target. */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-6);
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.card-link:hover {
  background: var(--ink);
  color: var(--ground);
}
@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
}
