/* Thuisbatterij Ameland — the split stage.
   One photograph of the island stays in view on the left; the right column reads calmly. */

:root {
  --paper: #ecedea;
  --bar: #dfe1dc;
  --ink: #121413;
  --muted: #383d3a;
  --accent: #1f5c49;
  --accent-ink: #ffffff;
  --accent-soft: #cfe3d9;
  --field: #1b1b1c;
  --field-ink: #ffffff;
  --field-muted: #c9c9c6;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  --step-display: clamp(3.25rem, 7.2vw, 7.5rem);

  --gutter: clamp(20px, 4vw, 64px);
  --t-ui: 160ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Work Sans", "Helvetica Neue", Arial, sans-serif; font-size: var(--step-body); line-height: 1.55; font-weight: 400; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
p a { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); }
h2 { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.lead { font-size: var(--step-lead); font-weight: 300; line-height: 1.35; max-width: 32ch; }
.small { font-size: var(--step-small); color: var(--muted); }
mark { background: var(--accent-soft); color: inherit; padding: 0 0.15em; }

/* one button shape */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 500; font-size: var(--step-body); text-decoration: none; border: 0; cursor: pointer; transition: transform var(--t-ui) var(--ease), background var(--t-ui); }
.btn:hover { background: #17493a; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-quiet { background: var(--bar); color: var(--ink); }
.btn-quiet:hover { background: #d2d5cf; }
.tlink { text-decoration: underline; text-underline-offset: 0.2em; }
.tlink:hover { color: var(--accent); }

/* ---------- the stage ---------- */
.stage { display: grid; grid-template-columns: 47fr 53fr; align-items: start; }
.stage__pic { position: sticky; top: 0; height: 100svh; padding: 20px 0 20px 20px; }
.scenes { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--field); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms var(--ease), transform 1200ms var(--ease); transform: scale(1.03); }
.scene.is-on { opacity: 1; transform: scale(1); }
.sun { position: absolute; left: 20px; bottom: 20px; max-width: 32ch; padding: 12px 14px; background: var(--field); color: var(--field-ink); font-size: var(--step-small); line-height: 1.4; }
.sun span { display: block; color: var(--field-muted); }
.sun strong { display: block; font-weight: 500; margin-top: 2px; }

.stage__read { min-width: 0; }
.stage__read > header, .stage__read main > section { padding-inline: var(--gutter); }

/* hero: links top-right, one sentence mid-height, the name along the bottom */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding-top: 28px; padding-bottom: 20px; }
.nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.nav .nav__act { color: var(--accent); font-weight: 500; }
.hero__mid { align-self: center; justify-self: center; max-width: 26ch; display: grid; gap: 24px; justify-items: start; }
.hero__say { font-size: var(--step-lead); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; }
.name { font-size: var(--step-display); font-weight: 300; line-height: 0.92; letter-spacing: -0.04em; text-transform: lowercase; margin-left: -0.04em; transform-origin: left bottom; }
.name span { display: block; }

/* waarom: pinned heading, passing rows */
.waarom { padding-block: 64px 96px; }
.waarom__head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 24px 0 20px; }
.waarom__blocks { display: grid; gap: 44px; min-width: 0; padding-top: 12px; }
.feat h3 { margin-bottom: 14px; }
.feat__row { display: flex; gap: 24px; align-items: flex-start; }
.feat--right .feat__row { flex-direction: row-reverse; }
.feat__pic { flex: 0 0 200px; width: 200px; height: 266px; overflow: hidden; background: var(--bar); }
.feat__pic img, .feat__pic video { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.feat:hover .feat__pic img { transform: scale(1.04); }
.feat ul { display: grid; gap: 10px; font-size: var(--step-body); line-height: 1.35; padding-top: 4px; }

/* hoe: an itinerary on a slip, on the one green field */
.hoe { background: var(--accent); color: var(--accent-ink); padding-block: 80px; display: grid; gap: 48px; }
.hoe__head h2 { max-width: 14ch; }
.hoe__head p { margin-top: 20px; max-width: 36ch; color: #dbe9e2; }
.slip { width: min(100%, 460px); justify-self: end; }
.slip__body { background: var(--paper); color: var(--ink); padding: 28px 24px 44px; font-size: 16px; font-variant-numeric: tabular-nums; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%); }
.slip__body h3 { font-size: 16px; font-weight: 500; margin-top: 28px; margin-bottom: 8px; }
.slip__body h3:first-child { margin-top: 0; }
.slip__row { display: flex; align-items: baseline; gap: 10px; padding-block: 5px; }
.slip__row > span:first-child { flex: 0 1 auto; }
.slip__dots { flex: 1 1 24px; min-width: 24px; height: 4px; background-image: radial-gradient(circle, var(--muted) 2px, transparent 2.5px); background-size: 10px 4px; background-repeat: repeat-x; align-self: center; margin-top: 2px; } /* taste-skill-ignore: a leader of round dots, not a gradient */
.slip__v { flex: 0 0 auto; color: var(--muted); }
.slip__row--last { margin-top: 20px; padding: 10px 12px; background: var(--field); color: var(--field-ink); }
.slip__row--last .slip__v { color: var(--field-ink); font-weight: 500; }
.slip__row--last .slip__dots { background-image: radial-gradient(circle, var(--field-muted) 2px, transparent 2.5px); } /* taste-skill-ignore: dot leader */

/* op maat: one giant word, filled bar rows */
.opmaat { padding-block: 96px 80px; container-type: inline-size; }
.giant { font-size: 24cqw; font-weight: 300; line-height: 0.8; letter-spacing: -0.045em; margin-left: -0.03em; }
.bars { display: grid; gap: 6px; margin-top: 20px; }
.bar { background: var(--bar); }
.bar summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 10px 18px; font-size: 16px; font-weight: 500; }
.bar summary::-webkit-details-marker { display: none; }
.bar summary > span:first-child { flex: 1 1 auto; }
.bar__v { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar p { padding: 0 18px 18px; font-size: 16px; max-width: 52ch; }
.bar:hover { background: #d6d9d3; }
.chev { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; left: 0; width: 9px; height: 2px; background: currentColor; transform-origin: center; transition: transform var(--t-ui) var(--ease); }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { left: 5px; transform: rotate(-45deg); }
details[open] > summary .chev::before { transform: rotate(-45deg); }
details[open] > summary .chev::after { transform: rotate(45deg); }
.opmaat__foot { margin-top: 40px; max-width: 52ch; }

/* opbrengst: quiet figure lines */
.opbrengst { padding-block: 96px; }
.opbrengst h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; margin-left: calc(132px + 24px); max-width: 24ch; }
.figs { margin-top: 56px; display: grid; gap: 28px; }
.fig { display: grid; grid-template-columns: 132px 1fr; gap: 24px; align-items: baseline; }
.fig dt { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig dd { color: var(--muted); font-size: var(--step-body); max-width: 40ch; line-height: 1.45; }
.opbrengst__table { margin-top: 72px; }
.opbrengst__table p { max-width: 52ch; }
table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px 10px 0; vertical-align: top; }
th { font-weight: 500; }
thead tr { background: var(--bar); }
thead th:first-child, tbody td:first-child { padding-left: 12px; }
tbody tr { background: #f6f6f3; }
tbody tr:nth-child(even) { background: #f1f2ee; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); max-width: 60ch; }

/* kennis: a letter */
.letter { padding-block: 96px 160px; max-width: 52ch; }
.letter__pic { width: 44px; height: 44px; overflow: hidden; clip-path: circle(50%); }
.letter__pic img { width: 100%; height: 100%; object-fit: cover; }
.letter h2 { margin-top: 28px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.015em; }
.letter p { margin-top: 20px; }
.letter__sign { margin-top: 32px; display: grid; gap: 2px; }
.letter__sign em { font-size: var(--step-lead); font-style: italic; }
.letter__sign span { font-size: var(--step-small); color: var(--muted); }

/* ---------- full-width sections ---------- */
.vragen { background: var(--field); color: var(--field-ink); display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 0 var(--gutter); }
.vragen__text { padding-block: 96px; max-width: 60ch; }
.facts { margin-top: 28px; display: grid; gap: 8px; }
.faq { margin-top: 48px; display: grid; gap: 28px; }
.faq details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary:hover { color: #dfe9e4; }
.faq__a { padding-top: 12px; color: var(--field-muted); font-size: 16px; max-width: 54ch; }
.vragen__act { margin-top: 48px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.vragen__pics { position: relative; align-self: stretch; }
.vragen__tall { width: 100%; height: calc(100% - 80px); overflow: hidden; }
.vragen__tall img { width: 100%; height: 100%; object-fit: cover; }
.vragen__square { position: absolute; right: -16px; bottom: 32px; width: 34%; aspect-ratio: 1; overflow: hidden; }
.vragen__square img { width: 100%; height: 100%; object-fit: cover; }

.aanmelden { padding: 18svh var(--gutter) 8svh; }
.aanmelden__col { max-width: 560px; margin-inline: auto; }
.aanmelden h2 { max-width: 14ch; }
.aanmelden__say { margin-top: 20px; font-size: var(--step-lead); font-weight: 300; line-height: 1.35; max-width: 30ch; }
.aanmelden__alt { margin-top: 20px; color: var(--muted); max-width: 44ch; }
form { margin-top: 40px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-size: var(--step-small); font-weight: 500; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: #fff; color: var(--ink); border-radius: 0; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--step-small); line-height: 1.45; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.check a { text-decoration: underline; }
.actions { display: flex; align-items: center; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot field, not a rule */
.form-msg { padding: 12px 14px; font-size: var(--step-small); }
.form-msg.err { background: #f6dede; }
.form-msg.ok { background: var(--accent-soft); }
.aanmelden__col > .small { margin-top: 20px; }

footer { padding: 6svh var(--gutter) 30px; }
.footer__notes { max-width: 60ch; display: grid; gap: 12px; font-size: var(--step-small); color: var(--muted); line-height: 1.5; }
.footer__notes a { color: var(--ink); }
.footer__line { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; font-size: 15px; color: var(--muted); }
.footer__line nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__line a { color: var(--ink); text-decoration: none; }
.footer__line a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.footer__line > span:last-child { text-align: right; }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; background: var(--field); color: var(--field-ink); }
.consent__in { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 20px; max-width: 1100px; margin-inline: auto; }
.consent p { flex: 1 1 320px; font-size: var(--step-small); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.has-js [data-rise] > * { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  html.has-js [data-rise].is-in > * { opacity: 1; transform: none; }
  @supports (animation-timeline: scroll()) {
    .name { animation: name-settle linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes name-settle { from { transform: scale(1); } to { transform: scale(0.94); } }
  }
}

/* ---------- tablet and phone ---------- */
@media (max-width: 960px) {
  .stage { display: block; }
  .stage__pic { position: sticky; top: 0; height: 58svh; padding: 12px; z-index: 0; }
  .sun { left: 12px; bottom: 12px; right: 12px; max-width: none; }
  .stage__read { position: relative; z-index: 1; background: var(--paper); }
  .hero { min-height: 0; padding-top: 16px; padding-bottom: 32px; gap: 28px; margin-top: -3vw; }
  .nav { justify-content: flex-start; gap: 6px 18px; order: 2; }
  .hero__mid { justify-self: start; order: 3; }
  .hero__say { font-size: var(--step-body); }
  .name { order: 1; font-size: 13.5vw; }
  .waarom { grid-template-columns: 1fr; gap: 0; padding-block: 64px; }
  .waarom__head { position: sticky; top: 0; background: var(--paper); padding: 12px 0; z-index: 2; margin-bottom: 24px; }
  .waarom__head h2 { font-size: 9vw; }
  .waarom__blocks { gap: 72px; }
  .feat__row, .feat--right .feat__row { flex-direction: column; }
  .feat__pic { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .feat ul { font-size: 17px; }
  .hoe { grid-template-columns: 1fr; padding-block: 64px; }
  .giant { font-size: 26cqw; }
  .opbrengst h2 { margin-left: 0; }
  .figs { gap: 24px; }
  .fig { grid-template-columns: 1fr; gap: 4px; }
  .fig dt { text-align: left; }
  .fig dd { font-size: 16px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { padding: 12px; }
  tr + tr { margin-top: 6px; }
  td { padding: 2px 0; white-space: normal; }
  td:first-child { font-weight: 500; margin-bottom: 4px; }
  td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
  .letter { padding-block: 64px 96px; }
  .vragen { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .vragen__pics { order: -1; padding: 0; height: auto; }
  .vragen__tall { height: auto; aspect-ratio: 4 / 5; }
  .vragen__square { right: 0; bottom: -24px; width: 38%; }
  .vragen__text { padding: 64px var(--gutter); }
  .faq { gap: 24px; }
  .faq details summary { min-height: 44px; font-size: 18px; }
  .aanmelden { padding: 20svh var(--gutter) 14svh; }
  .row, .row--3 { grid-template-columns: 1fr; }
  footer { padding-top: 10svh; }
  .footer__line { grid-template-columns: 1fr; gap: 8px; }
  .footer__line nav { justify-content: flex-start; }
  .footer__line > span:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .nav { font-size: 14px; }
}

/* ---------- sub-pages (bedankt, privacy) ---------- */
.topbar { padding: 24px var(--gutter); }
.brand { font-weight: 500; text-decoration: none; letter-spacing: -0.01em; }
.wrap { max-width: 640px; margin-inline: auto; }
.page { padding: 48px var(--gutter) 96px; }
.page h1 { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 24px; }
.page h3 { margin: 32px 0 8px; font-size: var(--step-lead); }
.page p, .page li { margin: 0 0 14px; }
.page ul { padding-left: 1.2em; list-style: disc; }
.page .small { margin-top: 32px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn-ghost { background: var(--bar); color: var(--ink); }
.btn-ghost:hover { background: #d2d5cf; }
footer .wrap { padding-top: 0; }
