/* ST Beheer B.V. — sober en zakelijk: diep marineblauw, één messingaccent, scherpe geometrie en een raster
   dat de inhoud uitlijnt. Systeemletters, eigen beelden (duotoon), geen externe bronnen. */

:root {
  --bg: #0D1828;
  --bg-2: #111F33;
  --text: #F1F3F6;
  --muted: #A3AEBD;
  --faint: #8794A6;
  --accent: #C5A46D;
  --line: rgba(241, 243, 246, .09);
  --line-strong: rgba(241, 243, 246, .18);

  --col: min(100% - 32px, 1120px);
  --inset: clamp(16px, 2.2vw, 28px);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: var(--col); margin-inline: auto; padding-inline: var(--inset); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--accent); color: var(--bg); }
.skip:focus { top: 12px; }

/* Raster: vier kolommen, uitgelijnd met de inhoud */
.gridlines { position: fixed; inset: 0; z-index: 0; display: flex; justify-content: center; pointer-events: none; }
.gridlines > div {
  width: var(--col); height: 100%;
  border-right: 1px solid var(--line);
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 25% 100% repeat-x;
}
.page { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }

/* ---------- Kop ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.wordmark-st { font-weight: 700; font-size: 1.375rem; letter-spacing: .02em; }
.wordmark-rule { width: 1px; height: 22px; background: var(--accent); }
.wordmark-name { font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

.clock { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--faint); font-size: .8rem; text-transform: uppercase; }
.clock time { color: var(--text); font-variant-numeric: tabular-nums; }
.clock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.header-mail {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-strong); text-decoration: none; font-size: .95rem;
  transition: border-color .3s, background-color .3s, color .3s;
}
.header-mail:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Openingsbeeld ---------- */
.hero { padding-block: clamp(72px, 12vw, 168px) clamp(40px, 6vw, 72px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .18em; }
.square { width: 8px; height: 8px; background: var(--accent); }
h1 {
  margin-top: 28px; max-width: 15ch;
  font-size: clamp(2.75rem, 1.3rem + 6vw, 7rem); line-height: .98; font-weight: 600; letter-spacing: -.035em;
}
h1 .accent { color: var(--muted); font-weight: 400; }

.skyline { position: relative; margin: 0; border-block: 1px solid var(--line); overflow: hidden; }
.skyline img { width: 100%; height: clamp(260px, 44vw, 620px); object-fit: cover; }
.skyline::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 45%, transparent), transparent 30%, transparent 70%, color-mix(in srgb, var(--bg) 70%, transparent));
}
.skyline-caption {
  position: absolute; inset: auto 0 18px; z-index: 1;
  display: flex; gap: 22px; color: rgba(241, 243, 246, .78); font-size: .78rem; text-transform: uppercase;
}
.skyline-place { margin-left: auto; color: var(--accent); }

/* ---------- Wat wij doen ---------- */
.pillars { padding-block: clamp(72px, 10vw, 140px); }
.pillars-head { display: grid; gap: 18px; max-width: 40rem; }
.label { color: var(--accent); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; font-weight: 400; }
.pillars-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.04; font-weight: 600; letter-spacing: -.03em; }

.pillars-list { list-style: none; margin: clamp(48px, 7vw, 88px) 0 0; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .pillars-list { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; padding: 28px 0 40px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .pillar { padding: 32px 32px 48px 0; border-bottom: 0; }
  .pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent);
  transition: width .8s var(--ease);
}
.pillar:hover::before { width: 64px; }
.pillar + .pillar:hover::before { left: 32px; }
@media (max-width: 899px) { .pillar + .pillar:hover::before { left: 0; } }
.pillar-no { color: var(--accent); font-size: .8rem; }
.pillar h3 { margin-top: 18px; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.pillar p { margin-top: 10px; max-width: 26rem; color: var(--muted); }

/* ---------- Afsluiting ---------- */
.closing { display: grid; gap: clamp(32px, 6vw, 80px); align-items: end; padding-bottom: clamp(72px, 10vw, 140px); }
@media (min-width: 900px) { .closing { grid-template-columns: .85fr 1fr; } }
.closing-media { margin: 0; overflow: hidden; border: 1px solid var(--line); }
.closing-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.closing-text { display: grid; gap: 18px; justify-items: start; }
.closing-lead { color: var(--muted); font-size: 1.15rem; }

.mail {
  display: inline-flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1;
  overflow-wrap: anywhere;
}
.mail-text { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.mail:hover .mail-text { background-size: 100% 2px; }
.arrow { color: var(--accent); transition: transform .5s var(--ease); }
.mail:hover .arrow { transform: translateX(8px); }

.copy {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; cursor: pointer; transition: border-color .3s, color .3s;
}
.copy:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Voet ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 26px; color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-row a { color: var(--faint); text-decoration: none; }
.footer-row a:hover { color: var(--accent); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; margin: 0; padding: 12px 18px;
  background: var(--accent); color: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  transform: translate(-50%, 160%); opacity: 0; transition: transform .5s var(--ease), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 640px) {
  .clock { display: none; }
  .header-row { justify-content: space-between; }
  .skyline-caption span:nth-child(-n+2) { display: none; }
}

/* ---------- Beweging: pure CSS ---------- */
@keyframes lift { from { transform: translateY(36px); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .rise { animation: rise 1.1s var(--ease) both; }
  .hero h1.rise { animation-delay: .1s; }
  .skyline.rise { animation: unveil 1.6s var(--ease) .25s both; }
  .skyline img { animation: settle 2.4s var(--ease) .25s both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: none; } }

  @supports (animation-timeline: view()) {
    .pillar, .pillars-head, .closing-text, .closing-media {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    .closing-media img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: scale(1.14) translateY(-5%); } to { transform: scale(1.14) translateY(5%); } }
  }
}
@media (prefers-reduced-motion: reduce) { .clock-dot { animation: none; } }
