/* Gryphon Ground - site styles
   Direction "Bedrock" on a light base. One accent (muted brass), no navy, no gold, no orange.
   Brass #9a7b46 is used for lines, seal and hover only (3.6:1 on Bone fails AA for text);
   brass text uses the deeper stage #7a5f33 (about 5.5:1 on Bone, 4.7:1 on Limestone).
   No inline styles and no inline scripts anywhere: production ships a strict CSP (README, step 7). */

/* Self-hosted fonts (SIL Open Font License 1.1, see assets/fonts/OFL-*.txt). Unmodified variable font files. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/fraunces-variable.ttf") format("truetype"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/fraunces-italic-variable.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-variable.ttf") format("truetype"); }


:root {
  --bone: #f7f5f0;
  --limestone: #e9e4da;
  --limestone-deep: #e1dbcf;
  --charcoal: #1c1c1c;
  --graphite: #5f5b55;
  --brass: #9a7b46;
  --brass-deep: #7a5f33;
  --hairline: #d9d2c5;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1280px;
  --gap: clamp(1.25rem, 3vw, 2rem);
  --section-space: 3rem;
  --section-tight: 2rem;
  --group-space: clamp(1.5rem, 3vw, 2rem);
  --link-line: 1px;
  --link-line-accent: 2px;
  --link-offset: 0.22em;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--charcoal);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: var(--link-line);
  text-underline-offset: var(--link-offset);
}
a:hover {
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: var(--link-line-accent);
}

:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

strong { font-weight: 600; }

/* Layout utilities */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.c-1-4 { grid-column: 1 / 5; }
.c-1-5 { grid-column: 1 / 6; }
.c-1-6 { grid-column: 1 / 7; }
.c-1-8 { grid-column: 1 / 9; }
.c-1-10 { grid-column: 1 / 11; }
.c-2-12 { grid-column: 2 / 12; }
.c-5-12 { grid-column: 5 / 12; }
.c-5-13 { grid-column: 5 / 13; }
.c-6-13 { grid-column: 6 / 13; }
.c-7-13 { grid-column: 7 / 13; }

/* Spacing utilities. They replace former style attributes; the production CSP (style-src 'self') forbids those. */
.mt-1 { margin-top: 1rem; }
.mt-1-25 { margin-top: 1.25rem; }
.mt-2 { margin-top: 2rem; }
.mb-1-5, p.mb-1-5 { margin-bottom: 1.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--charcoal);
  color: var(--bone);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 0.75rem; }

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--charcoal);
}
.title {
  font-size: clamp(2.25rem, 5.8vw, 4.75rem);
  line-height: 1.08;
  max-width: 12em;
  text-wrap: balance;
}
#hero-title { max-width: 10em; }
.title::after {
  content: "";
  display: block;
  width: clamp(4rem, 8vw, 7rem);
  height: 2px;
  margin-top: clamp(1.25rem, 2vw, 1.5rem);
  background: url("assets/ground-line.svg") left center / 100% 100% no-repeat;
}
/* Quiet title for Legal and Privacy: the text matters, the page does not perform */
.title--quiet { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.12;
}
/* Rule: full h2 size only inside .section-head; every heading in a label column (c-1-4, c-1-5) is .h-md */
.h-md {
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.2;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.25;
}

.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.125rem);
  line-height: 1.6;
  max-width: 34em;
}
.hero .lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; }
.section-head .lead { font-size: clamp(1.125rem, 1.5vw, 1.25rem); line-height: 1.5; }
.muted { color: var(--graphite); }

/* Measure: text columns hold about 68 to 75 characters per line.
   :where() keeps the specificity at zero, so .lead (34em) and .statement (24em) still win. */
:where(.c-5-12, .c-5-13, .c-2-12, .c-6-13) p { max-width: 36em; }

.statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 30em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  padding-block: 0.35rem;
  min-width: 0;
}
/* Approved horizontal lockup; the existing wordmark text remains in the HTML. */
.brand__mark { width: 18rem; height: auto; flex: none; }
.brand__text { display: none; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-block;
  padding: 0.95rem 0;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: var(--link-line-accent) solid transparent;
}
.nav__link:hover { border-bottom-color: var(--brass); }
.nav__link[aria-current="page"] {
  color: var(--brass-deep);
  border-bottom-color: var(--brass-deep);
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--graphite);
  border-radius: 3px;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
  min-width: 4.5rem;
  min-height: 2.75rem;
}
.nav__toggle:hover { border-color: var(--brass); }

/* Sections */
main { display: block; }
.section { padding-block: var(--section-space); }
.section--tight { padding-block: var(--section-tight); }
.section--photo { padding-block: var(--section-tight); }
.section--offset { padding-top: var(--section-space); }
.section--dense { padding-block: 1.25rem; }
.section--limestone { background: var(--limestone); }
.hero { padding-block: clamp(3rem, 7.75vw, 7rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero--quiet { padding-block: clamp(2.5rem, 6vw, 4rem); }
.hero .grid { align-items: end; row-gap: clamp(1.5rem, 3vw, 2.5rem); }
.hero .lead { margin-top: 0; }
/* Home has one reading sequence: stacked below desktop, paired above 1200 px. */
.hero[aria-labelledby="hero-title"] .grid { align-items: start; }
.hero[aria-labelledby="hero-title"] .c-1-10,
.hero[aria-labelledby="hero-title"] .c-6-13 { grid-column: 1 / -1; }
.rule { border-top: 1px solid var(--hairline); padding-top: var(--group-space); }
.section--dense .rule { padding-top: 1.25rem; }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); align-items: end; }

/* Topography pattern: at most one block per page, kept out of the text column */
.has-topo { position: relative; overflow: hidden; }
.has-topo::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -10rem;
  width: min(28vw, 360px);
  aspect-ratio: 3 / 2;
  background: url("assets/topo.svg") center / contain no-repeat;
  pointer-events: none;
}
.has-topo > .wrap { position: relative; z-index: 1; }
.section--tight.has-topo::after { bottom: -12rem; }
.has-topo[aria-labelledby="agent-title"]::after { display: none; }

/* Tiles (Home) */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--gap);
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 18rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bone);
  border-top: 1px solid var(--hairline);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tile:hover, .tile:focus-within { border-top-color: var(--brass); }
.tile h3 { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile p { max-width: 30em; }
.tile__arrow {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass-deep);
  transition: transform 0.2s ease;
}
.tile:hover .tile__arrow { transform: translateX(0.35rem); }

/* Lists with brass ticks */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}
.list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--hairline);
}
.list li:last-child { border-bottom: 1px solid var(--hairline); }
.list li::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  margin-top: 0.85rem;
  background: var(--brass);
}
.list li p { margin: 0; }

/* Plain list (Privacy, Your rights) */
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1rem;
  height: 1px;
  background: var(--brass);
}

/* Cards (Principles) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
}
.card {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(1.25rem, 2vw, 1.75rem);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { margin: 0; }

/* Four-part text (How we work) */
.quartet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
}
.quartet p { margin: 0; }

/* Disclosure blocks: clear and conspicuous, never hairline gray */
.disclosure {
  border-top: 2px solid var(--brass);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--charcoal);
}
.disclosure p { max-width: 36em; }

.legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 44rem;
}
.legal-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--hairline);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
}
.legal-list li:last-child { border-bottom: 1px solid var(--hairline); }
.legal-list li::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  margin-top: 0.8rem;
  background: var(--brass);
}
/* Numbered variant (Legal & Disclosures only), so a reader can cite "item 3" */
.legal-list--numbered { counter-reset: item; }
.legal-list--numbered li::before {
  counter-increment: item;
  content: counter(item) ".";
  width: 2rem;
  height: auto;
  margin-top: 0.3rem;
  background: none;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--brass-deep);
}

/* Email display */
.email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1.125rem, 3.1vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: var(--link-line-accent);
  text-underline-offset: var(--link-offset);
  overflow-wrap: anywhere;
}
.email:hover { text-decoration-color: var(--charcoal); }

/* Photo blocks (preview only; production swaps in <img> with the same alt text). No frame: Bedrock alternates
   full photo blocks with limestone text blocks. Home bleeds across the full width (.photo--bleed). */
.photo { margin: 0; }
.photo__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 21 / 9;
  padding: 2rem;
  background: var(--limestone);
  text-align: center;
}
.photo--bleed .photo__frame { aspect-ratio: 21 / 9; max-height: 72vh; }
.section--limestone .photo__frame { background: var(--limestone-deep); }
.photo__motif {
  margin: 0;
  max-width: 28em;
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  color: var(--graphite);
}
.photo__tag {
  position: absolute;
  left: 1rem;
  bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.5rem, 4.5vw, 3.5rem);
  background: var(--bone);
}
.footer-grid { align-items: start; }
.footer__brand {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.footer__brand img { width: clamp(12rem, 16vw, 13rem); height: auto; flex: none; }
.footer__firm {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 28em;
}
.footer__links {
  grid-column: 7 / 13;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.25rem 0 0;
  max-width: 100%;
  list-style: none;
  font-size: 0.875rem;
}
.footer__links a {
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: var(--link-line);
  text-underline-offset: var(--link-offset);
  overflow-wrap: anywhere;
}
.footer__links a:hover {
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: var(--link-line-accent);
}
.footer__copy {
  grid-column: 1 / -1;
  margin: 1rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--graphite);
}

/* Responsive */
@media (max-width: 47.99em) {
  .site-header .wrap { column-gap: 0.75rem; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .brand__mark { width: clamp(11.25rem, calc(100vw - 8.75rem), 14rem); }
  .nav { flex-shrink: 0; max-width: 100%; }
  .grid > [class^="c-"], .grid > [class*=" c-"] { grid-column: 1 / -1; }
  .cards, .quartet { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .photo__frame, .photo--bleed .photo__frame { aspect-ratio: 4 / 3; }
  .footer__brand, .footer__links { grid-column: 1 / -1; justify-content: flex-start; }
  .footer__brand img { width: 10rem; }
  .footer__links { justify-self: start; gap: 0.875rem; padding-top: 0; }
  .section-head { margin-bottom: 1.5rem; }

  .js .nav__toggle { display: inline-flex; }
  .js .nav__list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.25rem var(--gutter) 1rem;
    background: var(--bone);
    border-bottom: 1px solid var(--hairline);
  }
  .js .nav__list.is-open { display: flex; }
  .js .nav__link {
    display: block;
    padding: 0.95rem 0;
    border-bottom: var(--link-line-accent) solid var(--hairline);
  }
  .js .nav__link:hover { border-bottom-color: var(--brass); }
  .js .nav__link[aria-current="page"] { border-bottom-color: var(--brass-deep); }
}

/* Tablet: long labels and text share a full-width reading column. */
@media (min-width: 48em) and (max-width: 63.99em) {
  :root { --section-space: 4rem; --section-tight: 2.5rem; }
  .grid > [class^="c-"], .grid > [class*=" c-"] { grid-column: 1 / -1; }
  .site-header .wrap { gap: 1.5rem; }
  .nav__list { gap: 1rem 1.5rem; }
  .brand__mark { width: clamp(14rem, 29vw, 18rem); }
}

@media (max-width: 63.99em) { .has-topo::after { display: none; } }

@media (max-width: 22.49em) {
  #hero-title { font-size: clamp(1.9375rem, calc(12.5vw - 0.5625rem), 2.25rem); }
}

@media (min-width: 64em) {
  :root { --section-space: clamp(5rem, 6.25vw, 6rem); --section-tight: 3rem; }
}

@media (min-width: 75em) {
  .hero[aria-labelledby="hero-title"] .c-1-10 { grid-column: 1 / 8; grid-row: 1; }
  .hero[aria-labelledby="hero-title"] .c-6-13 { grid-column: 8 / 13; grid-row: 1; padding-top: 0.375rem; }
  #hero-title { font-size: clamp(3.25rem, 4.6vw, 4rem); }
}

/* From tablet up the header stays on one line */
@media (min-width: 48em) {
  .site-header .wrap { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .tile__arrow { transition: none; }
}

/* Fußnote unter Listen (Advisory: Capital structure analysis) */
.fn-mark { color: var(--brass-deep, #7a5f33); font-weight: 600; }
sup.fn-mark { font-size: 0.7em; line-height: 0; margin-left: 0.05em; }
.footnote { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--graphite, #5f5b55); max-width: 68ch; }

/* Epigraph (Zitat) ueber den Abgrenzungslisten */
.epigraph { margin: 1.25rem 0 0; padding-left: 1.25rem; border-left: 2px solid var(--brass, #9a7b46); max-width: 36em; }
.epigraph p { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; font-synthesis: none; font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.35; color: var(--charcoal, #1c1c1c); margin: 0; text-wrap: balance; }
.epigraph footer { margin-top: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--graphite, #5f5b55); }
.epigraph cite { font-style: italic; }

/* Eyebrow-Label als Kapitelmarke (What we do not do) */
.eyebrow { font-family: "Manrope", system-ui, sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-deep, #7a5f33); margin: 0; }
.epigraph--head { margin-top: 1rem; border-left: 0; padding-left: 0; max-width: 30em; }
.epigraph--head p { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; }

/* Eingebaute Fotos */
.photo__picture { display: block; }
.photo__img { display: block; width: 100%; height: auto; }
.photo--bleed { background: var(--bone); }
.photo--rank-1 { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.photo--rank-1 .photo__img { max-height: none; }
.photo--rank-2, .photo--rank-3, .photo--rank-4, .photo--rank-5 {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

/* The existing contact figure shares the full image axis without changing DOM order. */
[aria-labelledby="email-title"] .c-5-13 { display: contents; }
[aria-labelledby="email-title"] .email { grid-column: 5 / 13; justify-self: start; max-width: 100%; }
[aria-labelledby="email-title"] .photo { grid-column: 1 / -1; margin: 0; }
@media (max-width: 63.99em) {
  [aria-labelledby="email-title"] .email { grid-column: 1 / -1; }
}
