@font-face {
  font-family: Jost;
  src: url("public/fonts/jost-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --porzellan: #f7eff7;
  --zimt: #9f7645;
  --text: #78552e;
  --leinen: #e3d9ce;
  --line: #cbbba9;
  --edge: 3.35vw;
  --inset: 5%;
  --display: "Niveau Grotesk", Jost, "Avenir Next", sans-serif;
  --body: Suiza, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  background: var(--porzellan);
  color: var(--zimt);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 5px; }
:target, [id] { scroll-margin-block-start: 2rem; }
::selection { background: #e0bedc; color: #201c19; }

.skip-link {
  position: absolute;
  z-index: 3;
  inset: .75rem auto auto .75rem;
  padding: .6rem 1rem;
  background: var(--porzellan);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Schrift ---------- */
h1, h2, .name {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 5.35vw, 7rem); margin-block: .1em .48em; }
h2 { font-size: clamp(2.4rem, 4.6vw, 6rem); text-wrap: balance; }
h2.label { font-size: clamp(1.15rem, 1.5vw, 1.6rem); line-height: 1.2; }
.eyebrow, .description, .copy, .text-link {
  font-size: clamp(.95rem, 1.29vw, 1.375rem);
  line-height: 1.4;
}
.eyebrow + h2 { margin-top: .16em; }
.copy { max-width: 27em; }
h2 + .copy, h2 + .lead { margin-top: 1.4em; }
.copy + .copy, .lead + .copy { margin-top: 1em; }
.lead { font-size: clamp(1.3rem, 2vw, 2.1rem); line-height: 1.26; max-width: 18em; }
figcaption { font-size: .9375rem; line-height: 1.5; margin-top: .7rem; }

.facts { border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
.facts div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Einstieg: Aufbau der Laptop-Ansicht ---------- */
.cover {
  min-height: 100vh;
  min-height: max(100svh, 30rem);
  padding: 8.65vh var(--edge) 7.55vh;
  padding-block: 8.65svh 7.55svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60.9%;
  grid-template-rows: auto 1fr;
  grid-template-areas: "brand image" "story image";
  column-gap: 4vw;
  row-gap: 3rem;
}
/* Polster vergrössert die Tippfläche des Logos, der negative Rand hält es an Ort */
.wordmark { grid-area: brand; align-self: start; width: 17.2vw; max-width: 24rem; padding-block: .7rem; margin-block: -.7rem; }
.cover-copy { grid-area: story; align-self: end; }
.cover-image { grid-area: image; position: relative; overflow: hidden; }
.cover-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center;
}
.description { max-width: 28.8vw; }
.description p + p { margin-top: 1.12em; }
.text-link { display: inline-block; margin-top: 1.1em; padding-block: .7rem; }

/* ---------- Menü: schwebt unten in der Mitte, Pillenform wie die Buttons der CI ---------- */
.menu {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: .15rem;
  padding: .35rem;
  max-width: calc(100vw - 1.5rem);
  border-radius: 999px;
  background: rgba(247, 239, 247, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 .6rem 1.8rem rgba(120, 85, 46, .16);
  white-space: nowrap;
}
.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding-inline: 1.1rem;
  border-radius: 999px;
  color: var(--text);
  font-size: .95rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.menu a:hover { background: rgba(159, 118, 69, .14); }
.menu a[aria-current="true"] { background: var(--leinen); }
.menu .menu-contact { margin-left: .25rem; background: var(--text); color: var(--porzellan); }
.menu .menu-contact:hover, .menu .menu-contact[aria-current="true"] { background: #5f4222; }
.menu :focus-visible { outline-offset: 2px; }

/* ---------- Inhalt ---------- */
.folio { margin-inline: var(--edge); }
.folio > section { padding: clamp(4.5rem, 8vw, 10rem) var(--inset); }
.folio > section + section { border-top: 1px solid var(--line); }

.statement, .references {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 2rem 4vw;
  align-items: baseline;
}
.statement p {
  font-size: clamp(1.5rem, 2.7vw, 2.9rem);
  line-height: 1.22;
  max-width: 23em;
  text-wrap: pretty;
}

.materials {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2.2vw;
  row-gap: clamp(2.5rem, 6vw, 6rem);
}
.materials-heading { grid-column: 1 / span 5; grid-row: 1; }
.material-large { grid-column: 7 / -1; grid-row: 1 / span 2; }
.material-small { grid-column: 1 / span 4; grid-row: 2; align-self: end; }
.material-third { grid-column: 3 / span 4; grid-row: 3; }
.materials .facts { grid-column: 8 / -1; grid-row: 3; align-self: end; }

.signature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2.2vw;
  row-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: end;
}
.signature-heading { grid-column: 1 / span 6; }
.signature > .copy { grid-column: 8 / -1; }
.signature-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2vw;
  align-items: start;
}
.signature-grid li:nth-child(even) { margin-top: clamp(2rem, 5vw, 5rem); }
.signature-grid img { aspect-ratio: 2 / 3; object-fit: cover; }
.signature-grid figcaption {
  margin-top: .9rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.35vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: 3rem 9%;
  align-items: end;
}
/* Querformat-Foto: Hochformat-Ausschnitt, auf die Person gerückt */
.studio figure img { aspect-ratio: 2 / 3; object-fit: cover; object-position: 93% center; }
.studio h2 { font-size: clamp(2.1rem, 3.7vw, 4.8rem); }
.studio .facts { margin-top: 2.6rem; max-width: 34rem; }

.references ul { border-top: 1px solid var(--line); }
.references li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.35fr);
  gap: .3rem 2rem;
  align-items: baseline;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.4;
}
.name { font-size: clamp(1.25rem, 1.7vw, 1.75rem); line-height: 1.1; }

/* ---------- Kontakt ---------- */
.contact {
  background: #ea795b; /* Terrakotta */
  color: #e0bedc;      /* Flieder, wie das Logo auf Terrakotta in der CI */
  padding: clamp(4rem, 8vw, 9rem) var(--edge) 5.75rem;
}
.contact :focus-visible { outline-color: #201c19; }
/* geteilte Wortmarke in Flieder: «studio» links, «mo·re» rechts, wie auf Visitenkarte und Tasche */
.contact-mark {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(4rem, 9vw, 9rem);
}
.contact-mark img:first-child { width: 30%; }
.contact-mark img:last-child { width: 28.2%; }
.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem 6vw;
  align-items: end;
}
.contact h2 { font-size: clamp(2.1rem, 4.1vw, 5.2rem); line-height: 1.04; max-width: 11.5em; }
/* Flieder auf Terrakotta ist kontrastarm: kleine Texte deshalb grösser gesetzt */
.contact address { font-style: normal; font-size: clamp(1.2rem, 1.55vw, 1.6rem); font-weight: 400; line-height: 1.4; }
.contact address > p:first-child { max-width: 22em; }
.contact address a { display: table; padding-block: .55rem; }
.contact .mail { margin-top: 1.4rem; font-size: clamp(1.5rem, 2.5vw, 2.6rem); font-weight: 400; line-height: 1.2; }
.contact address .name {
  margin-top: 1.4rem;
  font-family: var(--body);
  font-size: inherit;
  line-height: inherit;
  letter-spacing: 0;
  text-transform: none;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 2.5rem;
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
  font-size: 1.125rem;
  font-weight: 400;
}
.colophon span { margin-right: auto; }
.colophon a { padding-block: .7rem; }

/* ---------- Niedrige Fenster ---------- */
@media (min-width: 901px) and (max-height: 480px) {
  .cover { padding-block: 1.25rem; row-gap: 1rem; }
  .wordmark { width: 15vw; }
  .cover .eyebrow, .description, .cover .text-link { font-size: .9rem; }
  .description { max-width: 32vw; }
  h1 { font-size: clamp(2.35rem, 4.3vw, 3.5rem); }
  .text-link { margin-top: .8em; }
}

/* ---------- Schmal ---------- */
/* ---------- Tablet quer und kleine Laptops ---------- */
@media (max-width: 1100px) {
  .references { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 900px) {
  :root { --edge: clamp(1.25rem, 5.5vw, 2.5rem); --inset: 0; }
  .cover {
    min-height: auto;
    padding-block: clamp(1.5rem, 5vw, 2.5rem) 2.5rem;
    grid-template: "brand" auto "image" auto "story" auto / minmax(0, 1fr);
    gap: clamp(1.6rem, 6vw, 2.7rem);
  }
  .wordmark { width: clamp(9.75rem, 36vw, 13.5rem); }
  .cover-image { aspect-ratio: 1.14; }
  .eyebrow, .description, .copy, .text-link { font-size: 1rem; line-height: 1.46; }
  h1 { font-size: clamp(3.3rem, 11.8vw, 5.5rem); margin-block: .12em .32em; }
  h2 { font-size: clamp(2.3rem, 7vw, 4rem); }
  .description { max-width: 36rem; }
  .description p + p { margin-top: .9em; }
  .menu a { min-height: 2.75rem; padding-inline: .7rem; font-size: .875rem; }
  .folio > section { padding-block: 3.75rem; }
  .statement, .references, .studio, .contact-main { grid-template-columns: minmax(0, 1fr); }
  .statement { gap: 1rem; }
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 1.8rem; }
  .materials-heading { grid-column: 1 / -1; grid-row: 1; }
  .material-small { grid-column: 1; grid-row: 2; align-self: start; margin-top: 2.7rem; }
  .material-large { grid-column: 2; grid-row: 2; }
  .material-third { grid-column: 1 / -1; grid-row: 3; padding-right: 30%; }
  .materials .facts { grid-column: 1 / -1; grid-row: 4; }
  .signature { row-gap: 1.8rem; }
  .signature-heading, .signature > .copy { grid-column: 1 / -1; }
  .signature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; }
  .signature-grid li:nth-child(even) { margin-top: 2.2rem; }
  .studio figure { max-width: min(78%, 26rem); }
  .references { gap: 1.25rem; }
  .references li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .facts div { grid-template-columns: 7rem minmax(0, 1fr); }
  .contact-main { gap: 2rem; }
  .contact-mark img:first-child { width: 42%; }
  .contact-mark img:last-child { width: 39.5%; }
}

/* ---------- Ein einziger Auftritt beim Laden ---------- */
/* ---------- Sehr schmale Handys ---------- */
@media (max-width: 380px) {
  .menu { gap: 0; padding: .25rem; }
  .menu a { padding-inline: .5rem; font-size: .8125rem; }
  .menu .menu-contact { margin-left: .15rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .cover-image img { animation: settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .cover-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .cover-copy > :nth-child(1) { animation-delay: .25s; }
  .cover-copy > :nth-child(2) { animation-delay: .33s; }
  .cover-copy > :nth-child(3) { animation-delay: .41s; }
  .cover-copy > :nth-child(4) { animation-delay: .49s; }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } }
  @keyframes rise { from { opacity: 0; transform: translateY(.8rem); } }
}
