@import url("../fonts/fonts-local.css");

/* ========================================================================
   TOKENS
   ======================================================================== */
:root {
  --bg: #f4f2ee;
  --ink: #111110;
  --muted: #6b6a66;
  --line: rgba(17, 17, 16, 0.1);
  --dark: #0e0e0d;
  --accent: #a0643c;

  --ink-on-dark: #f4f2ee;
  --muted-on-dark: rgba(244, 242, 238, 0.55);
  --line-on-dark: rgba(244, 242, 238, 0.14);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1920px;
  --section-pad: clamp(88px, 14vw, 176px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ========================================================================
   RESET / BASE
   ======================================================================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.no-scroll, body.no-scroll { overflow: hidden; height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
/* <picture> is inline by default and won't size to its container on its own —
   every image on this site is wrapped in <picture>, so this single rule is
   what makes width/height/object-fit rules on the inner <img> actually work. */
picture { display: block; width: 100%; height: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(12px, 2vw, 28px);
}

section { padding-block: var(--section-pad); }
section.tight { padding-block: clamp(48px, 6vw, 88px); }
.on-dark { background: var(--dark); color: var(--ink-on-dark); }

/* ========================================================================
   TYPOGRAPHY
   ======================================================================== */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  font-optical-sizing: auto;
}

.h-hero { font-size: clamp(3.5rem, 11vw, 11rem); line-height: 0.92; }
.h-xl { font-size: clamp(2.6rem, 6.4vw, 6.5rem); line-height: 0.98; }
.h-lg { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; }
.h-md { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.15; font-weight: 400; }

.mono, .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 46ch; }
.on-dark .lede { color: var(--muted-on-dark); }

.text-muted { color: var(--muted); }
.on-dark .text-muted { color: var(--muted-on-dark); }

::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ========================================================================
   BUTTONS / LINKS
   ======================================================================== */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: currentColor;
  padding-bottom: 3px;
  font-size: 15px;
}
.link::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: 0.28;
}
.link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-out-expo);
}
.link:hover::after { transform: scaleX(1); }
.link svg { width: 14px; height: 14px; transition: transform 300ms var(--ease-out-expo); }
.link:hover svg { transform: translate(3px, -3px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid currentColor;
  border-radius: 0;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  background: transparent;
  cursor: pointer;
  transition: background 300ms var(--ease), color 300ms var(--ease);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.on-dark .btn-outline:hover { background: var(--ink-on-dark); color: var(--dark); }

/* ========================================================================
   HEADER
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  color: var(--ink-on-dark);
  transition: transform 420ms var(--ease-out-expo), background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-header.is-solid { background: var(--bg); color: var(--ink); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
html.menu-open .site-header { background: var(--dark); color: var(--ink-on-dark); border-color: transparent; }

.wordmark { font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1; letter-spacing: -0.01em; text-decoration: none; color: currentColor; }
.wordmark span { color: var(--accent); }

.header-right { display: flex; align-items: center; gap: 28px; }
.clock-loc { display: none; }
@media (min-width: 640px) { .clock-loc { display: inline; } }

.lang-toggle {
  cursor: pointer; background: none; border: 1px solid currentColor;
  color: currentColor; opacity: 0.7;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; line-height: 1;
  transition: opacity 250ms var(--ease);
}
.lang-toggle:hover, .lang-toggle:focus-visible { opacity: 1; }

.menu-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.menu-toggle .bars { width: 22px; height: 14px; position: relative; }
.menu-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 320ms var(--ease), opacity 250ms var(--ease), top 320ms var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 13px; }
html.menu-open .menu-toggle .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
html.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
html.menu-open .menu-toggle .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ========================================================================
   FULLSCREEN MENU
   ======================================================================== */
.menu-overlay {
  position: fixed; inset: 0; z-index: 190;
  background: var(--dark); color: var(--ink-on-dark);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 620ms var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  outline: none;
}
html.menu-open .menu-overlay { clip-path: inset(0 0 0% 0); visibility: visible; }

.menu-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  padding: 120px var(--gutter) 60px;
  align-content: space-between;
  gap: 40px;
}
@media (min-width: 900px) {
  .menu-inner { grid-template-columns: 1.3fr 1fr; }
}

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-top: 1px solid var(--line-on-dark); }
.menu-list li:last-child { border-bottom: 1px solid var(--line-on-dark); }
.menu-list a {
  display: block; padding: 18px 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--muted-on-dark);
  transition: color 300ms var(--ease), padding-left 400ms var(--ease-out-expo);
}
.menu-list a:hover,
.menu-list a:focus-visible { color: var(--ink-on-dark); padding-left: 20px; }

.menu-preview {
  position: relative;
  display: none;
  overflow: hidden;
}
@media (min-width: 900px) { .menu-preview { display: block; } }
.menu-preview picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 420ms var(--ease);
}
.menu-preview picture.is-active img { opacity: 1; }

.menu-foot { display: flex; }
.menu-foot .mono { color: var(--muted-on-dark); }

/* ========================================================================
   INTRO (Skizze -> Raum)
   ======================================================================== */
#intro {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#intro svg { width: min(70vw, 900px); height: auto; }
#intro .sketch-line { fill: none; stroke: var(--ink); stroke-width: 1.2; }
#intro .skip {
  position: absolute; bottom: 32px; right: var(--gutter);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative;
  height: calc(100svh - var(--fd-offset, 0px));
  min-height: 560px;
  overflow: hidden;
  background: var(--dark);
  color: var(--ink-on-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 13, 0) 40%, rgba(14, 14, 13, 0.75) 100%);
}

.hero-headline {
  position: absolute; left: 0; right: 0; bottom: 96px;
  padding-inline: var(--gutter);
}
.hero-headline .line-mask { display: block; overflow: hidden; }
.hero-headline .line-inner {
  display: block; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3.2rem, 10vw, 10rem); line-height: 0.94; letter-spacing: -0.02em;
  transform: translateY(110%);
}
@media (max-width: 480px) {
  /* clamp()'s 3.2rem floor is wider than 10vw on phones, which forced
     hard-coded lines like "lange nachdem der" to soft-wrap mid-line.
     A lower floor lets the same 3 authored lines each stay on one line. */
  .hero-headline .line-inner { font-size: clamp(2.1rem, 10.5vw, 3.2rem); }
}

.hero-meta {
  position: absolute; right: var(--gutter); bottom: 40px;
  color: var(--muted-on-dark); text-align: right;
}

.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line-on-dark);
  overflow: hidden;
}
.hero-scroll span {
  position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--ink-on-dark);
  animation: scrollrun 2.2s var(--ease) infinite;
}
@keyframes scrollrun {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ========================================================================
   REVEAL UTILITIES (GSAP targets)
   ======================================================================== */
.reveal { opacity: 0; transform: translateY(36px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }

.clip-reveal { clip-path: inset(100% 0 0 0); overflow: hidden; display: block; position: relative; }
.clip-reveal picture { display: block; width: 100%; height: 100%; }
.clip-reveal img, .clip-reveal picture { transform: scale(1.12); }
.clip-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* ========================================================================
   EDITORIAL PROJECT ROWS (home)
   ======================================================================== */
.work-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(12px, 2vw, 28px); align-items: end; margin-bottom: clamp(72px, 10vw, 140px); }
.work-row:last-child { margin-bottom: 0; }
.work-figure { position: relative; overflow: hidden; background: var(--line); }
.work-figure img, .work-figure picture { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.work-figure:hover img { transform: scale(1.045); }
.work-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; margin-top: 18px; gap: 6px 16px; }
.work-caption .name { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 28px); min-width: 0; }
.work-caption .work-num { white-space: nowrap; }
.work-num { color: var(--muted); }

.work-row .work-figure { grid-column: span 12; aspect-ratio: 16/9; }
.work-row.split-right .work-figure { grid-column: span 7 / span 7; grid-row: 1; aspect-ratio: 4/5; }
.work-row.split-right .work-text { grid-column: span 4 / span 4; grid-column-start: 9; grid-row: 1; align-self: center; }
.work-row.split-left .work-figure { grid-column: 6 / span 7; grid-row: 1; aspect-ratio: 4/5; }
.work-row.split-left .work-text { grid-column: 1 / span 4; grid-row: 1; align-self: center; }
.work-text p { color: var(--muted); margin: 14px 0 0; }

@media (max-width: 900px) {
  .work-row.split-right .work-figure,
  .work-row.split-left .work-figure { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 4/5; }
  .work-row.split-right .work-text,
  .work-row.split-left .work-text { grid-column: 1 / -1; grid-row: 2; margin-top: 20px; align-self: start; }
  .work-row.split-left .work-figure { grid-column: 1 / -1; }
}

.work-index-link { margin-top: clamp(48px, 6vw, 88px); text-align: center; }

/* ========================================================================
   PROJECT INDEX (list + cursor preview)
   ======================================================================== */
.index-filters { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: clamp(40px, 5vw, 72px); }
.index-filters button {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; padding: 4px 0; position: relative;
}
.index-filters button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out-expo);
}
.index-filters button.is-active { color: var(--ink); }
.index-filters button.is-active::after { transform: scaleX(1); }

/* This list only ever appears inside the dark "Projektindex" section on
   the homepage (never on a light background), so it uses the -on-dark
   tokens directly rather than a light default + .on-dark override. */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-row {
  border-top: 1px solid var(--line-on-dark);
  position: relative;
}
.index-list li:last-child .index-row { border-bottom: 1px solid var(--line-on-dark); }
.index-row a {
  display: grid;
  grid-template-columns: 64px 44px 1fr auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  text-decoration: none;
  color: var(--ink-on-dark);
  transition: padding-left 380ms var(--ease-out-expo), color 300ms var(--ease);
}
@media (min-width: 640px) {
  .index-row a { grid-template-columns: 88px 60px 1fr auto auto auto; gap: 24px; padding: 26px 0; }
}
.index-row a:hover { padding-left: 16px; color: var(--accent); }
.index-row .idx-thumb {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--line-on-dark);
}
.index-row .idx-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out-expo); }
.index-row a:hover .idx-thumb img { transform: scale(1.08); }
/* Touch/no-hover devices get the same "comes forward" effect, driven by
   scroll position instead of a cursor (see main.js's .is-active toggle). */
.index-row.is-active a { padding-left: 16px; color: var(--accent); }
.index-row.is-active .idx-thumb img { transform: scale(1.08); }
.index-row .idx-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); }
.index-row .idx-name { font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 3.4vw, 44px); letter-spacing: -0.01em; }
.index-row .idx-type,
.index-row .idx-place,
.index-row .idx-year { font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: 0.06em; display: none; }
@media (min-width: 640px) { .index-row .idx-type { display: block; } }
@media (min-width: 900px) { .index-row .idx-place, .index-row .idx-year { display: block; } }
.index-row[hidden] { display: none; }

/* ========================================================================
   NUMBERED VALUE LIST ("Wofür wir stehen")
   ======================================================================== */
.value-list { list-style: none; margin: 0; padding: 0; }
.value-row {
  display: grid; grid-template-columns: 90px 1fr; gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.value-list li:last-child .value-row { border-bottom: 1px solid var(--line); }
.on-dark .value-row { border-color: var(--line-on-dark); }
.value-row .num { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); color: var(--muted); }
.on-dark .value-row .num { color: var(--muted-on-dark); }
.value-row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 8px; }
.value-row p { margin: 0; color: var(--muted); max-width: 60ch; }
.on-dark .value-row p { color: var(--muted-on-dark); }

/* ========================================================================
   QUOTE
   ======================================================================== */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 22ch;
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.2; letter-spacing: -0.01em;
  position: relative;
}
.quote blockquote::before { content: "\201E"; position: absolute; left: -0.6ch; top: 0.05em; color: var(--accent); }
.quote blockquote::after { content: "\201C"; margin-left: 0.05ch; color: var(--accent); }
.quote cite { display: block; margin-top: 28px; font-style: normal; }

/* ========================================================================
   TEAM
   ======================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 48px); }
.team-card figure { margin: 0; aspect-ratio: 4/5; overflow: hidden; background: var(--line); }
.team-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter 500ms var(--ease); }
.team-card:hover img { filter: grayscale(0); }
.team-card .name { margin-top: 16px; font-family: var(--font-display); font-size: 20px; }
.team-card .role { color: var(--muted); }

/* ========================================================================
   PROCESS TIMELINE (pinned)
   ======================================================================== */
.timeline-pin {
  position: relative;
  overflow: hidden;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-track { display: flex; will-change: transform; }
.timeline-step {
  flex: 0 0 min(560px, 82vw);
  padding-right: clamp(48px, 8vw, 120px);
  border-left: 1px solid var(--line-on-dark);
  padding-left: clamp(20px, 3vw, 40px);
}
.timeline-step .num { font-family: var(--font-mono); color: var(--muted-on-dark); }
.timeline-step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); margin: 18px 0 14px; }
.timeline-step p { color: var(--muted-on-dark); margin: 0; }

/* fallback for no-JS / reduced motion / mobile: plain horizontal scroll, not pinned fullscreen */
.timeline-track.no-pin { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 20px; }
.timeline-track.no-pin .timeline-step { scroll-snap-align: start; }
@media (max-width: 780px) {
  .timeline-pin { height: auto; display: block; padding-block: clamp(56px, 10vw, 96px); }
}

/* ========================================================================
   FACT BAR / DETAIL META (project pages)
   ======================================================================== */
.fact-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 40px); }
@media (min-width: 640px) { .fact-bar { grid-template-columns: repeat(4, 1fr); } }
.fact-bar dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.fact-bar dd { margin: 0; font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 21px); }

.two-col-text { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 780px) { .two-col-text { grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 64px); } }
.two-col-text p { color: var(--muted); margin: 0 0 1em; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2px, 0.4vw, 6px); }
.gallery figure { margin: 0; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 21/9; }
.gallery .half { grid-column: span 6; aspect-ratio: 4/3; }
.gallery .tall { grid-column: span 5; grid-row: 1; aspect-ratio: 3/4; }
.gallery .tall-offset { grid-column: 8 / span 5; grid-row: 1; aspect-ratio: 3/4; margin-top: clamp(24px, 5vw, 72px); }
@media (max-width: 780px) {
  .gallery .half, .gallery .tall, .gallery .tall-offset { grid-column: 1 / -1; grid-row: auto; margin-top: 0; aspect-ratio: 4/3; }
}

.next-project { position: relative; display: block; text-decoration: none; color: var(--ink-on-dark); height: 70vh; min-height: 420px; overflow: hidden; }
.next-project picture, .next-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out-expo); }
.next-project:hover img { transform: scale(1.04); }
.next-project::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 13, 0.45); }
.next-project .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-inline: var(--gutter); }

/* ========================================================================
   CONTACT
   ======================================================================== */
.contact-split { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-figure { aspect-ratio: 4/5; overflow: hidden; background: var(--line); }
.contact-figure img { width: 100%; height: 100%; object-fit: cover; }

.field { position: relative; margin-bottom: 34px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-body); font-size: 18px; padding: 10px 0 10px;
  transition: border-color 250ms var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field label {
  position: absolute; left: 0; top: 12px; color: var(--muted); pointer-events: none;
  transition: transform 220ms var(--ease-out-expo), font-size 220ms var(--ease-out-expo), color 220ms var(--ease);
  font-size: 16px; transform-origin: left top;
}
.field.is-active label,
.field input:focus + label,
.field textarea:focus + label {
  transform: translateY(-22px) scale(0.72);
  color: var(--ink);
}
.field input:placeholder-shown ~ label { }

.contact-info dt { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 24px; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 6px 0 0; font-family: var(--font-display); font-size: 19px; }
.contact-map { margin-top: 32px; aspect-ratio: 16/9; overflow: hidden; background: var(--line); }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

.static-map { position: relative; width: 100%; height: 100%; }
.static-map svg { width: 100%; height: 100%; display: block; }
.static-map-label {
  position: absolute; left: 16px; bottom: 14px;
  color: var(--ink-on-dark); font-size: 11px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer { background: var(--dark); color: var(--ink-on-dark); padding-top: clamp(64px, 8vw, 120px); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--line-on-dark); }
.footer-cta .link { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.6rem); letter-spacing: -0.01em; }
.footer-contact { text-align: right; }
.footer-contact a, .footer-contact span { display: block; text-decoration: none; font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); margin-bottom: 6px; }

.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 48px; }
.footer-cols h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark); margin: 0 0 16px; font-weight: 400; }
.footer-cols a { display: block; text-decoration: none; color: var(--muted-on-dark); margin-bottom: 10px; }
.footer-cols a:hover { color: var(--ink-on-dark); }

.footer-wordmark {
  font-family: var(--font-display); font-weight: 300; letter-spacing: -0.03em;
  font-size: clamp(4rem, 16vw, 13rem); line-height: 0.85;
  margin: 0; padding-block: 12px 24px;
  border-top: 1px solid var(--line-on-dark);
  overflow-wrap: anywhere;
}

.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px 32px; font-size: 12px; color: var(--muted-on-dark); }
.footer-bottom a { color: var(--muted-on-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink-on-dark); }

/* ========================================================================
   EXAMPLE-SITE NOTICE (banner under the header + footer line)
   ======================================================================== */
/* --fd-header-h is the fixed header's height (set from main.js); the banner
   starts right below it. The ::before paints the strip the header sits on. */
.fd-demo-banner {
  position: relative;
  margin-top: var(--fd-header-h, 68px);
  padding: 8px 16px;
  background: #8f5833;
  color: var(--ink-on-dark);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
}
.fd-demo-banner::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--fd-header-h, 68px);
  background: var(--bg);
}
.fd-dark-top .fd-demo-banner::before { background: var(--dark); }
.fd-demo-banner a { color: inherit; text-decoration: underline; }
@media (max-width: 639px) { .fd-demo-banner { font-size: 12px; } }

.fd-demo-note { display: block; }

/* ========================================================================
   BACK BUTTON (project detail pages)
   ======================================================================== */
.back-button {
  position: absolute;
  top: 24px; left: 24px; z-index: 20;
  width: 46px; height: 46px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 14, 13, 0.5);
  border: 1px solid rgba(244, 242, 238, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink-on-dark);
  text-decoration: none;
  transition: background 250ms ease, border-color 250ms ease, transform 300ms var(--ease-out-expo);
}
.back-button:hover { background: var(--accent); border-color: var(--accent); transform: translateX(-3px); }

/* ========================================================================
   PLACEHOLDER FIGURES
   ======================================================================== */
.ph {
  position: relative;
  margin: 0;
  aspect-ratio: var(--ar, 4/5);
  background: repeating-linear-gradient(135deg, var(--line), var(--line) 1px, transparent 1px, transparent 12px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.on-dark .ph { background: repeating-linear-gradient(135deg, var(--line-on-dark), var(--line-on-dark) 1px, transparent 1px, transparent 12px); border-color: var(--line-on-dark); }
.ph-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); text-align: center; padding: 16px; max-width: 24ch;
}
.on-dark .ph-label { color: var(--muted-on-dark); }

/* ========================================================================
   MOTION SAFETY
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  #intro { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .clip-reveal { clip-path: inset(0) !important; }
  .clip-reveal img, .clip-reveal picture { transform: none !important; }
  .hero-headline .line-inner { transform: none !important; }
  .hero-scroll span { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
[data-motion="off"] #intro { display: none !important; }
[data-motion="off"] .reveal { opacity: 1 !important; transform: none !important; }
[data-motion="off"] .clip-reveal { clip-path: inset(0) !important; }
