:root {
  --ink: #171b20;
  --muted: #6d746f;
  --paper: #f5f2eb;
  --paper-2: #ece8df;
  --white: #fffefa;
  --line: rgba(23, 27, 32, .14);
  --line-strong: rgba(23, 27, 32, .24);
  --sage: #5f7669;
  --blue: #203a4b;
  --km-cream: #f4e8d8;
  --max: 1220px;
  --sans: "Segoe UI", "Aptos", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #d8d6cf; color: var(--ink); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: white;
  transform: translateY(-150%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.site-header {
  position: relative; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 235, .92);
}
.header-inner {
  min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: inline-flex; align-items: center; width: 142px; }
.brand img { width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; letter-spacing: .015em; }
.nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.menu-button { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 6px 0; }

main { min-height: 60vh; }
.eyebrow {
  margin: 0 0 14px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #59615c;
}
.display {
  margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.035em;
  font-size: clamp(48px, 7vw, 104px); line-height: .98;
}
.lead {
  max-width: 680px; margin: 22px 0 0; color: #414742;
  font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; font-weight: 400;
}
.copy { color: #444a46; line-height: 1.75; font-size: 17px; }
.copy p { margin: 0 0 1.1em; }
.text-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 24px;
  padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 600;
}
.text-link::after { content: "↗"; font-weight: 400; }
.text-link.internal::after { content: "→"; }

.hero { padding: clamp(76px, 9vw, 132px) 0 clamp(64px, 8vw, 104px); }
.home-hero { min-height: 56vh; display: flex; align-items: center; }
.home-hero .hero-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: 9vw; align-items: end; }
.home-wordmark { width: min(660px, 100%); }
.home-intro { max-width: 460px; padding-bottom: 2px; }
.home-intro p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.home-intro small { display: block; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.section { padding: clamp(68px, 7.5vw, 104px) 0; border-top: 1px solid var(--line); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.06; letter-spacing: -.028em; margin: 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); align-items: end; gap: clamp(40px, 7vw, 110px); margin-bottom: 46px; }
.section-heading p { margin: 0; max-width: 500px; color: var(--muted); line-height: 1.65; font-size: 16px; }

.project-split { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 680px; border-top: 1px solid var(--line); }
.project-split.reverse { grid-template-columns: .86fr 1.14fr; }
.project-copy { padding: clamp(58px, 7vw, 108px) clamp(28px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.project-copy .logo-km { width: min(290px, 80%); margin-bottom: 42px; }
.project-copy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 74px); line-height: 1.02; letter-spacing: -.03em; }
.project-copy .doara-name { font-family: var(--sans); font-size: clamp(46px, 5vw, 72px); letter-spacing: .16em; font-weight: 650; }
.project-copy p { margin: 28px 0 0; max-width: 520px; color: #4c514d; line-height: 1.75; font-size: 17px; }
.project-media { min-height: 650px; overflow: hidden; background: var(--paper-2); position: relative; }
.project-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.project-media.doara-media { display: grid; place-items: center; padding: 64px 40px; background: #e9ece9; }
.project-media.doara-media img { width: min(400px, 82%); border: 1px solid rgba(23,27,32,.10); border-radius: 24px; }

.page-hero { padding: clamp(86px, 11vw, 150px) 0 clamp(64px, 8vw, 100px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 9vw; align-items: end; }
.page-hero .brand-lockup { width: min(520px, 100%); margin-bottom: 42px; }
.page-hero aside { color: var(--muted); line-height: 1.75; max-width: 420px; }

.image-frame { overflow: hidden; background: var(--paper-2); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image { height: min(72vw, 760px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.km-intro { background: #f2ece2; }
.km-gallery { display: grid; grid-template-columns: 1.18fr .82fr; gap: 28px; align-items: start; }
.km-card { margin: 0; }
.km-card .image-frame { aspect-ratio: 1 / 1; }
.km-card.cover-card .image-frame { aspect-ratio: 703 / 897; }
.km-card figcaption { padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.km-card figcaption strong { color: var(--ink); font-weight: 600; }

.home-books { padding-top: clamp(76px, 9vw, 118px); }

/* Home: the header already carries the CROY wordmark; the page starts with the work. */
#projekte > .project-split:first-child { border-top: 0; }
.home-about-quiet { padding: 46px 0 52px; }
.home-about-line { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; }
.home-about-line p { margin: 0; font-family: var(--serif); font-size: clamp(17px, 1.7vw, 23px); letter-spacing: -.01em; color: #4b504c; }
.home-about-line .text-link { margin-top: 0; }
.home-km-logo { width: min(250px, 66%); margin-bottom: 24px; }
.km-gallery-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.km-gallery-three .km-card { margin: 0; }
.km-gallery-three .image-frame { aspect-ratio: 703 / 897; }
.km-gallery-three .image-frame img { object-fit: cover; }

.doara-hero { background: #f4f5f2; }
.doara-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .7fr); gap: 9vw; align-items: center; }
.doara-title { font-size: clamp(56px, 8vw, 112px); line-height: .9; letter-spacing: .14em; font-weight: 650; margin: 0; }
.doara-tagline { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em; }
.phone-shot { width: min(420px, 100%); margin-left: auto; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: white; }
.phone-shot img { width: 100%; }

.matrix-section { background: var(--white); }
.matrix-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; margin-bottom: 56px; }
.matrix-intro p { margin: 0; max-width: 660px; }
.matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.matrix-cell { min-height: 240px; padding: clamp(28px, 4vw, 52px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.matrix-cell:nth-child(2n) { border-right: 0; }
.matrix-cell:nth-child(n+3) { border-bottom: 0; }
.matrix-cell small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.matrix-cell h3 { margin: 22px 0 10px; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.025em; }
.matrix-cell p { margin: 0; color: #626862; line-height: 1.65; }
.matrix-cell.a { background: #e5ebe4; }
.matrix-cell.b { background: #e3e9ec; }
.matrix-cell.c { background: #f2e3d8; }
.matrix-cell.d { background: #ece6da; }

.screen-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.screen-gallery figure { margin: 0; }
.screen-gallery img { width: 100%; border: 1px solid var(--line); border-radius: 22px; background: white; }
.screen-gallery figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.about-hero .home-wordmark { width: min(720px, 100%); }
.about-intro { display: grid; grid-template-columns: minmax(150px, .48fr) minmax(0, 1.52fr); gap: clamp(42px, 6vw, 96px); align-items: start; }
.about-intro .big-copy { max-width: 820px; font-family: var(--serif); font-size: clamp(30px, 3.35vw, 46px); line-height: 1.28; letter-spacing: -.023em; margin: 0; }
.about-subcopy { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.about-statement { padding-top: clamp(62px, 6vw, 88px); padding-bottom: clamp(72px, 7vw, 98px); }
.next-note { padding: 34px 0 38px; }
.next-note p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 19px; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 72px .78fr 1.22fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.principle .letter { font-family: var(--serif); font-size: 32px; }
.principle h3 { margin: 0; font-size: 20px; font-weight: 650; }
.principle p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 15px; }

.contact-page { min-height: calc(100vh - 170px); display: grid; align-items: center; }
.contact-page .contact-inner { padding: 90px 0 110px; }
.contact-mail { display: inline-block; margin-top: 28px; font-family: var(--serif); font-size: clamp(38px, 6.5vw, 96px); line-height: 1; letter-spacing: -.04em; border-bottom: 1px solid var(--ink); }

.legal { width: min(calc(100% - 48px), 860px); margin: 0 auto; padding: 92px 0 120px; }
.legal h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 82px); font-weight: 400; letter-spacing: -.035em; margin: 0 0 64px; }
.legal h2 { font-size: 19px; margin: 42px 0 12px; }
.legal p, .legal address, .legal li { color: #454a46; line-height: 1.75; font-size: 16px; }
.legal address { font-style: normal; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal ul { padding-left: 20px; }
.legal-note { padding: 18px 20px; background: #ece9e1; color: #555b56; line-height: 1.65; font-size: 14px; margin-bottom: 42px; }

.site-footer { border-top: 1px solid var(--line); padding: 44px 0 50px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
.footer-brand img { width: 110px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; color: var(--muted); font-size: 13px; }
.footer-meta a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 34px), var(--max)); }
  .header-inner { min-height: 74px; }
  .brand { width: 122px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 18px 17px 26px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 13px 0; }
  .home-hero { min-height: auto; }
  .home-hero .hero-inner, .page-hero-grid, .doara-hero-layout, .matrix-intro, .about-intro { grid-template-columns: 1fr; gap: 48px; }
  .home-intro { max-width: 600px; }
  .project-split, .project-split.reverse { grid-template-columns: 1fr; }
  .project-split.reverse .project-media { order: 2; }
  .project-media { min-height: 520px; }
  .project-media.doara-media { min-height: auto; padding: 54px 30px; }
  .page-hero aside { max-width: 620px; }
  .km-gallery { grid-template-columns: 1fr 1fr; }
  .km-gallery-three { grid-template-columns: 1fr 1fr; }
  .phone-shot { margin: 0 auto; }
  .principle { grid-template-columns: 60px 1fr; }
  .principle p { grid-column: 2; }
}

@media (max-width: 640px) {
  .shell, .legal { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 76px; }
  .home-wordmark { width: 86%; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 20px; }
  .project-copy { padding: 58px 18px 62px; }
  .project-media { min-height: 400px; }
  .project-media.doara-media img { width: min(330px, 94%); }
  .hero-image { height: 74vw; min-height: 330px; }
  .km-gallery { grid-template-columns: 1fr; gap: 40px; }
  .km-gallery-three { grid-template-columns: 1fr; gap: 40px; }
  .matrix-grid { grid-template-columns: 1fr; }
  .matrix-cell, .matrix-cell:nth-child(2n), .matrix-cell:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .matrix-cell:last-child { border-bottom: 0; }
  .screen-gallery { grid-template-columns: 1fr; gap: 42px; }
  .screen-gallery img { width: min(430px, 100%); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-content: flex-start; }
  .contact-mail { font-size: clamp(34px, 10vw, 62px); }
  .home-about-line { display: block; }
  .home-about-line .text-link { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
