/* site.css - oakinkin.com homepage v1: layout, components and CSS-only motion.
   Tokens come from /shared/oakinkin-tokens.css; component styles follow
   kinkin/sources/PROJECT_oakinkin_design_system.md sections 5 to 7 and 12.
   v1 uses the system font pair - nothing is downloaded (operator default 2026-09-24).
   All motion is CSS only and stops under prefers-reduced-motion.
   Source: projects/oakinkin/site/site.css. Created 2026-09-24. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body-sys);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection { background: rgba(0,245,212,0.25); color: var(--text); }

h1, h2, h3 { font-family: var(--font-display-sys); color: var(--text); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-6); }

/* ---------- Sections ---------- */
section { padding: var(--space-20) 0; border-top: 1px solid var(--border); }

.section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-8);
}

.prose { max-width: 46rem; }
.prose p { margin: 0 0 var(--space-5); }

/* ---------- Hero ---------- */
/* Hero background: projects/oakinkin/assets/hero/Oakinkin_Labs_16_9_2K_V2.png as 1920 px web copies,
   deployed to /assets/. WebP first; browsers without image-set() keep the JPEG line above it. */
.hero {
  position: relative;
  overflow: hidden;
  border-top: none;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image: url("/assets/oakinkin-hero-1920.jpg");
  background-image: image-set(url("/assets/oakinkin-hero-1920.webp") type("image/webp"), url("/assets/oakinkin-hero-1920.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Readability layer over the picture - darker in the middle where the text sits, so the hero text
   keeps 4.5:1 even over a bright spot (design system 12), and fading into the page colour at the
   bottom so the next section joins without a seam. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(5,7,15,0.35), transparent 75%),
    linear-gradient(180deg, rgba(5,7,15,0.50) 0%, rgba(5,7,15,0.60) 55%, var(--bg) 100%);
  pointer-events: none;
}
/* Soft teal glow behind the heading, over the readability layer. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 40%, rgba(0,245,212,0.10), transparent 70%);
  animation: gridPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: 100%; text-align: center; }

.hero-mark-wrap { position: relative; display: inline-block; margin-bottom: var(--space-6); }
.hero-mark-wrap::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,212,0.35), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-mark { position: relative; display: block; width: 88px; height: 88px; border-radius: 20px; }

.eyebrow {
  font-family: var(--font-display-sys);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--space-4);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title {
    background: linear-gradient(135deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

.hero-sub { font-size: 1.2rem; max-width: 40rem; margin: 0 auto var(--space-10); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }

/* ---------- Buttons - design system 5.2 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body-sys);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--bg);
  border: none;
  box-shadow: 0 0 20px rgba(0,245,212,0.2);
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,245,212,0.4); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 0 16px rgba(0,245,212,0.3); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: rgba(0,245,212,0.4); color: var(--teal); }
/* Over the hero picture the outline button gets a dark fill and a stronger edge, so it reads as a
   button on every device (operator request 2026-09-24). */
.hero .btn-outline {
  background: rgba(5,7,15,0.62);
  border-color: rgba(0,245,212,0.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hero .btn-outline:hover { background: rgba(5,7,15,0.78); border-color: rgba(0,245,212,0.75); }

/* ---------- What's live - cards, design system 5.1 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(0,245,212,0.3); transform: translateY(-2px); }
.card h3 { font-size: var(--text-2xl); line-height: 1.25; margin: 0; }
.card p { margin: 0; }

.status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.45;
}
.status::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 0.4em;
  border-radius: 50%;
  background: currentColor;
}
.status-live     { color: var(--green); }
.status-internal { color: var(--blue); }
.status-open     { color: var(--teal); }

.card-link { margin-top: auto; padding-top: var(--space-2); font-weight: 600; }
.card-link::after { content: " \2192"; content: " \2192" / ""; }

/* ---------- Custom engineering ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding: 0;
  margin: var(--space-8) 0;
}
.steps li {
  counter-increment: step;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display-sys);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.lived {
  max-width: 46rem;
  margin: 0 0 var(--space-8);
  padding-left: var(--space-4);
  border-left: 2px solid var(--teal);
}

/* ---------- How I work ---------- */
.principles {
  list-style: none;
  counter-reset: principle;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-10);
  padding: 0;
  margin: 0;
}
.principles li { counter-increment: principle; position: relative; padding-left: 3rem; }
.principles li::before {
  content: counter(principle);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-family: var(--font-display-sys);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--teal);
}
.principles strong { display: block; }
.principles span { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-title { margin-bottom: var(--space-4); }
.contact p { font-size: 1.2rem; margin: 0 0 var(--space-5); }
.email-slot a {
  font-family: var(--font-display-sys);
  font-size: var(--text-2xl);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* ---------- Motion - design system 7, CSS only ---------- */
@keyframes glowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes gridPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.hero-inner > * { animation: rise 0.6s ease both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.16s; }
.hero-inner > :nth-child(4) { animation-delay: 0.24s; }
.hero-inner > :nth-child(5) { animation-delay: 0.32s; }

/* Scroll reveal only where the browser supports scroll-driven animation;
   everywhere else the content is simply visible. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::after, .hero-mark-wrap::before, .hero-inner > *, .reveal { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Responsive - design system 6.2, lg first ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: var(--space-12) 0; }
  .grid-3, .steps, .principles { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
