/* Vila AI, version 1.
   Layout: one left-aligned column of quiet sections on off-white, hairlines
   instead of cards, one tinted band for the client story. Light only in v1. */

:root {
  --bg: #FAFAF7;
  --surface: #F1F0EB;
  --ink: #16181D;
  --ink-muted: #5A5F69;
  --rule: #E2E1DB;
  --accent: #1F5C55;
  --accent-hover: #174641;
  --on-accent: #FFFFFF;

  /* Draft-only: marks text Anh still has to supply. Remove with the placeholders. */
  --ph-bg: #FFF3BF;
  --ph-line: #9A8424;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --container: 1120px;
  --measure: 680px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 16.6px + 0.12vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
  font-optical-sizing: auto;
}
h1 {
  font-size: clamp(38px, 30px + 2.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(28px, 24.5px + 1.1vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(21px, 19.8px + 0.4vw, 24px);
  line-height: 1.3;
}
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
  z-index: 20;
}
.skip-link:focus { top: var(--s2); color: var(--bg); }

/* Width wrapper. Every band puts its content in one of these. */
.wrap {
  max-width: calc(var(--container) + var(--s4) * 2);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.measure { max-width: var(--measure); }

.lead {
  font-size: clamp(19px, 18.3px + 0.25vw, 21px);
  line-height: 1.5;
  color: var(--ink);
}
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 1.5; }

/* Buttons: one style, the accent. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--s3);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 150ms var(--ease-out), transform 160ms var(--ease-out);
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .button { transition: background-color 150ms linear; }
  .button:active { transform: none; }
}
.button--small { min-height: 40px; padding: 0 var(--s2); font-size: 15px; }

/* Draft banner and placeholders. Delete both before launch. */
.draft-note {
  background: var(--ph-bg);
  border-bottom: 1px dashed var(--ph-line);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.draft-note .wrap { padding-block: 10px; }
.ph {
  background: var(--ph-bg);
  outline: 1px dashed var(--ph-line);
  outline-offset: 0;
  border-radius: 2px;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph-block {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ph-bg);
  border: 1px dashed var(--ph-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  padding: var(--s3);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s3);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: var(--s4); }
.site-nav ul {
  display: flex;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.site-nav ul a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 760px) {
  .site-nav ul { display: none; }
}

/* Sections */
.section { padding-block: clamp(72px, 40px + 7vw, 128px); }
.section + .section:not(.band) { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: var(--s3); margin-bottom: clamp(48px, 36px + 3vw, 64px); }

/* Hero */
.hero { padding-block: clamp(56px, 30px + 7vw, 128px) clamp(72px, 40px + 7vw, 128px); }
/* Offset hero: headline on the left, the offer and the one button on the right. */
.hero-inner { display: grid; gap: var(--s4); }
.hero-inner > * { min-width: 0; }
.hero h1 { max-width: 15ch; }
.hero-side { display: grid; gap: var(--s4); max-width: var(--measure); }
.hero-action { display: grid; gap: var(--s2); justify-items: start; }
@media (min-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s7);
    align-items: end;
  }
  .hero-side { padding-bottom: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-inner { animation: hero-in 200ms var(--ease-out) both; }
  @keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
}

/* How it works: stacked rows with hairlines */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s2);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.steps li > * { min-width: 0; }
.steps p { color: var(--ink-muted); max-width: 560px; }
@media (min-width: 820px) {
  .steps li {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--s5);
    padding-block: var(--s5);
  }
}

/* Proof band: the story on the left, its numbers stacked on the right. */
.band { background: var(--surface); }
.proof { display: grid; gap: var(--s6); }
.proof > * { min-width: 0; }
.proof-parts { display: grid; gap: var(--s5); max-width: var(--measure); }
.proof-part { display: grid; gap: var(--s1); }
.proof-part h3 { font-size: clamp(19px, 18px + 0.3vw, 21px); }
.proof-part p { color: var(--ink); }

.figures { display: grid; border-top: 1px solid var(--rule); }
.figure {
  display: grid;
  gap: var(--s1);
  align-content: start;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .proof { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; }
}
.quote-wrap { margin-top: clamp(64px, 48px + 4vw, 96px); }
.figure-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 36px + 2.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.figure-label { font-size: 17px; line-height: 1.45; }
.figure-source { font-size: 14px; color: var(--ink-muted); }

.quote { margin: 0; max-width: 760px; display: grid; gap: var(--s3); }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(23px, 20px + 1vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.quote figcaption { font-size: 15px; color: var(--ink-muted); }

/* What we build: plain two-column list */
.builds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0 var(--s6);
  border-top: 1px solid var(--rule);
}
.builds li {
  display: grid;
  gap: var(--s1);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.builds p { color: var(--ink-muted); }
@media (min-width: 760px) {
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.builds-close { margin-top: var(--s5); }

/* About */
.about { display: grid; gap: var(--s5); align-items: start; }
.about > * { min-width: 0; }
.portrait { aspect-ratio: 4 / 5; width: 100%; max-width: 360px; }
.about-text { display: grid; gap: var(--s3); max-width: var(--measure); }
@media (min-width: 820px) {
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); }
}

/* Closing call to action */
.closing-inner { display: grid; gap: var(--s4); justify-items: start; max-width: 760px; }
.booking-note { scroll-margin-top: var(--s4); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  justify-content: space-between;
  padding-block: var(--s5);
  font-size: 14px;
  color: var(--ink-muted);
}
.site-footer p { min-width: 0; }
