:root {
  --ink: #12222e;
  --ink-soft: #3d4f5c;
  --paper: #f6f3ec;
  --paper-2: #ece6d9;
  --sea: #2f6f73;
  --sea-deep: #1d4c50;
  --hill: #c9bfa8;
  --hill-2: #a89c80;
  --line: rgba(18, 34, 46, 0.14);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.mark { width: 34px; height: 24px; color: var(--sea); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }
.nav nav a.nav-cta { color: var(--paper); background: var(--ink); padding: 8px 16px; border-radius: 999px; }
.nav nav a.nav-cta:hover { background: var(--sea-deep); color: var(--paper); }

/* Type */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sea); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.04; max-width: 15ch; }
h1 em { font-style: italic; color: var(--sea); }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; max-width: 18ch; }
h3 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 58ch; margin: 28px 0 0; }
.sub { color: var(--ink-soft); max-width: 56ch; margin: 18px 0 0; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 500;
  background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 999px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--sea-deep); transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); margin-top: 32px; }
.btn-light:hover { background: #fff; }
.link { text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--ink); }

/* Hero */
.hero { position: relative; padding: 120px 0 0; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 80px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.landscape { display: block; width: 100%; height: 220px; }
.hill-back { fill: var(--hill); opacity: .55; }
.hill-front { fill: var(--hill-2); opacity: .55; }
.sea { fill: var(--sea); }
.waves path { fill: none; stroke: rgba(246, 243, 236, .35); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .waves { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
}

/* Sections */
.section { padding: 112px 0; }
.grid-2 { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.pillars { display: grid; gap: 0; }
.pillars article { padding: 28px 0; border-top: 1px solid var(--line); }
.pillars article:first-child { padding-top: 0; border-top: 0; }
.pillars p { margin: 0; color: var(--ink-soft); }

.band { background: var(--paper-2); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 22px 0 22px 40px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 36px; width: 20px; height: 2px;
  background: var(--sea);
}
.checklist li:first-child::before { top: 13px; }
.checklist strong { color: var(--ink); font-weight: 600; }

/* Quote */
.quote-section { background: var(--ink); color: var(--paper); padding: 120px 0; }
blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
blockquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 4vw, 52px); line-height: 1.2; margin: 0; }
blockquote cite { display: block; margin-top: 28px; font-style: normal; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 243, 236, .6); }

/* Offices */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.city {
  display: flex; flex-direction: column; gap: 4px;
  padding: 32px 28px; border: 1px solid var(--line); border-radius: 18px; background: #fbf9f4;
  transition: border-color .2s, transform .2s;
}
.city:hover { border-color: var(--sea); transform: translateY(-2px); }
.city-name { font-family: var(--serif); font-size: 30px; }
.city-meta { font-size: 14px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--sea-deep); color: var(--paper); }
.contact .eyebrow { color: #a9d3cf; }
.contact .sub { color: rgba(246, 243, 236, .8); }
.contact address {
  font-style: normal; font-size: 18px; line-height: 1.7; align-self: end;
  border-left: 1px solid rgba(246, 243, 236, .25); padding-left: 32px; color: rgba(246, 243, 236, .85);
}
.addr-label { display: block; font-family: var(--serif); font-size: 24px; color: var(--paper); margin-bottom: 6px; }

/* Footer */
.footer { padding: 32px 0; font-size: 14px; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 860px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 72px; }
  .hero .wrap { padding-bottom: 56px; }
  .landscape { height: 140px; }
  .section { padding: 80px 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .cities { grid-template-columns: 1fr; }
  .contact address { border-left: 0; padding-left: 0; border-top: 1px solid rgba(246, 243, 236, .25); padding-top: 28px; }
  .quote-section { padding: 88px 0; }
}

/* ---------- Labs ---------- */
.nav nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.labs-hero { padding: 96px 0 24px; }
.labs-title { font-size: clamp(38px, 5.2vw, 64px); max-width: 18ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chips a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: #fbf9f4; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: border-color .15s, color .15s;
}
.chips a:hover { border-color: var(--sea); color: var(--sea); }
.labs-section { padding: 72px 0 8px; scroll-margin-top: 72px; }
.labs-section-head { max-width: 680px; border-top: 1px solid var(--line); padding-top: 32px; }
.labs-section-head h2 { font-size: clamp(28px, 3vw, 38px); max-width: none; }
.labs-section-head p { color: var(--ink-soft); margin: 12px 0 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  transition: box-shadow .3s, transform .3s;
}
.card:hover, .card:focus-within { box-shadow: 0 18px 40px -18px rgba(18, 34, 46, .3); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.card-media.is-product img { object-fit: contain; object-position: center; padding: 14px; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 { font-size: 22px; margin: 0; }
.tag {
  flex-shrink: 0; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--paper-2); border-radius: 999px; padding: 4px 10px;
}
.card-meta { margin: 0; font-size: 13px; font-weight: 500; color: var(--sea); }
.card-desc { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.card-links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.card-link { position: relative; z-index: 1; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.card-link:hover { color: var(--ink); }
.card-link.primary { position: static; color: var(--sea); }
.card-link.primary::after { content: ""; position: absolute; inset: 0; }
.card-link.primary span { display: inline-block; margin-left: 6px; transition: transform .3s; }
.card:hover .card-link.primary span { transform: translateX(4px); }
.labs-disclosure { padding: 72px 0 24px; }
.labs-disclosure p { max-width: 760px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; margin: 0; }
.footer a { color: inherit; }

/* Labs teaser on home */
.labs-teaser { display: flex; align-items: end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.labs-teaser .sub { margin-top: 18px; }

@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .labs-hero { padding-top: 64px; }
}

/* ---------- Pitch form ---------- */
.pitch { padding: 88px 0 112px; }
.pitch-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.pitch-intro { position: sticky; top: 108px; }
.pitch-title { font-size: clamp(38px, 4.6vw, 58px); max-width: 12ch; }
.pitch-notes { list-style: none; padding: 0; margin: 32px 0 0; }
.pitch-notes li { padding: 14px 0 14px 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; position: relative; }
.pitch-notes li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 2px; background: var(--sea); }
.pitch-notes a { color: var(--sea); }
.pitch-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: 0 24px 48px -32px rgba(18, 34, 46, .25); }
.pitch-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; }
.field em { color: var(--sea); font-style: normal; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(47, 111, 115, .15); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fbeee8; color: #8a3a1c; font-size: 14px; }
.pitch-submit { border: 0; cursor: pointer; font: inherit; font-weight: 500; justify-self: start; padding: 15px 30px; }
.pitch-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.form-fine { margin: -6px 0 0; font-size: 13px; color: var(--ink-soft); }
.pitch-success { text-align: center; padding: 40px 12px; outline: none; }
.pitch-success svg { width: 56px; height: 56px; color: var(--sea); }
.pitch-success h2 { margin: 20px auto 0; font-size: clamp(28px, 3vw, 36px); max-width: 20ch; }
.pitch-success p { color: var(--ink-soft); max-width: 44ch; margin: 16px auto 28px; }
@media (max-width: 860px) {
  .pitch { padding: 56px 0 80px; }
  .pitch-grid { grid-template-columns: 1fr; gap: 40px; }
  .pitch-intro { position: static; }
  .pitch-card { padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
}
.contact-alt { font-size: 15px; margin-top: 16px; }
.contact-alt a { color: var(--paper); }

[hidden] { display: none !important; }
