/* Take 10 — a fine pale grid, not graph paper. */

:root {
  --paper: #f3f2ed;
  --ink: #1a1c1a;
  --muted: #5a5f5a;
  --rule: rgba(26, 28, 26, 0.16);
  --grid: rgba(28, 34, 32, 0.055);
  --cell: 28px;
  --wrap: 1120px;
  --font: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
  background: var(--paper);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* Field. One weight of line. It drifts a single cell, then repeats. */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: 0 0;
  animation: grid-drift 80s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: var(--cell) var(--cell); }
}

.topbar,
main,
.site-footer { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 30;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

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

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  min-width: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: -0.011em;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }

.lang-switch {
  display: inline-flex;
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.48rem 0.58rem;
  cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid var(--rule); }
.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: -0.011em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; background: rgba(26, 28, 26, 0.05); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #2c302c; color: var(--paper); }

/* Hero — face, then the sentence */
.hero {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 4.25rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 6.5rem);
}

.hero-face {
  --face-scale: 2.45;
  width: calc(168px * var(--face-scale));
  height: calc(168px * var(--face-scale));
  display: grid;
  place-items: center;
  margin: 0;
}

.hero-copy {
  max-width: 38rem;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.15rem, 3.55vw, 3.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
}

.hero-actions { margin: 1.7rem 0 0; }

/* Face — same geometry as the live page, cool slate on warm paper. */
.face-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  overflow: visible;
  transform: scale(var(--face-scale));
  transform-origin: center center;
}
.face-rig {
  width: 132px;
  height: 132px;
  transform-origin: 50% 60%;
  z-index: 1;
}
.face-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%,
    #f4f8f7 0%,
    #b9c9cb 12%,
    #5c7278 38%,
    #223238 68%,
    #10181c 100%);
  box-shadow:
    0 22px 44px rgba(16, 28, 34, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 8px 10px 16px rgba(214, 236, 232, 0.32),
    inset -12px -16px 22px rgba(0, 8, 12, 0.55);
  transform-origin: 50% 62%;
  cursor: pointer;
}
.face-orb::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 16%;
  width: 38%;
  height: 20%;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92), rgba(198, 226, 222, 0.08) 72%, transparent);
  pointer-events: none;
}
.face-eyes {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 58px;
  height: 28px;
  margin-left: -29px;
  margin-top: -14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.face-eye {
  width: 11px;
  height: 26px;
  border-radius: 999px;
  background: #e7f3ef;
  box-shadow: inset 0 -1px 0 rgba(8, 18, 22, 0.28);
  flex: 0 0 auto;
}
.face-shadow {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 78px;
  height: 12px;
  margin-left: -39px;
  border-radius: 50%;
  background: rgba(16, 32, 38, 0.18);
  filter: blur(2px);
  z-index: 0;
}
.face-line {
  margin: 0.35rem 0 0;
  max-width: 16rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.5em;
}
.face-spray {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}
.face-drop {
  position: absolute;
  width: 5px;
  height: 8px;
  margin: -4px 0 0 -2px;
  border-radius: 40%;
  background: #1c3036;
  animation: face-drop 620ms cubic-bezier(0.12, 0.7, 0.2, 1) forwards;
}
@keyframes face-drop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

/* Sections that follow */
.section { padding: clamp(3.5rem, 7vw, 5.75rem) 0; }

.section-head {
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.section-head h2,
.cta-copy h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.section-lead,
.cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  text-wrap: balance;
}

.matrix {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}
.matrix > * {
  min-width: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { margin: 0; padding: 1.55rem 1.4rem 1.65rem; }
.step-num {
  display: block;
  margin-bottom: 1.15rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.step h3,
.include-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.step p,
.include-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.include-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.include-card {
  grid-column: span 2;
  padding: 1.45rem 1.3rem 1.55rem;
}
.include-card:nth-child(4) { grid-column: 1 / span 3; }
.include-card:nth-child(5) { grid-column: 4 / span 3; }

.section-cta { padding-top: 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
  border-top: 1px solid var(--rule);
}
.cta-copy { max-width: 34rem; }
.cta-copy p { margin-top: 0.45rem; }

/* Footer */
.site-footer { padding: 0 0 2.25rem; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
}
.footer-tag {
  margin: 0.9rem 0 0;
  color: var(--muted);
}
.footer-name {
  margin: 1rem 0 0.15rem;
  font-size: 0.98rem;
}
.footer-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-content: start;
  justify-content: flex-end;
}
.footer-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-cols p { margin: 0; }
.footer-cols a { text-underline-offset: 3px; }
.footer-copy {
  grid-column: 1 / -1;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .hero-face { --face-scale: 2.05; }
}

@media (max-width: 860px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    align-items: center;
    gap: 0.7rem 1rem;
    min-height: 0;
    padding-block: 0.85rem 0.75rem;
  }
  .brand { grid-area: brand; }
  .lang-switch { grid-area: lang; justify-self: end; }
  .nav {
    grid-area: nav;
    margin-left: 0;
    gap: 1.05rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  .hero {
    min-height: 0;
    padding-top: 1.75rem;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.35rem;
  }
  .hero-face { --face-scale: 1.8; }
  .hero-copy { justify-self: stretch; }

  .steps { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }
  .include-card,
  .include-card:nth-child(4),
  .include-card:nth-child(5) { grid-column: auto; }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .hero-face { --face-scale: 1.62; }
  .nav { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid-field { animation: none; }
  .face-drop { animation: none; }
  .btn { transition: none; }
}
