/* withamra.nl — implemented from the accepted concepts (see DESIGN-SYSTEM.md). */

:root {
  --page: #F9F5EF;
  --band: #DCD5CA;
  --text: #2A1A12;
  --muted: #6C5950;
  --rule: #D8CFC3;
  --button: #3B2A20;
  --button-hover: #2F211A;
  --button-text: #FFFFFF;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: 56px;
  --max: 1328px;
  --section: 112px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--band); }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; }
h1, h2, h3, .statement, .lead, .closing-line, .row-name, .entry-name, .wordmark-name, .step h2, .q {
  font-family: var(--serif);
  font-weight: 400;
}
.page-title { font-size: clamp(56px, 7.8vw, 112px); line-height: .95; letter-spacing: -.02em; }
.statement { font-size: clamp(23px, 2.1vw, 30px); line-height: 1.45; }
.statement.large { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.12; }
.statement.centered { text-align: center; margin-inline: auto; max-width: 880px; }
.closing-line { font-size: clamp(30px, 3vw, 42px); line-height: 1.2; text-align: center; max-width: 1100px; margin-inline: auto; }
.body-large { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; }
.quiet { color: var(--muted); font-size: 19px; line-height: 1.55; }
.small { font-size: 15px; line-height: 1.5; }
.label { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .12em; line-height: 1.2; }
.tbc { color: var(--muted); }
.measure { max-width: 68ch; }
.measure-wide { max-width: 760px; }

/* Links and buttons */
.link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
  border-bottom: 1px solid var(--text);
  padding-bottom: 5px;
  transition: border-color .2s var(--ease), padding .2s var(--ease);
}
.link:hover { border-bottom-width: 2px; padding-bottom: 4px; }
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 400;
  color: var(--button-text);
  background: var(--button);
  border: 0;
  padding: 23px 52px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.button:hover { background: var(--button-hover); }
.button:focus-visible, .link:focus-visible, .nav a:focus-visible, .wordmark:focus-visible, .menu-toggle:focus-visible {
  outline: 2px solid var(--text); outline-offset: 3px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--page); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Grid */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
section { position: relative; }

/* Header */
.site-header { padding-top: 28px; padding-bottom: 28px; }
.header-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark img { width: 28px; height: 28px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; }
.wordmark-name { font-size: 40px; line-height: 1; }
.wordmark-sub { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; line-height: 1.2; margin-top: 4px; white-space: nowrap; }
.nav { display: flex; gap: 28px; padding-top: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 15px; line-height: 1.3; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav a[aria-current="page"] { border-bottom-color: var(--text); }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"]:hover { border-bottom-color: var(--text); }
.nav .nav-home { display: none; }
.menu-toggle {
  display: none;
  font-family: var(--sans); font-size: 15px; line-height: 1.3;
  background: none; border: 0; padding: 6px 0; color: var(--text); cursor: pointer;
  border-bottom: 1px solid var(--text);
}

/* Media frames */
.frame { overflow: hidden; background: var(--band); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.portrait { aspect-ratio: 4 / 5; }
.frame.landscape { aspect-ratio: 3 / 2; }
.frame.wide { aspect-ratio: 5 / 2; }
.frame.square { aspect-ratio: 1 / 1; }
.bleed { width: 100%; overflow: hidden; background: var(--band); }
.bleed img { width: 100%; height: 100%; object-fit: cover; }

/* Home: hero (concept 01) */
.hero { display: grid; grid-template-columns: 55fr 45fr; min-height: 85vh; }
.hero-copy { display: flex; flex-direction: column; padding: 0 24px 0 var(--gutter); }
.hero-copy .site-header { padding-left: 0; padding-right: 0; }
.hero-copy .header-inner { padding: 0; max-width: none; }
.nowrap { white-space: nowrap; }
.hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 32px 96px 0; }
.hero h1 { font-size: clamp(48px, 7.5vw, 108px); line-height: 1.02; letter-spacing: -.025em; max-width: 7em; }
.hero-sub { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; margin-top: 28px; }
.hero .button { margin-top: 44px; align-self: flex-start; }
.hero-media { position: relative; background: var(--band); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* Home: the pause (concept 02) */
.pause .bleed { height: 60vh; min-height: 420px; }
.pause .bleed img { object-position: 50% 58%; }
.pause .statement { padding: var(--section) var(--gutter); }

/* Home: treatments (concept 03) */
.home-treatments { padding: 24px 0 var(--section); }
.split { display: grid; gap: var(--gutter); align-items: start; }
.split-40-60 { grid-template-columns: 40fr 60fr; }
.split-45-55 { grid-template-columns: 45fr 55fr; }
.split-42-58 { grid-template-columns: 42fr 58fr; }
.split-50-50 { grid-template-columns: 1fr 1fr; }
.split-55-45 { grid-template-columns: 55fr 45fr; }
.section-heading { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.01em; }
.rows { margin-top: 40px; border-top: 0; }
.row { display: block; text-decoration: none; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.row:first-child { padding-top: 0; }
.rows li:last-child .row { border-bottom: 0; padding-bottom: 8px; }
.row-grid { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: start; }
.row-name { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.1; }
.row-line { font-size: 17px; line-height: 1.5; margin-top: 8px; }
.row-meta { font-size: 16px; line-height: 1.3; letter-spacing: .01em; padding-top: 8px; white-space: nowrap; }
.row:hover .row-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.rows + .link { margin-top: 40px; }

/* Home: listening band (concept 04) */
.listening { padding: 96px 0; }
.band { background: var(--band); padding: 96px 0; }
.band .statement.large { max-width: 12em; }
.band .link { margin-top: 48px; }
.band .frame.portrait { justify-self: end; width: min(100%, 520px); }

/* Home: visit row (concept 05) */
.home-visit { padding: 0 0 var(--section); }
.home-visit .rule { margin-bottom: 56px; }
.visit-row { display: grid; grid-template-columns: 40fr 30fr 30fr; gap: var(--gutter); align-items: start; }
.visit-row .frame.landscape { aspect-ratio: 3 / 2; }
.visit-row .col { padding-top: 56px; }
.visit-row .aside { border-left: 1px solid var(--rule); padding-left: 40px; }
.visit-row .link { margin-top: 40px; font-size: 19px; }

/* Home: closing (concept 06) */
.closing { padding: 24px 0 96px; }
.closing .frame.wide img { object-position: 50% 40%; }
.closing .closing-line { margin-top: 72px; }
.closing .button-row { text-align: center; margin-top: 40px; }

/* Footer */
.site-footer { padding: 40px 0 56px; }
.site-footer .rule { margin-bottom: 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; font-size: 15px; line-height: 1.6; }
.footer-grid p { margin: 0; }
.footer-links { display: flex; gap: 40px; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { text-align: right; margin-top: 12px; }

/* Inner pages */
.title-block { padding: 48px 0 64px; }
.title-block .statement { max-width: 760px; }
.title-block.split .statement { padding-top: 24px; }
.page-intro { margin-top: 24px; }
.band-photo { height: 330px; }
.band-photo img { object-position: 50% 55%; }

/* Treatments entries (concept 07) */
.entries { padding-top: 16px; }
.entry { display: grid; grid-template-columns: 40fr 60fr; gap: var(--gutter); padding: 72px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 24px; }
.entry-name { font-size: clamp(38px, 3.6vw, 52px); line-height: 1; letter-spacing: -.01em; }
.lead { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.4; }
.items { margin-top: 32px; display: grid; gap: 24px; }
.items dt { margin-bottom: 8px; }
.items dd { margin: 0; font-size: 17px; line-height: 1.6; }
.text-row { display: grid; grid-template-columns: 40fr 60fr; gap: var(--gutter); padding: 72px 0; border-bottom: 1px solid var(--rule); }
.text-row h2 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; }
.text-row:last-child { border-bottom: 0; }
.page-end { padding-bottom: 80px; }

/* About (concept 08) */
.about-top { padding: 16px 0 96px; }
.about-top .frame { aspect-ratio: 4 / 5.6; }
.about-top .page-title { margin-bottom: 40px; }
.about-top .statement.large { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; max-width: 16em; }
.about-top .body-large { margin-top: 32px; }
.about-top .body-large + .body-large { margin-top: 24px; }
.about-work .band { padding: 96px 0; }
.about-work .frame.landscape { aspect-ratio: 3 / 2; }
.about-work .body-large + .body-large { margin-top: 24px; }
.about-rest { padding: 96px 0 0; }
.about-rest .body-large + .body-large { margin-top: 24px; }
.about-glimpse { padding: 96px 0 var(--section); }
.about-glimpse .frame { aspect-ratio: 3 / 2; }
.about-glimpse .col { padding-top: 8px; }
.about-glimpse .link { margin-top: 32px; }

/* Your Visit (concept 09) */
.visit-intro { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.2; margin-top: 32px; }
.steps { border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 56px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.step .frame { aspect-ratio: 3 / 2; }
.step .col { padding-top: 24px; }
.step h2 { font-size: clamp(32px, 3vw, 44px); line-height: 1.05; }
.step p { margin-top: 24px; }
.questions { padding: 72px 0 0; }
.questions h2 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.05; }
.qa { display: grid; grid-template-columns: 40fr 60fr; gap: var(--gutter); padding: 36px 0; border-bottom: 1px solid var(--rule); }
.qa:last-child { border-bottom: 0; }
.q { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.3; }
.qa p { margin: 0; }

/* Mentorship (concept 10) */
.mentor-top { padding: 16px 0 72px; }
.mentor-top .page-title { margin-bottom: 40px; }
.mentor-top .frame { aspect-ratio: 3 / 2; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 56px var(--gutter); }
.covers h3 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; }
.covers p { margin-top: 16px; }
.formats { margin-top: 24px; }
.formats li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.formats li:first-child { padding-top: 0; }
.formats li:last-child { border-bottom: 0; }
.formats + .tbc { display: block; margin-top: 24px; }
.mentor-hands { padding: 0 0 72px; }
.mentor-hands .frame { aspect-ratio: 5 / 3; }
.mentor-close .band { padding: 96px 0; }
.mentor-close .closing-line { text-align: left; margin: 0; max-width: 18em; }
.apply .button { margin-top: 32px; }

/* Contact (concept 11) */
.contact-top { padding: 16px 0 var(--section); }
.contact-top .frame { aspect-ratio: 4 / 5.4; position: sticky; top: 32px; }
.contact-top .page-title { margin-bottom: 40px; }
.form { margin-top: 56px; display: grid; gap: 40px; }
.field { display: grid; gap: 10px; }
.field label { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .12em; line-height: 1.2; }
.field .optional { font-weight: 400; letter-spacing: .02em; color: var(--muted); margin-left: 6px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  font-family: var(--sans); font-size: 18px; line-height: 1.4; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 10px 0 12px; width: 100%; outline: none; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { border-bottom: 2px solid var(--text); padding-bottom: 11px; }
.field .select { position: relative; }
.field .select svg { position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none; color: var(--text); }
.field select { padding-right: 28px; cursor: pointer; }
.field .helper { font-size: 15px; line-height: 1.5; color: var(--muted); }
.field .error { font-size: 15px; line-height: 1.5; color: var(--text); display: none; }
.field.is-invalid .error { display: block; }
.field.is-invalid input, .field.is-invalid select { border-bottom-color: var(--text); }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; font-size: 16px; line-height: 1.5; }
.consent input { appearance: auto; -webkit-appearance: auto; width: 18px; height: 18px; margin: 4px 0 0; padding: 0; border: 0; accent-color: var(--button); }
.consent a { text-decoration: underline; text-underline-offset: 4px; }
.form-notice { display: none; font-size: 16px; line-height: 1.55; padding-top: 24px; border-top: 1px solid var(--rule); }
.form-notice.is-visible { display: block; }
.contact-after { margin-top: 72px; display: grid; gap: 32px; }
.contact-after h2 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.15; }
.contact-after p { margin: 0; }
.contact-after p + p { margin-top: 12px; }

/* Privacy, 404 */
.text-page { padding: 16px 0 var(--section); }
.text-page .page-title { margin-bottom: 48px; }
.text-page h2 { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; margin-top: 56px; margin-bottom: 16px; scroll-margin-top: 24px; }
.text-page p + p { margin-top: 20px; }
.not-found { padding: 48px 0 var(--section); }
.not-found h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
.not-found p { margin-top: 24px; }
.not-found .actions { margin-top: 40px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.not-found .frame { aspect-ratio: 3 / 2; }

/* Cookie notice */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 40;
  max-width: 420px; background: var(--page); border: 1px solid var(--rule);
  padding: 20px 24px; display: none; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 15px; line-height: 1.5;
}
.cookie.is-visible { display: flex; }
.cookie button {
  font-family: var(--sans); font-size: 15px; line-height: 1.3; background: none; border: 0; padding: 4px 0;
  color: var(--text); cursor: pointer; border-bottom: 1px solid var(--text); white-space: nowrap;
}

/* Motion */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .frame img, .js .bleed img, .js .hero-media img { transform: scale(1.03); transition: transform 1.2s var(--ease); }
.js .is-visible img { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .frame img, .js .bleed img, .js .hero-media img { transform: none; transition: none; }
  .link, .button { transition: none; }
}

/* Responsive continuation */
@media (max-width: 1320px) {
  .hero { grid-template-columns: 58fr 42fr; }
  .nav { gap: 22px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 1100px) {
  :root { --gutter: 40px; --section: 88px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(44px, 6.4vw, 72px); }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; --section: 64px; }
  .menu-toggle { display: inline-block; margin-top: 10px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
    position: fixed; inset: 0; background: var(--page); z-index: 30; padding: 0 var(--gutter);
  }
  .nav.is-open a { font-size: 24px; font-family: var(--serif); border-bottom-width: 1px; padding-bottom: 6px; }
  .nav.is-open .nav-home { display: block; }
  .nav.is-open .nav-close { position: absolute; top: 34px; right: var(--gutter); font-family: var(--sans); font-size: 15px; }
  .nav-close { display: none; background: none; border: 0; border-bottom: 1px solid var(--text); padding: 6px 0; color: var(--text); font-family: var(--sans); font-size: 15px; cursor: pointer; }
  .nav.is-open .nav-close { display: inline-block; }
  body.menu-open { overflow: hidden; }
  .menu-toggle { position: relative; z-index: 31; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-right: var(--gutter); }
  .hero-text { padding: 56px 0 56px; }
  .hero h1 { font-size: clamp(50px, 15vw, 60px); max-width: none; }
  .hero-sub { font-size: 17px; }
  .hero-sub { margin-top: 20px; }
  .hero .button { margin-top: 36px; align-self: stretch; text-align: center; }
  .hero-media { aspect-ratio: 4 / 5; }
  .hero-media img { position: absolute; }

  .pause .bleed { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .pause .statement { padding: 56px var(--gutter); }

  .split, .entry, .text-row, .step, .qa, .visit-row { grid-template-columns: 1fr; gap: 32px; }
  .home-treatments .frame.portrait { aspect-ratio: 4 / 3; }
  .rows { margin-top: 24px; }
  .row-grid { grid-template-columns: 1fr; }
  .row-meta { padding-top: 6px; }

  .listening { padding: 48px 0; }
  .band { padding: 56px 0; }
  .band .frame.portrait { width: 100%; }
  .band .link { margin-top: 32px; }

  .home-visit .rule { margin-bottom: 32px; }
  .visit-row .col { padding-top: 0; }
  .visit-row .aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
  .visit-row .link { margin-top: 24px; }

  .closing { padding: 0 0 56px; }
  .closing .frame.wide { aspect-ratio: 3 / 2; }
  .closing .closing-line { margin-top: 40px; }
  .closing .button-row .button { width: 100%; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }

  .title-block { padding: 24px 0 40px; }
  .band-photo { height: 240px; }
  .entry, .text-row { padding: 48px 0; }
  .about-top .frame, .contact-top .frame { aspect-ratio: 4 / 5; }
  .about-rest, .about-glimpse { padding: 56px 0 0; }
  .about-glimpse { padding-bottom: var(--section); }
  .step { padding: 40px 0; }
  .step .col { padding-top: 0; }
  .covers { grid-template-columns: 1fr; gap: 40px; }
  .mentor-close .closing-line { max-width: none; }
  .contact-top .frame { order: 2; position: static; }
  .contact-top .col { order: 1; }
  .form { margin-top: 40px; gap: 32px; }
  .button { width: 100%; text-align: center; padding: 20px 24px; font-size: 17px; }
  .not-found .actions .button { width: auto; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* Addendum from concepts 10-11 */
.statement.intro-large { font-size: clamp(26px, 2.9vw, 42px); line-height: 1.15; }
.field label { font-weight: 400; font-size: 18px; letter-spacing: 0; line-height: 1.3; }
.field .optional { font-size: 16px; }
.format-heading { font-size: clamp(28px, 2.4vw, 34px); line-height: 1.15; margin-bottom: 20px; }
.mentor-body .rule { margin-bottom: 0; }
.covers p { font-size: 18px; line-height: 1.6; }
