/* ==========================================================================
   Eisenbach Operative — site styles
   Static, dependency-free. Colours are drawn from the company crest:
   purple #550287 and gold #FEDB01, used here in deeper, muted tones.
   ========================================================================== */

/* ---------- Typefaces (self-hosted, SIL Open Font License) ---------- */
/* Didot is used where it is installed (e.g. macOS, iOS); Bodoni Moda is the
   web fallback with a matching high-contrast, optically sized design. */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --ivory: #faf8f3;
  --paper: #f3efe6;
  --ink: #1d1c1a;
  --text: #34312d;
  --muted: #645f57;
  --rule: #e0d9cb;
  --rule-strong: #cfc6b4;
  --purple: #4d1572;
  --purple-deep: #3a0f57;
  --gold: #b0903c;
  --gold-soft: #d8c48e;

  --serif: "Didot", "Didot LT STD", "Linotype Didot", "Bodoni Moda", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --gutter: 16px;
  --brandbar-h: 72px;
  --nav-h: 48px;
  --section-pad: clamp(72px, 9vw, 136px);
}

@media (min-width: 600px) {
  :root {
    --gutter: 28px;
    --brandbar-h: 88px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
    --brandbar-h: 104px;
    --nav-h: 52px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
  body {
    font-size: 1.0625rem;
  }
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

a {
  color: inherit;
}

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

::selection {
  background: #e6dcef;
  color: var(--ink);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.875rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header: centred lockup + navigation ---------- */
/* The whole header is sticky with a negative offset, so the brand bar scrolls
   away and the navigation row stays pinned to the top of the viewport. */
.site-header {
  position: sticky;
  top: calc(-1 * var(--brandbar-h));
  z-index: 50;
  background: var(--ivory);
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--brandbar-h);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 400;
  /* Scales with the viewport so all three elements stay on one line. */
  font-size: clamp(15px, 4.5vw, 27px);
  line-height: 1;
}

.lockup__word {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  /* Cancels the trailing letter-space so the crest sits exactly centred. */
  margin-right: -0.14em;
}

.lockup__crest {
  flex: none;
  width: auto;
  height: 32px;
}

@media (min-width: 600px) {
  .lockup {
    gap: 0.8em;
  }

  .lockup__word {
    letter-spacing: 0.2em;
    margin-right: -0.2em;
  }

  .lockup__crest {
    height: 40px;
  }
}

.mainnav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ivory);
}

.mainnav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(12px, 4vw, 48px);
  min-height: var(--nav-h);
}

.mainnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 359px) {
  .mainnav ul {
    column-gap: 10px;
  }

  .mainnav a {
    font-size: 0.65625rem;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 600px) {
  .mainnav a {
    font-size: 0.78125rem;
    letter-spacing: 0.18em;
  }
}

.mainnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.1em;
  bottom: 11px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.mainnav a:hover {
  color: var(--purple);
}

.mainnav a:hover::after,
.mainnav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .mainnav a::after {
    transition: none;
  }
}

/* ---------- Shared typographic elements ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--purple);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.eyebrow__num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.display,
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.2;
}

p {
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 1.1em;
}

.lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.38;
}

.prose .lead + p {
  margin-top: 1.4em;
}

.text-link {
  color: var(--purple);
  text-decoration: underline;
  text-decoration-color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  color: var(--purple-deep);
  text-decoration-color: var(--gold);
}

/* Primary call to action: text with a fine rule and arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  color: var(--purple);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.link-arrow svg {
  width: 18px;
  height: 10px;
  flex: none;
}

.link-arrow:hover {
  gap: 20px;
  color: var(--purple-deep);
}

@media (prefers-reduced-motion: reduce) {
  .link-arrow,
  .text-link {
    transition: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
}

.section--paper {
  background: var(--paper);
}

.section__head {
  max-width: 720px;
}

.split {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .split > .section__head {
    grid-column: 1 / span 4;
    align-self: start;
  }

  .split > .split__body {
    grid-column: 6 / -1;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.hero__grid {
  display: grid;
  gap: 0;
}

.hero__title {
  max-width: 17ch;
  font-size: clamp(2.125rem, 0.9rem + 5.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.hero__intro {
  margin-top: clamp(28px, 4vw, 40px);
  max-width: 34rem;
}

.hero__intro p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero__intro .link-arrow {
  margin-top: 28px;
}

.hero__figure {
  margin-top: clamp(40px, 6vw, 64px);
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #d9d6cf;
}

@media (min-width: 600px) {
  .hero__figure img {
    aspect-ratio: 3 / 2;
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .hero__grid > .eyebrow,
  .hero__title {
    grid-column: 1 / -1;
  }

  .hero__intro {
    grid-column: 1 / span 4;
    grid-row: 3;
    align-self: start;
    margin-top: clamp(40px, 4vw, 56px);
    padding-top: 24px;
    border-top: 1px solid var(--rule-strong);
  }

  .hero__figure {
    grid-column: 5 / -1;
    grid-row: 3;
    margin-top: clamp(40px, 4vw, 56px);
  }
}

/* ---------- Company ---------- */
.facts {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}

.facts__title {
  padding-block: 18px 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.facts dl > div {
  display: grid;
  gap: 2px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 600px) {
  .facts dl > div {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
  }
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.facts dd {
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---------- Approach ---------- */
.approach__lead {
  max-width: 44rem;
  margin-top: 28px;
  font-size: 1.0625rem;
}

.focus-list {
  display: grid;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}

.focus {
  padding-block: 36px 40px;
  border-bottom: 1px solid var(--rule-strong);
}

.focus__num {
  display: block;
  margin-bottom: 22px;
  color: var(--purple);
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
}

.focus h3 {
  margin-bottom: 16px;
}

.focus__points {
  margin-top: 22px;
  border-top: 1px solid var(--rule-strong);
}

.focus__points li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.focus__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}

@media (min-width: 900px) {
  .focus-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--rule-strong);
  }

  .focus {
    padding: 40px 32px 48px;
    border-bottom: 0;
    border-left: 1px solid var(--rule-strong);
  }

  .focus:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .focus:last-child {
    padding-right: 0;
  }
}

/* ---------- International outlook ---------- */
.markets {
  margin-top: 56px;
  border-top: 1px solid var(--ink);
}

.markets__title {
  padding-block: 18px 6px;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.markets li {
  display: grid;
  gap: 4px 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 600px) {
  .markets li {
    grid-template-columns: 13rem 1fr;
    align-items: baseline;
  }
}

.markets__name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}

.markets__text {
  color: var(--muted);
}

.statement {
  margin-top: clamp(64px, 8vw, 112px);
  text-align: center;
}

.statement::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  background: var(--gold);
}

.statement p {
  max-width: 30ch;
  margin-inline: auto;
  color: var(--purple);
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.22;
  text-wrap: balance;
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
}

.contact .eyebrow {
  justify-content: center;
}

.contact .eyebrow::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.contact__text {
  max-width: 34rem;
  margin: 24px auto 0;
}

.contact__email {
  display: inline-block;
  margin-top: clamp(32px, 4vw, 48px);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  color: var(--purple);
  font-family: var(--serif);
  font-size: clamp(1rem, 5vw, 2.625rem);
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__email:hover {
  color: var(--purple-deep);
  border-color: var(--purple);
}

.contact__note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: 32px;
  border-top: 1px solid var(--gold);
  background: var(--ivory);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer__name {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}

.footer__address {
  color: var(--muted);
  line-height: 1.7;
}

.footer__address a {
  color: var(--ink);
}

.footer__nav ul {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 40px;
}

@media (min-width: 900px) {
  .footer__nav ul {
    grid-template-columns: max-content;
    text-align: right;
  }
}

.footer__nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--purple);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer__base a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}

.footer__base a:hover {
  color: var(--purple);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* ---------- Legal notice & simple pages ---------- */
.page {
  padding-top: clamp(48px, 8vw, 104px);
  padding-bottom: var(--section-pad);
}

.page__title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.legal {
  display: grid;
  gap: 48px;
  margin-top: clamp(40px, 6vw, 72px);
}

@media (min-width: 1024px) {
  .legal {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
  }

  .legal > * {
    grid-column: 1 / span 7;
  }
}

.legal__section {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.legal__section h2 {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.legal__block {
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.legal__company {
  display: block;
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.375rem;
  letter-spacing: 0.08em;
}

.legal__section p + p {
  margin-top: 1em;
}

.legal__back {
  margin-top: 8px;
}

.notfound__text {
  max-width: 34rem;
  margin-top: 24px;
}

.notfound .link-arrow {
  margin-top: 32px;
}

/* ---------- Print ---------- */
@media print {
  .site-header {
    position: static;
  }

  .mainnav,
  .skip-link,
  .hero__figure {
    display: none;
  }

  .section,
  .section--paper {
    background: none;
    padding-block: 32px;
  }

  a {
    text-decoration: none;
  }
}
