/* ==========================================================================
   Ihataren Advocatuur
   Palet: espresso, ivoor, champagne, taupe + mat brons
   Type:  Cormorant Garamond (display), Jost (tekst en interface)
   ========================================================================== */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --espresso: #231C18;
  --espresso-2: #2C241F;
  --espresso-3: #1A1411;
  --ivoor: #F7F3EC;
  --ivoor-2: #EFE8DD;
  --champagne: #D9C6B1;
  --taupe: #8C735C;
  --koper: #9A7650;            /* mat brons: lijnen en accenten */
  --koper-tekst: #7A5B3C;      /* brons voor tekst, 5.6:1 op ivoor */
  --koper-licht: #CDB28F;      /* champagne op espresso, 8.3:1 */
  --brons: #9A7650;
  --champagne-i: #CDB28F;
  --ink: #231C18;
  --ink-soft: #4A3D34;
  --muted: #6B5A4D;            /* 5.9:1 op ivoor */
  --muted-dark: #A89280;       /* 5.7:1 op espresso */
  --line: rgba(35, 28, 24, .14);
  --line-strong: rgba(35, 28, 24, .32);
  --line-dark: rgba(217, 198, 177, .2);
  --error: #9B2C1F;

  --metal: var(--brons);

  /* type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-xs: .8125rem;
  --fs-lead: clamp(1.125rem, 1rem + .55vw, 1.375rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 4.6vw, 5.75rem);
  --fs-h2: clamp(2.25rem, 1.55rem + 2.7vw, 3.875rem);
  --fs-h3: clamp(1.5rem, 1.25rem + .9vw, 2rem);
  --fs-statement: clamp(1.75rem, 1.1rem + 2.5vw, 3.25rem);

  /* layout */
  --max: 1320px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 3rem + 8vw, 10.5rem);
  --header-h: 96px;
  --gap: clamp(1.25rem, 3vw, 3rem);

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 899px) { :root { --header-h: 76px; } }

/* --------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivoor);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.72;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote, dl, dd { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--champagne); color: var(--espresso); }

:focus-visible { outline: 2px solid var(--koper); outline-offset: 4px; border-radius: 1px; }
.section--dark :focus-visible, .hero :focus-visible, .contact-band :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible, .site-header[data-theme="dark"]:not(.is-scrolled) :focus-visible { outline-color: var(--koper-licht); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1.25rem; background: var(--espresso); color: var(--ivoor); font-size: var(--fs-small); transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--ivoor-2); }
.section--dark { background: var(--espresso); color: var(--champagne); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ivoor); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* --------------------------------------------------------------- type */
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); line-height: 1.15; }
.lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--ink-soft); max-width: 40em; }
.section--dark .lead { color: var(--champagne); }
.statement { font-family: var(--serif); font-weight: 400; font-size: var(--fs-statement); line-height: 1.18; color: var(--ink); letter-spacing: -.005em; max-width: 21em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 0; margin: 0; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em; color: var(--muted); line-height: 1.5; }
.meta > * + *::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 .75em; vertical-align: -.1em; background: var(--koper); }

.quote { position: relative; margin: 2.25rem 0; padding-left: clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--koper); }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.125rem); line-height: 1.25; color: var(--ink); }

/* links */
.link {
  display: inline; padding-bottom: .15em; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link--light { color: var(--ivoor); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .link:hover, .news-card__link:hover .news-card__more { animation: underline-redraw .8s var(--ease-in-out); }
}
@keyframes underline-redraw {
  0%   { background-size: 100% 1px; background-position: 100% 100%; }
  45%  { background-size: 0 1px;    background-position: 100% 100%; }
  46%  { background-size: 0 1px;    background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .85rem 1.75rem; border: 1px solid var(--espresso); border-radius: 0;
  background: transparent; color: var(--espresso); font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--espresso); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); }
.btn:hover { color: var(--ivoor); }
.btn:hover::before { transform: scaleY(1); }
.btn--light { border-color: rgba(217, 198, 177, .6); color: var(--ivoor); }
.btn--light::before { background: var(--champagne); }
.btn--light:hover { color: var(--espresso); border-color: var(--champagne); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------- the copper I */
.metal-i {
  display: block; aspect-ratio: 100 / 230;
  -webkit-mask: url("../brand/i-mask.svg") center / contain no-repeat;
          mask: url("../brand/i-mask.svg") center / contain no-repeat;
  background: #5B4A3E;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--espresso);
  transition: transform .6s var(--ease-out), background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
  view-transition-name: site-header;
}
.site-header[data-theme="dark"] { color: var(--ivoor); }
.site-header.is-scrolled { background: rgba(247, 243, 236, .9); color: var(--espresso); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-hidden { transform: translateY(-101%); }
.menu-open .site-header { color: var(--ivoor); background: transparent; box-shadow: none; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.site-header__logo { display: block; }
.site-header__logo .logo { display: block; height: 70px; width: auto; }
/* logo: wordmark follows the text colour; column, ADVOCATUUR and rules use the accent colour */
.logo { --logo-acc: #5B4A3E; }
.site-header[data-theme="dark"]:not(.is-scrolled) .logo, .menu-open .site-header .logo, .site-footer .logo { --logo-acc: #D9C6B1; }
.logo__acc { fill: var(--logo-acc); transition: fill .45s var(--ease); }
.logo__rule { stroke: var(--logo-acc); transition: stroke .45s var(--ease); }
@media (max-width: 899px) { .site-header__logo .logo { height: 58px; } }

.site-nav ul { display: flex; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.site-nav a { position: relative; display: block; padding: .5rem 0; font-size: .9375rem; font-weight: 450; letter-spacing: .015em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease-out); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--koper); height: 1px; }
.site-header[data-theme="dark"]:not(.is-scrolled) .site-nav a[aria-current="page"]::after { background: var(--koper-licht); }

.menu-toggle { display: none; align-items: center; gap: .75rem; padding: .5rem 0 .5rem .5rem; border: 0; background: none; cursor: pointer; font-size: .9375rem; font-weight: 500; letter-spacing: .02em; }
.menu-toggle__icon { position: relative; width: 26px; height: 10px; }
.menu-toggle__icon span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 2.5rem) var(--pad-x) max(2rem, env(safe-area-inset-bottom));
  background: var(--espresso); color: var(--ivoor); overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out), visibility 0s .7s; visibility: hidden;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.mobile-menu li { overflow: hidden; }
.mobile-menu nav a { display: inline-block; padding: .2rem 0; font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3.25rem); font-weight: 500; line-height: 1.2; transform: translateY(105%); transition: transform .7s var(--ease-out); }
.mobile-menu.is-open nav a { transform: none; transition-delay: calc(.18s + var(--i, 0) * .06s); }
.mobile-menu nav a[aria-current="page"] { color: var(--koper-licht); }
.mobile-menu__meta { display: flex; flex-direction: column; gap: .35rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--champagne); font-size: var(--fs-small); opacity: 0; transition: opacity .5s; }
.mobile-menu.is-open .mobile-menu__meta { opacity: 1; transition-delay: .5s; }
body.menu-open { overflow: hidden; }

/* --------------------------------------------------------------- hero (home) */
.hero {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: max(660px, 100svh); background: var(--espresso); color: var(--champagne); overflow: hidden;
}
.hero__media { position: relative; grid-column: 8 / -1; grid-row: 1; overflow: hidden; }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 28%; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(35, 28, 24, .7), rgba(35, 28, 24, 0) 26%),
              linear-gradient(to right, var(--espresso) 0, rgba(35, 28, 24, 0) 14%); }
.hero__content {
  grid-column: 1 / 8; grid-row: 1; align-self: center; display: flex; align-items: center; gap: clamp(1.75rem, 3.2vw, 3.5rem);
  padding: calc(var(--header-h) + 3rem) clamp(1.5rem, 3vw, 3rem) 6rem max(var(--pad-x), calc((100vw - var(--max)) / 2));
}
.hero__text { flex: 1; min-width: 0; container-type: inline-size; }
.hero__title { color: var(--ivoor); font-size: clamp(2.4rem, 5.6vw, 5.75rem); font-size: min(12.6cqi, 5.75rem); font-weight: 500; line-height: .98; letter-spacing: -.012em; text-wrap: initial; }
.hero__lead { max-width: 30em; margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; color: var(--champagne); }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; margin-top: clamp(2rem, 4vw, 3rem); }

@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero__media { height: 84svh; min-height: 560px; max-height: 900px; }
  .hero__media img { object-position: 50% 18%; }
  .hero__media::after { background: linear-gradient(to bottom, rgba(35, 28, 24, .6), rgba(35, 28, 24, 0) 22%), linear-gradient(to top, var(--espresso) 6%, rgba(35, 28, 24, .9) 34%, rgba(35, 28, 24, .55) 52%, rgba(35, 28, 24, 0) 72%); }
  .hero__content { position: relative; z-index: 2; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-top: -34svh; padding: 0 var(--pad-x) 3.5rem; }
  .hero__text { width: 100%; flex: none; }
  .hero__title { font-size: min(13cqi, 4rem); }
}

/* hero load sequence (pure CSS so it works before scripts run) */
@media (prefers-reduced-motion: no-preference) {
  .hero__media picture { animation: hero-photo 1.8s var(--ease-out) .1s both; }
  .hero__title { animation: fade-up 1.2s var(--ease-out) .55s both; }
  .hero__lead { animation: fade-up 1.2s var(--ease-out) .75s both; }
  .hero__links { animation: fade-up 1.2s var(--ease-out) .9s both; }
  .page-home .site-header { animation: fade 1s var(--ease) .9s both; }
}
@keyframes hero-photo { from { clip-path: inset(0 0 0 100%); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --------------------------------------------------------------- home: intro */
.section--compact { padding-block: clamp(4rem, 2.5rem + 5vw, 7.5rem); }
.intro__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.intro__title { grid-column: 1 / 5; font-size: var(--fs-h3); line-height: 1.15; margin-top: -.18em; }
.intro__text { grid-column: 5 / 12; max-width: 40rem; }
@media (max-width: 899px) { .intro__title, .intro__text { grid-column: 1 / -1; } .intro__title { margin-bottom: .5rem; } }

/* --------------------------------------------------------------- feature (photo + text) */
.feature__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.feature__media { grid-column: 1 / 6; }
.feature__body { grid-column: 7 / 13; max-width: 36rem; }
.feature__body .h2 { margin-bottom: .6rem; }
.feature__role { margin-bottom: 2rem; font-size: var(--fs-small); font-weight: 500; letter-spacing: .02em; color: var(--koper-tekst); }
@media (max-width: 899px) {
  .feature__media { grid-column: 1 / -1; max-width: 32rem; }
  .feature__body { grid-column: 1 / -1; padding-top: 1.5rem; }
}

/* photo frame with clip reveal + parallax */
.frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 3 / 1; }
.frame--hands img { object-position: 72% 50%; }
/* optical alignment: cap height of the heading on the top edge of the photo next to it */
.feature__body > .h2:first-child, .contact-col > .h3:first-child { margin-top: -.21em; }
.frame__inner { position: absolute; inset: 0; background: var(--champagne); }
.frame__inner[data-parallax] { inset: -8% 0; will-change: transform; }
.frame--portrait { aspect-ratio: 2 / 3; }
.frame__inner picture, .frame__inner img { width: 100%; height: 100%; }
.frame__inner img { object-fit: cover; }
@media (max-width: 699px) { .frame--wide { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------- news cards */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) var(--gap); }
@media (max-width: 999px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .news-grid { grid-template-columns: 1fr; } }
.news-card__link { display: flex; flex-direction: column; height: 100%; }
.news-card__media { position: relative; aspect-ratio: 3 / 2; margin-bottom: 1.35rem; overflow: hidden; background: var(--espresso-2); }
.news-card__media picture, .news-card__media img { width: 100%; height: 100%; }
.news-card__media img { object-fit: cover; transition: transform 1.4s var(--ease-out); }
.news-card__link:hover .news-card__media img { transform: scale(1.045); }
.news-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #33291f 0%, var(--espresso) 70%); }
.news-card__placeholder .metal-i { height: 38%; background: #D9C6B1; }
.news-card .meta { margin-bottom: .7rem; }
.news-card__title { margin-bottom: .75rem; font-size: clamp(1.45rem, 1.25rem + .55vw, 1.75rem); line-height: 1.15; color: var(--ink); }
.news-card__excerpt { margin-bottom: 1.25rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__more { align-self: flex-start; justify-self: start; margin-top: auto; padding-bottom: .15em; font-size: var(--fs-small); font-weight: 500; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }

.news-card--featured { grid-column: 1 / -1; }
.news-card--featured .news-card__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gap); align-items: center; }
.news-card--featured .news-card__media { grid-column: 1 / 8; grid-row: 1 / 6; margin: 0; aspect-ratio: 16 / 10; }
.news-card--featured .news-card__link > :not(.news-card__media) { grid-column: 9 / 13; }
.news-card--featured .news-card__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.08; }
.news-card--featured .news-card__excerpt { -webkit-line-clamp: 5; }
@media (max-width: 899px) {
  .news-card--featured .news-card__link { display: flex; }
  .news-card--featured .news-card__media { margin-bottom: 1.35rem; }
}

/* --------------------------------------------------------------- contact band + details */
.contact-band { padding-block: var(--section-y); background: var(--espresso); color: var(--champagne); }
.contact-band .h2 { color: var(--ivoor); margin-bottom: 1.25rem; }
.contact-band__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.contact-band__grid > div:first-child { grid-column: 1 / 7; }
.contact-band__text { max-width: 26em; margin-bottom: 2.25rem; font-size: var(--fs-lead); font-weight: 300; line-height: 1.6; }
.contact-band__details { grid-column: 8 / 13; }
@media (max-width: 899px) { .contact-band__grid > div:first-child, .contact-band__details { grid-column: 1 / -1; } .contact-band__details { margin-top: 2rem; } }

.details > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.details > div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: var(--fs-small); font-weight: 500; color: var(--muted); padding-top: .15rem; }
.details dd { color: var(--ink); font-size: 1.0625rem; overflow-wrap: anywhere; }
.details dd a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); }
.details dd a:hover { background-size: 100% 1px; }
.details--dark > div { border-color: var(--line-dark); }
.details--dark dt { color: var(--muted-dark); }
.details--dark dd { color: var(--ivoor); }
@media (max-width: 479px) { .details > div { grid-template-columns: 1fr; gap: .15rem; } }

/* --------------------------------------------------------------- page heads (subpages) */
.page-head { padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 7.5rem)) 0 clamp(3.5rem, 7vw, 6.5rem); }
.page-head__title { font-size: var(--fs-h1); margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.page-head .lead { max-width: 36em; }
.page-head--split .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.page-head--split .page-head__text { grid-column: 1 / 7; }
.page-head--split .page-head__text > :last-child { margin-bottom: 0; }
.page-head--split .page-head__media { grid-column: 8 / 13; }
.page-head__sub { margin-bottom: 2rem; font-size: var(--fs-small); font-weight: 500; letter-spacing: .02em; color: var(--koper-tekst); }
@media (max-width: 899px) {
  .page-head--split .page-head__text, .page-head--split .page-head__media { grid-column: 1 / -1; }
  .page-head--split .page-head__media { max-width: 30rem; margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-head__title, .page-head__sub, .page-head .lead, .page-head__extra { animation: fade-up 1.1s var(--ease-out) both; }
  .page-head__sub { animation-delay: .08s; }
  .page-head .lead { animation-delay: .16s; }
  .page-head__extra { animation-delay: .24s; }
  .page-head__media .frame { animation: hero-photo-up 1.6s var(--ease-out) .1s both; }
}
@keyframes hero-photo-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Over: text column beside the full portrait, career below the photo */
.over { padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 var(--section-y); }
.over__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 0; align-items: start; }
.over__head { grid-column: 1 / 8; grid-row: 1; }
.over__head .page-head__title { margin-top: -.16em; }
.over__body { grid-column: 1 / 8; grid-row: 2; padding-top: clamp(2rem, 4vw, 3rem); }
.over__side { grid-column: 9 / 13; grid-row: 1 / span 2; }
.over__timeline { padding-top: clamp(2.5rem, 4vw, 3.5rem); }
.over__timeline .h3 { margin-bottom: 1.75rem; }
.page-head__title--name { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .over__head > * { animation: fade-up 1.1s var(--ease-out) both; }
  .over__head .lead { animation-delay: .12s; }
  .over__media .frame { animation: hero-photo-up 1.6s var(--ease-out) .1s both; }
}
@media (max-width: 899px) {
  .over__side { display: contents; }
  .over__head, .over__body, .over__media, .over__timeline { grid-column: 1 / -1; grid-row: auto; }
  .over__head { order: 1; } .over__media { order: 2; max-width: 30rem; margin-top: 2.5rem; } .over__body { order: 3; } .over__timeline { order: 4; }
}

/* --------------------------------------------------------------- prose */
.prose { max-width: 40rem; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem); line-height: 1.12; }
.prose h3 { margin-top: 1.8em; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); line-height: 1.2; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--koper); transition: text-decoration-color .3s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.25rem; top: .78em; width: .5rem; height: 1px; background: var(--koper); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--koper-tekst); font-weight: 500; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 2em 0; padding-left: 1.5rem; border-left: 1px solid var(--koper); font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }

/* --------------------------------------------------------------- over */
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 1px; background: linear-gradient(to bottom, var(--koper), rgba(154, 118, 80, .25)); }
.timeline li { position: relative; padding-bottom: 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.75rem - 3px); top: .5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ivoor); border: 1px solid var(--koper); }
.timeline li:first-child::before { background: var(--koper); }
.timeline__when { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 500; line-height: 1.3; color: var(--koper-tekst); }
.timeline__what { display: block; margin-top: .15rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.timeline__detail { display: block; margin-top: .2rem; font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }

.expertise { margin-top: 3rem; }
.expertise__title { margin-bottom: 1rem; font-size: var(--fs-small); font-weight: 500; color: var(--muted); font-family: var(--sans); letter-spacing: .02em; }
.expertise ul { border-top: 1px solid var(--line); }
.expertise li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); font-weight: 500; line-height: 1.2; color: var(--ink); }

.note { margin-top: 2.5rem; max-width: 40rem; }
.note__title { margin-bottom: .5rem; font-family: var(--sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.note p { font-size: var(--fs-small); line-height: 1.7; color: var(--muted); }

/* --------------------------------------------------------------- kosten */
.costs { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0 clamp(2rem, 6vw, 6.5rem); }
.costs__divider { background: linear-gradient(to bottom, rgba(154, 118, 80, 0), var(--koper) 18%, var(--koper) 82%, rgba(154, 118, 80, 0)); }
.costs__col .h3 { margin-bottom: 1.5rem; }
.costs__col p { max-width: 34em; }
@media (max-width: 799px) {
  .costs { grid-template-columns: 1fr; }
  .costs__divider { height: 1px; margin: 3rem 0; background: linear-gradient(to right, var(--koper), rgba(154, 118, 80, .1)); }
}
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.closing p { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + .9vw, 2.125rem); line-height: 1.2; color: var(--ink); }
.closing p { text-wrap: balance; }
@media (min-width: 1100px) { .closing p { white-space: nowrap; } }

/* --------------------------------------------------------------- contact page */
.page-head--short { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact-col--details { grid-column: 1 / 5; }
.contact-col--form { grid-column: 6 / 13; }
.contact-col > .h3 { margin-bottom: 1.5rem; }
.form__intro { margin: -.5rem 0 2.25rem; color: var(--muted); font-size: var(--fs-small); max-width: 34em; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 2.5rem); }
.details--contact > div { grid-template-columns: 6.5rem 1fr; }
@media (max-width: 899px) {
  .contact-col--details, .contact-col--form { grid-column: 1 / -1; }
  .contact-col--form { margin-top: 3rem; }
}
@media (max-width: 639px) { .form__row { grid-template-columns: 1fr; } }

/* social icons */
.social { display: flex; gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.social a:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivoor); }
.social--footer, .social--menu { margin-top: 1.25rem; }
.social--footer a, .social--menu a, .contact-band .social a { border-color: rgba(217, 198, 177, .35); color: var(--champagne); }
.social--footer a:hover, .social--menu a:hover, .contact-band .social a:hover { background: var(--champagne); border-color: var(--champagne); color: var(--espresso); }

.field { position: relative; margin-bottom: 1.75rem; }
.field label, .field legend { display: block; margin-bottom: .35rem; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  display: block; width: 100%; padding: .7rem 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; font-size: 1.0625rem; color: var(--ink); appearance: none; -webkit-appearance: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }
.field select { padding-right: 2rem; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23231C18' stroke-width='1.2'/%3E%3C/svg%3E") right .25rem center / 12px 8px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--koper); box-shadow: 0 1px 0 0 var(--koper); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-bottom-color: var(--error); }
.field__error { display: block; margin-top: .4rem; font-size: var(--fs-small); color: var(--error); }
.field--check { display: flex; gap: .85rem; align-items: flex-start; }
.field--check input { flex: none; width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; border: 1px solid var(--espresso); border-radius: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; display: grid; place-content: center; }
.field--check input::after { content: ""; width: .62rem; height: .34rem; border-left: 1.5px solid var(--ivoor); border-bottom: 1.5px solid var(--ivoor); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease-out); }
.field--check input:checked { background: var(--espresso); }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check input:focus-visible { outline: 2px solid var(--koper); outline-offset: 3px; }
.field--check label { margin: 0; font-weight: 400; color: var(--ink-soft); line-height: 1.55; }
.field--check label a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--koper); }
.field--check + .field__error { margin: -1.1rem 0 1.75rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__alert { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border-left: 1px solid var(--error); background: #f4e6e1; color: var(--ink); }
.form__success { padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--espresso); color: var(--champagne); }
.form__success-title { margin-bottom: .75rem; font-size: var(--fs-h3); color: var(--ivoor); }

/* --------------------------------------------------------------- news overview + article */
.filter { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.5rem; }
.filter a { position: relative; padding: .35rem 0; font-size: .9375rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.filter a:hover { color: var(--ink); }
.filter a[aria-current="page"] { color: var(--ink); }
.filter a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--koper); }
.insta-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1rem 2rem; margin-top: clamp(4rem, 8vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.insta-note p { margin: 0; max-width: 34em; }
.empty { max-width: 34rem; padding: clamp(2rem, 4vw, 3rem) 0; }
.empty .h3 { margin-bottom: 1rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.pagination span { color: var(--muted); }

.article-head { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.article-head .wrap > * { max-width: 52rem; }
.back-link { display: inline-block; margin-bottom: 2.5rem; font-size: var(--fs-small); font-weight: 500; color: var(--muted); transition: color .3s; }
.back-link:hover { color: var(--ink); }
.back-link::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; margin-right: .75rem; vertical-align: middle; background: var(--koper); transition: width .4s var(--ease-out); }
.back-link:hover::before { width: 2.25rem; }
.article-head .meta { margin-bottom: 1.25rem; }
.article-head__title { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.5rem); margin-bottom: 1.5rem; }
.article-media { margin-bottom: clamp(3rem, 6vw, 5rem); }
.article-media picture { overflow: hidden; }
.article-media img { width: 100%; max-height: 78vh; object-fit: cover; }
.article-body { padding-bottom: var(--section-y); }
.article-body .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.article-body .prose { grid-column: 3 / 11; }
.source { grid-column: 3 / 11; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.source__label { color: var(--muted); font-size: var(--fs-small); }
@media (max-width: 899px) { .article-body .prose, .source { grid-column: 1 / -1; } }
.preview-bar { position: sticky; top: 0; z-index: 60; padding: .75rem var(--pad-x); background: var(--koper); color: #fff; font-size: var(--fs-small); text-align: center; }
.preview-bar a { text-decoration: underline; }

/* --------------------------------------------------------------- 404 */
.notfound { min-height: 80svh; display: grid; align-items: center; padding-top: var(--header-h); }
.notfound__inner { display: flex; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.notfound .metal-i { height: clamp(160px, 30vh, 280px); flex: none; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--espresso-3); color: var(--muted-dark); font-size: var(--fs-small); line-height: 1.7; }
.site-footer__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding: clamp(4rem, 8vw, 6.5rem) var(--pad-x) clamp(3rem, 5vw, 4rem); }
.site-footer__brand { grid-column: 1 / 5; color: var(--ivoor); }
.site-footer__brand svg { display: block; width: clamp(190px, 17vw, 230px); height: auto; }
.site-footer__col:nth-child(2) { grid-column: 7 / 10; }
.site-footer__col:nth-child(3) { grid-column: 10 / 13; }
.site-footer__title { margin-bottom: 1rem; font-family: var(--sans); font-size: var(--fs-small); font-weight: 500; color: var(--champagne); letter-spacing: .02em; }
.site-footer address, .site-footer__contact { color: var(--muted-dark); }
.site-footer__contact { margin-top: 1rem; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--ivoor); }
.site-footer__links { display: flex; flex-direction: column; gap: .25rem; }
.site-footer__legal { max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding: 1.75rem var(--pad-x) max(2rem, env(safe-area-inset-bottom)); border-top: 1px solid rgba(217, 198, 177, .12); font-size: var(--fs-xs); }
.site-footer__legal p { max-width: 64rem; margin-bottom: .75rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
@media (max-width: 899px) {
  .site-footer__brand { grid-column: 1 / -1; margin-bottom: 1rem; }
  .site-footer__col:nth-child(2) { grid-column: 1 / 7; }
  .site-footer__col:nth-child(3) { grid-column: 7 / 13; }
}
@media (max-width: 479px) { .site-footer__col:nth-child(2), .site-footer__col:nth-child(3) { grid-column: 1 / -1; } }

/* --------------------------------------------------------------- floating contact buttons */
.float-contact { position: fixed; right: 0; top: 50%; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; transform: translateY(-50%); }
.float-contact__btn {
  display: flex; align-items: center; height: 46px; padding: 0 .9rem 0 1rem; border-radius: 999px 0 0 999px;
  background: var(--brons); color: var(--ivoor); box-shadow: 0 6px 20px rgba(35, 28, 24, .18);
  font-size: .875rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap; overflow: hidden;
  transition: background-color .35s var(--ease), padding .5s var(--ease-out);
}
.float-contact__btn svg { flex: none; }
.float-contact__label { display: inline-block; max-width: 0; opacity: 0; margin-left: 0; transition: max-width .5s var(--ease-out), opacity .3s var(--ease), margin .5s var(--ease-out); }
.float-contact__btn:hover, .float-contact__btn:focus-visible { background: #85653F; padding-right: 1.25rem; }
.float-contact__btn:hover .float-contact__label, .float-contact__btn:focus-visible .float-contact__label { max-width: 12rem; opacity: 1; margin-left: .6rem; }
.float-contact__btn:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
.menu-open .float-contact { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .float-contact { animation: float-in .8s var(--ease-out) 1.2s both; } }
@keyframes float-in { from { opacity: 0; transform: translate(100%, -50%); } }
@media (max-width: 899px) {
  .float-contact { top: auto; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: none; }
  .float-contact__btn { height: 44px; padding: 0 .8rem 0 .95rem; }
  @keyframes float-in { from { opacity: 0; transform: translateX(100%); } }
}

/* --------------------------------------------------------------- scroll reveals (enabled by site.js) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal]:not([data-reveal="image"]) { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
  /* clip the inner layer, not the observed element: a fully clipped target never reports as visible */
  .reveal-ready [data-reveal="image"] > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-in-out); transition-delay: var(--reveal-delay, 0s); }
  .reveal-ready [data-reveal="image"] img { transform: scale(1.12); transition: transform 2.2s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
  .reveal-ready [data-reveal="image"].is-in > * { clip-path: inset(0 0 0 0); }
  .reveal-ready [data-reveal="image"].is-in img { transform: none; }
}

/* --------------------------------------------------------------- page transitions */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .mobile-menu, .site-footer, .hero__media, .contact-band, .menu-toggle, .float-contact { display: none !important; }
  body { background: #fff; color: #000; }
}
