:root {
  --ink: #10261f;
  --forest: #1c4436;
  --forest-mid: #2f6350;
  --sage: #cfe0d6;
  --paper: #f6f8f6;
  --fog: #e9efeb;
  --cream: #f4ecdd;
  --white: #ffffff;
  --text: #17271f;
  --muted: #53645b;
  --line: rgba(16, 38, 31, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --accent: #b9701f;
  --accent-hover: #9c5c15;
  --accent-bright: #d98d3a;
  --accent-soft: #edc68d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 1.25rem;
  --max: 1160px;
  --section-y: 4.5rem;
  --nav-h: 4rem;
  --radius-sm: 0.625rem;
  --radius: 1rem;
  --radius-lg: 1.375rem;
  --shadow-sm: 0 1px 2px rgba(16, 38, 31, 0.06), 0 4px 12px rgba(16, 38, 31, 0.05);
  --shadow: 0 2px 4px rgba(16, 38, 31, 0.05), 0 18px 40px rgba(16, 38, 31, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 2rem; --section-y: 5.5rem; }
}
@media (min-width: 960px) {
  :root { --gutter: 2.5rem; --section-y: 7rem; --nav-h: 4.75rem; }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
svg { display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.nb { white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

svg use { pointer-events: none; }
.icon-wrap svg,
.brick svg,
.checks svg,
.facts svg,
.contact-points svg,
.text-link svg,
.btn svg,
summary svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 0.5rem); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Type ---------- */
.eyebrow {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem);
  line-height: 1.14;
}

h3 { letter-spacing: -0.015em; color: var(--ink); }

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead {
  margin-top: 1rem;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 38rem;
}
.section-head.center .section-lead { margin-inline: auto; }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: var(--accent-soft); }

@media (min-width: 960px) {
  .section-head { margin-bottom: 3.5rem; }
  .section-lead { font-size: 1.125rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 3.375rem; padding: 0.875rem 1.625rem; font-size: 1rem; }
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(185, 112, 31, 0.28);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  border-color: rgba(16, 38, 31, 0.28);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(16, 38, 31, 0.04); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 248, 246, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(16, 38, 31, 0.06);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand-mark { flex-shrink: 0; width: 2.25rem; height: 2.25rem; }
.mark-head { fill: var(--accent-bright); }
.mark-a { fill: var(--mark-a, #10261f); }
.mark-b { fill: var(--mark-b, #2f6350); }
.brand-text { display: grid; gap: 0.2rem; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 6.25rem;
}
.brand-tag {
  display: none;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav > nav { display: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-current { display: none; }
.lang-link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 2.125rem;
  height: 2rem;
  padding-inline: 0.375rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-link::after {
  content: "";
  position: absolute;
  inset: -0.375rem -0.125rem;
}
.lang-link:hover { color: var(--ink); border-color: rgba(16, 38, 31, 0.3); }

.nav-links { display: none; gap: 2rem; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 0.5rem;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  box-shadow: none;
}

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.425rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.425rem) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 49;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(16, 38, 31, 0.12);
  padding: 0.5rem var(--gutter) 1.5rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { margin-bottom: 1.25rem; }
.mobile-nav li + li { border-top: 1px solid var(--line); }
.mobile-nav ul a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
}
.mobile-nav .btn { width: 100%; }
.mobile-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}
.mobile-lang span,
.mobile-lang a {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--muted);
  background: var(--white);
}
.mobile-lang span { background: var(--ink); border-color: var(--ink); color: var(--white); }

@media (max-width: 389px) {
  .brand { gap: 0.5rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .nav-actions { gap: 0.25rem; }
  .nav-cta { font-size: 0.8125rem; }
  .menu-toggle { width: 2.5rem; height: 2.5rem; }
}
@media (max-width: 374px) {
  .brand-name { font-size: 1rem; }
  .nav-cta { padding-inline: 0.625rem; }
  .lang-link { min-width: 2rem; padding-inline: 0.25rem; }
}
@media (max-width: 359px) {
  .lang { display: none; }
}
@media (max-width: 339px) {
  .nav-cta { padding-inline: 0.5rem; }
  .menu-toggle { width: 2.25rem; }
}

@media (min-width: 440px) {
  .nav-actions { gap: 0.5rem; }
  .nav-cta { padding-inline: 1rem; }
  .brand { gap: 0.75rem; }
  .brand-name { font-size: 1.1875rem; line-height: 1; max-width: none; white-space: nowrap; }
}
@media (min-width: 600px) {
  .nav { gap: 0.75rem; }
  .nav-actions { gap: 0.75rem; }
  .lang {
    padding: 0.1875rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
  }
  .lang-current,
  .lang-link {
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2rem;
    padding-inline: 0.5rem;
    border: 0;
    border-radius: 999px;
  }
  .lang-current { background: var(--ink); color: var(--white); }
  .lang-link { background: transparent; }
}
@media (min-width: 720px) {
  .brand-tag { display: block; }
}
@media (min-width: 960px) {
  .nav { gap: 1rem; }
  .brand { margin-right: 0; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: 1.3125rem; }
  .nav > nav { display: block; }
  .nav-links { display: flex; }
  .nav-cta { min-height: 3rem; padding: 0.75rem 1.375rem; font-size: 0.9375rem; box-shadow: 0 8px 20px rgba(185, 112, 31, 0.28); }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(217, 141, 58, 0.14), transparent 60%),
    linear-gradient(180deg, #edf2ee, var(--paper));
}
.hero-grid {
  display: grid;
  gap: 2.25rem;
}
.hero h1 {
  font-size: clamp(2.375rem, 1.3rem + 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.hero-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 35rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: grid;
  gap: 0.75rem;
}

.hero-portrait {
  position: relative;
  width: min(100%, 24rem);
  margin-inline: auto;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -0.625rem;
  bottom: 3.25rem;
  width: 42%;
  height: 34%;
  border-radius: var(--radius);
  background: var(--accent-bright);
}
.hero-portrait::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -0.625rem;
  top: -0.625rem;
  width: 34%;
  height: 22%;
  border-radius: var(--radius);
  background: var(--sage);
}
.hero-portrait picture {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #d9dedb;
  box-shadow: var(--shadow);
}
.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0%;
}
.hero-portrait figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.125rem;
  padding: 0.875rem 0.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-portrait figcaption strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-stats {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--forest);
  white-space: nowrap;
}
.hero-stats dd {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

@media (min-width: 480px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 600px) {
  .hero-lead { font-size: 1.1875rem; }
}
@media (min-width: 960px) {
  .hero {
    padding-top: calc(var(--nav-h) + 4.5rem);
    padding-bottom: 5rem;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    grid-template-areas: "copy portrait" "stats portrait";
    column-gap: 4.5rem;
    row-gap: 3rem;
    align-items: start;
  }
  .hero-copy { grid-area: copy; align-self: end; }
  .hero-portrait { grid-area: portrait; width: 100%; max-width: 26rem; margin: 0 0 0 auto; align-self: center; }
  .hero-portrait::before { left: -1rem; }
  .hero-portrait::after { right: -1rem; top: -1rem; }
  .hero-stats {
    grid-area: stats;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
  }
  .hero-stats > div {
    display: block;
    padding: 0;
    border: 0;
  }
  .hero-stats dt { font-size: 1.75rem; margin-bottom: 0.375rem; }
}

/* ---------- Logos ---------- */
.logos {
  padding-block: 2rem;
  border-block: 1px solid var(--line);
  background: var(--white);
}
.logos-inner { display: grid; gap: 1.5rem; }
.logos-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  align-items: center;
  justify-items: center;
}
.logo-row li { display: grid; place-items: center; height: 2.5rem; }
.logo-row img {
  width: auto;
  filter: brightness(0);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.logo-row img:hover { opacity: 0.8; }
.logo-tunein { height: 2.375rem; }
.logo-rakuten { height: 2rem; }
.logo-nokia { height: 1.25rem; }
.logo-unilever { height: 2.5rem; }

@media (min-width: 720px) {
  .logos-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 3rem;
  }
  .logos-label { text-align: left; }
  .logo-row { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 2rem; }
}

/* ---------- Icon tiles ---------- */
.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: var(--fog);
  color: var(--forest);
  flex-shrink: 0;
}
.icon-wrap svg { width: 1.375rem; height: 1.375rem; }
.icon-wrap.accent { background: rgba(217, 141, 58, 0.16); color: var(--accent); }

/* ---------- Signals ---------- */
.signal-grid { display: grid; gap: 1rem; }
.signal {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0.375rem;
  padding: 1.375rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.signal .icon-wrap { grid-row: 1 / span 2; }
.signal h3 { font-size: 1.0625rem; line-height: 1.3; align-self: end; }
.signal p { color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

@media (min-width: 720px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .signal { padding: 1.75rem; }
}
@media (min-width: 1040px) {
  .signal-grid { grid-template-columns: repeat(4, 1fr); }
  .signal { display: block; padding: 1.75rem 1.5rem; }
  .signal h3 { margin: 1.25rem 0 0.5rem; font-size: 1.125rem; }
}

/* ---------- Building blocks ---------- */
.blocks {
  background: var(--fog);
  border-block: 1px solid var(--line);
}
.stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  max-width: 62rem;
  margin-inline: auto;
}
.layer { display: grid; gap: 0.625rem; }
.layer-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.layer-tag span {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0;
  color: var(--accent);
}
.layer-tag::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.bricks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}
.bricks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.brick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 6px 14px rgba(16, 38, 31, 0.12);
}
.brick svg { width: 1.375rem; height: 1.375rem; flex-shrink: 0; color: var(--accent-soft); }
.brick strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}
.brick small {
  display: none;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0.78;
}
.layer-2 .brick { background: var(--forest-mid); }
.layer-3 .brick { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.layer-3 .brick svg { color: var(--accent); }
.brick.capstone {
  justify-content: center;
  background: var(--accent-bright);
  color: var(--ink);
  min-height: 4.75rem;
}
.brick.capstone svg { color: var(--ink); }
.brick.capstone small { display: block; opacity: 0.85; }

.js .stack .brick {
  opacity: 0;
  transform: translateY(-1rem);
}
.js .stack.is-built .brick {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.stack-hint {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.stack-hint::before { content: "↑ "; color: var(--accent); }

.mortar {
  display: grid;
  gap: 1.5rem;
  max-width: 62rem;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px dashed rgba(16, 38, 31, 0.28);
}
.mortar h3 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.375rem;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}
.mortar p { color: var(--muted); }
.mortar-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: center; }
.mortar-list li {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--fog);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--forest);
}

@media (min-width: 600px) {
  .brick small { display: block; }
  .brick { padding: 1rem 1.125rem; min-height: 5rem; }
  .mortar { padding: 2rem; }
}
@media (min-width: 900px) {
  .stack { gap: 0.75rem; }
  .layer { gap: 0; justify-items: center; }
  .layer-tag {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.625rem;
  }
  .layer-tag::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    order: -1;
  }
  .layer-tag span { order: 0; }
  .bricks { width: 100%; gap: 0.75rem; }
  .bricks li:last-child:nth-child(odd) { grid-column: auto; }
  .layer-1 .bricks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .layer-2 .bricks { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 76%; }
  .layer-3 .bricks { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 51%; }
  .layer-4 .bricks { grid-template-columns: 1fr; width: 34%; }
  .layer-2 .layer-tag { width: 76%; }
  .layer-3 .layer-tag { width: 51%; }
  .layer-4 .layer-tag { width: 34%; }
  .layer { margin-top: 0.75rem; }
  .brick { min-height: 5.5rem; }
  .mortar {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    padding: 2.5rem;
    margin-top: 3.5rem;
  }
}

/* ---------- Work ---------- */
.work-grid { display: grid; gap: 1rem; }
.work-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.work-kind {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-card h3 {
  margin: 0.375rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.625rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.work-card > p:not(.work-kind) { color: var(--muted); font-size: 0.9875rem; margin-bottom: 1.5rem; }
.checks {
  display: grid;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.checks li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.checks svg { width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; flex-shrink: 0; color: var(--accent); stroke-width: 2.2; }

.process { margin-top: 3rem; }
.process-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.steps { display: grid; gap: 0; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding-bottom: 1.75rem;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 2.5rem;
  bottom: 0;
  width: 2px;
  transform: translateX(-1px);
  background: repeating-linear-gradient(180deg, rgba(16, 38, 31, 0.25) 0 4px, transparent 4px 9px);
}
.steps li:last-child::before { display: none; }
.step-num {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}
.steps li:first-child .step-num { background: var(--accent); }
.steps h4 { font-size: 1.0625rem; line-height: 1.3; padding-top: 0.5rem; color: var(--ink); }
.steps p { grid-column: 2; margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .work-card { padding: 2.25rem 2rem; }
  .process {
    margin-top: 4.5rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--fog);
    border: 1px solid var(--line);
  }
  .process-title { margin-bottom: 2rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { display: block; padding: 0; }
  .steps li::before {
    left: 3.25rem;
    right: -1.25rem;
    top: 1.25rem;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-1px);
    background: repeating-linear-gradient(90deg, rgba(16, 38, 31, 0.25) 0 4px, transparent 4px 9px);
  }
  .steps h4 { padding-top: 1.125rem; font-size: 1.125rem; }
  .steps p { margin-top: 0.375rem; }
}

/* ---------- About ---------- */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-copy > p { color: var(--muted); margin-bottom: 1rem; max-width: 40rem; }
.facts { display: grid; gap: 0.625rem; margin-top: 1.5rem; }
.facts li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; font-weight: 500; }
.facts svg { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; color: var(--accent); flex-shrink: 0; }
.about-actions { display: grid; gap: 0.75rem; margin-top: 2rem; }

@media (min-width: 480px) {
  .about-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
  .about .section-head { margin-bottom: 0; }
  .about-copy > p { font-size: 1.0625rem; }
}

/* ---------- Thinking ---------- */
.thinking {
  background: linear-gradient(165deg, #173a2e 0%, var(--ink) 60%);
  color: var(--white);
}
.insight-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
.insight {
  padding: 1.5rem 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-light);
}
.insight-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.insight blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.insight figcaption { font-size: 0.875rem; color: rgba(255, 255, 255, 0.66); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: none;
}
.text-link svg { width: 1.125rem; height: 1.125rem; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

@media (min-width: 900px) {
  .insight-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
  .insight { padding: 2rem 2rem 2.25rem; }
  .insight blockquote { font-size: 1.5rem; }
}

/* ---------- Quotes ---------- */
.quotes-grid { display: grid; gap: 1rem; }
.quote {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.8;
  height: 1.75rem;
  color: var(--accent-bright);
}
.quote blockquote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.quote figcaption {
  margin-top: auto;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.quote figcaption strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 0.125rem; }
.quotes-source { margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.quotes-source a { color: var(--forest); font-weight: 500; }

@media (min-width: 960px) {
  .quotes-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .quote { padding: 2.25rem 2rem; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--fog); border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--accent);
  stroke-width: 2;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.375rem; color: var(--muted); max-width: 42rem; }

@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; align-items: start; }
  .faq .section-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .faq summary { padding: 1.125rem 1.75rem; }
  .faq details p { padding: 0 1.75rem 1.625rem; }
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { color: var(--white); }
.contact .section-lead { color: rgba(255, 255, 255, 0.78); }
.contact-grid { display: grid; gap: 2.5rem; }
.contact-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
}
.contact-person img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  object-fit: cover;
  flex-shrink: 0;
}
.contact-person p { font-size: 0.9375rem; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.contact-person strong { color: var(--white); }
.contact-points { display: grid; gap: 0.25rem; margin-top: 1.5rem; }
.contact-points li { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.contact-points svg { width: 1.25rem; height: 1.25rem; color: var(--accent-soft); flex-shrink: 0; }
.contact-points a { color: var(--white); text-underline-offset: 0.25em; text-decoration-color: rgba(255, 255, 255, 0.4); overflow-wrap: anywhere; }
.contact-points a:hover { text-decoration-color: var(--accent-soft); }

.form-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.contact-form { display: grid; gap: 1.125rem; }
.contact-form[hidden] { display: none; }
.form-row { display: grid; gap: 1.125rem; }
.field { display: grid; gap: 0.4rem; }
.field > span { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(16, 38, 31, 0.2);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310261f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: #8a968f; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(47, 99, 80, 0.18);
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { width: 100%; margin-top: 0.25rem; }
.form-status { min-height: 1.4rem; font-size: 0.9375rem; color: #8c2f1b; }
.form-status:empty { display: none; }
.form-status a { color: inherit; font-weight: 600; }
.form-done { display: grid; gap: 0.75rem; justify-items: start; padding: 1rem 0.25rem; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.form-done h3 { font-family: var(--font-display); font-weight: 550; font-size: 1.5rem; line-height: 1.2; }
.form-done p { color: var(--muted); }

@media (min-width: 600px) {
  .form-card { padding: 2.25rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 5rem; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem;
  background: #0a1914;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { display: grid; gap: 1rem; max-width: 22rem; }
.site-footer .brand { color: var(--white); }
.site-footer { --mark-a: #f4ecdd; --mark-b: #8fb5a3; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}
.footer-links a:hover { color: var(--white); }
.footer-meta { display: grid; gap: 0.375rem; }
.footer-lang a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent-soft);
  text-decoration: none;
}
.footer-lang a:hover { color: var(--white); }

:lang(pt) .hero-stats > div { grid-template-columns: 8.75rem 1fr; }
.fine { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }

@media (min-width: 720px) {
  .site-footer { padding-block: 4rem; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr auto; gap: 4rem; align-items: start; }
  .footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 0 2.5rem; }
  .footer-meta { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .stack .brick { opacity: 1; transform: none; }
}
