/* IFR marketing site
   Fonts are self-hosted (no Google Fonts requests), which keeps the site
   clear of third-party font calls for German visitors under GDPR. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../assets/fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1e2b2f;        /* deep slate: text, contact band */
  --paper: #f6f6f3;      /* cool off-white page */
  --stone: #e3e1db;      /* image placeholder, quiet fills */
  --slate: #55636a;      /* secondary text */
  --rule: #c9c6be;       /* hairlines */
  --brass: #86683a;      /* links, single accent */
  --brass-light: #d2b98c;/* accent on dark */
  --ifr-red: #800000;    /* IFR logo color */

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--brass); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 246, 243, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 4.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 44px; height: 44px; object-fit: contain; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.125rem; font-weight: 600;
  font-variation-settings: "opsz" 20;
  letter-spacing: -0.005em;
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--slate); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500;
  padding: 0.25rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* Hero */
.hero { padding-top: clamp(3.5rem, 9vw, 7.5rem); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 14ch;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
.hero-intro {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 38rem;
  margin: 0;
}

/* The diptych: one market on each side, meeting on a single seam */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  background: var(--paper);
}
.photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--stone);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img.is-missing { visibility: hidden; }

/* Below desktop the diptych runs edge to edge, past the wrap's gutters */
@media (max-width: 1023px) {
  .diptych { margin-inline: calc(-1 * var(--gutter)); }
}

/* Desktop: copy on the left, the two markets side by side on the right */
@media (min-width: 1024px) {
  .hero { padding-bottom: clamp(4rem, 7vw, 6rem); }
  /* Below this the full-bleed photos close the hero; here a hairline does, matching the other bands */
  .hero + .band { border-top: 1px solid var(--rule); }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .hero-title { font-size: clamp(2.75rem, 4.4vw, 4.25rem); }
  .hero-intro { font-size: 1.125rem; }
  /* Slate block, offset down and right; the same color as the Contact band.
     An outer box-shadow paints only outside the box, so the 2px seam stays paper. */
  .diptych { margin-top: 0; box-shadow: 1.75rem 1.75rem 0 var(--ink); }
  /* Logo-red rule down the left of the headline and intro */
  .hero-copy { border-left: 3px solid var(--ifr-red); padding-left: clamp(1.5rem, 2.5vw, 2.25rem); }
  .photo { aspect-ratio: 2 / 3; }
}

/* Content bands */
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.split {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 12ch;
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink);
}

/* About: the IFR mark behind the paragraphs, recolored to slate and faded */
.about-prose { position: relative; isolation: isolate; }
.about-prose::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%;
  width: clamp(14rem, 26vw, 20rem); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: var(--ink);
  -webkit-mask: url("../assets/img/ifr-mark.png") no-repeat center / contain;
          mask: url("../assets/img/ifr-mark.png") no-repeat center / contain;
  opacity: 0.05;
  pointer-events: none;
}

/* Areas of focus */
.regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem clamp(2rem, 4vw, 3.5rem);
}
.region {
  position: relative; isolation: isolate;
  border-top: 2px solid var(--ink); padding-top: 1.25rem;
  min-height: 15rem;
}
/* Faded country outline behind each market (Natural Earth, public domain) */
.region::before {
  content: ""; position: absolute; z-index: -1;
  inset: 1.25rem 0 0;
  background: no-repeat center / contain;
  opacity: 0.07;
}
.region-us::before { background-image: url("../assets/img/map-us.svg"); }
.region-de::before { background-image: url("../assets/img/map-de.svg"); }
.region h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
}
.region p { margin: 0; color: var(--slate); max-width: 30rem; }

/* Contact */
.band-ink { background: var(--ink); color: var(--paper); border-top: 0; }
.band-ink h2 { color: var(--paper); }
.band-ink a { color: var(--brass-light); }
.band-ink a:hover { color: var(--paper); }
.contact-intro { margin: 0 0 2.25rem; font-size: 1.125rem; color: #c8cfd1; }

.person { display: flex; gap: 1.75rem; align-items: center; flex-wrap: wrap; }
.headshot {
  width: 132px; height: 132px; object-fit: cover; object-position: center 20%;
  border-radius: 50%;
  filter: grayscale(0.15);
}
.person-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30;
  font-size: 1.625rem; font-weight: 500; line-height: 1.2;
  margin: 0;
}
.person-title { margin: 0.125rem 0 1rem; color: #c8cfd1; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.k {
  display: inline-block; min-width: 3.75rem;
  font-size: 0.875rem; color: #9aa6aa;
}

.offices {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  margin-top: 2.75rem; padding-top: 2rem;
  border-top: 1px solid rgba(246, 246, 243, 0.18);
}
.office { font-style: normal; line-height: 1.6; }
.office .k { display: block; margin-bottom: 0.25rem; }

/* Footer */
.site-footer { background: var(--ink); color: #9aa6aa; font-size: 0.875rem; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem;
  padding-top: 1.75rem; padding-bottom: 1.75rem;
  border-top: 1px solid rgba(246, 246, 243, 0.12);
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .site-nav { gap: 0.25rem 1.25rem; flex-wrap: wrap; max-width: 100%; }
  .site-nav a { white-space: nowrap; font-size: 0.875rem; }
  html { scroll-padding-top: 7rem; }
  .split { grid-template-columns: 1fr; }
  h2 { max-width: none; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 1rem; }
  .site-nav { column-gap: 1rem; }
  .site-nav a { font-size: 0.8125rem; }
  .diptych { grid-template-columns: 1fr; }
  .photo { aspect-ratio: 3 / 2; }
  .regions { grid-template-columns: 1fr; }
}
