/* TrueHomeBuild — design v2 (Mediterranean Editorial Modern)
 * Loaded ALONGSIDE the legacy style.css on pages migrated to v2.
 * Class namespace is intentionally distinct (.bento-hero, .quiz,
 * .trust-strip, .process-grid, etc.) so v1 and v2 pages can coexist
 * during the rollout. Once every page is on v2, style.css can be
 * removed entirely.
 *
 * Source of truth: tools/design-mockup/homepage-v2.html
 * Photos: SERVER/images/portfolio/v2/*.jpg (FLUX-generated, regenerable)
 */

/* ============================================================
   DESIGN TOKENS — Mediterranean Editorial Modern
   ============================================================ */
:root {
  /* Palette — earthy Barcelonés tones */
  --ink:    #15171C;
  --ink-2:  #2C2F38;
  --paper:  #FAF7F2;
  --paper-2:#F2EDE3;
  --clay:   #C0613D;          /* terracotta — barcelonés rooftops */
  --clay-2: #A04E2E;
  --ochre:  #E0A658;          /* Gaudí tile yellow */
  --olive:  #5C6B4B;          /* Catalan vegetation */
  --sand:   #E8DDC8;
  --ash:    #8B8680;
  --line:   rgba(21,23,28,.10);
  --line-2: rgba(21,23,28,.18);

  /* Typography */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing scale (8px grid) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --s-10:128px;--s-11:192px;

  /* Layout */
  --container: 1320px;
  --container-narrow: 920px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Subtle paper-grain texture overlay */
body::before {
  content:""; position:fixed; inset:0; z-index:1; pointer-events:none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity:.6;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); position: relative; z-index: 2; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(48px, 7vw, 96px); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.5vw, 32px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--clay); font-weight: 500;
}
.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.italic { font-style: italic; font-feature-settings: "ss01"; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-4) 0;
}
.brand {
  display: flex; align-items: baseline; gap: var(--s-3);
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--ink); color: var(--paper);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600; letter-spacing: 0;
  align-self: center;
}
.brand-tag {
  font-family: var(--font-body); font-size: 11px;
  color: var(--ash); font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  margin-left: -8px; align-self: center;
  border-left: 1px solid var(--line-2); padding-left: var(--s-3);
}
.nav { display: flex; gap: var(--s-6); }
.nav a {
  position: relative; font-size: 14px; font-weight: 500;
  color: var(--ink-2); transition: color .2s var(--ease);
}
.nav a::after {
  content:""; position:absolute; left:0; right:100%; bottom:-4px;
  height:1px; background: var(--clay);
  transition: right .3s var(--ease-out);
}
.nav a:hover { color: var(--clay); }
.nav a:hover::after { right: 0; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: transparent; transition: all .2s var(--ease);
}
.lang-btn:hover { border-color: var(--ink); }
.lang-btn .fi { width: 1.1em; height: .8em; border-radius: 1px; }

.btn { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; transition: all .2s var(--ease); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px;
}
.btn-primary:hover { background: var(--clay); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(192, 97, 61, .35); }
.btn-ghost {
  border: 1px solid var(--line-2); padding: 12px 22px; border-radius: 999px;
  font-size: 14px; color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: var(--s-9) 0 var(--s-10);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-9);
  align-items: end;
}
.hero-eyebrow { margin-bottom: var(--s-5); }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { font-style: italic; color: var(--clay); }
.hero h1 .accent::after {
  content:""; display:inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--clay);
  margin-left: 6px; vertical-align: middle;
}
.hero-lead { margin-bottom: var(--s-7); }
.hero-cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero-image {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: 8px; overflow: hidden;
  background: var(--ink-2);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-image::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.4) 100%);
}
.hero-image-tag {
  position: absolute; bottom: var(--s-4); left: var(--s-4); z-index: 2;
  font-family: var(--font-mono); font-size: 10px; color: var(--paper);
  letter-spacing: .2em; text-transform: uppercase;
  padding: var(--s-2) var(--s-3);
  background: rgba(0,0,0,.4); backdrop-filter: blur(6px);
  border-radius: 4px;
}

/* Trust strip — 5 trust signals (ratings + experience + warranty) */
.trust-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  padding: var(--s-6) 0; margin-top: var(--s-9);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; flex-direction: column; gap: var(--s-1); }
.trust-rating { display: flex; align-items: baseline; gap: var(--s-2); }
.trust-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.03em; line-height: 1;
}
.trust-stars { color: var(--ochre); font-size: 14px; letter-spacing: 1px; }
.trust-platform {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ash);
}
.trust-count {
  font-size: 13px; color: var(--ink-2);
}

/* ============================================================
   QUIZ CALCULATOR
   ============================================================ */
.section { padding: var(--s-10) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-7); align-items: end;
  margin-bottom: var(--s-9);
}
.section-head h2 { max-width: 18ch; }
.section-head .lead { max-width: 38ch; }

.quiz {
  background: var(--ink); color: var(--paper);
  border-radius: 8px; padding: var(--s-9) var(--s-8);
  position: relative; overflow: hidden;
}
.quiz::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(at 20% 0%, var(--clay-2) 0%, transparent 40%),
    radial-gradient(at 80% 100%, var(--olive) 0%, transparent 40%);
  opacity: .25; pointer-events: none;
}
.quiz-grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--s-9);
  position: relative; z-index: 1;
}
.quiz-aside { display: flex; flex-direction: column; gap: var(--s-5); }
.quiz-progress {
  display: flex; flex-direction: column; gap: var(--s-3);
}
.quiz-progress-bar {
  height: 4px; background: rgba(250,247,242,.15); border-radius: 2px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; background: var(--clay);
  width: 20%; transition: width .5s var(--ease-out);
}
.quiz-step-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(250,247,242,.5);
}
.quiz-host {
  display: flex; gap: var(--s-3); align-items: flex-start;
  margin-top: var(--s-5);
}
.quiz-host-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ochre), var(--clay));
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; color: var(--paper);
}
.quiz-host-name {
  font-family: var(--font-display); font-size: 17px; font-style: italic;
}
.quiz-host-role {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(250,247,242,.5);
}
.quiz-host-quote {
  font-size: 14px; color: rgba(250,247,242,.75); margin-top: var(--s-3);
  line-height: 1.5; max-width: 220px;
}

.quiz-main { padding-top: var(--s-3); }
.quiz-question {
  font-family: var(--font-display); font-size: 32px; line-height: 1.15;
  margin-bottom: var(--s-7); max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.quiz-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.quiz-option {
  display: flex; gap: var(--s-3); align-items: center;
  padding: var(--s-4) var(--s-5);
  background: rgba(250,247,242,.05);
  border: 1px solid rgba(250,247,242,.15); border-radius: 6px;
  text-align: left; transition: all .2s var(--ease);
}
.quiz-option:hover {
  background: rgba(250,247,242,.1); border-color: rgba(250,247,242,.4);
}
.quiz-option.selected {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.quiz-option-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(250,247,242,.1);
  display: grid; place-items: center; font-size: 16px;
}
.quiz-option.selected .quiz-option-icon {
  background: var(--clay); color: var(--paper);
}
.quiz-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(250,247,242,.1);
}
.quiz-back {
  font-size: 13px; color: rgba(250,247,242,.5);
  display: inline-flex; gap: var(--s-2); align-items: center;
}
.quiz-back:hover { color: var(--paper); }
.quiz-next {
  background: var(--clay); color: var(--paper);
  padding: 14px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; gap: var(--s-2); align-items: center;
  transition: all .2s var(--ease);
}
.quiz-next:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   SERVICES (TABS)
   ============================================================ */
.services-tabs {
  display: flex; gap: var(--s-1); margin-bottom: var(--s-7);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.services-tab {
  padding: var(--s-4) var(--s-5); position: relative;
  font-size: 14px; font-weight: 500; color: var(--ash);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all .2s var(--ease);
}
.services-tab.active { color: var(--ink); border-bottom-color: var(--clay); }
.services-tab:hover { color: var(--ink); }
.services-tab .tab-num {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ash); margin-right: var(--s-2);
}

.services-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9);
  align-items: start;
}
.services-panel.hidden { display: none; }
.services-info h3 { margin-bottom: var(--s-4); }
.services-info p { color: var(--ink-2); margin-bottom: var(--s-5); max-width: 50ch; }
.services-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5);
  padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.services-meta-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ash); margin-bottom: var(--s-2);
}
.services-meta-value {
  font-family: var(--font-display); font-size: 32px;
  font-variation-settings: "opsz" 144; letter-spacing: -.02em;
}
.services-meta-value sub { font-family: var(--font-body); font-size: 14px; color: var(--ash); font-weight: 400; }
.services-list { list-style: none; }
.services-list li {
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--s-3);
  font-size: 14px;
}
.services-list li::before {
  content:"·"; color: var(--clay); font-size: 22px; line-height: 0;
  align-self: center; margin-right: var(--s-2);
}
.services-list li span:last-child { color: var(--ash); font-family: var(--font-mono); font-size: 12px; }

.services-image {
  aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
  position: relative; background: var(--ink-2);
}
.services-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   PORTFOLIO MASONRY
   ============================================================ */
/* Bento grid — editorial magazine layout with explicit cell positions */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr 1fr auto;
  gap: var(--s-4);
}
.portfolio-card {
  position: relative; overflow: hidden;
  border-radius: 6px;
  background: var(--ink-2);
  cursor: pointer;
  transition: transform .4s var(--ease-out);
  display: block;
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card-img {
  width: 100%; height: 100%;
  background: var(--ink-2);
  position: relative;
}
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-card-img::after {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%);
}
.portfolio-card-meta {
  position: absolute; left: var(--s-4); bottom: var(--s-4); right: var(--s-4);
  display: flex; justify-content: space-between; align-items: end; gap: var(--s-3);
  color: var(--paper);
  z-index: 1;
}
.portfolio-card-title {
  font-family: var(--font-display); font-size: clamp(20px, 1.6vw, 28px);
  font-style: italic; letter-spacing: -.01em; line-height: 1.1;
}
.portfolio-card-tag {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(250,247,242,.7);
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
  align-self: end;
}

/* Bento cells — explicit positions */
.bento-hero    { grid-column: 1 / 9;  grid-row: 1 / 3; min-height: 480px; }
.bento-tall-1  { grid-column: 9 / 13; grid-row: 1; min-height: 232px; }
.bento-tall-2  { grid-column: 9 / 13; grid-row: 2; min-height: 232px; }
.bento-mid     { grid-column: 1 / 5;  grid-row: 3; min-height: 280px; }
.bento-wide    { grid-column: 5 / 13; grid-row: 3; min-height: 280px; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { max-width: var(--container-narrow); margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: baseline;
  width: 100%; gap: var(--s-5); cursor: pointer;
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px);
  font-variation-settings: "opsz" 144;
  text-align: left; padding: var(--s-3) 0;
}
.faq-q-toggle {
  font-family: var(--font-mono); font-size: 16px; color: var(--clay);
  flex-shrink: 0; transition: transform .3s var(--ease);
}
.faq-item.open .faq-q-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out), margin .4s var(--ease-out);
  color: var(--ink-2); font-size: 16px; line-height: 1.6;
  padding-right: var(--s-9);
}
.faq-item.open .faq-a { max-height: 400px; margin-top: var(--s-3); }

/* ============================================================
   WHY US — numerical commitments grid (Markin SEO requirement)
   ============================================================ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5) var(--s-6);
}
.why-card {
  padding: var(--s-6);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform .25s var(--ease-out), border-color .25s var(--ease);
}
.why-card:hover { transform: translateY(-2px); border-color: var(--clay); }
.why-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 4.5vw, 72px);
  font-variation-settings: "opsz" 144, "SOFT" 60;
  line-height: 1; color: var(--clay);
  letter-spacing: -.04em;
  display: flex; align-items: baseline; gap: var(--s-2);
}
.why-num span {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase;
  align-self: end; padding-bottom: 8px;
}
.why-card h3 {
  font-family: var(--font-display); font-size: 22px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.01em;
}
.why-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ============================================================
   EXTRAS — Cost of additional services price grid.
   Lighter cards than .why-card, with a price list inside.
   ============================================================ */
.extras-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5) var(--s-6);
}
.extras-card {
  padding: var(--s-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: border-color .25s var(--ease);
}
.extras-card:hover { border-color: var(--ochre); }
.extras-card h3 {
  font-family: var(--font-display); font-size: 20px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.01em;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
}
.extras-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.extras-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3);
  font-size: 14px; line-height: 1.45;
}
.extras-list li > span:first-child {
  color: var(--ink-2);
  flex: 1 1 auto;
}
.extras-list li > span:last-child {
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  color: var(--clay);
  letter-spacing: .02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============================================================
   TEAM — director + senior leads (Markin EEAT requirement)
   ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
.team-card {
  padding: var(--s-6) 0; border-top: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ochre), var(--clay));
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 28px; color: var(--paper);
  margin-bottom: var(--s-2);
  box-shadow: 0 6px 18px -8px rgba(21,23,28,.25);
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.team-card h3 {
  font-family: var(--font-display); font-size: 26px;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.01em;
}
.team-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay);
}
.team-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; max-width: 30ch; }

/* ============================================================
   TESTIMONIALS — 3-up grid inside dark quote-section
   ============================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
  position: relative; z-index: 1;
}
.testimonial {
  padding: var(--s-6); border-radius: 8px;
  background: rgba(250,247,242,.04);
  border: 1px solid rgba(250,247,242,.08);
  display: flex; flex-direction: column; gap: var(--s-5);
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 24px);
  font-variation-settings: "opsz" 144;
  line-height: 1.3; letter-spacing: -.01em;
}
.testimonial-text em { font-style: italic; color: var(--ochre); }
.testimonial-attr {
  display: flex; align-items: center; gap: var(--s-3);
  margin-top: auto;
}

/* ============================================================
   AREAS SERVED — 3-col tag lists with internal links
   ============================================================ */
.areas-grid {
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: var(--s-7);
}
.areas-col h3 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ash); margin-bottom: var(--s-4);
}
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag-list li a {
  display: inline-block; padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; color: var(--ink);
  transition: all .2s var(--ease);
}
.tag-list li a:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ============================================================
   FINAL CTA — capture form (lead magnet for users who scroll past quiz)
   ============================================================ */
.final-cta {
  background:
    radial-gradient(at 80% 0%, var(--sand) 0%, transparent 60%),
    radial-gradient(at 0% 100%, var(--paper-2) 0%, transparent 60%),
    var(--paper);
  border-top: 1px solid var(--line);
  padding: var(--s-10) 0;
}
.final-form {
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: var(--s-6);
  box-shadow: 0 18px 48px -24px rgba(21,23,28,.18);
}
.final-form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-4) var(--s-3); margin-bottom: var(--s-5);
}
.final-field input {
  width: 100%; height: 52px; padding: 0 var(--s-4);
  border: 1px solid var(--line-2); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px;
  background: var(--paper); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.final-field input::placeholder { color: var(--ash); }
.final-field input:focus {
  outline: 0; border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(192,97,61,.12);
}
.final-field--full { grid-column: 1 / -1; }
.final-form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}
.btn-large { padding: 16px 28px; font-size: 16px; min-height: 56px; }
.btn-small { padding: 8px 14px; font-size: 13px; min-height: 36px; border-radius: 6px; }
.final-consent {
  display: flex; align-items: flex-start; gap: var(--s-2);
  font-size: 12px; color: var(--ink-2); max-width: 36ch; line-height: 1.4;
}
.final-consent input { margin-top: 3px; }
.final-consent a { text-decoration: underline; text-decoration-color: var(--clay); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   PROCESS — 6 numbered steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6) var(--s-7);
  counter-reset: step;
}
.process-step { position: relative; padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -2px; left: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--clay); background: var(--paper);
  padding-right: var(--s-3);
  transform: translateY(-50%);
}
.process-step h3 {
  font-family: var(--font-display); font-size: 24px;
  font-variation-settings: "opsz" 144;
  margin-bottom: var(--s-3);
}
.process-step h3 em { font-style: italic; color: var(--clay); }
.process-step p { color: var(--ink-2); font-size: 14px; line-height: 1.55; max-width: 30ch; }

/* ============================================================
   EDITORIAL QUOTE / TESTIMONIAL
   ============================================================ */
.quote-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-10) 0 var(--s-9);
  position: relative; overflow: hidden;
}
.quote-section::before {
  content: "\""; position: absolute;
  top: -40px; left: -20px;
  font-family: var(--font-display); font-style: italic;
  font-size: 600px; line-height: 1; color: var(--clay-2);
  opacity: .15; pointer-events: none;
  font-variation-settings: "opsz" 144;
}
.quote-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-9); align-items: end;
  position: relative; z-index: 1;
}
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  max-width: 22ch;
}
.quote-text em { font-style: italic; color: var(--ochre); }
.quote-attr {
  display: flex; align-items: center; gap: var(--s-4);
  padding-bottom: var(--s-3);
}
.quote-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clay), var(--ochre));
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 24px;
  flex-shrink: 0;
}
.quote-name { font-size: 17px; font-weight: 500; }
.quote-role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(250,247,242,.55);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: var(--s-10) 0 var(--s-7);
  margin-top: var(--s-10);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(250,247,242,.1);
}
.footer-brand { max-width: 30ch; }
.footer-brand .brand { color: var(--paper); margin-bottom: var(--s-4); }
.footer-brand .brand-mark { background: var(--paper); color: var(--ink); }
.footer-brand p { color: rgba(250,247,242,.6); font-size: 14px; line-height: 1.6; }
.footer-col-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: rgba(250,247,242,.5);
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: 14px; color: rgba(250,247,242,.85); }
.footer-col a:hover { color: var(--clay); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-5);
  font-size: 12px; color: rgba(250,247,242,.4);
  font-family: var(--font-mono);
}

/* ============================================================
   SCROLL-DRIVEN ANIMATIONS (progressive enhancement)
   ============================================================ */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes reveal-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --s-9: 64px; --s-10: 80px; --s-11: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-image { aspect-ratio: 16 / 10; max-width: 100%; }
  .hero h1 { font-size: clamp(40px, 7vw, 72px); }
  .quiz { padding: var(--s-7) var(--s-6); }
  .quiz-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .services-panel { grid-template-columns: 1fr; gap: var(--s-6); }
  .services-image { aspect-ratio: 16 / 10; max-height: 420px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .testimonials-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .areas-col:last-child { grid-column: 1 / -1; }
  /* trust-strip stays 5 columns on tablet (still fits at 700-1000px); */
  /* mobile @media collapses it to 2x3 grid */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6); }
  .footer-brand { grid-column: 1 / -1; max-width: 50ch; }
  .quote-grid { grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px) — careful tap targets and stacking
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --s-7: 32px; --s-8: 48px; --s-9: 56px; --s-10: 64px; --s-11: 80px;
  }
  .container, .container-narrow { padding: 0 var(--s-4); }

  /* Header: brand + lang + burger only; CTAs in drawer */
  .nav, .brand-tag, .header-row > .btn-ghost { display: none; }
  .header-row {
    grid-template-columns: auto 1fr auto auto;
    gap: var(--s-3); padding: var(--s-3) 0;
  }
  .brand { font-size: 17px; gap: var(--s-2); }
  .brand-mark { width: 28px; height: 28px; font-size: 12px; }
  .lang-btn { padding: 8px 10px; font-size: 12px; min-height: 38px; }
  .header-row > .btn-primary {
    padding: 10px 14px; font-size: 12px; min-height: 40px;
  }
  .menu-toggle { display: inline-flex; }

  /* Mobile drawer (open by JS toggle on .menu-toggle) */
  .mobile-drawer.open {
    display: flex; flex-direction: column; gap: var(--s-3);
    position: fixed; inset: 60px 0 0 0; z-index: 49;
    background: var(--paper); padding: var(--s-7) var(--s-5);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    animation: drawer-in .25s var(--ease-out);
  }
  @keyframes drawer-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .mobile-drawer a {
    font-family: var(--font-display); font-size: 30px;
    font-variation-settings: "opsz" 144;
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--line);
    display: block; min-height: 56px;
  }
  .mobile-drawer .drawer-cta {
    font-family: var(--font-body); font-size: 15px;
    background: var(--ink); color: var(--paper);
    padding: var(--s-4) var(--s-5); border-radius: 999px;
    text-align: center; margin-top: var(--s-5);
    border: 0; min-height: 52px;
  }
  .mobile-drawer .drawer-phone {
    font-family: var(--font-mono); font-size: 13px; color: var(--clay);
    border-bottom: 0; padding-top: var(--s-4);
  }

  /* Hero */
  .hero { padding: var(--s-7) 0 var(--s-9); }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.05; }
  .hero-eyebrow { margin-bottom: var(--s-4); }
  .hero-lead { margin-bottom: var(--s-6); font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn {
    text-align: center; justify-content: center;
    min-height: 50px; padding: 14px 22px; font-size: 15px;
  }
  .hero-image { aspect-ratio: 4 / 3; }
  .hero-image-tag { font-size: 9px; padding: 6px 10px; }

  /* Trust strip */
  .trust-strip {
    grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5);
    padding: var(--s-5) 0; margin-top: var(--s-7);
  }
  .trust-num { font-size: 28px; }
  .trust-platform { font-size: 10px; }
  .trust-count { font-size: 12px; }

  /* Section heads */
  .section { padding: var(--s-9) 0; }
  .section-head {
    grid-template-columns: 1fr; gap: var(--s-4);
    margin-bottom: var(--s-7);
  }
  h2 { font-size: clamp(32px, 8vw, 48px); }

  /* Quiz */
  .quiz { padding: var(--s-6) var(--s-4); border-radius: 6px; }
  .quiz-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .quiz-aside { gap: var(--s-4); }
  .quiz-host { margin-top: var(--s-3); }
  .quiz-host-avatar { width: 44px; height: 44px; font-size: 18px; }
  .quiz-host-name { font-size: 15px; }
  .quiz-host-quote { font-size: 13px; max-width: 100%; }
  .quiz-question { font-size: 24px; margin-bottom: var(--s-5); max-width: 100%; }
  .quiz-options { grid-template-columns: 1fr; gap: var(--s-2); }
  .quiz-option { padding: var(--s-3) var(--s-4); min-height: 60px; }
  .quiz-actions {
    flex-direction: column-reverse; gap: var(--s-3);
    margin-top: var(--s-5); padding-top: var(--s-4);
  }
  .quiz-back { align-self: flex-start; min-height: 44px; padding: 10px 0; }
  .quiz-next {
    width: 100%; justify-content: center;
    min-height: 52px; font-size: 15px; padding: 14px 24px;
  }

  /* Services tabs — horizontal scroll-snap */
  .services-tabs {
    margin: 0 calc(-1 * var(--s-4)) var(--s-6);
    padding: 0 var(--s-4);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-tabs::-webkit-scrollbar { display: none; }
  .services-tab {
    padding: var(--s-3) var(--s-4); font-size: 13px;
    scroll-snap-align: start; min-height: 44px;
  }
  .services-meta {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3); padding: var(--s-4) 0; margin-bottom: var(--s-5);
  }
  .services-meta-value { font-size: 26px; }
  .services-list li { padding: var(--s-3) 0; font-size: 13px; flex-wrap: wrap; }

  /* Portfolio Bento → single-column stack */
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--s-3);
  }
  .bento-hero,
  .bento-tall-1,
  .bento-tall-2,
  .bento-mid,
  .bento-wide {
    grid-column: 1; grid-row: auto;
    min-height: 280px; aspect-ratio: 4 / 3;
  }
  .bento-hero { aspect-ratio: 4 / 5; min-height: 360px; }
  .portfolio-card-title { font-size: 20px; }
  .portfolio-card-meta {
    left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
    flex-direction: column; align-items: flex-start; gap: var(--s-1);
  }

  /* Process */
  .process-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .process-step h3 { font-size: 22px; }

  /* Why us — single column on mobile */
  .why-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .why-card { padding: var(--s-5); }
  .why-num { font-size: clamp(40px, 11vw, 56px); }

  /* Extras — single column on mobile */
  .extras-grid { grid-template-columns: 1fr; gap: var(--s-3); }
  .extras-card { padding: var(--s-5); }

  /* Team — single column */
  .team-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .team-card { padding: var(--s-5) 0; }
  .team-card h3 { font-size: 22px; }

  /* Testimonials — stack */
  .testimonials-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .testimonial { padding: var(--s-5); }

  /* Areas served — stack columns */
  .areas-grid { grid-template-columns: 1fr; gap: var(--s-6); }

  /* Final CTA form */
  .final-cta { padding: var(--s-9) 0; }
  .final-form { padding: var(--s-5); border-radius: 8px; }
  .final-form-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .final-field input { height: 48px; font-size: 16px; }   /* 16px = no iOS zoom */
  .final-form-actions { flex-direction: column; gap: var(--s-4); align-items: stretch; }
  .btn-large { width: 100%; min-height: 52px; }
  .final-consent { max-width: 100%; }

  /* Quote / single quote (legacy) */
  .quote-section { padding: var(--s-9) 0 var(--s-8); }
  .quote-section::before { font-size: 320px; top: -20px; }
  .quote-text { font-size: clamp(24px, 7vw, 36px); }
  .quote-attr { padding-bottom: 0; }
  .quote-avatar { width: 52px; height: 52px; font-size: 20px; }

  /* Trust strip — 5 → 2-cols on mobile (was 1fr 1fr from earlier) */
  .trust-strip { grid-template-columns: 1fr 1fr; }

  /* FAQ */
  .faq-q { font-size: clamp(18px, 5vw, 24px); padding: var(--s-3) 0; }
  .faq-q-toggle { font-size: 22px; min-width: 24px; }
  .faq-item { padding: var(--s-4) 0; }
  .faq-a { font-size: 15px; padding-right: 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-brand { grid-column: auto; max-width: 100%; }
  .site-footer { padding: var(--s-9) 0 var(--s-6); margin-top: 0; }
  .footer-bottom {
    flex-direction: column; gap: var(--s-2);
    align-items: flex-start; font-size: 11px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤420px)
   ============================================================ */
@media (max-width: 420px) {
  :root { --s-5: 18px; --s-6: 24px; }
  .hero h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .header-row { grid-template-columns: 1fr auto auto; }
  .header-row > .btn-primary { display: none; }    /* CTA lives in drawer */
  .lang-btn { padding: 6px 9px; font-size: 11px; }
  .trust-num { font-size: 24px; }
  .trust-strip { gap: var(--s-3); }
  .quiz-question { font-size: 20px; }
  .quote-section::before { font-size: 240px; }
  .services-meta-value { font-size: 22px; }
}

/* ============================================================
   STICKY MOBILE CTA — sticks to bottom on small screens after hero
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  z-index: 40;
  background: var(--ink); color: var(--paper);
  padding: 14px var(--s-5); border-radius: 999px;
  text-align: center; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(21,23,28,.35);
  transform: translateY(140%);
  transition: transform .35s var(--ease-out);
}
.sticky-cta.visible { transform: translateY(0); }
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* Burger (visible on mobile only) */
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  cursor: pointer; min-height: 40px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); position: relative;
  transition: transform .25s var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content:""; position: absolute; left: 0;
  width: 100%; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top:  7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer { display: none; }
