/* ============================================================
   FCodingS · Passion Driven Development
   Brand: burgundy #8E0A42 (comma) + deep blue #003E7E (dot)
   ============================================================ */

:root {
  /* Brand */
  --burgundy: #8E0A42;
  --blue: #003E7E;
  --accent: var(--burgundy);      /* tweakable */
  --accent-2: var(--blue);

  /* Neutrals (warm) */
  --paper: #F8F5F0;
  --paper-2: #F1ECE3;
  --surface: #FFFFFF;
  --ink: #1A1417;
  --muted: #6E655C;
  --hairline: #E5DDD0;
  --hairline-strong: #D8CDBC;

  /* Type */
  --font-head: 'Space Grotesk', system-ui, sans-serif;   /* tweakable */
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --section-y: 132px;             /* tweakable via density */
  --maxw: 1180px;
  --gutter: 40px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
  flex: none;
}

.lede { color: var(--muted); font-size: 1.18rem; line-height: 1.6; }

/* dot bullet - the blue "dot" of the semicolon */
.dotlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dotlist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  line-height: 1.5;
}
.dotlist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translate(3px,-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--hairline); }
.nav-inner {
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 30px; height: 30px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 19px; letter-spacing: -0.01em;
}
.brand-name b { color: var(--accent); font-weight: 700; }
.brand-tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13.5px;
  color: var(--ink); letter-spacing: 0.01em;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width .28s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 92px; padding-bottom: 96px; overflow: hidden; }
.hero-texture {
  position: absolute; pointer-events: none; z-index: 0;
  top: -90px; right: -120px;
  width: 620px; max-width: 60vw;
  opacity: .5;
  filter: saturate(1.05);
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
          mask-image: radial-gradient(closest-side, #000 60%, transparent);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 64px; align-items: center;
}
.hero-name {
  font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.hero-name .pill {
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--hairline));
  padding: 5px 11px; border-radius: 999px; font-size: 12px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  letter-spacing: -0.03em;
}
.hero h1 .soft { color: var(--muted); }
.hero h1 .semi { color: var(--accent); }
.hero h1 .semi-mark {
  display: inline-block;
  height: 0.92em;
  width: auto;
  vertical-align: -0.18em;
  margin-left: -0.04em;
  margin-right: -0.02em;
}
.hero-sub {
  margin-top: 28px; max-width: 30ch;
  font-size: 1.16rem; color: var(--muted);
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* portrait placeholder */
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 14px, #ece5d9 14px 28px);
  border: 1px solid var(--hairline-strong);
}
.portrait::after {
  content: "[ PHOTO OF FRANS ]";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  color: #9a8f7e;
}
.portrait .badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.35);
}
.portrait .badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; z-index: 1; }
.portrait.has-photo { background: var(--ink); }
.portrait.has-photo::after { display: none; }

/* hero layout variants (set by tweak) */
body.hero-centered .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
body.hero-centered .hero-sub { max-width: 44ch; }
body.hero-centered .hero-name { justify-content: center; }
body.hero-centered .hero-actions { justify-content: center; }
body.hero-centered .hero-portrait-col { width: 100%; max-width: 420px; margin-top: 24px; }

body.hero-minimal .hero-portrait-col { display: none; }
body.hero-minimal .hero-grid { grid-template-columns: 1fr; }
body.hero-minimal .hero h1 { font-size: clamp(46px, 8vw, 96px); }
body.hero-minimal .hero-sub { max-width: 40ch; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--ink); color: var(--paper); padding-block: 76px; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat {
  padding: 8px 44px; position: relative;
}
.stat:not(:first-child) { border-left: 1px solid rgba(255,255,255,.13); }
.stat-k {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em;
  line-height: 1; display: flex; align-items: baseline; gap: 4px;
}
.stat-k .u { color: var(--accent-2); }
.stat-l {
  margin-top: 14px; color: rgba(248,245,240,.66);
  font-size: 1rem; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
@media (max-width: 760px){
  .stats .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stat { padding: 0; }
  .stat:not(:first-child){ border-left: 0; border-top: 1px solid rgba(255,255,255,.13); padding-top: 28px; }
}

/* ============================================================
   INTRO
   ============================================================ */
.intro .wrap { max-width: 920px; }
.intro-lead {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.02em; line-height: 1.22;
  margin-top: 30px;
}
.intro-lead .hl { color: var(--accent); }
.sig {
  margin-top: 34px; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
}
.sig .rule { width: 46px; height: 1.5px; background: var(--accent); }

/* ============================================================
   SERVICES
   ============================================================ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); }
.sec-head .lede { max-width: 38ch; }

.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.svc-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(26,20,23,.4); border-color: var(--hairline-strong); }
.svc-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  letter-spacing: 0.06em;
}
.svc-card h3 {
  font-size: 27px; margin-top: 16px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.svc-card h3 .semi { color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.svc-q { color: var(--muted); margin-bottom: 26px; }
.svc-card .dotlist { margin-top: 6px; }
@media (max-width: 760px){ .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 32px 36px;
  position: relative;
  overflow: hidden;
}
.step-n {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 15px; color: var(--accent);
  letter-spacing: 0.1em;
}
.step-bignum {
  position: absolute; right: 18px; top: 6px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 96px; line-height: 1; color: var(--paper-2);
  letter-spacing: -0.04em; z-index: 0; user-select: none;
}
.step h3 { font-size: 22px; margin: 18px 0 10px; position: relative; z-index: 1; }
.step p { color: var(--muted); position: relative; z-index: 1; font-size: 1rem; }
.step-line { width: 34px; height: 2px; background: var(--accent-2); margin-top: 22px; }
@media (max-width: 760px){ .steps { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tst-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tst {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 40px 40px 34px;
  position: relative;
}
.tst .mark {
  font-family: var(--font-head); font-weight: 700;
  font-size: 64px; line-height: .6; color: var(--accent);
  height: 30px; display: block;
}
.tst blockquote {
  margin: 22px 0 0; font-size: 1.12rem; line-height: 1.55;
  color: var(--ink);
}
.tst figcaption {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 14px;
}
.tst .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: repeating-linear-gradient(135deg,var(--paper-2) 0 6px,#e6ddcf 6px 12px);
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: var(--accent);
  font-size: 15px;
}
.tst .who b { font-family: var(--font-head); font-weight: 600; }
.tst .who span { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px){ .tst-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; }
.contact .wrap { position: relative; z-index: 1; }
.contact .eyebrow { color: color-mix(in oklab, var(--accent-2) 50%, #fff); }
.contact .eyebrow::before { background: color-mix(in oklab, var(--accent-2) 50%, #fff); }
.hero-texture { filter: var(--tex-filter, none); opacity: var(--tex-op, .5); }
.contact-mark {
  position: absolute; right: -60px; bottom: -160px; z-index: 0;
  width: 480px; opacity: .14; pointer-events: none;
}
.contact h2 {
  font-size: clamp(34px, 5.4vw, 70px); letter-spacing: -0.03em;
  max-width: 16ch;
}
.contact h2 .hl { color: var(--accent-2); }
.contact-lines { margin-top: 44px; display: grid; gap: 2px; max-width: 560px; }
.contact-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; border-bottom: 1px solid rgba(255,255,255,.14);
  transition: padding-left .3s;
}
.contact-row:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.contact-row:hover { padding-left: 12px; }
.contact-row .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,245,240,.55); }
.contact-row .val { font-family: var(--font-head); font-size: clamp(18px,2.2vw,24px); font-weight: 500; display: flex; align-items: center; gap: 12px; }
.contact-row .arr { color: var(--accent-2); transition: transform .25s; }
.contact-row:hover .arr { transform: translate(4px,-4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--ink); color: rgba(248,245,240,.5); padding-block: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; }
.foot .brand-name { color: var(--paper); font-size: 16px; }
.foot a:hover { color: var(--paper); }

/* ============================================================
   SCROLL REVEAL
   Base state is VISIBLE. The entrance only plays as an additive
   animation when .in is present, so paused/hidden/print/reduced-
   motion renders always fall back to fully-visible content.
   ============================================================ */
@keyframes revrise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.in    { animation: revrise .7s cubic-bezier(.2,.8,.2,1) backwards; }
  .reveal.in.d1 { animation-delay: .08s; }
  .reveal.in.d2 { animation-delay: .16s; }
  .reveal.in.d3 { animation-delay: .24s; }
}
html.no-anim .reveal { animation: none !important; }

/* ---------- density (tweak) ---------- */
body.density-compact { --section-y: 92px; }
body.density-comfy   { --section-y: 168px; }

@media (max-width: 600px){
  :root { --gutter: 22px; --section-y: 84px; }
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait-col { max-width: 360px; }
}
