@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 600; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
}
/* Ann-Kathrin Simon – Schwarz wie der Modellsockel, Kreideweiß wie Karton, Ahorn nur als Spur */
:root {
  --black: #000000;
  --chalk: #ecebe6;
  --stone: #95928b;
  --line: #2b2a27;
  --maple: #cfae80;
  --wide: 'Archivo', system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--black);
  color: var(--chalk);
  font-family: var(--wide);
  font-variation-settings: 'wdth' 100;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--maple); }
:focus-visible { outline: 1px solid var(--maple); outline-offset: 4px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; left: 0; top: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

h1, h2 { font-weight: 300; margin: 0; }
h2 {
  font-variation-settings: 'wdth' 125;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.form input, .form textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  color: var(--chalk);
  font: inherit;
  padding: 0.6rem 0;
  border-radius: 0;
}
.form input:-webkit-autofill {
  -webkit-text-fill-color: var(--chalk);
  -webkit-box-shadow: 0 0 0 100px var(--black) inset;
  caret-color: var(--chalk);
  transition: background-color 9999s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--chalk); }
.form button {
  justify-self: start;
  background: var(--chalk); color: var(--black);
  border: 0; padding: 0.8rem 1.6rem;
  font-weight: 500; cursor: pointer;
}
.form button:hover { background: var(--maple); }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.25rem var(--pad);
  transition: background 0.4s;
}
.nav.is-solid { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); }
.nav__name { text-decoration: none; font-variation-settings: 'wdth' 125; font-weight: 400; opacity: 0; transition: opacity 0.4s; }
.nav.is-solid .nav__name { opacity: 1; }
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav nav a { text-decoration: none; font-size: 0.95rem; }

/* Bühne: Berge im Gegenlicht, darüber der Sonnenaufgang als WebGL-Film (Sonne, Lichtstrahlen, ziehender Nebel) */
.hero { position: relative; height: 100svh; min-height: 30rem; overflow: hidden; background: var(--black); }
.hero__layer { position: absolute; inset: -6% -3%; will-change: transform; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%;
  animation: heroIn 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero__sky.is-live { opacity: 1; }
.hero--sky .hero__photo img { visibility: hidden; }
/* Offener Kreis um die Sonne: vier Begriffe, dazwischen Viertelbögen. Zeichnet sich ein, sobald die Sonne steht */
.hero__ring { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; visibility: hidden; }
.hero__ring.is-placed { visibility: visible; }
.hero__ring text {
  fill: #000; font-family: var(--wide); font-variation-settings: 'wdth' 125; font-weight: 500;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: middle; dominant-baseline: central;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__ring path.arc { fill: none; stroke: #000; stroke-width: 1; stroke-linecap: round; transition: stroke-dashoffset 2.2s cubic-bezier(.6,0,.2,1); }
.hero__ring.is-drawn text { opacity: 1; }
.hero__ring.is-drawn path.arc { stroke-dashoffset: 0 !important; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 82%, #000 100%); }
.hero__title {
  position: absolute; left: 0; right: 0; bottom: 13vh; display: grid; justify-items: center; text-align: center;
  padding: 0 var(--pad); pointer-events: none; will-change: transform, opacity;
}
.hero h1 {
  font-variation-settings: 'wdth' 125; font-weight: 500;
  font-size: clamp(2.4rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
  animation: titleIn 1.6s 0.3s cubic-bezier(.2,.7,.2,1) both;
}
.hero__title p { margin: 1.1rem 0 0; color: #d9d6cf; font-size: clamp(1rem, 1.5vw, 1.25rem); animation: titleIn 1.6s 0.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes titleIn { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }
.hero__down { position: absolute; right: var(--pad); bottom: clamp(1.5rem, 5vh, 3rem); font-size: 0.85rem; color: #bdbab3; text-decoration: none; }
.hero__down::after { content: ''; display: block; width: 1px; height: 2.5rem; margin: 0.6rem auto 0; background: currentColor; }

section.about, section.projects, section.contact { padding: clamp(5rem, 12vw, 9rem) var(--pad); }

/* Profil */
.about {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  max-width: 78rem; margin: 0 auto;
}
.about__photo { margin: 0; aspect-ratio: 887 / 1000; overflow: hidden; background: #0d0d0d; }
.about__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.9s ease;
}
.about__photo:hover img, .about__photo:focus-within img, .about__photo.is-color img { filter: grayscale(0) contrast(1); }
.about__text p { margin: 0 0 1.2em; max-width: 36em; }

/* Projekte: Raster wie ein Profil */
.projects { max-width: 78rem; margin: 0 auto; }
.projects h2 { margin-bottom: 2.5rem; }
.projects h2 { text-align: center; }
.cards {
  list-style: none; margin: 0 auto; padding: 2rem 0 4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem);
  max-width: 64rem; align-items: start;
}
.cards li { will-change: transform; }
.card { display: grid; gap: 0.35rem; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; background: #0d0d0d; }
/* Logo der Masterarbeit: Giebel über der Bergkante, weiße Linie wie im Portfolio */
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 0.6s; }
.card:hover .card__media img, .card:hover .card__media video, .card:focus-visible .card__media img { transform: scale(1.05); filter: brightness(1); }
.card__title { margin-top: 1rem; font-variation-settings: 'wdth' 125; font-size: 1.1rem; }
.card__meta { color: var(--stone); font-size: 0.85rem; }

/* Materialfläche: heller Stein neben geflämmtem Holz im Fensterlicht, der Satz liegt darauf.
   Eigenes Rendering aus CC0-Texturen (Poly Haven), Skript: ../render-materialflaeche.py */
.materials { position: relative; height: clamp(26rem, 85vh, 54rem); overflow: hidden; }
.materials__img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; will-change: transform; }
/* Stein oben, Eiche unten; der Satz klein und mittig knapp unter der Kante auf dem Holz */
.materials h2 {
  position: absolute; left: 0; right: 0; top: calc(50% + 1.6rem); margin: 0; padding: 0 var(--pad);
  color: var(--chalk); text-align: center; font-size: clamp(0.95rem, 1.3vw, 1.2rem); font-weight: 400;
  line-height: 1.3; letter-spacing: 0.04em; text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}

/* Kontakt */
.contact {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-width: 78rem; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.contact__intro p { color: var(--stone); max-width: 26em; }
.contact__intro h2 { margin-bottom: 1.5rem; }
.contact__intro a { color: var(--chalk); }
.form { position: relative; display: grid; gap: 1.6rem; }
.field label { display: block; font-size: 0.85rem; color: var(--stone); }
.form textarea { resize: vertical; min-height: 8rem; }
.form button:disabled { opacity: 0.5; cursor: wait; }
.form__status { margin: 0; min-height: 1.6em; font-size: 0.95rem; }
.form__status.is-error { color: var(--maple); }

.footer {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2rem var(--pad) 2.5rem; color: var(--stone); font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; }
.footer__links { display: flex; gap: 1.75rem; }
.footer__link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--stone); text-decoration: underline; text-underline-offset: 0.25em; }
.footer__link:hover { color: var(--maple); }

/* Projektansicht */
.project {
  width: min(78rem, 100vw); max-width: 100vw; max-height: 100svh; height: 100svh;
  margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 0; background: var(--black); color: var(--chalk);
  overflow-y: auto;
}
.project::backdrop { background: #000; }
.project__head { display: flex; justify-content: space-between; align-items: start; gap: 2rem; position: sticky; top: calc(-1 * clamp(1.25rem, 3vw, 2.5rem)); padding: 1rem 0; background: var(--black); z-index: 1; }
.project__meta { margin: 0.4rem 0 0; color: var(--stone); }
.project__close { background: none; border: 1px solid var(--line); padding: 0.5rem 1rem; cursor: pointer; }
.project__close:hover { border-color: var(--chalk); }
.project__text { max-width: 40em; margin: 1rem 0 2.5rem; }
.project__logo { margin: 1.5rem 0 0.5rem; max-width: 34rem; }
.project__logo svg { display: block; width: 100%; height: auto; overflow: visible; color: var(--chalk); }
.project__logo text { fill: var(--chalk); text-anchor: end; font-family: var(--wide); }
.project__logo .t1 { font-size: 9px; font-weight: 400; font-stretch: 75%; text-anchor: start; }
.project__logo .t2 { font-size: 6.4px; fill: #bdbab3; }
/* Medien wie die Portfolio-Seiten: Zeilen mit Spalten, Spalten auch übereinander */
.project__media { display: grid; gap: 4px; }
.project__media .row, .project__media .stack { display: grid; gap: 4px; align-items: start; }
.project__media figure { position: relative; margin: 0; }
.project__media img, .project__media video { width: 100%; height: auto; background: #0d0d0d; }
.project__media figcaption { padding: 0.5rem 0 1.25rem; color: var(--stone); font-size: 0.85rem; }
.project__media .tag { position: absolute; left: clamp(0.6rem, 2vw, 1.2rem); top: clamp(0.6rem, 2vw, 1.2rem); padding: 0.35rem 0.7rem; background: rgba(0, 0, 0, 0.55); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.4; }
.imprint { height: auto; max-width: 36rem; }
.imprint__body p { margin: 0 0 1.6em; color: var(--stone); line-height: 1.6; }
.imprint__body p:first-of-type, .imprint__body h3 + p a { color: var(--chalk); }
.imprint__body h3 { margin: 0 0 0.5em; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--maple); }
.imprint__body { overflow-y: auto; max-height: 70vh; }

@media (max-width: 760px) {
  .about, .contact { grid-template-columns: 1fr; }
  .about__photo { max-width: 22rem; }
  .cards { grid-template-columns: 1fr; max-width: 24rem; gap: 3.5rem; }
  .cards li:nth-child(n) { margin-top: 0; }
  .project__media .row { grid-template-columns: 1fr !important; }
  .project__logo .t2 { display: none; }
  .nav { padding-top: 1rem; }
  .nav__name { display: none; }
  .nav { justify-content: flex-end; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__title { bottom: 9vh; }
  .hero h1 { font-size: 15vh; }
  .hero__title p { display: none; }
  .hero__down { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .hero__sky { display: none; }
}
