:root {
  --cream: #F8F2E4;
  --cream-warm: #F0E5CC;
  --cream-deeper: #E8DCC0;
  --cream-ink: #2A1F12;
  --cream-ink-soft: #4B3A24;
  --cream-ink-faint: #7A6446;

  --brass: #B8935B;
  --brass-soft: #D1A86B;
  --brass-deep: #8F6E3F;
  --brass-deeper: #6B4F2A;

  --sunset: #D38B4F;
  --sunset-soft: #E6A972;
  --sunset-deep: #A8572A;

  --espresso: #2A1A0E;
  --espresso-soft: #3B2818;
  --sepia: #4A3220;

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --max: 1040px;
  --gutter: clamp(20px, 5vw, 56px);

  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.10 0 0 0 0 0.04 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--cream-ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 92% 6%, rgba(211, 139, 79, 0.18) 0%, rgba(211, 139, 79, 0) 60%),
    radial-gradient(ellipse 60% 45% at 5% 70%, rgba(184, 147, 91, 0.08) 0%, rgba(184, 147, 91, 0) 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

/* Site-wide paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.20;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1;
  width: 100%;
}

main, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) 0;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

#artemis-lang-toggle {
  margin-top: 18px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .site-header {
    align-items: center;
  }
  #artemis-lang-toggle {
    position: absolute;
    top: 14px;
    right: 16px;
    margin-top: 0;
  }
  .lang-toggle__btn { padding: 3px 8px; font-size: 11px; }
  .lang-toggle__flag { width: 15px; height: 11px; }
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(40, 22, 26, 0.05);
  border: 1px solid rgba(40, 22, 26, 0.12);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lang-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(40, 22, 26, 0.55);
  border: none;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  font-family: var(--sans);
}

.lang-toggle__btn:hover:not(.is-active) {
  color: rgba(40, 22, 26, 0.85);
}

.lang-toggle__btn.is-active {
  background: #FFFFFF;
  color: var(--espresso);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: default;
}

.lang-toggle__flag {
  width: 17px;
  height: 12px;
  object-fit: cover;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: block;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lockup {
  height: 292px;
  width: auto;
  display: block;
  margin: -16px 0 4px -28px;
  filter: drop-shadow(0 6px 14px rgba(42, 26, 14, 0.18)) drop-shadow(0 2px 4px rgba(42, 26, 14, 0.12));
}

@media (max-width: 720px) {
  .lockup {
    height: 232px;
    margin: -10px 0 2px -20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px var(--gutter) 0;
}

.subsidiary-row {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 40px);
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.subsidiary-row a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 200ms ease;
}

.subsidiary-row a:hover {
  transform: translateY(-1px);
}

.subsidiary-row img {
  height: 38px;
  width: auto;
  display: block;
}

.subsidiary-row .sub-repedge {
  margin-left: -14px;
  margin-top: -3px;
}

.subsidiary-row .sub-repedge img {
  height: 26px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 28px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
  color: var(--espresso);
  max-width: 18ch;
}

h1 em {
  font-style: italic;
  color: var(--sunset-deep);
  font-weight: 500;
}

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--cream-ink-soft);
  margin: 0 0 18px;
  max-width: 58ch;
}

.lede strong {
  font-weight: 600;
  color: var(--espresso);
}

/* ---------- Section divider — bow + arrow mark only ---------- */
.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--gutter);
  width: 100%;
}

.divider-mark {
  display: block;
  height: 70px;
  width: auto;
  opacity: 0.92;
}

/* ---------- Section heading shared ---------- */
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  font-size: clamp(32px, 4.2vw, 48px);
  letter-spacing: -0.015em;
  margin: 16px 0 32px;
  color: var(--espresso);
  line-height: 1.1;
}

h2 .h2-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
  font-weight: 600;
}

/* ---------- Companies section ---------- */
.companies {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 16px;
  width: 100%;
}

.companies h2 {
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
  }
}

.company {
  position: relative;
  padding: 28px 26px 24px;
  border: none;
  border-radius: 6px;
  background-color: var(--espresso);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 280ms ease, box-shadow 280ms ease;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 18px 40px rgba(42, 26, 14, 0.22),
    0 2px 6px rgba(42, 26, 14, 0.12);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.company:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.company:active {
  transform: translateY(1px);
  transition: transform 80ms ease, box-shadow 80ms ease;
  box-shadow:
    0 8px 18px rgba(42, 26, 14, 0.20),
    0 1px 3px rgba(42, 26, 14, 0.12);
}

/* Warm espresso/sepia overlay (no blue) */
.company::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 26, 14, 0.78) 0%,
    rgba(42, 26, 14, 0.88) 55%,
    rgba(42, 26, 14, 0.96) 100%
  );
  z-index: -1;
  transition: background 280ms ease;
}

.company::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 220px 220px;
  opacity: 0.10;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}

.company:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 52px rgba(42, 26, 14, 0.36),
    0 2px 6px rgba(42, 26, 14, 0.14);
}

.company:hover::before {
  background: linear-gradient(
    180deg,
    rgba(42, 26, 14, 0.62) 0%,
    rgba(42, 26, 14, 0.78) 55%,
    rgba(42, 26, 14, 0.92) 100%
  );
}

.company h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 4px;
  color: var(--cream);
}

.company-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: 100%;
  margin: 0 0 16px;
  object-fit: contain;
  object-position: left center;
}

/* Full-width 50% translucent band across the top of the card — light wash
   effect that lets the photo bg show through but lifts the dark logos. */
.logo-plate {
  display: flex;
  align-items: center;
  min-height: 107px;
  background: rgba(255, 255, 255, 0.30);
  margin: -28px -26px 18px;
  padding: 16px 26px;
  border-radius: 6px 6px 0 0;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.logo-plate .company-logo {
  height: 60px;
  margin: 0;
}

.logo-plate--lg .company-logo {
  height: 75px;
}

.sector {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 18px;
  font-weight: 600;
}

.company p {
  margin: 0 0 22px;
  color: rgba(248, 242, 228, 0.88);
  font-size: 15.5px;
  line-height: 1.65;
}

.company-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brass-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 147, 91, 0.3);
  padding-bottom: 2px;
  transition: border-color 150ms ease, color 150ms ease;
  align-self: flex-start;
  margin-top: auto;
}

.company-link:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* ---------- Story section — stays cream, slightly deeper warmth ---------- */
.story-wrap {
  position: relative;
  background:
    radial-gradient(ellipse 55% 45% at 8% 10%, rgba(211, 139, 79, 0.14) 0%, rgba(211, 139, 79, 0) 65%),
    linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-deeper) 100%);
  padding: clamp(28px, 5vh, 56px) 0 clamp(56px, 10vh, 108px);
  margin-top: 0;
}

.story-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 240px 240px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Brass top hairline on story section */
.story-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass) 50%, transparent);
}

.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  color: var(--espresso);
}

.story h2 {
  margin-top: 0;
}

.portrait {
  float: right;
  width: 340px;
  max-width: 42%;
  margin: 8px 0 24px 40px;
  shape-outside: margin-box;
  position: relative;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 22px 48px rgba(42, 26, 14, 0.28),
    0 0 0 1px var(--brass);
}

.portrait figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 9;
  font-size: 14px;
  color: var(--brass-deep);
  margin-top: 12px;
  text-align: right;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .portrait {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 8px auto 32px;
  }
  .portrait figcaption { text-align: center; }
}

.story::after {
  content: "";
  display: block;
  clear: both;
}

.story p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 18;
  font-size: 19px;
  line-height: 1.7;
  color: var(--espresso);
  max-width: 62ch;
}

.story em {
  font-style: italic;
  color: var(--sunset-deep);
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 14;
  color: var(--brass-deeper);
  margin-top: 36px !important;
  font-size: 16px !important;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(143, 110, 63, 0.25);
  padding: 40px var(--gutter) 56px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  color: var(--cream-ink-faint);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.footer-name {
  color: var(--espresso);
  font-weight: 600;
  margin: 0 0 4px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brass-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}

.site-footer a:hover {
  color: var(--sunset-deep);
  border-bottom-color: var(--sunset-deep);
}

.footer-meta {
  font-size: 12px;
  color: var(--cream-ink-faint);
  opacity: 0.7;
  margin-top: 8px !important;
  letter-spacing: 0.04em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
