/* Layout: editorial single column, 1120px max, split hero (thesis left, the two-halves mark right), "lab shelf" rows for products */
:root {
  --bg: #F4F1EC;        /* brand cream, from the logo file */
  --surface: #FBFAF7;
  --ink: #282447;       /* wordmark ink */
  --muted: #5E5A77;
  --accent: #30028B;    /* brand purple (left half) */
  --sun: #FEC708;       /* brand yellow (right half) */
  --on-sun: #282447;
  --line: rgba(40, 36, 71, 0.14);
  --chip: rgba(48, 2, 139, 0.08);

  --f-display: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 6.4vw, 4.6rem);
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16132B; --surface: #1F1B3A; --ink: #EEEBF6; --muted: #ABA6C6;
    --accent: #A890FF; --sun: #FEC708; --on-sun: #16132B;
    --line: rgba(238, 235, 246, 0.14); --chip: rgba(168, 144, 255, 0.14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16132B; --surface: #1F1B3A; --ink: #EEEBF6; --muted: #ABA6C6;
  --accent: #A890FF; --sun: #FEC708; --on-sun: #16132B;
  --line: rgba(238, 235, 246, 0.14); --chip: rgba(168, 144, 255, 0.14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 650; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.label { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hl { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding-inline: 0.06em; }
:root[data-theme="dark"] .hl { color: inherit; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light-bg { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light-bg { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); flex-wrap: wrap; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--sun); }
.nav a[aria-current="page"] { border-color: var(--accent); }

/* Buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 0.98rem; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1.5px solid var(--ink); }

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: center; }
.mark img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark .half-l { clip-path: inset(0 50% 0 0); animation: join-l 1.1s cubic-bezier(.2,.8,.2,1) both; }
.mark .half-r { clip-path: inset(0 0 0 50%); animation: join-r 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes join-l { from { transform: translateX(-9%); } to { transform: none; } }
@keyframes join-r { from { transform: translateX(9%); } to { transform: none; } }
.mark-caption { margin-top: 18px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .mark .half-l, .mark .half-r { animation: none; } html { scroll-behavior: auto; } }

/* Product shelf */
.shelf { display: grid; border-top: 1px solid var(--line); }
.exp { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr) 190px; gap: 28px; padding-block: 36px; border-bottom: 1px solid var(--line); align-items: start; }
.exp-id { display: grid; gap: 10px; justify-items: start; }
.exp-name { display: grid; gap: 8px; min-width: 0; }
.exp-name h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.exp-name .tag { color: var(--accent); font-weight: 600; }
.exp-body { min-width: 0; color: var(--ink); }
.exp-act { display: grid; gap: 12px; justify-items: start; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.live::before { background: #1FA971; box-shadow: 0 0 0 3px rgba(31,169,113,.2); }
.status.beta::before { background: var(--sun); }
.status.lab::before { background: var(--accent); }
.visit { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.visit:hover { border-color: var(--accent); }
.domain { font-family: var(--f-mono); font-size: 0.85rem; color: var(--muted); }

/* Why */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.why-item { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 3px solid var(--ink); }
.why-item:nth-child(2) { border-color: var(--accent); }
.why-item:nth-child(3) { border-color: var(--sun); }
.why-item h3 { font-size: var(--step-1); line-height: 1.25; }
.why-item p { color: var(--muted); }

/* Process (a real sequence) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 72px); counter-reset: step; }
.process li { list-style: none; padding: 20px 20px 4px 0; border-top: 1px dashed var(--line); counter-increment: step; display: grid; gap: 6px; }
.process li::before { content: "Step " counter(step); font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.process strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 650; }
.process span { color: var(--muted); font-size: 0.97rem; }
ol.process { padding: 0; margin-bottom: 0; }

/* Halves block (founders teaser / name meaning) */
.halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.half { padding: clamp(24px, 4vw, 44px); display: grid; gap: 12px; align-content: start; min-width: 0; }
.half + .half { border-left: 1px solid var(--line); }
.half .dot { width: 34px; height: 34px; border-radius: 50%; }
.half-a .dot { background: linear-gradient(90deg, #30028B 50%, transparent 50%); border: 3px solid #30028B; }
.half-b .dot { background: linear-gradient(90deg, transparent 50%, #FEC708 50%); border: 3px solid #FEC708; }
.half h3 { font-size: var(--step-2); }
.half .role { color: var(--accent); font-weight: 600; }
.half p { color: var(--muted); }

/* Page intro (about/story) */
.page-intro { padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 64px); }
.page-intro .wrap { display: grid; gap: 22px; }

/* Founder profile */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.founder-side { display: grid; gap: 14px; align-content: start; }
.founder-side h2 { font-size: var(--step-3); }
.founder-side .role { color: var(--accent); font-weight: 600; font-size: var(--step-1); }
.founder-body { display: grid; gap: 18px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.monogram { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.monogram.a { background: #30028B; color: #FBFAF7; }
.monogram.b { background: #FEC708; color: #282447; }

/* Values */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.value { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 8px; align-content: start; }
.value h3 { font-size: var(--step-1); }
.value p { color: var(--muted); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding-block: 34px; border-top: 1px solid var(--line); position: relative; }
.timeline .when { font-family: var(--f-mono); font-size: 0.9rem; color: var(--accent); font-weight: 500; padding-top: 6px; }
.timeline .what { display: grid; gap: 12px; min-width: 0; }
.timeline h3 { font-size: var(--step-2); }
.timeline p { color: var(--muted); }
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.lane { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.lane b { font-family: var(--f-display); font-weight: 650; }
.lane span { color: var(--muted); font-size: 0.96rem; }
.timeline li.key .when::after { content: "Turning point"; display: block; margin-top: 8px; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-sun); background: var(--sun); width: max-content; padding: 3px 8px; border-radius: 999px; }

.quote { font-family: var(--f-display); font-size: var(--step-3); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; text-wrap: balance; }

/* CTA band */
.band { background: var(--ink); color: var(--bg); border-radius: 26px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.band p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.band .btn-primary { background: var(--sun); color: #282447; }
.band h2 { font-size: var(--step-3); }
.band-copy { display: grid; gap: 12px; min-width: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer img { height: 44px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--muted); max-width: 36ch; }
.legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 980px) {
  .exp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .exp-id { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; }
  .exp-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .mark { max-width: 240px; grid-row: 1; }
  .exp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .why-grid, .halves, .values, .founder, .lanes, .facts { grid-template-columns: minmax(0, 1fr); }
  .half + .half { border-left: 0; border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .band { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .brand img { height: 34px; }
}
@media (max-width: 480px) {
  .process { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 14px; font-size: 0.9rem; }
}

/* Friendship block */
.friend { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.friend-head { display: grid; gap: 14px; }
.friend-body { display: grid; gap: 18px; min-width: 0; font-size: var(--step-1); line-height: 1.55; }
@media (max-width: 760px) { .friend { grid-template-columns: minmax(0, 1fr); } }
