@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Moods: the whole look of a page or section is these variables. Add a mood = add one block. */
:root, .mood-light {
  --bg: #FFFFFF; --ink: #111111; --muted: #5C5C5C; --line: #EDEDED; --soft: #F6F5F3;
  --ph1: #EEEBE6; --ph2: #E3DED6; --ph3: #D6D0C6; --ph-text: #5A544B;
  --header-bg: rgba(255, 255, 255, 0.94);
}
[data-mood="dark"], .mood-dark {
  --bg: #0D0D0D; --ink: #F2F2F0; --muted: #A0A0A0; --line: #1F1F1F; --soft: #141414;
  --ph1: #1C1C1C; --ph2: #242424; --ph3: #1A1A1A; --ph-text: #9A9A9A;
  --header-bg: rgba(13, 13, 13, 0.94);
}
:root {
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
.mood-dark, .mood-light { color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; }
.pad { padding: var(--section) var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-style: italic; }
.eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.h-xl { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(64px, 11vw, 180px); line-height: 0.9; }
.h-l { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 44ch; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.arrow svg { transition: transform 0.3s; }
a:hover .arrow svg, .arrow:hover svg { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border: 0; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 18px 36px; min-height: 52px; text-decoration: none; cursor: pointer; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--bg); padding: 12px; }

/* Photo placeholder until her images are in */
.ph { position: relative; background: var(--ph2); }
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ph-text); }
.ph-1 { background: var(--ph1); } .ph-3 { background: var(--ph3); }

/* Header */
.logo { display: flex; flex-direction: column; line-height: 1; padding: 6px 0; text-decoration: none; }
.logo b { font-size: 18px; font-weight: 600; letter-spacing: 0.28em; }
.logo small { font-size: 9px; letter-spacing: 0.42em; margin-top: 6px; }
.header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding: 14px clamp(20px, 4vw, 48px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; padding: 14px 0; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { color: var(--bg); background: var(--ink); padding: 13px 20px; }
.header--overlay { position: absolute; left: 0; right: 0; background: none; border: 0; mix-blend-mode: difference; color: #FFFFFF; }
.header--overlay .nav a { color: #FFFFFF; }
.header--overlay .nav .nav-cta { background: none; color: #FFFFFF; border: 1px solid #FFFFFF; }

/* Entry split */
.split { position: relative; display: flex; flex-wrap: wrap; min-height: max(640px, 100svh); overflow: hidden; }
.split__half { flex: 1 1 340px; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 128px clamp(20px, 4vw, 56px) 56px; text-decoration: none; overflow: hidden; transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.split__half--p { align-items: flex-end; text-align: right; }
.split__half img { width: min(58%, 360px); aspect-ratio: 4 / 5; object-fit: cover; }
.split__half--w img { align-self: flex-end; object-position: 54% center; }
.split__half--p img { align-self: flex-start; object-position: 57% center; }
.split__text { display: flex; flex-direction: column; gap: 14px; }
.split__half--p .split__text { align-items: flex-end; }
.split__title { font-family: var(--serif); font-style: italic; font-size: clamp(52px, 7vw, 112px); line-height: 0.95; }
@media (hover: hover) and (min-width: 700px) {
  .split:has(.split__half--w:hover) .split__half--w, .split:has(.split__half--p:hover) .split__half--p { flex-grow: 1.35; }
  .split:has(.split__half--w:hover) .split__half--p, .split:has(.split__half--p:hover) .split__half--w { flex-grow: 0.85; }
}

/* About */
.about { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; }
.about__photo { flex: 1 1 300px; aspect-ratio: 4 / 5; }
.about__text { flex: 1.3 1 420px; display: flex; flex-direction: column; gap: 24px; }
.ways { margin-top: 24px; border-top: 1px solid var(--line); }
.ways li { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ways b { flex: 0 0 180px; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.ways span { flex: 1 1 280px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.timeline-wrap { position: relative; }
.timeline { display: flex; flex-wrap: wrap; gap: 40px 32px; padding-top: 1px; }
.timeline__line { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left center; }
.timeline li { flex: 1 1 220px; position: relative; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
@media (max-width: 760px) { .timeline__line { display: none; } .timeline li { border-top: 1px solid var(--ink); } }
.timeline b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.15; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: clamp(48px, 7vw, 112px); }
.contact__info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 24px; }
.links { margin-top: 16px; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; align-items: center; gap: 16px; min-height: 60px; text-decoration: none; }
.links a span:first-of-type { flex: 1; }
.form { flex: 1.4 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; align-content: start; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input:not([type="checkbox"]), .form select, .form textarea { background: transparent; border: 0; border-bottom: 1px solid #3A3A3A; color: var(--ink); font: inherit; font-size: 17px; letter-spacing: 0; text-transform: none; padding: 12px 0; min-height: 44px; border-radius: 0; color-scheme: dark; }
.form select { background: var(--bg); }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .consent { flex-direction: row; gap: 14px; align-items: flex-start; font-size: 14px; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.form .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form .hp { position: absolute; left: -9999px; }
.form__status { grid-column: 1 / -1; min-height: 1.6em; font-size: 15px; }

/* Hero (Hochzeiten) */
.hero { position: relative; height: min(820px, 92svh); min-height: 520px; overflow: hidden; background: #2A2723; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent); }
.hero__text { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 5vw, 72px); color: #FFFFFF; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__text .eyebrow { color: #FFFFFF; }
.hero__text p { max-width: 32ch; font-size: 18px; line-height: 1.6; }
.chars span { display: inline-block; }

.chapters-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.chapters-index li { display: flex; flex-direction: column; gap: 14px; }
.chapters-index .ph { aspect-ratio: 3 / 4; }
.chapters-index b { font-family: var(--serif); font-weight: 400; font-size: 30px; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.card__media { overflow: hidden; }
.card__media > * { width: 100%; height: 100%; object-fit: cover; }
.card__meta { display: flex; flex-direction: column; gap: 8px; }
.card b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.card--feature .card__media { aspect-ratio: 16 / 8; }
.card--feature b { font-size: 36px; }
.card--feature .card__meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.stories { display: flex; flex-direction: column; gap: 48px; }
.stories__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 32px; }
.stories__grid .card__media { aspect-ratio: 4 / 5; }
@media (min-width: 700px) { .stories__grid .card:nth-child(even) { margin-top: 120px; } }

.quote { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.25; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 32px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.steps span:last-child { font-size: 16px; line-height: 1.65; color: var(--muted); }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }

/* Portfolio areas: native horizontal scroll; on wide screens JS pins it and scrolls it with the page */
.areas { --track-pad: max(var(--gutter), calc((100vw - 1240px) / 2)); padding: clamp(96px, 11vw, 170px) 0 clamp(80px, 9vw, 140px); }
.areas__track { display: flex; gap: 24px; overflow-x: auto; padding: 0 0 8px var(--track-pad); margin-top: 48px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--track-pad); }
.areas__track::after { content: ""; flex: 0 0 calc(var(--track-pad) - 24px); } /* end margin; padding-right is lost in overflowing flex rows */
.areas__track > li { flex: 0 0 min(78%, 400px); scroll-snap-align: start; }
.areas__track .card__media { aspect-ratio: 3 / 4; }
/* Pinned: the whole section fits one screen, cards scale with the screen height so titles stay visible */
.areas.is-pinned { --card-h: clamp(220px, calc(100svh - 400px), 560px); min-height: 100svh; padding: 110px 0 40px; display: flex; flex-direction: column; justify-content: center; }
.areas.is-pinned > .wrap { width: calc(100% - 2 * var(--gutter)); }
.areas.is-pinned .areas__track { overflow: visible; scroll-snap-type: none; width: max-content; }
.areas.is-pinned .areas__track > li { flex-basis: calc(var(--card-h) * 0.75); }
.areas.is-pinned .areas__track .card__media { aspect-ratio: auto; height: var(--card-h); }
.works { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }

/* Gallery */
.chapter { padding: clamp(56px, 7vw, 112px) var(--gutter); border-top: 1px solid var(--line); }
.chapter__inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 80px); }
.chapter__head { flex: 0 1 260px; position: sticky; top: 96px; align-self: flex-start; display: flex; flex-direction: column; gap: 10px; }
.chapter__head h2 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.chapter__grid { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.chapter__grid > * { overflow: hidden; }
.chapter__grid img { width: 100%; height: 100%; object-fit: cover; }
.chapter__grid button { all: unset; cursor: zoom-in; display: block; }
.chapter__grid button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 760px) { .chapter__head { position: static; } }

.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 8, 0.96); color: #F2F2F0; }
.lightbox::backdrop { background: transparent; }
.lightbox img { position: absolute; inset: 56px 72px; width: calc(100% - 144px); height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: inherit; cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox img { inset: 56px 8px; width: calc(100% - 16px); } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 8px; transform: none; } }

/* Footer & legal */
.footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); font-size: 13px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.legal { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) { .split__half, .arrow svg { transition: none; } }

/* Phones: keep the header to one compact row */
@media (max-width: 600px) {
  .nav { gap: 0 16px; font-size: 12px; letter-spacing: 0.08em; }
  .nav a[href*="ueber-mich"], .header--overlay .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 10px 14px; }
  .logo b { font-size: 16px; }
}
