/* Boncardo - one-pager
   Monochrome, one accent, sharp corners (radius 0 everywhere).
   Fonts: Geist and Geist Mono, self-hosted (SIL OFL), no third-party requests. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f4f2;
  --ink: #141414;
  --muted: #5c5c58;
  --line: rgb(20 20 20 / 0.14);
  --accent: #6d7ccf;
  --on-accent: #101010;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1400px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --ink: #ededea;
    --muted: #9b9b96;
    --line: rgb(237 237 234 / 0.14);
    --accent: #6d7ccf;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; }
.wordmark {
  font-weight: 600; font-size: 1.3rem; letter-spacing: -0.04em; text-decoration: none;
}
.wordmark__dot { color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.lang { display: flex; gap: .15rem; }
.lang button {
  font: 500 .78rem/1 var(--mono); letter-spacing: .04em;
  color: var(--muted); background: none; border: 0; padding: .55rem .45rem; cursor: pointer;
  transition: color .25s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav__link { font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav__link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  min-height: calc(100dvh - var(--nav-h));
  padding-top: clamp(2.5rem, 6vh, 5rem);
  padding-bottom: clamp(2.5rem, 7vh, 5.5rem);
}
.hero__title {
  font-weight: 500;
  font-size: clamp(2.7rem, 6.2vw, 6.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 13ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--muted);
  text-wrap: pretty;
}
.btn {
  margin-top: clamp(2rem, 4vh, 3rem);
  display: inline-flex; align-items: center; gap: .9rem;
  background: var(--ink); color: var(--bg);
  padding: 1.05rem 1.6rem; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), transform .2s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.hero__figure { align-self: end; }
.hero__frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - var(--nav-h) - 9rem);
  margin-left: auto;
  background: var(--line);
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  /* Monochrome treatment. Remove this filter line to show the photo in colour. */
  filter: grayscale(1) contrast(1.06) brightness(1.02);
}
.hero__figure figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .85rem; font: 400 .8rem/1.4 var(--mono); color: var(--muted); letter-spacing: .02em;
}

/* ---------- Statement ---------- */
.statement { padding-block: clamp(6rem, 16vh, 11rem); }
.statement__text {
  margin-left: clamp(0rem, 18vw, 22rem);
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 450;
  text-wrap: balance;
}

/* ---------- Approach ---------- */
.approach {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(4rem, 10vh, 7rem);
 
}
.approach__title {
  position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start;
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em;
}
.approach__list { display: grid; gap: clamp(3.5rem, 9vh, 6rem); }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 3vw, 3rem); align-items: baseline; }
.step__verb {
  font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.055em; font-weight: 500;
}
.step__body { color: var(--muted); max-width: 40ch; font-size: clamp(1.02rem, 1.2vw, 1.15rem); }

/* ---------- Section titles ---------- */
.section-title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* ---------- Services bento ---------- */
.services { padding-block: clamp(4rem, 10vh, 7rem); }
/* Hairline grid: the 1px gaps show the line colour, so every edge is drawn exactly once. */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: minmax(15rem, auto) minmax(15rem, auto) auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cell { background: var(--bg); padding: clamp(1.75rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.cell h3 { font-size: clamp(1.45rem, 2.2vw, 2.1rem); line-height: 1.1; font-weight: 500; letter-spacing: -0.035em; }
.cell p { max-width: 34ch; color: var(--muted); }
.cell--feature { grid-row: span 2; justify-content: flex-end; }
.cell--feature h3 { font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -0.05em; }
.cell--feature p { font-size: 1.1rem; }
.cell--wide {
  grid-column: 1 / -1; padding: 0;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1px; align-items: end;
}
/* Same column split and padding as the cells above, so the text lines up with them. */
.cell--wide > * { padding: clamp(1.75rem, 3vw, 2.75rem); }

/* ---------- Training ---------- */
.training { padding-block: clamp(4rem, 10vh, 7rem); }
.training__headline { font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 500; max-width: 16ch; text-wrap: balance; }
.training__lead { margin-top: clamp(1.25rem, 3vh, 2rem); max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
.formats { margin-top: clamp(3rem, 8vh, 5rem); }
.format {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2fr) minmax(0, 5fr);
  gap: clamp(1rem, 3vw, 3rem); align-items: baseline;
  padding-block: clamp(1.5rem, 3.5vh, 2.25rem);
  background-image: linear-gradient(var(--line), var(--line)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 0;
}
.format:last-child { box-shadow: inset 0 -1px 0 var(--line); }
.format__name { font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 500; }
.format__time { font: 400 .85rem/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.format__desc { color: var(--muted); max-width: 40ch; }
.training__note { margin-top: clamp(1.5rem, 4vh, 2.5rem); color: var(--muted); font-size: .95rem; }

/* ---------- Proof ---------- */
.proof { padding-block: clamp(5rem, 12vh, 8rem); }
.figures { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr); gap: clamp(2rem, 4vw, 4rem); }
.figure__num {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.figure dd { margin-top: 1rem; color: var(--muted); max-width: 28ch; font-size: .98rem; }
.proof__apple {
  margin-top: clamp(4rem, 10vh, 6.5rem);
  max-width: 30ch;
  font-size: clamp(1.6rem, 2.9vw, 2.7rem); line-height: 1.18; letter-spacing: -0.03em; font-weight: 450;
  text-wrap: balance;
}

/* ---------- Clients ---------- */
.clients { padding-block: clamp(4rem, 10vh, 7rem); }
.clients__list li {
  font-size: clamp(2.2rem, 5.6vw, 5.4rem); line-height: 1.08; letter-spacing: -0.05em; font-weight: 500;
  transition: color .4s var(--ease), transform .5s var(--ease);
}
.clients__list li:hover { color: var(--accent); transform: translateX(.35rem); }
.clients__more { margin-top: clamp(2rem, 5vh, 3rem); color: var(--muted); max-width: 40ch; }

/* ---------- Network ---------- */
.network { padding-block: clamp(5rem, 13vh, 9rem); }
.network__title { font-size: clamp(2.2rem, 4.6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; max-width: 16ch; }
.network__body { margin-top: clamp(1.5rem, 3vh, 2.25rem); max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.22rem); margin-left: clamp(0rem, 30vw, 34rem); }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(5rem, 13vh, 9rem); }
.contact__title { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.contact__mail {
  display: inline-block; margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(2.3rem, 7.4vw, 7.6rem); line-height: 1; letter-spacing: -0.055em; font-weight: 500;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: .12em;
  transition: background-size .6s var(--ease), color .4s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; color: var(--accent); }
.contact__meta { margin-top: clamp(2.5rem, 6vh, 4rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; color: var(--muted); font-size: .98rem; }
.contact__meta p { max-width: 32ch; }

.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 2rem 2.5rem;
  font: 400 .82rem/1.4 var(--mono); color: var(--muted);
}
.footer__links { display: flex; gap: 1.5rem; }

/* ---------- Motion (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__sub, .js .btn, .js .hero__figure figcaption {
    opacity: 0; transform: translateY(18px);
    animation: rise 1.1s var(--ease) forwards;
  }
  .js .hero__sub { animation-delay: .12s; }
  .js .btn { animation-delay: .22s; }
  .js .hero__figure figcaption { animation-delay: .5s; }
  .js .hero__frame { clip-path: inset(100% 0 0 0); animation: unveil 1.4s var(--ease) .15s forwards; }
  .js .hero__frame img { transform: scale(1.08); animation: settle 1.8s var(--ease) .15s forwards; }

  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  [data-i18n] { transition: opacity .18s ease; }
  .is-switching [data-i18n] { opacity: 0; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes unveil { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures .figure:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 767px) {
  :root { --nav-h: 60px; }
  .lang button { padding: .5rem .3rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; gap: 2.5rem; }
  .hero__title { max-width: none; }
  .hero__frame { max-height: none; width: 100%; }
  .statement__text { margin-left: 0; }
  .approach { grid-template-columns: 1fr; }
  .approach__title { position: static; }
  .step { grid-template-columns: 1fr; gap: .75rem; }
  .bento { grid-template-columns: 1fr; }
  .bento { grid-template-rows: none; }
  .cell--feature { grid-row: auto; min-height: 20rem; }
  .cell--wide { grid-template-columns: 1fr; gap: 0; }
  .cell--wide > p { padding-top: 0; }
  .figures { grid-template-columns: 1fr; }
  .network__body { margin-left: 0; }
  .contact__meta { grid-template-columns: 1fr; gap: 1rem; }
  .format { grid-template-columns: 1fr; gap: .4rem; }
  .nav__link { display: none; }
}

/* Section hairlines aligned to the content edge, not the viewport padding */
.approach, .services, .training, .proof, .clients, .network, .contact, .footer {
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size: calc(100% - 2 * var(--pad)) 1px;
  background-position: var(--pad) 0;
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(3rem, 9vh, 6rem) clamp(5rem, 12vh, 8rem); }
.legal__back { display: inline-block; margin-bottom: clamp(2rem, 6vh, 4rem); font: 400 .82rem/1.4 var(--mono); color: var(--muted); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 500; }
.legal__lead { margin-top: 1.25rem; color: var(--muted); max-width: 60ch; }
.legal__body { max-width: 68ch; margin-top: clamp(2.5rem, 7vh, 4.5rem); }
.legal h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 2.75rem; margin-bottom: .75rem; }
.legal p + p { margin-top: .9rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin-top: .5rem; padding-left: 1.1rem; list-style: disc; }
.legal li + li { margin-top: .35rem; }
.legal strong { color: var(--ink); font-weight: 500; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 2.5rem; margin-top: clamp(2.5rem, 7vh, 4.5rem); padding-top: 1.5rem; background-image: linear-gradient(var(--line), var(--line)); background-repeat: no-repeat; background-size: 100% 1px; }
.facts dt { font: 400 .82rem/1.9 var(--mono); color: var(--muted); }
.facts dd { color: var(--ink); }
@media (max-width: 767px) { .facts { grid-template-columns: 1fr; gap: .1rem; } .facts dd { margin-bottom: .8rem; } }

/* ---------- Cookie consent ---------- */
.link--button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.consent {
  position: fixed; z-index: 60; left: var(--pad); bottom: var(--pad);
  width: min(30rem, calc(100% - 2 * var(--pad)));
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(20 20 20 / 0.12);
  padding: 1.5rem;
  font-size: .95rem;
}
.consent__text { color: var(--muted); }
.consent__actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.consent__btn {
  flex: 1; font: 500 .95rem/1 var(--sans); padding: .9rem 1rem; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  transition: transform .2s var(--ease);
}
.consent__btn--ghost { background: transparent; color: var(--ink); }
.consent__btn:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) { .consent { box-shadow: 0 24px 60px rgb(0 0 0 / 0.5); } }
@media (prefers-reduced-motion: no-preference) {
  .consent { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .consent.is-open { opacity: 1; transform: none; }
}
