/* mesh. — shared styles
   Warm deck palette (matches the v5-playful landing): clay/terracotta accents #7C2500 ·
   sand #D9CCBD · warm tan #B0894F · warm ink #241E18 · cream paper #ECE5D9 */

:root {
  --teal: #9E4A29;
  --teal-deep: #7C2500;
  --sand: #D9CCBD;
  --sand-deep: #B0894F;
  --ink: #241E18;
  --ink-soft: #5A5044;
  --paper: #ECE5D9;
  --cream: #E4DAC9;
  --white: #FAF7F1;
  --espresso: #3A3128;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #3A3128; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.display {
  font-size: clamp(40px, 6.5vw, 84px);
  color: var(--sand-deep);
}
.display .accent { color: var(--teal); }
h2.section-title {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 24px;
}
h2.section-title.sand { color: var(--sand-deep); }
h2.section-title.teal { color: var(--teal); }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.6; color: var(--ink); max-width: 62ch; }
.muted { color: var(--ink-soft); }
p + p { margin-top: 1em; }
strong { font-weight: 700; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { padding: clamp(64px, 9vw, 128px) 0; }
header.nav + section, header.nav + main > section:first-child { padding-top: clamp(24px, 4vw, 48px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Nav — corner style matching the landing: edge-anchored, transparent, pill CTA */
header.nav {
  position: static;
  background: transparent;
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: none; margin: 0;
  padding: 12px 24px 4px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.nav-logo img { height: 20px; width: auto; }
nav.links { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 13px; }
nav.links a { color: var(--ink); transition: color .18s; padding: 4px 0; }
nav.links a:hover, nav.links a.active { color: var(--teal-deep); }
nav.links a.cta {
  color: var(--paper); background: var(--ink);
  padding: 5px 12px; border-radius: 999px;
}
nav.links a.cta:hover { background: var(--teal-deep); color: var(--paper); }
@media (max-width: 640px) { nav.links a:not(.cta):not(.active) { display: none; } }

/* Hero (photo/texture based) */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-size: cover; background-position: center;
  padding: 0;
}
.hero .hero-content { position: relative; z-index: 2; padding: var(--pad); }
.hero .scrim { position: absolute; inset: 0; background: rgba(28,28,28,0.18); z-index: 1; }
.hero img.wordmark { width: min(46vw, 420px); margin: 0 auto 18px; }
.hero .tagline { color: var(--white); font-size: clamp(17px, 2.2vw, 24px); font-weight: 700; text-shadow: 0 1px 12px rgba(0,0,0,0.25); }
.hero .sub { color: rgba(255,255,255,0.92); font-weight: 600; margin-top: 10px; font-size: 15px; }

/* Cards */
.card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(28,28,28,0.05), 0 12px 32px -18px rgba(28,28,28,0.18);
}
.card .card-body { padding: 28px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }

/* Numbers strip */
.numbers {
  background: var(--espresso); color: var(--paper);
}
.numbers .grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center;
}
@media (max-width: 860px) { .numbers .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.numbers .n { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; color: var(--sand); line-height: 1; }
.numbers .l { margin-top: 10px; font-size: 15px; color: rgba(243,243,241,0.75); }

/* Quotes */
.quote-card {
  background: var(--white); border-radius: 14px; padding: 32px;
  box-shadow: 0 1px 2px rgba(28,28,28,0.05), 0 12px 32px -18px rgba(28,28,28,0.18);
  display: flex; flex-direction: column; gap: 18px;
}
.quote-card blockquote { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card .who img { height: 20px; width: auto; opacity: 0.85; }
.quote-card .who span { font-weight: 700; font-size: 14px; }
.stars { color: var(--sand-deep); letter-spacing: 2px; font-size: 14px; }

/* Full-bleed photo band */
.photo-band { padding: 0; }
.photo-band img { width: 100%; height: min(64vh, 560px); object-fit: cover; }

/* Split photo/text */
.split-img { border-radius: 14px; overflow: hidden; box-shadow: 0 16px 44px -20px rgba(28,28,28,0.3); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Process */
.process { counter-reset: step; }
.step-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid rgba(28,28,28,0.12);
}
.step-row:last-child { border-bottom: 1px solid rgba(28,28,28,0.12); }
.step-row .num { font-size: 30px; font-weight: 800; color: var(--teal); }
.step-row h3 { font-size: 20px; margin-bottom: 6px; }
.step-row p { color: var(--ink-soft); max-width: 62ch; }

/* Lists */
ul.checks { list-style: none; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
ul.checks li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--teal);
}
ul.checks.sand li::before { background: var(--sand-deep); }

/* Case studies */
.case { border-top: 1px solid rgba(28,28,28,0.1); }
.case .meta {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  margin: 18px 0 26px;
}
.case .meta span b { color: var(--teal-deep); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; display: block; }
.case-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-top: 40px; }
.case-gallery img { border-radius: 12px; object-fit: cover; width: 100%; height: 100%; aspect-ratio: 4/3; }
.case-gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) { .case-gallery { grid-template-columns: 1fr 1fr; } .case-gallery img:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16/9; } }
.case blockquote.outcome {
  margin-top: 36px; padding: 26px 30px;
  background: var(--cream); border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0; font-style: italic; color: var(--ink-soft);
}
.case blockquote.outcome cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--ink); }

/* Founders */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.founder img { border-radius: 14px; width: 100%; }
.founder h3 { font-size: 28px; color: var(--teal-deep); margin-bottom: 4px; }
.founder .role { font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.founder .own-voice {
  margin-top: 18px; padding: 20px 24px; background: var(--white); border-radius: 12px;
  font-style: italic; color: var(--ink-soft);
  box-shadow: 0 1px 2px rgba(28,28,28,0.05), 0 10px 28px -18px rgba(28,28,28,0.16);
}
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 300px; } }

/* CTA band */
.cta-band {
  position: relative; text-align: center; color: var(--white);
  background-size: cover; background-position: center;
}
.cta-band .scrim { position: absolute; inset: 0; background: rgba(28,28,28,0.42); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 56px); margin-bottom: 18px; }
.btn {
  display: inline-block; margin-top: 18px;
  background: var(--teal-deep); color: #fff;
  font-weight: 700; padding: 14px 34px; border-radius: 999px;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: var(--espresso); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--teal-deep); }

/* Footer */
footer {
  margin-top: auto;
  background: var(--espresso); color: rgba(243,243,241,0.72);
  padding: 22px 6vw 18px; font-size: 14px;
}
footer .foot-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 24px; max-width: none; padding: 0; }
footer .fright { display: flex; gap: 16px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
footer .ftag { text-align: center; font-size: 14px; color: rgba(242,235,223,.6); white-space: nowrap; }
@media (max-width: 800px) { footer .foot-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } footer .fright { justify-content: center; } }
footer img { height: 26px; }
footer a { color: var(--paper); font-weight: 600; }
footer a:hover { color: var(--sand); }

/* Utility */
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.eyebrow-line { width: 44px; height: 3px; background: var(--teal); margin-bottom: 20px; border-radius: 2px; }

/* Typographic logo (nav + footer) */
.nav-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.nav-logo span { color: var(--teal-deep); }
.foot-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--paper); line-height: 1; }
.foot-logo span { color: #D89B6A; }

/* Typographic hero (v2 — replaces logo-over-photo) */
.hero-type {
  padding: clamp(90px, 14vh, 160px) 0 clamp(36px, 5vh, 64px);
  background: var(--paper);
}
.hero-type .giant {
  font-size: clamp(96px, 19vw, 280px);
  font-weight: 800; letter-spacing: -0.045em; line-height: 0.9;
  color: var(--ink);
}
.hero-type .dot { color: var(--teal); }
.hero-type .hero-line {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 8px 32px; margin-top: 26px;
  border-top: 2px solid var(--ink); padding-top: 18px;
}
.hero-type .tagline { font-size: clamp(17px, 2.4vw, 26px); font-weight: 700; color: var(--ink); }
.hero-type .sub { font-size: clamp(14px, 1.6vw, 17px); font-weight: 600; color: var(--ink-soft); }
.hero-photo img { height: min(72vh, 640px); }

/* Hero v3: the work leads, logo stays small in the nav */
.hero-work { justify-content: flex-start; align-items: flex-end; }
.hero-work .hero-caption {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(40px, 7vh, 72px);
  max-width: 900px;
}
.hero-work .hero-caption h1 {
  color: var(--white); font-size: clamp(32px, 5.2vw, 66px);
  letter-spacing: -0.02em; line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-work .hero-caption .sub {
  margin-top: 16px; color: rgba(255,255,255,0.92);
  font-weight: 600; font-size: clamp(13.5px, 1.5vw, 16px);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.hero-work .scrim { background: linear-gradient(180deg, rgba(28,28,28,0.12) 40%, rgba(28,28,28,0.55) 100%); }

/* Contact: pills empilhadas no telemóvel */
@media (max-width: 640px) {
  .pill-row { flex-direction: column; }
  .pill-row .btn { text-align: center; width: 100%; }
}
