/* F1 · Light — clean boutique consultancy */
:root {
  --bg: #ffffff;
  --bg-2: #f6f8fb;
  --card: #ffffff;
  --line: #e3e8ef;
  --line-strong: #cdd5e0;
  --ink: #0b1f3a;
  --body: #2a3b55;
  --muted: #45566e;
  --faint: #5b6b80;
  --accent: #0b7a6e;        /* text-safe teal (5.2:1 on white) */
  --accent-bright: #0e9f8e; /* decorative rules only */
  --accent-wash: #e8f5f3;
  --head: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.em { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent-bright); flex: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 76px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; text-decoration: none; color: var(--ink); }
.logo-mark { font-family: var(--head); font-size: 21px; font-weight: 800; letter-spacing: .14em; }
.logo-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .2em; color: var(--faint); padding-left: 9px; border-left: 1px solid var(--line-strong); line-height: 1.4; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 0 32px; flex-wrap: wrap; }
.nav ul a {
  position: relative; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 4px; font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 128px 0 0; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; max-width: 15ch;
}
.hero .lede { margin-top: 28px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; line-height: 1.6; }
.hero .btn-row { margin-top: 44px; }
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 14.5px; line-height: 1.45;
}
.proof span { padding: 28px 24px 32px; border-left: 1px solid var(--line); }
.proof span:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-family: var(--head); color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin-bottom: 4px; }

/* Sections */
section.block { padding: 112px 0; border-bottom: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 20px 64px; margin-bottom: 56px; }
.head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.head > p { color: var(--muted); max-width: 440px; }

/* Services: hairline grid */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.icon { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.icon svg { width: 20px; height: 20px; stroke-width: 1.6; }
.service h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15.5px; }
.service ul { list-style: none; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service li, .feature li { color: var(--muted); font-size: 14.5px; padding-left: 18px; position: relative; }
.service li::before, .feature li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1.5px; background: var(--accent-bright); }

/* Work */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.case { background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 30px 30px 34px; display: flex; flex-direction: column; }
.case .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.case .metric { font-family: var(--head); font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.case h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.case p { color: var(--muted); font-size: 15px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.product { border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; background: #fff; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.product h3 { font-size: 19px; font-weight: 700; }
.chip { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--line-strong); color: var(--faint); white-space: nowrap; }
.chip.live { border-color: transparent; background: var(--accent-wash); color: var(--accent); }
.product p { color: var(--muted); font-size: 15px; }
.product .more, .feature .more {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.product .more { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.product .more:hover, .feature .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .n { font-family: var(--head); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Founder strip */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 4px; border: 1px solid var(--line); background: var(--bg-2);
  position: relative; display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 56px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
}
.portrait.photo { aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.portrait.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent-bright); }
.founder h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.founder p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 640px; }
.founder .btn-row { margin-top: 30px; }

/* Contact */
#contact { background: var(--ink); border-bottom: 0; }
.contact { text-align: center; }
#contact .eyebrow { justify-content: center; color: #7fd8cc; }
#contact .eyebrow::before { background: #7fd8cc; }
.contact h2 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.contact h2 .em { color: #7fd8cc; }
.contact p:not(.eyebrow) { color: #c3cddb; margin: 20px auto 0; max-width: 560px; }
.contact .btn-row { justify-content: center; margin-top: 40px; }
#contact .btn-primary { background: #fff; color: var(--ink); }
#contact .btn-primary:hover { background: #7fd8cc; }
#contact .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
#contact .btn-ghost:hover { border-color: #fff; }
#contact :focus-visible { outline-color: #7fd8cc; }

/* About page */
.about-hero { padding: 112px 0 104px; border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; }
.about-hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.about-hero .role { margin-top: 16px; font-size: 18px; color: var(--ink); font-weight: 500; }
.about-hero .lede { margin-top: 22px; color: var(--muted); font-size: 19px; max-width: 620px; }
.about-hero .btn-row { margin-top: 36px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); }
.stat { padding: 30px 28px 32px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat .n { font-family: var(--head); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); }
.stat .l { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.prose { border-left: 2px solid var(--accent-bright); padding-left: 32px; }
.prose p { color: var(--muted); font-size: 18px; max-width: 720px; line-height: 1.7; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 32px; }
.feature .tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature ul { list-style: none; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.feature li { font-size: 15px; }
.feature .more { margin-top: 10px; margin-right: 24px; }
.code {
  margin-top: 20px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.75;
  color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-left: 2px solid var(--accent-bright);
  border-radius: 2px; padding: 16px 18px; white-space: pre-wrap; overflow-x: auto;
}

.timeline { border-top: 1px solid var(--ink); }
.t-row { display: grid; grid-template-columns: 180px 1fr; gap: 6px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.t-row .when { color: var(--accent); font-weight: 600; font-size: 14.5px; font-variant-numeric: tabular-nums; padding-top: 3px; }
.t-row h3 { font-size: 19px; font-weight: 700; }
.t-row h3 span { color: var(--faint); font-weight: 500; }
.t-row p { color: var(--muted); font-size: 15.5px; margin-top: 4px; max-width: 760px; }

.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 40px; }
.skills > div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.skills h3 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.skills p { color: var(--ink); font-size: 15.5px; }

/* Footer */
footer { padding: 40px 0 48px; background: #fff; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer .logo-mark { font-size: 17px; }
footer p, footer nav a { color: var(--faint); font-size: 14px; text-decoration: none; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
footer nav a:hover { color: var(--ink); }
footer nav { display: flex; gap: 0 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof span:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof span:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder .portrait { max-width: 200px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .portrait { max-width: 200px; order: -1; }
  .t-row { grid-template-columns: 1fr; gap: 2px; }
  .two { grid-template-columns: 1fr; }
  .hero { padding-top: 80px; }
  .proof { margin-top: 64px; }
  .about-hero { padding: 72px 0; }
  section.block { padding: 76px 0; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .prose { padding-left: 20px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { min-height: 64px; padding-top: 6px; padding-bottom: 2px; }
  .nav ul { gap: 0 20px; }
  .proof { grid-template-columns: 1fr; }
  .proof span, .proof span:first-child { border-left: 0; padding: 18px 0; }
  .proof span + span { border-top: 1px solid var(--line); }
  .service, .case, .feature, .product { padding: 26px 22px; }
  .two, .work { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav ul a::after { transition: none; }
}

/* Readable email line (filled in by script; "[at]" fallback without JS) */
.email-line { margin-top: 22px; font-size: 15px; color: #c3cddb; }
.email-line span { color: #fff; font-weight: 500; }
