/* Page layout only. Tokens and components live in marina.css. */
[hidden] { display: none !important; }

/* The document grid: a three-column margin carries labels, nine columns carry content.
   Section heads, pillars and the ledger all share the same edge at column 4. */
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-md); }
.sheet__margin { grid-column: 1 / 4; }
.sheet__main { grid-column: 4 / -1; }

.eyebrow { color: var(--azul-profundo); }
.m-on-deep .eyebrow { color: var(--blanco); } /* Sky on Profundo is about 4.4:1, short of AA at label size. */

/* Site header: Azul Profundo, one surface with the hero. White on it is about 5.9:1. */
/* The header height is fractional, so it overlaps the hero by 1 px: same color, no line between. */
.site-head { position: relative; z-index: 1; margin-bottom: -1px; }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xl); row-gap: var(--space-2xs); padding-block: var(--space-xs); }
.site-head__logo { width: 9.5rem; height: auto; margin: 0.5rem 0; }
.site-nav ul, .lang-switch { display: flex; flex-wrap: wrap; column-gap: var(--space-md); }
.lang-switch { margin: 0 0 0 auto; padding: 0; list-style: none; column-gap: var(--space-sm); }
.site-nav a, .lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--text-small);
  text-decoration: none;
  text-underline-offset: 0.45em;
  text-decoration-thickness: 1px;
}
.lang-switch a { min-width: 2.75rem; justify-content: center; letter-spacing: 0.08em; } /* Kycron sets the N and L of "NL" tight. */
.site-nav a:hover, .site-nav a[aria-current], .lang-switch a:hover { text-decoration-line: underline; }
.lang-switch a[aria-current] { font-weight: 700; text-decoration-line: underline; text-decoration-thickness: 2px; }

/* Hero: Recortado · Profundo, the color of the header and the Product Factory card. The crop starts at 64% of the image; the title stays left of it. */
.hero {
  /* The hero's height is often fractional, which would draw a line where the white crop meets
     the white section below. That section overlaps this edge by 1 px and covers it. */
  margin-bottom: -1px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(34rem, calc(90svh - 4.5rem), 53rem);
  padding-block: var(--space-2xl);
  overflow: hidden;
  isolation: isolate;
}
/* Taller than the hero by 2 px each way: the PNG's first and last rows are anti-aliased and
   would draw a hairline where the white crop meets the white section below. */
.hero::before {
  content: "";
  position: absolute;
  inset: -2px 0;
  z-index: -1;
  background: var(--azul-profundo) url("../assets/backgrounds/recortado-profundo.png") no-repeat right center / cover;
}
.hero__copy { max-width: min(52vw, 48rem); }
.hero__title {
  margin-block: var(--space-md);
  font-size: clamp(2.5rem, 5.3vw, 5.25rem);
  line-height: 1.02;
}
.hero__lead { max-width: 36rem; color: var(--blanco); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-lg); }
.hero__places { margin-top: var(--space-lg); }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: settle var(--duration-slow) var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__copy > :nth-child(4) { animation-delay: 210ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(0.75rem); } }
}

/* Pillars: two unequal bands. */
.pillars { position: relative; background: var(--surface); }
.pillars__head { margin-bottom: var(--space-2xl); }
.pillars__head .m-title { margin-top: 0; }
.band-one { padding-block: var(--space-xl) var(--space-2xl); border-top: 1px solid var(--ink); }
.band-one .sheet__main { grid-column: 4 / 11; }
.band-title { margin-bottom: var(--space-sm); }
.band-two {
  margin-left: calc((100% + var(--space-md)) * 3 / 12);
  padding: var(--space-xl) clamp(1.5rem, 5vw, 5.5rem) var(--space-2xl) var(--space-xl);
  border-radius: var(--corner-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--space-lg);
}
.band-two .m-numeral { color: var(--blanco); }
.band-two .m-body { font-size: var(--text-lead); line-height: 1.5; }
.pillars__closing {
  margin-top: var(--space-2xl);
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--text-h3);
  line-height: 1.3;
  text-wrap: pretty;
}

/* Work: a ledger. Outcome leads, because that is what a buyer scans for. */
.work { border-top: 1px solid var(--line); }
.work__note { margin-top: var(--space-md); color: var(--text-soft); }
.filters { display: contents; }
.filters__count { align-self: center; color: var(--text-soft); }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.work__bar { margin-top: var(--space-2xl); row-gap: var(--space-xs); }

.ledger { margin-top: var(--space-lg); }
.ledger__cols, .ledger__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-md);
}
.ledger__cols { padding-bottom: var(--space-xs); border-bottom: 1px solid var(--ink); color: var(--text-soft); }
.ledger__cols > :nth-child(1) { grid-column: 1 / 4; }
.ledger__cols > :nth-child(2) { grid-column: 4 / 9; }
.ledger__cols > :nth-child(3) { grid-column: 9 / -1; }
.ledger__row { grid-template-rows: auto 1fr; padding-block: var(--space-lg); border-bottom: 1px solid var(--line); row-gap: var(--space-2xs); }
.ledger__title { grid-column: 9 / -1; grid-row: 1; font-family: var(--font-primary); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.ledger__facts { display: contents; }
.ledger__fact--where { grid-column: 1 / 4; grid-row: 1 / span 2; }
.ledger__fact--outcome { grid-column: 4 / 9; grid-row: 1 / span 2; padding-right: var(--space-lg); }
.ledger__fact--did { grid-column: 9 / -1; grid-row: 2; }
.ledger__key { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ledger__sector { color: var(--azul-profundo); }
.ledger__pillar { margin-top: var(--space-3xs); font-family: var(--font-primary); font-weight: 400; font-size: var(--text-small); line-height: 1.35; color: var(--text-soft); }
.ledger__outcome { font-family: var(--font-primary); font-weight: 500; font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.3; text-wrap: balance; }
.ledger__did { color: var(--text-soft); }

/* Team: the head takes three cells, so fifteen portraits complete a six-by-three sheet. */
.team__sheet { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); align-items: end; }
.team__head { grid-column: 1 / 4; align-self: start; padding-right: var(--space-lg); }
.team__title { margin-block: var(--space-sm); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.team__list { display: contents; }
.person__photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--corner-md);
  background: var(--azul-profundo);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) var(--y, 30%);
  transform: scale(var(--z, 1));
  transform-origin: var(--x, 50%) var(--y, 30%);
  filter: grayscale(1) contrast(0.86) brightness(1.04);
  transition: filter var(--duration-base) var(--ease-out);
}
/* The sources differ in color and background. A Profundo tint gives them one surface. */
.person__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--azul-profundo);
  mix-blend-mode: color;
  opacity: 0.62;
  transition: opacity var(--duration-base) var(--ease-out);
  pointer-events: none;
}
.person:hover .person__photo img { filter: none; }
.person:hover .person__photo::after { opacity: 0; }
.person__name { margin-top: var(--space-xs); font-family: var(--font-primary); font-weight: 500; font-size: 1rem; line-height: 1.3; }
.person__role { margin-top: 0.125rem; font-family: var(--font-primary); font-weight: 400; font-size: 0.8125rem; line-height: 1.35; color: var(--text-soft); }

/* Contact: Contorno · Profundo, form on the right. */
/* A flat Profundo veil quiets the strokes, because they pass behind labels and small type. */
.contact {
  --veil: color-mix(in srgb, var(--azul-profundo) 74%, transparent);
  background: linear-gradient(var(--veil), var(--veil)), var(--azul-profundo) url("../assets/backgrounds/contorno-profundo.png") no-repeat center / cover;
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl) clamp(2rem, 6vw, 6.5rem); align-items: start; }
.contact__title { margin-top: var(--space-md); font-family: var(--font-primary); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.3; text-wrap: pretty; }
.contact__promise { display: block; margin-bottom: var(--space-sm); font-weight: 700; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -0.01em; }
.contact__where { margin-top: var(--space-lg); color: var(--blanco); }
.form { display: grid; gap: var(--space-md); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* A honeypot for spam bots. */
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.form .m-btn { justify-self: start; }
.form__promise { color: var(--blanco); }
.form .m-note { color: var(--ink); }

/* Privacy policy */
.legal__body { max-width: 52rem; }
.legal__title { margin-block: var(--space-sm); }
.legal__updated { color: var(--text-soft); margin-bottom: var(--space-lg); }
.legal__heading { margin-top: var(--space-xl); margin-bottom: var(--space-2xs); }

/* Footer */
.site-foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-xl); padding-block: var(--space-xl); }
.site-foot__logo { width: 7.5rem; height: auto; margin: 0.5rem 0; }
.site-foot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-lg); font-family: var(--font-primary); font-weight: 400; font-size: 0.8125rem; }
.site-foot__meta a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-foot__places { color: var(--sky); }

/* Wide tablet: the ledger and team sheet tighten. */
@media (max-width: 75rem) {
  .team__sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .team__head { grid-column: 1 / -1; padding-right: 0; margin-bottom: calc(var(--space-sm) * -1); }
  .team__head .m-body { max-width: 40rem; }
}

/* Below this width the title no longer fits beside the crop. The crop takes about 0.64 of the
   hero's height from the right edge, and the rewritten copy makes the hero taller, so this
   happens earlier than the page grid's own break. The image's left part is flat Profundo, so
   anchoring it bottom right moves the crop under the text and keeps §08 true. */
@media (max-width: 75rem) {
  .hero {
    --crop-width: min(112vw, 46rem);
    justify-content: flex-start;
    min-height: 0;
    padding-block: var(--space-2xl) calc(var(--crop-width) * 0.561 + var(--space-xl));
  }
  .hero::before { background-size: var(--crop-width) auto; background-position: right bottom; }
  .hero__copy { max-width: 42rem; }
  .hero__title { font-size: clamp(2.5rem, 1.6rem + 5vw, 4.25rem); }
}

@media (max-width: 62rem) {
  .site-head__row { column-gap: var(--space-lg); }

  .sheet__margin, .sheet__main, .band-one .sheet__main { grid-column: 1 / -1; }
  .sheet__margin + .sheet__main { margin-top: var(--space-sm); }
  .band-one .m-numeral { margin-bottom: var(--space-sm); }
  .band-two { margin-left: var(--space-xl); padding: var(--space-lg) var(--space-lg) var(--space-xl); grid-template-columns: minmax(0, 1fr); row-gap: var(--space-sm); }

  .ledger__cols { display: none; }
  .ledger { border-top: 1px solid var(--ink); }
  .ledger__row { display: flex; flex-direction: column; gap: var(--space-xs); }
  .ledger__facts { display: flex; flex-direction: column; gap: var(--space-xs); }
  .ledger__row { position: relative; }
  .ledger__title { order: 2; margin-top: var(--space-2xs); }
  .ledger__facts { display: contents; }
  .ledger__fact--where { order: 0; }
  .ledger__fact--outcome { order: 1; padding-right: 0; }
  .ledger__fact--did { order: 3; }

  .team__sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg) var(--space-sm); }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: logo and languages on one row, the navigation on a full row below. */
@media (max-width: 48rem) {
  .site-head__row { column-gap: var(--space-xs); row-gap: 0; padding-block: var(--space-2xs) var(--space-3xs); }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { flex-wrap: nowrap; justify-content: space-between; column-gap: var(--space-xs); }
  .lang-switch { column-gap: var(--space-3xs); }
  .lang-switch a { min-width: 2.25rem; }
}

/* Phones: "Environnements" and "verzekeringen" cannot break, so long titles scale with the
   screen. 10.2vw keeps the longest French word inside the gutters at 320 px. */
@media (max-width: 36rem) {
  :root { --text-h2: clamp(1.75rem, 8.6vw, 2.125rem); }
  .hero__title { font-size: 10.2vw; }
  .contact__promise { overflow-wrap: break-word; }
  .band-two { margin-left: var(--space-md); }
  .form__pair { grid-template-columns: minmax(0, 1fr); }
  .team__sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Fifteen is odd: the last portrait keeps its size and sets its caption beside it. */
  .person:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-sm); align-items: end; }
  .site-foot__row { align-items: flex-start; flex-direction: column; }
}
