/* ============================================================
   THE THINKER LAB — Design system
   Palette drawn straight from the brand mark: petrol blue,
   ink, and warm paper cream. Type pairs an italic display
   serif (the logo's "The…Lab") with a bold grotesk (its
   "Thinker") over a clean sans body, plus a mono utility face
   for the lab-notebook labels and eyebrows.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;0,700;1,400;1,500;1,600&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root{
  /* colors */
  --ink:        #14181c;
  --ink-soft:   #4a5158;
  --blue:       #0e6c9b;
  --blue-deep:  #0a3f57;
  --blue-pale:  #e3eef3;
  --paper:      #f3efe4;
  --paper-white:#fbfaf4;
  --line:       #d9d1bd;
  --line-on-dark: rgba(243,239,228,0.28);

  /* type */
  --f-display: 'Fraunces', serif;
  --f-sans:    'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- eyebrow / mono labels ---------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display:flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background: var(--blue);
  display:inline-block;
}

/* ---------- headings ---------- */
h1, h2, h3{
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.serif-italic{ font-family: var(--f-display); font-style: italic; font-weight: 500; }
.sans-bold{ font-family: var(--f-sans); font-weight: 700; }

h2.section-title{
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--ink);
}

p{ margin: 0 0 1em; color: var(--ink-soft); }
p:last-child{ margin-bottom:0; }

/* ---------- dashed divider (brand motif) ---------- */
.dash-rule{
  border:0;
  height:1px;
  margin: 0;
  background-image: linear-gradient(to right, var(--line) 55%, rgba(0,0,0,0) 0%);
  background-position: top;
  background-size: 10px 1px;
  background-repeat: repeat-x;
}
.dash-rule.on-dark{
  background-image: linear-gradient(to right, var(--line-on-dark) 55%, rgba(0,0,0,0) 0%);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(243,239,228,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 84px;
}
.brand img{ height: 40px; width:auto; }

.main-nav{
  display:flex;
  align-items:center;
  gap: 36px;
}
.main-nav a{
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a.active{ color: var(--blue); }
.main-nav a::after{
  content:"";
  position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background: var(--blue);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after{ width:100%; }

.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
}

.hamburger{
  display:none;
  flex-direction:column; gap:5px;
  background:none; border:0; cursor:pointer; padding:8px;
}
.hamburger span{ width:24px; height:2px; background:var(--ink); display:block; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--blue); color: var(--paper-white); }
.btn-primary:hover{ background: var(--blue-deep); }
.btn-ghost{ background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--blue); color: var(--blue); }
.btn-ghost.on-dark{ border-color: var(--line-on-dark); color: var(--paper-white); }
.btn-ghost.on-dark:hover{ border-color: var(--paper-white); }
.btn-sm{ padding: 10px 18px; font-size: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  padding: 84px 0 60px;
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items:center;
}
.hero h1{
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  margin: 18px 0 26px;
}
.hero-logo-heading{
  width: 180px;
  margin-bottom: 22px;
}
.hero h1 .line1{ display:block; font-family: var(--f-display); font-style: italic; font-weight: 500; color: var(--ink); }
.hero h1 .line2{ display:block; font-family: var(--f-sans); font-weight: 700; color: var(--blue); font-size: 0.86em; margin-top:4px; }
.hero-sub{ font-size: 18px; max-width: 46ch; }
.hero-actions{ display:flex; gap:16px; margin-top: 32px; flex-wrap:wrap; }

.hero-art{ position:relative; }
.plane-stage{
  position:relative;
  width:100%;
  aspect-ratio: 1/1;
}
#planePath{ fill:none; stroke: var(--blue); stroke-width:2; stroke-dasharray: 6 7; }
#planeIcon{ transform-box: fill-box; }

/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-row{
  padding: 50px 0 70px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.value-item{ padding-top: 20px; border-top: 1px solid var(--line); }
.value-icon{ width:34px; height:34px; margin-bottom:16px; color: var(--blue); }
.value-item h3{ font-family: var(--f-sans); font-size: 17px; margin-bottom: 8px; }
.value-item p{ font-size: 14.5px; }
.value-note{
  text-align:center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 4px;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.quote-band{
  background: var(--blue-deep);
  color: var(--paper-white);
  padding: 76px 0;
  text-align:center;
}
.quote-band blockquote{
  margin:0 auto;
  max-width: 720px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height:1.35;
}
.quote-band blockquote span{ color:#7fc4e6; font-family: var(--f-sans); font-style:normal; font-weight:700; }
.quote-mark{ font-family: var(--f-display); font-size:60px; color:#3a7f9d; line-height:1; display:block; margin-bottom: 8px;}

/* ============================================================
   SERVICES GRID (home preview + services page)
   ============================================================ */
.services-section{ padding: 90px 0; }
.section-head{ max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow{ margin-bottom: 14px; }
.section-head p{ margin-top: 14px; font-size: 16.5px; }

.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card{
  background: var(--paper-white);
  padding: 30px 26px;
  transition: background .2s ease;
}
.service-card:hover{ background: var(--blue-pale); }
.service-card .s-icon{ width:30px; height:30px; color: var(--blue); margin-bottom:20px; }
.service-card h3{
  font-family: var(--f-sans);
  font-size: 15.5px;
  margin-bottom: 8px;
  letter-spacing: 0;
}
.service-card p{ font-size: 13.8px; }

/* phase grouping (services page) */
.phase{ margin-bottom: 64px; }
.phase-label{
  display:flex; align-items:baseline; gap:16px; margin-bottom: 28px;
}
.phase-label .num{ font-family: var(--f-display); font-style:italic; font-size:34px; color: var(--blue-pale); -webkit-text-stroke: 1px var(--blue); color: transparent; }
.phase-label h3{ font-family:var(--f-sans); font-size: 20px; }
.phase-label .tag{ font-family: var(--f-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band{
  background: var(--ink);
  color: var(--paper-white);
  padding: 80px 0;
}
.cta-band .wrap{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.cta-band h2{ font-family: var(--f-display); font-style:italic; font-weight:500; font-size: clamp(26px,3vw,36px); max-width:520px; }
.cta-band .tagline{ font-family: var(--f-mono); font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:#8fb9cd; margin-bottom:14px; display:block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--ink);
  color: var(--paper-white);
  padding: 60px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid img{ height:34px; margin-bottom:16px; }
.footer-grid p{ color:#a9afb5; font-size:14px; max-width:32ch; }
.footer-col h4{ font-family: var(--f-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:#8fb9cd; margin-bottom:16px; }
.footer-col a, .footer-col li{ display:block; color:#d7dade; font-size:14.5px; margin-bottom:10px; list-style:none; }
.footer-col a:hover{ color: var(--paper-white); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;
  padding-top: 26px;
  font-size: 12.5px;
  color:#7d8288;
  font-family: var(--f-mono);
  letter-spacing:.03em;
}

/* ============================================================
   INNER PAGE HERO (services / about / contact)
   ============================================================ */
.page-hero{
  padding: 64px 0 50px;
}
.page-hero h1{
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 54px);
  margin: 16px 0 18px;
}
.page-hero .accent{ font-family: var(--f-sans); font-style: normal; font-weight:700; color: var(--blue); }
.page-hero p{ max-width: 60ch; font-size: 17px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-block{ padding: 30px 0 90px; }
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:start;
}
.about-grid h2{ margin-bottom: 20px; }
.about-figure{
  background: var(--blue-deep);
  border-radius: 4px;
  padding: 46px 38px;
  color: var(--paper-white);
  position: relative;
}
.about-figure .quote-mark{ color:#3a7f9d; }
.about-figure p{ font-family: var(--f-display); font-style: italic; font-size: 21px; line-height:1.5; color: var(--paper-white); }
.about-figure cite{ display:block; margin-top:18px; font-style:normal; font-family: var(--f-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:#8fb9cd; }

.pillars{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin-top: 20px;
}
.pillar{ border-top:1px solid var(--line); padding-top:18px; }
.pillar h3{ font-family: var(--f-sans); font-size:15.5px; margin-bottom:8px; }
.pillar p{ font-size:14px; }

/* founder bio */
.founder-grid{
  display:grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items:center;
}
.founder-photo img{
  width:100%;
  border-radius: 6px;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 20%;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section{ padding: 20px 0 100px; }
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-cards{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); }
.contact-card{
  background: var(--paper-white);
  padding: 24px 26px;
  display:flex;
  align-items:center;
  gap:18px;
}
.contact-card .c-icon{ width:26px; height:26px; color:var(--blue); flex-shrink:0; }
.contact-card h4{ font-family: var(--f-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); margin:0 0 4px; }
.contact-card a, .contact-card span{ font-family: var(--f-sans); font-size:16px; font-weight:600; }

.form-panel{ background: var(--paper-white); border:1px solid var(--line); padding: 40px; border-radius: 4px; }
.form-row{ margin-bottom: 20px; }
.form-row label{
  display:block; font-family: var(--f-mono); font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px;
}
.form-row input, .form-row textarea{
  width:100%;
  font-family: var(--f-body);
  font-size:15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.form-note{ font-size:13px; color:var(--ink-soft); margin-top:16px; }
#formStatus{ margin-top:14px; font-size:14px; font-weight:600; color: var(--blue); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 280px; margin: 0 auto 20px; }
  .value-row{ grid-template-columns: 1fr; gap:24px; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .pillars{ grid-template-columns:1fr; }
  .founder-grid{ grid-template-columns:1fr; }
  .founder-photo{ max-width: 280px; margin: 0 auto; }
  .contact-grid{ grid-template-columns:1fr; }
  .cta-band .wrap{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 720px){
  .main-nav{
    position:fixed; inset: 84px 0 0 0;
    background: var(--paper);
    flex-direction:column;
    align-items:flex-start;
    padding: 30px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .hamburger{ display:flex; }
  .nav-cta{ margin-top:10px; }
}
@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; }
  .wrap{ padding: 0 20px; }
}
