:root {
  --ivory: #f9f6ef;
  --ivory-deep: #efe9dd;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #20302d;
  --muted: #596763;
  --line: #d7dcd9;
  --line-warm: #d8d0c2;
  --teal: #1f6b62;
  --teal-dark: #144e48;
  --teal-soft: #dcebe6;
  --clay: #b34f30;
  --clay-soft: #f6e4da;
  --sage: #778c67;
  --yellow: #d5a936;
  --display: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded", "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --page: min(1280px, calc(100% - 48px));
  --shadow: 0 28px 70px rgba(32, 48, 45, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ivory); }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
button, input, textarea { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 16px; transform: translateY(-150%); border-radius: 8px; color: var(--white); background: var(--teal-dark); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 12px max(24px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--ivory) 90%, transparent); backdrop-filter: blur(18px); transition: border-color 180ms ease, box-shadow 180ms ease; }
.site-header.is-scrolled { border-bottom-color: var(--line-warm); box-shadow: 0 8px 28px rgba(32, 48, 45, 0.05); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 47px; height: 47px; flex: 0 0 auto; }
.brand-wordmark { display: inline-flex; align-items: baseline; color: var(--teal-dark); font-family: var(--display); font-style: normal; letter-spacing: -0.045em; }
.brand-wordmark b { font-size: 23px; font-weight: 820; }
.brand-wordmark i { margin-left: 2px; font-size: 13px; font-style: normal; font-weight: 780; letter-spacing: -0.025em; }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 720; }
.site-nav a { position: relative; min-height: 44px; padding: 13px 0; }
.site-nav a::after { position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; content: ""; transform: scaleX(0); background: var(--clay); transform-origin: right; transition: transform 170ms ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; min-width: 86px; min-height: 44px; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--line-warm); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 760; }
.menu-button i, .menu-button i::before { width: 16px; height: 2px; content: ""; background: currentColor; }
.menu-button i { position: relative; }
.menu-button i::before { position: absolute; top: -5px; left: 0; }

.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--teal); font-size: 11px; font-weight: 820; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 3px; content: ""; background: var(--clay); }
.eyebrow-light { color: #b9ded7; }
.eyebrow-light::before { background: #f3a888; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 770; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal-dark); }
.button-primary:hover { background: var(--teal); }
.button-secondary { border-color: var(--line-warm); background: var(--paper); }
.button-secondary:hover { border-color: var(--teal); }
.button-light { color: var(--teal-dark); background: var(--paper); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--teal-dark); font-size: 14px; font-weight: 780; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(4px); }

.home-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(470px, 1.05fr); gap: clamp(54px, 8vw, 120px); align-items: center; width: var(--page); min-height: calc(100vh - 78px); margin: 0 auto; padding: clamp(72px, 9vw, 126px) 0 100px; }
.home-hero h1 { max-width: 760px; margin-bottom: 26px; font-size: clamp(55px, 6.6vw, 94px); line-height: 0.96; }
.home-hero-copy > p:not(.eyebrow) { max-width: 650px; margin-bottom: 34px; color: var(--muted); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.58; }
.home-hero-art { position: relative; min-height: 630px; overflow: hidden; border: 1px solid #cbd4d0; border-radius: 46px 46px 46px 14px; background: var(--teal-soft); box-shadow: var(--shadow); }
.home-hero-art::before, .home-hero-art::after { position: absolute; border: 1px solid rgba(31, 107, 98, 0.22); border-radius: 50%; content: ""; }
.home-hero-art::before { top: -210px; right: -150px; width: 510px; height: 510px; }
.home-hero-art::after { right: -80px; bottom: -210px; width: 430px; height: 430px; }
.studio-seal { position: absolute; top: 40px; left: 40px; z-index: 2; display: flex; align-items: center; gap: 14px; }
.studio-seal .brand-logo { width: 62px; height: 62px; }
.studio-seal > span { display: grid; gap: 3px; }
.studio-seal b { font-family: var(--display); font-size: 21px; letter-spacing: -0.035em; }
.studio-seal small { color: var(--teal); font-size: 10px; font-weight: 760; letter-spacing: 0.1em; text-transform: uppercase; }
.floating-product { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border: 1px solid rgba(20, 78, 72, 0.14); border-radius: 21px; background: rgba(255, 253, 248, 0.95); box-shadow: 0 16px 36px rgba(20, 78, 72, 0.11); }
.floating-product > span { display: grid; gap: 3px; }
.floating-product b { font-family: var(--display); font-size: 17px; }
.floating-product small { color: var(--muted); font-size: 11px; }
.fp-woningboek { top: 175px; left: 50px; }
.fp-meterkast { top: 302px; right: 44px; }
.fp-verfpaspoort { bottom: 82px; left: 76px; }

.studio-principles { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-warm); }
.studio-principles p { display: grid; min-height: 126px; place-content: center; margin: 0; padding: 24px clamp(22px, 4vw, 58px); }
.studio-principles p + p { border-left: 1px solid var(--line-warm); }
.studio-principles b { margin-bottom: 7px; font-family: var(--display); font-size: 18px; }
.studio-principles span { color: var(--muted); font-size: 13px; }

.page-section { width: var(--page); margin: 0 auto; padding: 128px 0; }
.section-heading { display: grid; grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.55fr); gap: 38px 100px; align-items: end; margin-bottom: 84px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -14px; }
.section-heading h2 { margin: 0; font-size: clamp(43px, 5vw, 72px); line-height: 1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-product { display: grid; grid-template-columns: minmax(340px, 0.85fr) minmax(480px, 1.15fr); gap: clamp(60px, 9vw, 132px); align-items: center; padding: 96px 0; border-top: 1px solid var(--line-warm); }
.home-product:nth-of-type(even) .home-product-copy { order: 2; }
.home-product:nth-of-type(even) .home-product-visual { order: 1; }
.product-name { display: flex; align-items: center; gap: 15px; margin-bottom: 28px; }
.product-name > span { display: grid; gap: 3px; }
.product-name small { color: var(--clay); font-size: 10px; font-weight: 820; letter-spacing: 0.12em; }
.product-name b { font-family: var(--display); font-size: 19px; }
.home-product h3 { max-width: 620px; margin-bottom: 22px; font-size: clamp(37px, 4.2vw, 60px); line-height: 1.02; }
.home-product-copy > p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-product-visual { min-width: 0; }

.integration-section { display: grid; grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr); gap: clamp(60px, 9vw, 140px); align-items: center; padding: 128px max(24px, calc((100vw - 1280px) / 2)); color: var(--white); background: var(--teal-dark); }
.integration-copy h2 { margin-bottom: 28px; font-size: clamp(48px, 5vw, 74px); line-height: 0.98; }
.integration-copy > p:last-child { margin: 0; color: #c7dcd7; font-size: 17px; line-height: 1.65; }
.integration-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.integration-flow > div { display: flex; min-height: 92px; align-items: center; gap: 13px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.integration-flow > div b { font-family: var(--display); font-size: 15px; }
.integration-flow > span { position: relative; grid-column: 1 / -1; height: 62px; color: #a6c8c1; font-size: 10px; letter-spacing: 0.1em; text-align: center; text-transform: uppercase; }
.integration-flow > span::before { display: block; width: 1px; height: 36px; margin: 0 auto 7px; content: ""; background: rgba(255, 255, 255, 0.42); }
.integration-flow .integration-target { grid-column: 1 / -1; justify-self: center; min-width: 290px; background: rgba(255, 255, 255, 0.12); }
.integration-target { flex-wrap: wrap; }
.integration-target small { width: 100%; padding-left: 65px; margin-top: -18px; color: #b9d1cc; font-size: 10px; }

.maker-section { display: grid; grid-template-columns: minmax(300px, 0.7fr) minmax(480px, 1.3fr); gap: clamp(70px, 10vw, 160px); align-items: center; width: var(--page); margin: 0 auto; padding: 128px 0; }
.maker-mark { display: grid; min-height: 480px; place-items: center; border-radius: 36px 36px 36px 12px; background: var(--clay-soft); }
.maker-mark img { width: min(260px, 55%); height: auto; }
.maker-copy h2 { margin-bottom: 26px; font-size: clamp(46px, 5.2vw, 76px); line-height: 0.98; }
.maker-copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }

.site-footer { padding: 72px max(24px, calc((100vw - 1280px) / 2)) 30px; color: #c7dcd7; background: var(--teal-dark); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand .brand-wordmark { color: var(--white); }
.footer-main p { margin: 0; color: #aac4be; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 46px 0; }
.footer-links > div { display: grid; align-content: start; gap: 11px; }
.footer-links b { margin-bottom: 4px; color: var(--white); font-family: var(--display); font-size: 14px; }
.footer-links a, .footer-links span { color: #b7ccc7; font-size: 12px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #8caaa3; font-size: 10px; }

.document-hero { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0 88px; text-align: center; }
.document-hero .eyebrow { justify-content: center; }
.document-hero h1 { margin-bottom: 26px; font-size: clamp(52px, 7vw, 92px); line-height: 0.97; }
.document-hero > p:last-child { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.65; }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 0; border-block: 1px solid var(--line-warm); background: var(--line-warm); }
.document-grid article { min-height: 380px; padding: clamp(30px, 4vw, 58px); background: var(--paper); }
.document-grid article > div { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.document-grid h2 { margin: 0; font-size: 26px; }
.document-grid a { display: grid; gap: 7px; min-height: 86px; padding: 18px 0; border-top: 1px solid var(--line-warm); }
.document-grid a:last-child { border-bottom: 1px solid var(--line-warm); }
.document-grid a b { font-size: 13px; }
.document-grid a span, .document-grid article > p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.general-documents { display: grid; grid-template-columns: minmax(260px, 0.7fr) 1.3fr; gap: 80px; width: var(--page); margin: 0 auto; padding: 100px 0 128px; }
.general-documents h2 { margin: 0; font-size: 37px; }
.general-documents > div { border-top: 1px solid var(--line-warm); }
.general-documents a { display: grid; gap: 5px; padding: 22px 0; border-bottom: 1px solid var(--line-warm); }
.general-documents a b { font-size: 14px; }
.general-documents a span { color: var(--muted); font-size: 12px; }

.prose-layout { display: grid; grid-template-columns: minmax(320px, 0.7fr) minmax(520px, 1.3fr); gap: clamp(70px, 10vw, 160px); align-items: start; width: var(--page); margin: 0 auto; padding: 110px 0 140px; }
.prose-layout aside { position: sticky; top: 116px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 44px; color: var(--muted); font-size: 12px; font-weight: 720; }
.prose-layout h1 { margin-bottom: 24px; font-size: clamp(48px, 5.6vw, 78px); line-height: 0.98; overflow-wrap: anywhere; }
.prose-intro { color: var(--muted); font-size: 17px; line-height: 1.65; }
.prose-content { min-width: 0; border-top: 1px solid var(--line-warm); }
.prose-content section { padding: 34px 0; border-bottom: 1px solid var(--line-warm); }
.prose-content h2 { margin-bottom: 12px; font-size: 27px; }
.prose-content p { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.prose-content a { color: var(--teal-dark); font-weight: 730; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.not-found { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0 180px; text-align: center; }
.not-found .eyebrow { justify-content: center; }
.not-found h1 { font-size: clamp(50px, 7vw, 86px); }
.not-found > p:not(.eyebrow) { color: var(--muted); }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  :root { --page: min(760px, calc(100% - 40px)); }
  .home-hero, .section-heading, .home-product, .integration-section, .maker-section, .prose-layout { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; }
  .home-hero-art { min-height: 590px; }
  .section-heading { gap: 24px; }
  .section-heading .eyebrow { margin-bottom: 0; }
  .home-product { gap: 52px; }
  .home-product:nth-of-type(even) .home-product-copy, .home-product:nth-of-type(even) .home-product-visual { order: initial; }
  .integration-section { padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .maker-mark { min-height: 390px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-grid article { min-height: 0; }
  .general-documents { grid-template-columns: 1fr; gap: 36px; }
  .prose-layout aside { position: static; }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 32px); }
  .site-header { min-height: 70px; padding-inline: 16px; }
  .brand-logo { width: 43px; height: 43px; }
  .brand-wordmark b { font-size: 20px; }
  .menu-button { display: inline-flex; }
  .site-nav { position: fixed; inset: 70px 0 auto; display: grid; gap: 0; padding: 12px 16px 22px; transform: translateY(-130%); border-bottom: 1px solid var(--line-warm); background: var(--ivory); opacity: 0; pointer-events: none; transition: transform 180ms ease, opacity 180ms ease; }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { min-height: 52px; padding: 16px 4px; border-bottom: 1px solid var(--line-warm); }
  .site-nav a::after { display: none; }
  .home-hero { gap: 50px; padding: 62px 0 76px; }
  .home-hero h1 { font-size: clamp(51px, 15vw, 69px); }
  .hero-actions .button { width: 100%; }
  .home-hero-art { min-height: 530px; border-radius: 30px 30px 30px 10px; }
  .studio-seal { top: 28px; left: 24px; }
  .studio-seal .brand-logo { width: 52px; height: 52px; }
  .floating-product { right: 18px; left: 18px; }
  .fp-woningboek { top: 134px; }
  .fp-meterkast { top: 245px; }
  .fp-verfpaspoort { bottom: 58px; }
  .studio-principles { grid-template-columns: 1fr; }
  .studio-principles p { min-height: 96px; padding-inline: 24px; }
  .studio-principles p + p { border-top: 1px solid var(--line-warm); border-left: 0; }
  .page-section { padding-block: 86px; }
  .section-heading { margin-bottom: 50px; }
  .section-heading h2 { font-size: clamp(39px, 12vw, 55px); }
  .home-product { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 68px 0; }
  .home-product h3 { font-size: 38px; }
  .integration-section { grid-template-columns: 1fr; padding: 86px 24px; }
  .integration-copy h2 { font-size: 52px; }
  .integration-flow { grid-template-columns: 1fr; }
  .integration-flow > span, .integration-flow .integration-target { grid-column: 1; }
  .integration-flow .integration-target { width: 100%; min-width: 0; }
  .maker-section { gap: 46px; padding: 86px 0; }
  .maker-mark { min-height: 300px; }
  .maker-copy h2 { font-size: 51px; }
  .footer-main { align-items: flex-start; flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .document-hero { width: calc(100% - 32px); padding: 84px 0 62px; text-align: left; }
  .document-hero .eyebrow { justify-content: flex-start; }
  .document-hero h1 { font-size: 54px; }
  .document-grid article { padding: 34px 24px; }
  .general-documents { padding: 76px 0 92px; }
  .prose-layout { gap: 44px; padding: 80px 0 100px; }
  .prose-layout h1 { font-size: 50px; }
  .back-link { margin-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
