/* BOUWER — sample site (start page + family) */

@font-face { font-family: 'Plex Mono'; src: url('../fonts/IBMPlexMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('../fonts/IBMPlexMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/Jost-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/Jost-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  /* BOUWER palette */
  --offwhite: #F3E9E3;   /* gebroken wit */
  --orange:   #EEA243;   /* golden apricot */
  --onyx:     #080F0F;
  --olive:    #B5C37F;   /* muted olive */
  --lava:     #7A0200;   /* molten lava */
  --lavender: #DDDBF1;
  --line:     rgba(8, 15, 15, .16);
  --muted:    rgba(8, 15, 15, .66);
  --gutter:   clamp(16px, 4vw, 56px);
  --mono: 'Plex Mono', ui-monospace, monospace;
  --sans: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--offwhite); color: var(--onyx); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--onyx); color: var(--offwhite); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lava); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: color-mix(in srgb, var(--offwhite) 90%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.logo { display: block; }
.logo svg { display: block; height: 22px; width: auto; }
.nav { display: flex; gap: clamp(20px, 5vw, 72px); }
.nav a { font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }

/* ---------- shared ---------- */
section { padding: clamp(72px, 9vw, 130px) var(--gutter); }
.label { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.lead { font: 400 clamp(22px, 2.5vw, 32px)/1.3 var(--sans); margin: 0 0 22px; }
.section-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.mini-logo svg { display: block; height: 30px; width: auto; color: var(--onyx); }
.section-head h2 { font: 400 clamp(22px, 2.6vw, 34px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-intro { max-width: 56ch; color: var(--muted); margin: 0 0 44px; }
.small { font: 400 12px/1.5 var(--mono); color: var(--muted); }
.muted { color: var(--muted); }
.text-link { font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--lava); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.button { display: inline-block; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; background: var(--onyx); color: var(--offwhite); padding: 16px 24px; }
.button:hover { background: var(--lava); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(660px, 100svh); padding: 90px 0 0; overflow: hidden; }
.hero-banner { position: absolute; left: 30%; right: 0; top: 16%; height: clamp(230px, 36vh, 380px); }
.kink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.kink path { fill: var(--orange); }
.hero-title { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 6% 0 0 30%; gap: 14px; }
.ikaros-logo svg { display: block; width: clamp(220px, 30vw, 480px); height: auto; color: var(--onyx); }
.hero-sub { margin: 0; font: 400 clamp(15px, 1.5vw, 20px)/1.2 var(--mono); letter-spacing: .04em; }
.hero-chair { position: absolute; left: 5%; top: 33%; width: 52%; height: 66%; z-index: 2; }
#hero-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
#hero-canvas.is-dragging { cursor: grabbing; }
.hint { position: absolute; left: 50%; bottom: 1%; transform: translateX(-50%); font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-tagline { position: absolute; right: var(--gutter); bottom: 9%; margin: 0; max-width: 22ch; text-align: right; font: 400 clamp(18px, 1.8vw, 24px)/1.35 var(--sans); }

/* ---------- intro ---------- */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); }
.intro-text p:not(.lead):not(.label) { margin: 0 0 18px; max-width: 60ch; }
.intro-text .text-link { display: inline-block; margin-top: 8px; }
.intro-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- building blocks ---------- */
.block-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.block-list li { border-top: 1.5px solid var(--onyx); padding-top: 16px; display: grid; grid-template-rows: auto 2.4em auto; }
.block-list img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; margin-bottom: 12px; }
.block-list h3 { font: 500 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.block-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- configurations ---------- */
.configs { background: var(--lavender); }
.config-group + .config-group { margin-top: 64px; }
.group-title { font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lava); padding-bottom: 14px; border-bottom: 1.5px solid var(--onyx); margin-bottom: 24px; }
.config-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-corner { grid-template-columns: 2fr 1fr; }
.config { position: relative; background: var(--offwhite); padding: 22px 22px 14px; display: grid; grid-template-rows: auto 1fr; transition: transform .3s ease; }
.config:hover { transform: translateY(-3px); }
.config-no { position: absolute; top: 16px; left: 16px; font: 500 12px/1 var(--mono); color: var(--lava); }
.config-img { width: 100%; aspect-ratio: 520 / 380; object-fit: contain; margin: 10px 0 8px; }
.config-wide .config-img { aspect-ratio: 760 / 460; }
.config-body { display: grid; grid-template-rows: auto 2.6em auto; align-content: start; }
.config h4 { font: 500 20px/1.2 var(--sans); }
.config-body > p { margin: 4px 0 12px; color: var(--muted); font-size: 15px; line-height: 1.3; }
.config-body details { align-self: end; }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 12px 0; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 16px; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
.parts { list-style: none; margin: 0 0 8px; padding: 0; }
.parts li { display: grid; grid-template-columns: 32px 64px 1fr; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; line-height: 1.3; }
.parts b { font: 500 13px/1 var(--mono); }
.parts img { width: 64px; height: 34px; object-fit: contain; }
.parts li.cushions { grid-template-columns: 32px 1fr; font-size: 13px; padding-top: 8px; }

/* ---------- softness ---------- */
.soft-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin: 24px 0 64px; }
.soft-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.soft-intro p:not(.lead) { color: var(--muted); max-width: 46ch; }
.cushion-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.cushion-pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.cushion-pair figcaption { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.fabric-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(24px, 4vw, 64px); }
/* head + one line of text get a fixed height, so every group's swatches start at the same height */
.fabric-group { border-top: 1.5px solid var(--onyx); padding-top: 18px; display: grid; grid-template-rows: 32px 48px auto; }
.fabric-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fabric-head h3 { font: 500 26px/1 var(--mono); letter-spacing: .1em; }
.fabric-group > p { color: var(--muted); margin: 10px 0 0; font-size: 15px; line-height: 1.3; }
.fabric-group > ul { grid-row: 3; }
.chip { display: inline-block; padding: 7px 12px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chip-orange { background: var(--orange); }
.chip-lavender { background: var(--lavender); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 12px; }
.swatches img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatches span { display: block; margin-top: 6px; font: 400 11px/1.3 var(--mono); color: var(--muted); min-height: 2.6em; }
.credit { font: 400 11px/1 var(--mono); color: var(--muted); margin: 32px 0 0; }

/* ---------- teaser ---------- */
.teaser { background: var(--orange); text-align: center; }
.teaser .lead { max-width: 30ch; margin: 0 auto 32px; }
.teaser .kink-mark { background: var(--onyx); }

/* ---------- BOUWER marks: the kink shape as bullet / slogan mark ---------- */
.kink-mark { display: inline-block; width: 30px; height: 13px; margin-right: 12px; vertical-align: baseline; background: var(--orange); clip-path: polygon(0 28%, 25% 0, 100% 0, 100% 72%, 25% 100%, 0 100%); }
.slogan-big .kink-mark { width: 44px; height: 18px; margin-right: 16px; vertical-align: -1px; }
.kink-list { list-style: none; margin: 10px 0 0; padding: 0; }
.kink-list li { position: relative; padding: 6px 0 6px 34px; color: var(--muted); }
.kink-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 22px; height: 12px; background: var(--orange); clip-path: polygon(0 28%, 25% 0, 100% 0, 100% 72%, 25% 100%, 0 100%); }
.slogan { font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 18px 0 0; }
.slogan-big { font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 18px; }
.footer-slogan { width: 100%; margin: 0; font: 500 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--offwhite); }

/* ---------- family page ---------- */
.family-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(40px, 6vw, 80px); }
.typed-slogan { font: 400 clamp(40px, 7vw, 104px)/1.05 var(--mono); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 32px; min-height: 1.05em; white-space: nowrap; }
.typed-slogan .caret { display: inline-block; width: .08em; height: .95em; margin-left: .06em; background: var(--orange); vertical-align: -.08em; animation: blink 1s steps(1) infinite; }
.typed-slogan.is-done .caret { animation: blink 1s steps(1) 3; animation-fill-mode: forwards; opacity: 0; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.family-lead { max-width: 46ch; color: var(--muted); margin: 0; }

/* four core lines: coloured bands stepping down the page */
.core { padding-top: 0; }
.core-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); align-items: start; }
.core-item { position: relative; }
.core-item:nth-child(2) { margin-top: clamp(24px, 4vw, 64px); }
.core-item:nth-child(3) { margin-top: clamp(48px, 8vw, 128px); }
.core-item:nth-child(4) { margin-top: clamp(72px, 12vw, 192px); }
.core-band { position: relative; height: clamp(56px, 6vw, 84px); margin-bottom: 18px; }
.core-band .kink { position: absolute; inset: 0; width: 100%; height: 100%; }
.core-item:nth-child(1) .kink path { fill: var(--orange); }
.core-item:nth-child(2) .kink path { fill: var(--olive); }
.core-item:nth-child(3) .kink path { fill: var(--lava); }
.core-no { position: absolute; left: 32%; top: 50%; transform: translateY(-50%); font: 500 14px/1 var(--mono); letter-spacing: .16em; }
.core-item:nth-child(3) .core-no { color: var(--offwhite); }
.core-item h2 { font: 500 clamp(19px, 1.7vw, 24px)/1.25 var(--sans); margin: 0 0 10px; }
.core-item p { margin: 0; color: var(--muted); font-size: 15px; }
.robinia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 24px; }
.robinia-text h3, .map-text h3, .making h3 { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 28px 0 10px; }
.robinia-text p { color: var(--muted); margin: 0; }
.robinia-text .lead { color: var(--onyx); margin-bottom: 8px; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.robinia-photo img { width: 100%; }
.map-block { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 80px; padding-top: 32px; border-top: 1.5px solid var(--onyx); }
.map-text p { color: var(--muted); }
.map-legend { list-style: none; margin: 18px 0; padding: 0; font: 400 13px/1.4 var(--mono); }
.map-legend li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.key { display: inline-block; width: 16px; height: 16px; flex: none; }
.key-country { background: var(--olive); }
.key-pin { background: var(--lava); border-radius: 50%; }
.key-home { background: var(--orange); border: 1.5px solid var(--onyx); }
.robinia-map { width: 100%; height: auto; display: block; }
.robinia-map .land path { fill: var(--lavender); stroke: var(--offwhite); stroke-width: .8; }
.robinia-map .land-robinia path { fill: var(--olive); stroke: var(--offwhite); stroke-width: .8; }
.robinia-map .pin circle { fill: var(--lava); fill-opacity: .88; }
.robinia-map .home rect { fill: var(--orange); stroke: var(--onyx); stroke-width: 1.5; }
.robinia-map text { font: 400 12px var(--mono); fill: var(--onyx); }
.robinia-map .pin-name { font-weight: 500; }
.making { background: var(--lavender); }
.making-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); margin-top: 24px; align-items: center; }
.making-grid p:not(.lead) { color: var(--muted); }
.making-photo img { width: 100%; }
.stat { display: flex; align-items: baseline; gap: 14px; font: 400 15px/1.4 var(--sans); margin-top: 28px; }
.stat span { font: 500 56px/1 var(--mono); color: var(--lava); }
.page-family .teaser { background: var(--olive); }

/* ---------- contact page ---------- */
.contact-hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: 'label label' 'title band'; gap: 0 clamp(24px, 4vw, 64px); align-items: end; }
.contact-hero .label { grid-area: label; }
.contact-title { grid-area: title; font: 400 clamp(36px, 5.4vw, 76px)/1.05 var(--sans); max-width: 14ch; }
.contact-band { grid-area: band; position: relative; height: clamp(110px, 13vw, 180px); }
.contact-band .kink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.contact-band .kink path { fill: var(--orange); }
.contact-band-text { position: absolute; z-index: 1; left: 32%; top: 50%; transform: translateY(-50%); font: 500 clamp(15px, 1.6vw, 22px)/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(40px, 6vw, 80px); }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list div { border-top: 1.5px solid var(--onyx); padding-top: 12px; }
.contact-list dt { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-list dd { margin: 0; font: 400 clamp(18px, 1.6vw, 22px)/1.3 var(--sans); }
.contact-list a { text-decoration: none; border-bottom: 1.5px solid var(--orange); }
.contact-list a:hover { color: var(--lava); }
.contact-steps { margin-top: 40px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; background: var(--lavender); padding: clamp(24px, 3vw, 40px); }
.field { display: grid; gap: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-wide { grid-column: 1 / -1; }
.field label { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--onyx); background: var(--offwhite); border: 0; border-bottom: 1.5px solid var(--onyx); padding: 12px 12px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--onyx) 50%), linear-gradient(135deg, var(--onyx) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--orange); box-shadow: inset 0 -1.5px 0 var(--orange); }
.field ::placeholder { color: var(--muted); opacity: 1; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot .button { border: 0; cursor: pointer; font-family: var(--mono); }
.form-foot .small { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--onyx); color: var(--offwhite); padding: 48px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .logo svg { height: 26px; color: var(--orange); }
.site-footer .nav { align-items: center; }
.site-footer .insta { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: .04em; }
.site-footer .insta svg { color: var(--orange); flex: none; }
.site-footer .insta:hover svg { color: var(--offwhite); }
.site-footer .small { width: 100%; margin: 0; color: var(--offwhite); opacity: .6; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .cols-4, .block-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .hero-banner { position: relative; left: auto; top: auto; margin: 40px 0 0 8%; height: 210px; }
  .hero-title { padding-left: 26%; }
  .hero-chair { position: relative; left: auto; top: auto; width: 100%; height: 72vw; margin-top: -40px; }
  .hero-tagline { position: static; text-align: left; padding: 0 var(--gutter); margin-top: 28px; max-width: none; }
  .hero-tagline br { display: none; }
  .hint { bottom: -18px; }
  .intro, .soft-top, .robinia-grid, .map-block, .making-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-hero { grid-template-columns: 1fr; grid-template-areas: 'label' 'title' 'band'; }
  .contact-band { margin-top: 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .core-list { grid-template-columns: 1fr 1fr; }
  .core-item:nth-child(n) { margin-top: 0; }
  .typed-slogan { white-space: normal; }
  .cols-3, .cols-corner { grid-template-columns: 1fr 1fr; }
  .config-wide { grid-column: 1 / -1; }
  .fabric-groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 16px; }
  .logo svg { height: 18px; }
  .nav { gap: 20px; }
  .hero-banner { margin-left: 4%; height: 170px; }
  .cols-4, .cols-3, .cols-corner, .core-list, .block-list { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
}
