/* Abu Ein Holding — shared styles */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: #12100C;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: #12100C; text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: #A5813D; }
::selection { background: #A5813D; color: #FFFFFF; }
img { max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: 16px; }
button { font-family: inherit; }
a, button, input, textarea, label { touch-action: manipulation; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #12100C; color: #FFFFFF; padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; color: #FFFFFF; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: #A5813D; font-weight: 600; }
.eyebrow--sm { font-size: 13px; letter-spacing: 0.24em; }
.underline-link {
  display: inline-flex; align-items: center; gap: 12px; width: fit-content;
  font-size: 16px; color: #12100C; border-bottom: 2px solid #C9A45E; padding-bottom: 6px;
}
.underline-link:hover { color: #A5813D; }
.underline-link--gold { border-bottom-color: #A5813D; }

/* Image frames — images fill their wrapper */
.frame { width: 100%; position: relative; overflow: hidden; background: #F4F1EA; }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame--contain { background: #FFFFFF; }
.frame--top > img { object-position: 50% 0%; }
.frame--contain > img { object-fit: contain; }
.r-16-9 { aspect-ratio: 16 / 9; }
.r-16-10 { aspect-ratio: 16 / 10; }
.r-3-2 { aspect-ratio: 3 / 2; }
.r-3-4 { aspect-ratio: 3 / 4; }
.r-4-3 { aspect-ratio: 4 / 3; }
.r-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #ECE8DF; }
.nav__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px clamp(16px, 4vw, 40px); min-height: 68px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { display: block; height: clamp(44px, 6vw, 60px); width: auto; object-fit: contain; mix-blend-mode: multiply; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav__links a { font-size: 14px; color: #12100C; }
.nav__links a:hover, .nav__menu a:hover { color: #A5813D; }
.nav a.is-current { color: #A5813D; }
.nav a.nav__cta { font-weight: 500; color: #A5813D; }
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: transparent; border: none; border-radius: 0; cursor: pointer; color: #12100C;
}
.nav__burger { position: relative; display: block; width: 24px; height: 16px; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { top: 7px; }
.nav__burger span:nth-child(3) { top: 14px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.nav__toggle:focus-visible { outline: 2px solid #A5813D; outline-offset: 2px; }
.nav__menu {
  display: none; flex-direction: column; border-top: 1px solid #ECE8DF;
  padding: 4px clamp(16px, 4vw, 40px) 18px;
}
.nav__menu a { display: block; font-size: 17px; padding: 15px 0; border-bottom: 1px solid #F2EEE5; color: #12100C; }
.nav__menu a.nav__cta { border-bottom: none; }

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__menu { display: flex; }
}

/* ---------- Simple footer (History / People / Partnership) ---------- */
.footer-simple { border-top: 1px solid #ECE8DF; }
.footer-simple__inner {
  max-width: 1320px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-simple__inner img { display: block; height: 48px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.copyright { font-size: 13px; color: #8A8271; }

/* ================= HOME ================= */
/* Hero film. The film has its own caption and company logos near its edges, so it is
   never cropped: it is sized with object-fit: contain inside a stage that fits the first
   screen, and any spare space is filled by a live, blurred copy of the film (canvas,
   drawn by hero.js) so there are no black bars.
   --nav-h is the measured header height (set by site.js). */
.hero { position: relative; background: #12100C; overflow: hidden; }
.hero__stage {
  position: relative; width: 100%; overflow: hidden;
  /* Desktop / tablet: full width at 16:9, but never taller than the space under the header. */
  height: min(56.25vw, calc(100vh - var(--nav-h, 69px)));
  height: min(56.25vw, calc(100svh - var(--nav-h, 69px)));
  min-height: 240px;
  background: #1E1A33;
  container-type: size;
}
.hero__backdrop {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: blur(22px) saturate(1.15) brightness(0.85);
  transform: scale(1.2); /* hide the blur's soft outer edge */
}
.hero__frame {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; aspect-ratio: 16 / 9;
  width: min(100cqw, 100cqh * 16 / 9); /* largest 16:9 box that fits: no cropping */
}
/* Feather the film's edges into the backdrop when it doesn't span the full width. */
@container (min-aspect-ratio: 1.79) {
  .hero__frame {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  }
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; }
.hero__toggle {
  position: absolute; right: clamp(12px, 2vw, 24px); top: clamp(12px, 2vw, 24px); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.45); background: rgba(10,8,5,0.35); color: #FFFFFF;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0.75; transition: opacity .2s ease, background-color .2s ease;
}
.hero__toggle:hover, .hero__toggle:focus-visible { opacity: 1; background: rgba(10,8,5,0.6); }
.hero__toggle .icon-play { display: none; }
.hero__toggle.is-paused .icon-play { display: block; }
.hero__toggle.is-paused .icon-pause { display: none; }
/* Headline: shown on phones (below the film, over the blurred backdrop). On larger
   screens the film's own caption carries it, so it is kept for screen readers only. */
.hero__content {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero__title {
  margin: 0; font-size: clamp(30px, 8.6vw, 42px); line-height: 1.06;
  font-weight: 500; letter-spacing: -0.02em; color: #FFFFFF;
  text-shadow: 0 1px 18px rgba(10,8,5,0.35);
}
.hero__link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 16px; color: #FFFFFF; border-bottom: 2px solid #C9A45E; padding-bottom: 6px;
}
.hero__link:hover { color: #C9A45E; }

.facts { border-bottom: 1px solid #ECE8DF; }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: #ECE8DF; }
.fact { padding: 32px; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.fact__label { font-size: 13px; color: #8A8271; }
.fact__value { font-size: 26px; font-weight: 500; }
.fact__value--list { line-height: 1.45; }
.fact__desc { font-size: 14px; line-height: 1.6; color: #6F6857; }
.fact__link { font-size: 14px; color: #A5813D; }

.story {
  max-width: 1200px; margin: 0 auto; padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 36px;
}
.story__title { margin: 0; font-size: clamp(34px, 3.6vw, 54px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.22; text-wrap: balance; }
.story__quote { margin: 0; border-left: 3px solid #C9A45E; padding-left: 28px; font-size: 20px; line-height: 1.6; color: #6F6857; max-width: 760px; }

.companies { border-top: 1px solid #ECE8DF; background: #FAF8F3; }
.companies__inner {
  max-width: 1440px; margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px) clamp(64px, 9vw, 120px);
  display: flex; flex-direction: column; gap: 48px;
}
.companies__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.companies__meta { display: flex; flex-direction: column; gap: 16px; }
.companies__counter { font-size: 16px; color: #6F6857; font-variant-numeric: tabular-nums; }
.companies__arrows { display: flex; gap: 12px; }
.round-btn {
  cursor: pointer; width: 56px; height: 56px; border-radius: 50%; border: 1px solid #12100C;
  background: transparent; font-size: 20px; color: #12100C; padding: 0;
  transition: background-color .15s ease, color .15s ease;
}
.round-btn:hover { background: #12100C; color: #FFFFFF; }
.company { display: flex; flex-direction: column; gap: 40px; }
.company__name { margin: 0; font-size: clamp(34px, 6.5vw, 92px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.06; overflow-wrap: break-word; }
/* Desktop / tablet: logo, sector, description on the left; photo(s) on the right. */
.company__body {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  grid-template-areas: "logo media" "sector media" "desc media";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(28px, 4vw, 48px); row-gap: 28px;
  align-items: start;
}
.company__logos { grid-area: logo; }
.company__sector { grid-area: sector; }
.company__desc { grid-area: desc; }
.company__media { grid-area: media; }
.company__logos {
  height: 210px; background: #FFFFFF; border: 1px solid #ECE8DF;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px; overflow: hidden;
}
.company__logo { height: 100%; flex: 0 1 auto; background: center / contain no-repeat; width: 86%; }
.company__logos.is-multi .company__logo { width: 30%; }
.company__sector { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: #A5813D; font-weight: 600; }
.company__desc { margin: 0; font-size: 17px; line-height: 1.7; color: #6F6857; }
.company__media { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dots { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { cursor: pointer; border: none; padding: 0; width: 34px; height: 4px; background: #DDD5C2; }
.dot.is-active { background: #A5813D; }
/* bigger touch target without changing the visual bar */
.dot { position: relative; }
.dot::after { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }

.related {
  max-width: 1440px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 48px;
}
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 40px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card__title { margin: 0; font-size: 26px; font-weight: 500; }
.card__text { margin: 0; font-size: 15px; line-height: 1.65; color: #6F6857; }
.card__link { font-size: 15px; color: #A5813D; }

.cta { background: #FAF8F3; border-top: 1px solid #ECE8DF; }
.cta__inner {
  max-width: 1200px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 32px; align-items: flex-start;
}
.cta__title { margin: 0; font-size: clamp(40px, 4.6vw, 68px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; max-width: 900px; color: #12100C; }
.cta__text { margin: 0; font-size: 18px; line-height: 1.7; color: #6F6857; max-width: 720px; }

.site-footer { border-top: 1px solid #ECE8DF; background: #FFFFFF; }
.site-footer__grid {
  max-width: 1440px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) clamp(20px, 4vw, 40px) 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand { gap: 18px; align-items: flex-start; }
.site-footer__brand img { height: 88px; width: auto; }
.site-footer__tagline { font-size: 14px; line-height: 1.7; color: #6F6857; }
.site-footer__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #8A8271; }
.site-footer__office { font-size: 14px; line-height: 1.7; color: #12100C; }
.site-footer__office span { color: #6F6857; }
.site-footer__col a { font-size: 14px; color: #6F6857; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: #A5813D; }
.site-footer__col a.site-footer__cta { color: #A5813D; }
.site-footer__bottom { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.site-footer__bottom > div { border-top: 1px solid #ECE8DF; padding: 24px 0 40px; font-size: 13px; color: #8A8271; }

/* ================= PAGE HEADERS (History / People) ================= */
.page-head {
  max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 40px) 64px;
  display: flex; flex-direction: column; gap: 28px;
}
.page-head--center { align-items: center; text-align: center; }
.page-head__title { margin: 0; font-size: clamp(42px, 5.6vw, 84px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.page-head__intro { margin: 0; font-size: 18px; line-height: 1.7; color: #6F6857; max-width: 680px; }
.caption { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #6F6857; }
.founder { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.founder img { display: block; width: 100%; max-width: 720px; height: auto; }

/* ================= HISTORY ================= */
.history { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px) 100px; }
.chapter { border-top: 1px solid #ECE8DF; padding: clamp(48px, 7vw, 80px) 0; display: flex; flex-direction: column; gap: 44px; }
.chapter__row { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.chapter__aside { flex: 1 1 220px; display: flex; flex-direction: column; gap: 18px; }
.chapter__word { font-size: clamp(48px, 5.5vw, 72px); font-weight: 300; line-height: 1; color: #C9A45E; }
.chapter__word--year { font-size: clamp(56px, 6vw, 76px); }
.chapter__word--long { font-size: clamp(40px, 4.4vw, 56px); line-height: 1.1; }
.chapter__kicker { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; color: #A5813D; }
.chapter__sub { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #6F6857; }
.chapter__main { flex: 2.4 1 320px; display: flex; flex-direction: column; gap: 22px; max-width: 720px; }
.chapter__title { margin: 0; font-size: clamp(30px, 3vw, 46px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.12; }
.chapter__text { margin: 0; font-size: 17px; line-height: 1.7; color: #6F6857; }
.img-grid { display: grid; gap: 24px; }
.img-grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.img-grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.img-grid--220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.fig { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { border: 1px solid #DDD5C2; padding: 18px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat__value { font-size: 30px; font-weight: 500; color: #A5813D; }
.stat__label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #6F6857; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid #DDD5C2; padding: 12px 22px; color: #6F6857; }
.chip--sm { font-size: 13px; padding: 10px 16px; }

.swirl-wrap { display: flex; justify-content: center; padding: 8px 0 32px; }
.swirl { display: block; max-width: 100%; height: auto; }

/* ================= PEOPLE ================= */
.people { max-width: 1320px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 40px) 100px; }
.people__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 44px 32px; border-top: 1px solid #ECE8DF; padding-top: 56px;
}
.person { display: flex; flex-direction: column; gap: 16px; }
.person__meta { display: flex; flex-direction: column; gap: 6px; }
.person__name { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.person__title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #A5813D; font-weight: 600; }
.closing {
  border-top: 1px solid #ECE8DF; margin-top: 72px; padding-top: 48px;
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.closing p { margin: 0; font-size: 17px; line-height: 1.7; color: #6F6857; max-width: 680px; }

/* ================= PARTNERSHIP ================= */
.p-head { background: #FAF8F3; color: #12100C; border-bottom: 1px solid #ECE8DF; }
.p-head__inner {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(64px, 11vw, 150px) clamp(20px, 4vw, 40px) clamp(56px, 8vw, 110px);
  display: flex; flex-direction: column; gap: 28px;
}
.p-head__title { margin: 0; font-size: clamp(44px, 7.4vw, 112px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; max-width: 1100px; text-wrap: balance; color: #12100C; }
.p-head__text { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; color: #6F6857; max-width: 640px; text-wrap: pretty; }
.p-head__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  font-size: 15px; cursor: pointer; border-radius: 0;
}
.btn--solid { background: #12100C; color: #FFFFFF; font-weight: 600; letter-spacing: 0.02em; border: none; }
.btn--solid:hover { background: #A5813D; color: #FFFFFF; }
.btn--outline { border: 1px solid #12100C; color: #12100C; background: transparent; }
.btn--outline:hover { border-color: #A5813D; color: #A5813D; }

.p-section__inner {
  max-width: 1320px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 7vw, 120px);
}
.p-how { background: #FFFFFF; border-bottom: 1px solid #ECE8DF; }
.p-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; max-width: 440px; }
.p-side--enquiry { gap: 24px; }
.p-title { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.steps { flex: 2 1 420px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid #DDD5C2; }
.step__num { font-size: 32px; font-weight: 300; color: #C9A45E; line-height: 1; }
.step__body { display: flex; flex-direction: column; gap: 8px; }
.step__title { font-size: 20px; font-weight: 500; }
.step__text { font-size: 15px; line-height: 1.7; color: #6F6857; text-wrap: pretty; }

.p-note { margin: 0; font-size: 16px; line-height: 1.7; color: #6F6857; }
.direct { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #ECE8DF; }
.direct__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #8A8271; padding-top: 16px; }
.direct a { font-size: 17px; color: #A5813D; overflow-wrap: anywhere; }
.direct a:hover { color: #12100C; }
.chips--offices { gap: 10px; }

.p-form-wrap { flex: 2 1 420px; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #6F6857; }
.field input {
  border: none; border-bottom: 1px solid #12100C; padding: 12px 0; background: transparent;
  outline: none; min-height: 44px; border-radius: 0; color: #12100C; -webkit-appearance: none; appearance: none;
}
.field input:focus { border-bottom-color: #A5813D; }
.field textarea {
  border: 1px solid #DDD5C2; padding: 16px; background: #FFFFFF; outline: none; resize: vertical;
  line-height: 1.6; border-radius: 0; color: #12100C; -webkit-appearance: none; appearance: none;
}
.field textarea:focus { border-color: #A5813D; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.area {
  font-size: 14px; min-height: 44px; padding: 0 18px; cursor: pointer;
  border: 1px solid #DDD5C2; background: #FFFFFF; color: #12100C; border-radius: 0;
}
.area[aria-pressed="true"] { border-color: #12100C; background: #12100C; color: #FFFFFF; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__privacy { font-size: 13px; color: #8A8271; max-width: 420px; line-height: 1.6; }
.form__submit {
  min-height: 54px; padding: 0 36px; background: #12100C; color: #FFFFFF; border: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; border-radius: 0;
  transition: background-color .15s ease;
}
.form__submit:hover { background: #A5813D; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__error { grid-column: 1 / -1; font-size: 14px; line-height: 1.6; color: #9B2C1F; }
.form__error a { color: #9B2C1F; text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { border-top: 2px solid #C9A45E; padding: 40px 0; display: flex; flex-direction: column; gap: 16px; }
.thanks__title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.015em; }
.thanks p { margin: 0; font-size: 16px; line-height: 1.7; color: #6F6857; max-width: 560px; }
.thanks__again {
  align-self: flex-start; background: transparent; border: none; border-bottom: 2px solid #C9A45E;
  padding: 0 0 6px; font-size: 15px; cursor: pointer; color: #12100C; min-height: 44px; border-radius: 0;
}
.thanks__again:hover { color: #A5813D; }

/* ================= 404 ================= */
.notfound { max-width: 1100px; margin: 0 auto; padding: clamp(72px, 12vw, 160px) clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }


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

/* ================= PRESS ================= */
.press { max-width: 1320px; margin: 0 auto; padding: 24px clamp(20px, 4vw, 40px) 100px; }
.press__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 48px 32px; border-top: 1px solid #ECE8DF; padding-top: 56px;
}
.press-card { display: flex; flex-direction: column; gap: 14px; color: #12100C; }
.press-card:hover { color: #12100C; }
.press-card:hover .press-card__title { color: #A5813D; }
.press-card__date { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: #8A8271; }
.press-card__title { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.3; transition: color .15s ease; }
.press-card__summary { margin: 0; font-size: 15px; line-height: 1.65; color: #6F6857; }
.press-card__more { font-size: 15px; color: #A5813D; }
.press-empty { border-top: 1px solid #ECE8DF; padding-top: 56px; font-size: 17px; line-height: 1.7; color: #6F6857; }
.frame--placeholder { display: flex; align-items: center; justify-content: center; background: #FAF8F3; border: 1px solid #ECE8DF; }
.frame--placeholder img { position: static; width: 38%; height: auto; object-fit: contain; mix-blend-mode: multiply; opacity: .9; }

.article { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 40px) 100px; display: flex; flex-direction: column; gap: 28px; }
.article__back { font-size: 14px; color: #6F6857; width: fit-content; }
.article__title { margin: 0; font-size: clamp(34px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.article__summary { margin: 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; color: #6F6857; }
.article__image { margin: 8px 0; }
.article__image img { display: block; width: 100%; height: auto; }
.article__body { font-size: 17px; line-height: 1.8; color: #3A352B; }
.article__body p { margin: 0 0 1.2em; }
.article__body a { color: #A5813D; text-decoration: underline; text-underline-offset: 3px; }
.article__foot { border-top: 1px solid #ECE8DF; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }

/* ================= CONTACT ================= */
.offices { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid #ECE8DF; padding-top: 24px; }
.office { font-size: 15px; line-height: 1.65; color: #12100C; }
.office span { display: block; color: #6F6857; }

/* ================= ADMIN ================= */
.admin { background: #FAF8F3; }
.admin-bar {
  position: sticky; top: 0; z-index: 20; background: #FFFFFF; border-bottom: 1px solid #ECE8DF;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 10px clamp(16px, 4vw, 40px); padding-top: max(10px, env(safe-area-inset-top));
}
.admin-bar__logo { display: flex; align-items: center; gap: 12px; }
.admin-bar__logo img { height: 40px; width: auto; mix-blend-mode: multiply; }
.admin-bar__logo span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #8A8271; }
.admin-bar__tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 14px; }
.admin-bar__tabs a.is-current { color: #A5813D; font-weight: 500; }
.admin-bar__tabs form { margin: 0; }
.admin-bar__tabs button { background: none; border: none; padding: 0; font-size: 14px; color: #6F6857; cursor: pointer; min-height: 44px; }
.admin-bar__tabs button:hover { color: #A5813D; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 80px; display: flex; flex-direction: column; gap: 24px; }
.admin-flash { background: #FFFFFF; border: 1px solid #C9A45E; border-left-width: 3px; padding: 14px 18px; font-size: 14px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head h1 { margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.015em; }
.admin-card { background: #FFFFFF; border: 1px solid #ECE8DF; padding: clamp(18px, 3vw, 32px); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters a { font-size: 13px; border: 1px solid #DDD5C2; padding: 8px 14px; background: #FFFFFF; color: #12100C; }
.admin-filters a.is-current { background: #12100C; border-color: #12100C; color: #FFFFFF; }
.admin-list { list-style: none; margin: 0; padding: 0; background: #FFFFFF; border: 1px solid #ECE8DF; }
.admin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 18px 20px; border-top: 1px solid #F2EEE5; color: #12100C; }
.admin-row:first-child { border-top: none; }
a.admin-row:hover { background: #FAF8F3; color: #12100C; }
.admin-row__title { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.admin-row__meta { font-size: 13px; color: #8A8271; overflow-wrap: anywhere; }
.admin-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: #8A8271; white-space: nowrap; }
.badge { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border: 1px solid #DDD5C2; color: #6F6857; background: #FFFFFF; }
.badge--new { background: #A5813D; border-color: #A5813D; color: #FFFFFF; }
.badge--warn { border-color: #C9A45E; color: #9B6B1F; }
.badge--draft { border-style: dashed; }
.admin-dl { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: 15px; }
.admin-dl dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8A8271; padding-top: 3px; }
.admin-dl dd { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.admin-message { white-space: pre-wrap; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-actions form { margin: 0; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--danger { border: 1px solid #9B2C1F; color: #9B2C1F; background: #FFFFFF; }
.btn--danger:hover { background: #9B2C1F; color: #FFFFFF; }
.admin-form { display: grid; gap: 24px; }
.admin-form .field input[type="date"] { min-height: 44px; }
.admin-form .field input[type="file"] { border: 1px dashed #DDD5C2; padding: 14px; min-height: 0; }
.admin-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.admin-check input { width: 20px; height: 20px; accent-color: #12100C; }
.admin-help { font-size: 13px; color: #8A8271; line-height: 1.6; }
.admin-thumb { width: 72px; height: 48px; object-fit: cover; background: #F4F1EA; display: block; }
.admin-row--press { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
.admin-preview img { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border: 1px solid #ECE8DF; }
.admin-login { max-width: 420px; margin: clamp(24px, 8vh, 96px) auto 0; width: 100%; }
.admin-pager { display: flex; gap: 16px; font-size: 14px; }
.admin-empty { padding: 32px 20px; color: #6F6857; font-size: 15px; }

/* Facts strip: 2 × 2 on tablets so no row is left with an empty cell. */
@media (max-width: 1100px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= RESPONSIVE: TABLET (≤ 1024px) ================= */
@media (max-width: 1024px) {
  .company__body { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
  .company__logos { height: 170px; }
}

/* ================= RESPONSIVE: SMALL TABLET / LARGE PHONE (≤ 760px) ================= */
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }

  .hero__toggle { width: 34px; height: 34px; right: 10px; top: 10px; }
  .hero__toggle svg { width: 13px; height: 13px; }

  /* Facts: 2 × 2 instead of 4 stacked cells */
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 16px; gap: 10px; }
  .fact__value { font-size: 19px; line-height: 1.3; }
  .fact__value--list { line-height: 1.4; }
  .fact__desc, .fact__link { font-size: 13px; }

  .story { gap: 26px; }
  .story__quote { font-size: 17px; padding-left: 18px; }

  /* Companies: everything for one company fits on one phone screen */
  .companies__inner { gap: 22px; padding-top: 40px; padding-bottom: 48px; }
  .companies__head { flex-wrap: nowrap; align-items: center; gap: 16px; }
  .companies__meta { gap: 8px; }
  .round-btn { width: 46px; height: 46px; font-size: 18px; }
  .companies__arrows { gap: 10px; flex-shrink: 0; }
  .company { gap: 16px; }
  .company__name { font-size: clamp(28px, 8vw, 40px); min-height: 2.12em; display: flex; align-items: flex-end; }
  .company__body {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas: "logo sector" "media media" "desc desc";
    grid-template-rows: auto auto auto;
    column-gap: 16px; row-gap: 16px; align-items: center;
  }
  .company__body.is-multi { grid-template-columns: minmax(0, 1fr); grid-template-areas: "logo" "sector" "media" "desc"; }
  .company__logos { height: 76px; padding: 8px; gap: 6px; }
  .company__body.is-multi .company__logos { height: 76px; }
  .company__sector { font-size: 12px; letter-spacing: 0.14em; line-height: 1.5; }
  .company__desc { font-size: 15.5px; line-height: 1.6; }
  .company__media { gap: 10px; }
  .dots { flex-wrap: nowrap; gap: 5px; }
  .dot { flex: 1 1 0; width: auto; max-width: 34px; }

  .related { gap: 32px; }
  .related__grid { gap: 36px; }
  .card { gap: 12px; }
  .card__title { font-size: 22px; }

  .cta__inner { gap: 24px; }
  .cta__text { font-size: 16px; }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__brand img { height: 72px; }

  /* History */
  .page-head { gap: 22px; padding-bottom: 44px; }
  .page-head__intro { font-size: 16.5px; }
  .chapter { gap: 28px; }
  .chapter__row { gap: 20px; }
  .chapter__aside { gap: 10px; }
  .chapter__text { font-size: 16px; }
  .img-grid { gap: 14px; }
  .img-grid--projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .swirl-wrap { padding: 0 0 20px; }
  .swirl { width: 96px; }
  .stat { padding: 14px 18px; }
  .stat__value { font-size: 24px; }
  .chip { font-size: 12.5px; padding: 10px 16px; }

  /* People: slightly smaller portraits for faster scrolling */
  .people__grid { gap: 36px 20px; padding-top: 40px; }
  .person { gap: 12px; }
  .person .frame { width: 82%; }
  .person__name { font-size: 19px; }
  .person__title { font-size: 12px; }

  /* Partnership / contact */
  .p-head__actions .btn { flex: 1 1 200px; }
  .step { padding: 22px 0; grid-template-columns: 40px minmax(0, 1fr); }
  .step__num { font-size: 26px; }
  .form { gap: 22px 16px; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .form__submit { width: 100%; }

  /* Admin */
  .admin-row--press { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-row--press .admin-row__side { grid-column: 2; flex-direction: row; align-items: center; }
  .admin-row { grid-template-columns: minmax(0, 1fr); }
  .admin-row__side { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .admin-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .admin-dl dd { margin-bottom: 12px; }
}

@media (max-width: 760px) and (orientation: portrait) {
  /* Phones (portrait): the hero is sized to its content (a short blurred band, the full
     film, the headline) so the facts strip starts on the first screen. */
  .hero__stage {
    height: auto; min-height: 0;
    container-type: normal;
    display: flex; flex-direction: column; justify-content: flex-start;
    gap: 22px;
    padding: 28px 0 32px;
  }
  .hero__stage::after { /* gentle darkening toward the bottom for text contrast */
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(to top, rgba(10,8,5,0.45) 0%, rgba(10,8,5,0) 45%);
  }
  .hero__frame {
    position: relative; left: auto; top: auto; transform: none; z-index: 2;
    width: 100%; flex: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 13%, #000 90%, transparent 100%);
  }
  .hero__content {
    position: relative; z-index: 2; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 0 clamp(20px, 4vw, 40px);
  }
}

/* ================= RESPONSIVE: SMALL PHONES (≤ 380px) ================= */
@media (max-width: 380px) {
  .company__body { grid-template-columns: 112px minmax(0, 1fr); }
  .company__logos { height: 68px; }
  .fact__value { font-size: 17px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ================= ADMIN · IMAGES ================= */
.img-group { display: flex; flex-direction: column; gap: 14px; }
.img-group h2 { margin: 12px 0 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: #A5813D; font-weight: 600; }
.img-grid-admin { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.img-slot { background: #FFFFFF; border: 1px solid #ECE8DF; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px; scroll-margin-top: 90px; }
.img-slot:target { border-color: #C9A45E; box-shadow: 0 0 0 2px rgba(201,164,94,.25); }
.img-slot__thumb { width: 120px; height: 90px; background: #F4F1EA; overflow: hidden; }
.img-slot__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-slot__thumb--logo { background: #FFFFFF; border: 1px solid #F2EEE5; }
.img-slot__thumb--logo img { object-fit: contain; padding: 6px; }
.img-slot__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.img-slot__spec { font-size: 13px; line-height: 1.5; color: #3A352B; }
.img-slot__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 0; }
.img-slot__pick { position: relative; overflow: hidden; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; }
.img-slot__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-slot__check { flex-basis: 100%; font-size: 13px; line-height: 1.5; color: #6F6857; }
.img-slot__check:empty { display: none; }
.img-slot__check.is-error { color: #9B2C1F; }
.img-slot__check.is-ok { color: #2F6B3A; }
.img-slot__ok { font-size: 13px; color: #2F6B3A; }
.img-slot__restore { background: none; border: none; padding: 0; font-size: 13px; color: #6F6857; text-decoration: underline; cursor: pointer; min-height: 32px; }
.img-slot__restore:hover { color: #9B2C1F; }
.img-slot .form__error { font-size: 13px; }
@media (max-width: 760px) {
  .admin-bar { position: static; }
}
@media (max-width: 420px) {
  .img-slot { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .img-slot__thumb { width: 88px; height: 66px; }
}

/* ================= ADMIN · PEOPLE ================= */
.person-row { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
.person-row__thumb { width: 64px; height: 80px; object-fit: cover; background: #F4F1EA; display: block; }
.person-row__side { display: flex; justify-content: flex-end; }
.people-actions { gap: 6px; }
.people-actions .btn--sm { min-width: 44px; padding: 0 12px; }
.people-actions button[disabled] { opacity: .35; cursor: default; }
@media (max-width: 760px) {
  .person-row { grid-template-columns: 56px minmax(0, 1fr); }
  .person-row__thumb { width: 56px; height: 70px; }
  .person-row__side { grid-column: 1 / -1; justify-content: flex-start; }
}
