/* Kessel Architekten – erfunden. Schibsted Grotesk, Zeichenpapier, Tusche und ein Textmarker. */
:root {
  --paper: #ecede8;
  --sheet: #f7f7f3;
  --ink: #161616;
  --graphite: #6a6a66;
  --marker: #f0c419;
  --line: rgba(22, 22, 22, .2);
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --font: "Schibsted Grotesk Variable", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.05rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1; letter-spacing: -.035em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px clamp(16px, 4vw, 48px); background: var(--paper); }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.logo span { font-weight: 400; color: var(--graphite); }
.top-nav { display: flex; gap: 24px; }
.top-nav a { text-decoration: none; background: linear-gradient(var(--marker), var(--marker)) 0 85% / 0 40% no-repeat; transition: background-size .4s var(--out); }
.top-nav a:hover { background-size: 100% 40%; }

/* Hero: Straßenansicht zeichnet sich von links nach rechts */
.hero { padding: clamp(32px, 6vw, 72px) clamp(16px, 4vw, 48px) 0; }
.hero-title { font-size: clamp(2.8rem, 8.6vw, 8.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; }
.hero-title span { display: inline-block; opacity: 0; transform: translateY(30px); animation: up 1s var(--out) forwards; }
.hero-title span + span { animation-delay: .15s; color: var(--graphite); }
@keyframes up { to { opacity: 1; transform: none; } }
.hero-sub { max-width: 30rem; margin-top: 24px; font-size: 1.15rem; opacity: 0; animation: up .9s var(--out) .4s forwards; }
.street { display: block; width: 100%; height: auto; margin-top: clamp(24px, 4vw, 48px); overflow: visible; }
.street path, .drawing-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.street .ground { stroke-width: 2.4; }
.street .thin, .sheet .thin { stroke-width: .7; stroke: var(--graphite); }
.street .is-drawn, .sheet .is-drawn { animation: draw var(--dur, 1.2s) var(--ease) var(--delay, 0s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.street .fill-marker { fill: var(--marker); stroke: none; opacity: 0; animation: fade .6s ease var(--delay, 2s) forwards; }
@keyframes fade { to { opacity: 1; } }

/* Projektindex mit Zeichenblatt */
.projects { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); background: var(--sheet); border-top: 2px solid var(--ink); }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.projects-head h2, .contact h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font: inherit; cursor: pointer; transition: background .25s, color .25s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.projects-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: none; }
.index li { border-bottom: 1px solid var(--line); transition: opacity .3s ease; }
.index li.is-hidden { display: none; }
.index li.is-dim { opacity: .25; }
.index button { position: relative; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; width: 100%; padding: 16px 4px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); isolation: isolate; }
.index button::before { content: ""; position: absolute; inset: 6px -6px; z-index: -1; background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); }
.index button:hover::before { transform: scaleX(.04); }
.index button[aria-current="true"]::before { transform: scaleX(1); }
.index .i-year { color: var(--graphite); font-variant-numeric: tabular-nums; }
.index button[aria-current="true"] .i-year { color: var(--ink); }
.index .i-name { font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; }
.index .i-place { color: var(--graphite); font-size: .95rem; }
.index button[aria-current="true"] .i-place { color: var(--ink); }
.sheet { position: sticky; top: 90px; margin: 0; }
.sheet-frame { position: relative; background: #fff; border: 1.5px solid var(--ink); aspect-ratio: 4 / 3;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; }
.sheet-frame::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .72); pointer-events: none; }
.sheet svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.sheet .hatch { fill: url(#hatch); stroke: none; opacity: 0; animation: fade .5s ease var(--delay, 1s) forwards; }
.sheet-scale { position: absolute; z-index: 1; right: 10px; bottom: 8px; font-size: .8rem; color: var(--graphite); }
.sheet figcaption { padding-top: 20px; }
.sheet figcaption > * { animation: cap .6s var(--out) both; }
.sheet figcaption > p { animation-delay: .06s; } .sheet figcaption > dl { animation-delay: .12s; }
@keyframes cap { from { opacity: 0; transform: translateY(8px); } }
.sheet h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 10px; }
.sheet figcaption p { color: var(--graphite); max-width: 36rem; }
.sheet-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 18px 0 0; }
.sheet-facts dt { font-size: .85rem; color: var(--graphite); }
.sheet-facts dd { margin: 0; font-weight: 650; }

/* Büro */
.office { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); background: var(--ink); color: var(--paper); }
.office-quote { margin: 0; }
.office-quote p { font-size: clamp(1.6rem, 3.2vw, 2.7rem); line-height: 1.18; letter-spacing: -.025em; font-weight: 500; }
.office-quote footer { margin-top: 22px; color: #a8a8a2; }
.office-facts { margin: 0; display: grid; gap: 0; align-content: start; }
.office-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(236, 237, 232, .2); }
.office-facts div:first-child { border-top: 1px solid rgba(236, 237, 232, .2); }
.office-facts div:nth-child(2) { transition-delay: .1s; } .office-facts div:nth-child(3) { transition-delay: .2s; }
.office-facts dt { color: #c8c8c2; }
.office-facts dd { margin: 0; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }

/* Kontakt */
.contact { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }
.contact h2 { max-width: 16ch; }
.contact-cols { display: grid; grid-template-columns: minmax(0, 30rem) auto; justify-content: space-between; gap: 28px 48px; margin-top: 32px; font-size: 1.15rem; }
.mail { font-weight: 700; text-decoration: none; background: linear-gradient(var(--marker), var(--marker)) 0 88% / 100% 35% no-repeat; transition: background-size .35s var(--out); }
.mail:hover { background-size: 100% 90%; }
.foot { padding: 24px clamp(16px, 4vw, 48px) 84px; border-top: 1.5px solid var(--ink); color: var(--graphite); font-size: .92rem; }

[data-reveal] { opacity: 0; clip-path: inset(0 0 60% 0); transform: translateY(10px); transition: opacity .6s ease, clip-path 1s var(--out), transform 1s var(--out); }
[data-reveal].is-in { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; }

@media (max-width: 900px) {
  .projects-body, .office, .contact-cols { grid-template-columns: 1fr; }
  .sheet { position: relative; top: 0; grid-row: 1; }
}
@media (max-width: 520px) {
  .top-nav { gap: 14px; font-size: .95rem; }
  .logo span { display: none; }
  .index button { grid-template-columns: 2.8rem minmax(0, 1fr); }
  .index .i-place { grid-column: 2; }
}
