@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    /* Warm ivory / neutral text */
    --text-50: oklab(17.23% 0.001 0.006);
    --text-100: oklab(24.58% 0.001 0.006);
    --text-200: oklab(37.62% 0.001 0.005);
    --text-300: oklab(49.68% 0.001 0.004);
    --text-400: oklab(60.97% 0.001 0.003);
    --text-500: oklab(71.75% 0.001 0.003);
    --text-600: oklab(77.41% 0.001 0.003);
    --text-700: oklab(83.08% 0.001 0.002);
    --text-800: oklab(88.70% 0.001 0.002);
    --text-900: oklab(94.36% 0.001 0.001);
    --text-950: oklab(97.22% 0.001 0.001);

    /* Warm off-white backgrounds */
    --background-50: oklab(99.00% 0.001 0.004);
    --background-100: oklab(97.50% 0.001 0.004);
    --background-200: oklab(95.00% 0.001 0.004);
    --background-300: oklab(91.00% 0.001 0.004);
    --background-400: oklab(85.00% 0.001 0.004);
    --background-500: oklab(76.00% 0.001 0.003);
    --background-600: oklab(65.00% 0.001 0.003);
    --background-700: oklab(52.00% 0.001 0.002);
    --background-800: oklab(38.00% 0.001 0.002);
    --background-900: oklab(23.00% 0.001 0.001);
    --background-950: oklab(15.91% 0.000 0.000);

    /* Champagne gold primary */
    --primary-50: oklab(98.00% 0.006 0.045);
    --primary-100: oklab(95.00% 0.008 0.060);
    --primary-200: oklab(90.00% 0.012 0.085);
    --primary-300: oklab(85.00% 0.016 0.105);
    --primary-400: oklab(80.00% 0.018 0.115);
    --primary-500: oklab(74.77% 0.012 0.140);
    --primary-600: oklab(66.00% 0.010 0.120);
    --primary-700: oklab(56.00% 0.008 0.100);
    --primary-800: oklab(44.00% 0.006 0.075);
    --primary-900: oklab(31.00% 0.004 0.050);
    --primary-950: oklab(20.00% 0.002 0.030);

    /* Charcoal secondary */
    --secondary-50: oklab(98.00% 0.000 0.000);
    --secondary-100: oklab(95.00% 0.000 0.000);
    --secondary-200: oklab(90.00% 0.000 0.000);
    --secondary-300: oklab(82.00% 0.000 0.000);
    --secondary-400: oklab(70.00% 0.000 0.000);
    --secondary-500: oklab(56.00% 0.000 0.000);
    --secondary-600: oklab(43.00% 0.000 0.000);
    --secondary-700: oklab(32.00% 0.000 0.000);
    --secondary-800: oklab(22.00% 0.000 0.000);
    --secondary-900: oklab(15.00% 0.000 0.000);
    --secondary-950: oklab(10.00% 0.000 0.000);

    /* Antique gold accent */
    --accent-50: oklab(98.00% 0.002 0.045);
    --accent-100: oklab(95.00% 0.002 0.055);
    --accent-200: oklab(90.00% 0.001 0.075);
    --accent-300: oklab(85.00% -0.001 0.095);
    --accent-400: oklab(79.36% -0.004 0.115);
    --accent-500: oklab(74.29% -0.014 0.130);
    --accent-600: oklab(65.00% -0.012 0.110);
    --accent-700: oklab(55.00% -0.010 0.090);
    --accent-800: oklab(43.00% -0.007 0.065);
    --accent-900: oklab(30.00% -0.004 0.040);
    --accent-950: oklab(20.00% -0.002 0.020);

    /* Additional supporting colors */
    --surface: oklab(96.00% 0.001 0.004);
    --surface-raised: oklab(99.00% 0.001 0.004);
    --text-muted: oklab(48.00% 0.000 0.005);
    --border: oklab(87.00% 0.001 0.004);
    --focus: oklab(38.00% 0.005 0.050);
    --success: oklab(55.00% -0.050 0.025);
    --error: oklab(52.00% 0.150 0.070);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Ivory text scale */
    --text-50: oklab(17.23% 0.001 0.006);
    --text-100: oklab(24.58% 0.001 0.006);
    --text-200: oklab(37.62% 0.001 0.005);
    --text-300: oklab(49.68% 0.001 0.004);
    --text-400: oklab(60.97% 0.001 0.003);
    --text-500: oklab(71.75% 0.001 0.003);
    --text-600: oklab(77.41% 0.001 0.003);
    --text-700: oklab(83.08% 0.001 0.002);
    --text-800: oklab(88.70% 0.001 0.002);
    --text-900: oklab(94.36% 0.001 0.001);
    --text-950: oklab(97.22% 0.001 0.001);

    /* Near-black background scale */
    --background-50: oklab(15.91% 0.000 0.000);
    --background-100: oklab(21.78% 0.000 0.000);
    --background-200: oklab(32.11% 0.000 0.000);
    --background-300: oklab(42.02% 0.000 0.000);
    --background-400: oklab(51.03% 0.000 0.000);
    --background-500: oklab(59.99% 0.000 0.000);
    --background-600: oklab(68.30% 0.000 0.000);
    --background-700: oklab(76.68% 0.000 0.000);
    --background-800: oklab(84.52% 0.000 0.000);
    --background-900: oklab(92.49% 0.000 0.000);
    --background-950: oklab(96.12% 0.000 0.000);

    /* Champagne gold primary */
    --primary-50: oklab(20.00% 0.002 0.030);
    --primary-100: oklab(31.00% 0.004 0.050);
    --primary-200: oklab(44.00% 0.006 0.075);
    --primary-300: oklab(56.00% 0.008 0.100);
    --primary-400: oklab(66.00% 0.010 0.120);
    --primary-500: oklab(74.77% 0.012 0.140);
    --primary-600: oklab(80.00% 0.018 0.115);
    --primary-700: oklab(85.00% 0.016 0.105);
    --primary-800: oklab(90.00% 0.012 0.085);
    --primary-900: oklab(95.00% 0.008 0.060);
    --primary-950: oklab(98.00% 0.006 0.045);

    /* Charcoal secondary */
    --secondary-50: oklab(10.00% 0.000 0.000);
    --secondary-100: oklab(15.00% 0.000 0.000);
    --secondary-200: oklab(22.00% 0.000 0.000);
    --secondary-300: oklab(32.00% 0.000 0.000);
    --secondary-400: oklab(43.00% 0.000 0.000);
    --secondary-500: oklab(56.00% 0.000 0.000);
    --secondary-600: oklab(70.00% 0.000 0.000);
    --secondary-700: oklab(82.00% 0.000 0.000);
    --secondary-800: oklab(90.00% 0.000 0.000);
    --secondary-900: oklab(95.00% 0.000 0.000);
    --secondary-950: oklab(98.00% 0.000 0.000);

    /* Antique gold accent */
    --accent-50: oklab(20.00% -0.002 0.020);
    --accent-100: oklab(30.00% -0.004 0.040);
    --accent-200: oklab(43.00% -0.007 0.065);
    --accent-300: oklab(55.00% -0.010 0.090);
    --accent-400: oklab(65.00% -0.012 0.110);
    --accent-500: oklab(74.29% -0.014 0.130);
    --accent-600: oklab(79.36% -0.004 0.115);
    --accent-700: oklab(85.00% -0.001 0.095);
    --accent-800: oklab(90.00% 0.001 0.075);
    --accent-900: oklab(95.00% 0.002 0.055);
    --accent-950: oklab(98.00% 0.002 0.045);

    /* Additional supporting colors */
    --surface: oklab(22.00% 0.000 0.000);
    --surface-raised: oklab(26.00% 0.000 0.000);
    --text-muted: oklab(70.00% 0.001 0.003);
    --border: oklab(32.00% 0.000 0.000);
    --focus: oklab(94.00% 0.005 0.045);
    --success: oklab(72.00% -0.050 0.025);
    --error: oklab(70.00% 0.120 0.060);
  }
}

/* CSS Reset */
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Increase line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

/* Custom CSS */
html{
    background-color: var(--background-50);
    font-family: "IBM Plex Serif", serif;
}

/* ---------- Brand + semantic aliases  ---------- */
:root {
  --brand-black: oklab(12.00% 0.000 0.000);
  --brand-ivory: oklab(97.22% 0.001 0.001);
  --brand-ivory-muted: oklab(84.00% 0.001 0.003);
  --brand-gold: oklab(74.29% -0.014 0.130);
  --brand-gold-light: oklab(85.00% -0.001 0.095);

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --fg: var(--text-50);
    --fg-muted: var(--text-muted);
    --link-gold: var(--accent-800);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 0 0 / 0.06);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.08), 0 16px 36px rgb(0 0 0 / 0.12);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: var(--text-950);
    --fg-muted: var(--text-muted);
    --link-gold: var(--accent-800);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.3);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.5), 0 16px 36px rgb(0 0 0 / 0.45);
  }
}


/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  background-color: var(--background-50);
  font-size: 1rem;
}

main {
  flex: 1;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.hero :focus-visible,
.contact :focus-visible,
.navbar-menu :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brand-gold-light);
}

.container {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  color: var(--brand-black);
  background: var(--brand-gold);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}


/* ---------- Business-card motif: concentric gold arcs ---------- */
/* Each .arcs holds three <span> rings that share one centre (--cx / --cy).
   --D (the innermost ring's diameter) is inherited from the parent section. */
.arcs {
  --cx: 100%;
  --cy: 0%;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.arcs--bl { --cx: 0%;   --cy: 100%; }
.arcs--tr { --cx: 100%; --cy: 0%; }

.arcs span {
  position: absolute;
  left: calc(var(--cx) - var(--s) / 2);
  top: calc(var(--cy) - var(--s) / 2);
  width: var(--s);
  aspect-ratio: 1;
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
}

.arcs span:nth-child(1) { --s: calc(var(--D) + 1.5rem); border-width: 3px; }
.arcs span:nth-child(2) { --s: calc(var(--D) + 3rem);   opacity: 0.75; }
.arcs span:nth-child(3) { --s: calc(var(--D) + 4.5rem); opacity: 0.5; }


/* ---------- Header + navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--background-50) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
          backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-gold) 20%, var(--brand-gold) 80%, transparent);
  opacity: 0.8;
  pointer-events: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 80rem);
  min-height: var(--header-h);
  margin-inline: auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.15rem 0.6rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px var(--border);
  line-height: 0;
}

.logo {
  width: auto;
  height: 3.25rem;
  object-fit: contain;
}

/* Hamburger */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--surface);
  border-color: var(--brand-gold);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), background-color 0.2s ease;
}

.nav-toggle__bar {
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -0.4rem; }
.nav-toggle__bar::after  { top: 0.4rem; }

/* hamburger -> X */
.is-open .nav-toggle__bar {
  background: transparent;
}

.is-open .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.is-open .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu panel: height animates 0 -> auto via the grid-rows trick.
   The <ul> has no padding/border so it can collapse fully to zero height. */
.navbar-collapse {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s linear 0.4s;
}

.is-open .navbar-collapse {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease), visibility 0s;
}

.navbar-menu {
  min-height: 0;
  overflow: hidden;
  list-style: none;
  padding: 0;
  color: var(--brand-ivory);
  /* gold edge along the bottom, clipped by the rounded corners like a card arc */
  background:
    linear-gradient(var(--brand-gold), var(--brand-gold)) bottom / 100% 4px no-repeat,
    var(--brand-black);
  border-radius: 0 0 1.75rem 1.75rem;
  box-shadow: 0 18px 32px rgb(0 0 0 / 0.28);
}

.menu-item {
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-item:first-child { margin-top: 0.5rem; }
.menu-item:last-child  { margin-bottom: 1.25rem; }

.is-open .menu-item {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.is-open .menu-item:nth-child(1) { transition-delay: 0.08s; }
.is-open .menu-item:nth-child(2) { transition-delay: 0.13s; }
.is-open .menu-item:nth-child(3) { transition-delay: 0.18s; }
.is-open .menu-item:nth-child(4) { transition-delay: 0.23s; }

.menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0.5rem 1.5rem;
  color: var(--brand-ivory);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.25s var(--ease);
}

.menu-item:last-child a {
  border-bottom: 0;
}

.menu-item a::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--brand-gold);
  border-right: 2px solid var(--brand-gold);
  rotate: 45deg;       
}

.menu-item a:hover,
.menu-item a:focus-visible,
.menu-item a[aria-current] {
  color: var(--brand-gold-light);
  background: rgb(255 255 255 / 0.05);
  padding-left: 1.85rem;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section-title {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 2px;
  margin: clamp(1rem, 5vw, 2rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}


/* ---------- Hero ---------- */
/* One fluid value (--D, the white logo disc's diameter) drives the disc, the gold
   rings, the glow and the section's height, so every piece scales together and
   keeps the same proportions at any screen width. */
.hero {
  --D: clamp(11rem, 5rem + 17vw, 25rem);
  --V: calc(var(--D) * 1.4);          /* outer ring diameter = footprint of the logo visual */
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  color: var(--brand-ivory);
  background: var(--brand-black);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: clamp(1.75rem, 5vw, 2.75rem);
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

/* Logo disc + rings */
.hero__visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: var(--V);
  max-width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
}

/* soft gold glow behind the disc */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -1;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-gold) 20%, transparent) 0, transparent 62%);
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--D) * var(--k));
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
}

.hero__ring:nth-child(1) { --k: 1.14; border-width: 3px; }
.hero__ring:nth-child(2) { --k: 1.27; opacity: 0.7; }
.hero__ring:nth-child(3) { --k: 1.4;  opacity: 0.4; }

.hero__disc {
  display: grid;
  place-items: center;
  width: var(--D);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 6px var(--brand-black),
    0 0 0 9px var(--brand-gold),
    0 24px 60px rgb(0 0 0 / 0.55);
}

.hero__disc img {
  width: 76%;
  height: auto;
}

/* Call to action */
.hero__content {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

.hero__cta {
  color: var(--brand-ivory);
  font-size: clamp(1.875rem, 1.25rem + 2.9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero__cta-lead {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--brand-gold);
  font-size: clamp(0.8125rem, 0.72rem + 0.45vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* short gold bar, same detail as the section titles */
.hero__cta::after {
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 2px;
  margin: clamp(1rem, 5vw, 2rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 11rem;
  max-width: 16rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.75rem;
  border: 2px solid var(--brand-gold);
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.hero__btn--primary {
  color: var(--brand-black);
  background: var(--brand-gold);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
}

.hero__btn--primary:hover {
  background: var(--brand-gold-light);
  border-color: var(--brand-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.45);
}

.hero__btn--ghost {
  color: var(--brand-gold-light);
  background: transparent;
}

.hero__btn--ghost:hover {
  color: var(--brand-black);
  background: var(--brand-gold);
  transform: translateY(-2px);
}

.hero__btn:active {
  transform: scale(0.98);
}


/* ---------- Mission statement (inside About Us) ---------- */
.mission {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.mission__title {
  margin-bottom: 1rem;
  text-align: center;
  color: var(--link-gold);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
}

.mission__title::after{
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 2px;
  margin: clamp(1rem, 5vw, 2rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}

.mission p {
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.mission p + p {
  margin-top: 1.25em;
}

/* closing line of the mission reads as the sign-off */
.mission p:last-of-type {
  font-weight: 500;
}

/* fading gold rule between the mission and the team cards */
.mission::after {
  content: "";
  display: block;
  width: min(100%, 14rem);
  height: 2px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
}


/* ---------- Team cards ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.member-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 17rem;
  max-width: 22rem;
  gap: 1.25rem;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s var(--ease);
}

/* black cap with a curved lower edge + gold arc */
.member-card::before,
.member-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  border-radius: 0 0 50% 50% / 0 0 1.75rem 1.75rem;
}

.member-card::before {
  height: 6.5rem;
  background: var(--brand-black);
}

.member-card::after {
  height: 7rem;
  border-bottom: 2px solid var(--brand-gold);
  border-radius: 0 0 50% 50% / 0 0 1.9rem 1.9rem;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.member-card__photo {
  width: 7.5rem;
  height: 7.5rem;
  border: 4px solid var(--surface-raised);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-gold);
  object-fit: cover;
  object-position: center 20%;
  background: var(--background-200);
}

.member-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.member-card__title {
  font-size: 1.25rem;
  letter-spacing: -0.005em;
}

.member-card__subtitle {
  color: var(--link-gold);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-card__bio {
  margin-top: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}


/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
  counter-reset: svc;
}

.service-tile {
  counter-increment: svc;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 9rem;
  padding: 1.25rem 1.25rem 1.4rem;
  color: var(--brand-ivory);
  background: var(--brand-black);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 1.25rem;
  transition: transform 0.25s var(--ease), border-color 0.25s ease;
}

.service-tile::before {
  content: counter(svc, decimal-leading-zero);
  color: var(--brand-gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* double gold ring in corner */
.service-tile::after {
  content: "";
  position: absolute;
  top: -3rem;
  right: -3rem;
  z-index: -1;
  width: 7.5rem;
  aspect-ratio: 1;
  border: 2px solid var(--brand-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.75rem var(--brand-black), 0 0 0 calc(0.75rem + 2px) var(--brand-gold);
  opacity: 0.85;
}

.service-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
}

.service-tile h3 {
  color: var(--brand-ivory);
  font-size: 1.1875rem;
}

.prose {
  max-width: 46rem;
  margin-inline: auto;
}

.prose p {
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.prose p + p {
  margin-top: 1.25em;
}


/* ---------- Contact band ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  color: var(--brand-ivory);
  background: var(--brand-black);
  text-align: center;
}

.contact .arcs {
  --D: 7rem;
}

.contact__inner {
  position: relative;
  z-index: 1;
}

.contact .section-title {
  margin-bottom: 2rem;
  color: var(--brand-ivory);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 2.25rem;
  color: var(--brand-black);
  background: var(--brand-gold);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
  cursor: pointer;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.contact-btn:hover {
  background: var(--brand-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.45);
}

.contact-btn:active {
  transform: scale(0.98);
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;   /* gap between the button and the icon */
}

.social-link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--brand-gold);
  font-size: 1.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.social-link:hover {
  transform: translateY(-2px);
}


/* ---------- Contact modal ---------- */
.contact-modal {
  width: min(60rem, 94vw);
  height: 92vh;
  height: 92dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: var(--fg);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.4);
}

/* <dialog> is display:none when closed, so only set the layout while open */
.contact-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.25s var(--ease);
}

.contact-modal::backdrop {
  background: rgb(0 0 0 / 0.65);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}

.contact-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 1rem;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  border-bottom: 2px solid var(--brand-gold);
}

.contact-modal__title {
  font-size: 1.125rem;
}

.contact-modal__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--fg-muted);
  background: transparent;
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-modal__close:hover {
  color: var(--fg);
  background: var(--surface);
}

.contact-modal iframe {
  flex: 1;         
  min-height: 0;
  width: 100%;
  border: 0;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(0.75rem) scale(0.98); }
  to   { opacity: 1; transform: none; }
}


/* ---------- Footer ---------- */
.site-footer {
  padding: 1.5rem 1rem;
  color: var(--brand-ivory-muted);
  background: var(--brand-black);
  border-top: 3px solid var(--brand-gold);
  text-align: center;
}

.site-footer small {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.6;
}


/* =====================================================================
   Breakpoints
   ===================================================================== */

/* ---- 30em: large phones ---- */
@media (min-width: 30em) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 48em: tablets, inline navigation ---- */
@media (min-width: 48em) {
  :root {
    --header-h: 5rem;
  }

  .logo {
    height: 3.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .navbar-collapse {
    position: static;
    display: block;
    visibility: visible;
    transition: none;
  }

  .navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow: visible;
    color: var(--fg);
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .menu-item,
  .is-open .menu-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu-item:first-child { margin-top: 0; }
  .menu-item:last-child  { margin-bottom: 0; margin-left: 0.5rem; }

  .menu-item a,
  .menu-item:last-child a {
    position: relative;
    min-height: 2.5rem;
    padding: 0.5rem 0.9rem;
    color: var(--fg);
    font-size: 0.9375rem;
    border-bottom: 0;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  /* animated gold underline replaces the mobile chevron */
  .menu-item a::after {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    width: auto;
    height: 2px;
    background: var(--brand-gold);
    border: 0;
    border-radius: 2px;
    rotate: none;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease);
  }

  .menu-item a:hover,
  .menu-item a:focus-visible,
  .menu-item a[aria-current] {
    padding-left: 0.9rem;
    color: var(--fg);
    background: transparent;
  }

  .menu-item a:hover::after,
  .menu-item a:focus-visible::after,
  .menu-item a[aria-current]::after {
    transform: scaleX(1);
  }

  /* last link reads as the call-to-action */
  .menu-item:last-child a {
    padding-inline: 1.35rem;
    color: var(--brand-black);
    background: var(--brand-gold);
    font-weight: 600;
  }

  .menu-item:last-child a::after {
    display: none;
  }

  .menu-item:last-child a:hover,
  .menu-item:last-child a:focus-visible,
  .menu-item:last-child a[aria-current] {
    padding-left: 1.35rem;
    color: var(--brand-black);
    background: var(--brand-gold-light);
  }

  /* footer: keep it tidy and centred on wider screens */
  .site-footer {
    padding-block: 1.75rem;
  }

  /* bigger arcs on tablet */
  .contact .arcs {
    --D: 11rem;
  }
}

/* ---- 56em: hero goes side by side, like the business card ---- */
@media (min-width: 56em) {
  .hero__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }

  .hero__content {
    justify-self: center;
  }
}

/* ---- 64em: desktops ---- */
@media (min-width: 64em) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact .arcs {
    --D: 14rem;
  }
}


/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* ---------- IBM Plex Serif utility classes ---------- */
    .ibm-plex-serif-thin {
  font-family: "IBM Plex Serif", serif;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-serif-extralight {
  font-family: "IBM Plex Serif", serif;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-serif-light {
  font-family: "IBM Plex Serif", serif;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-serif-regular {
  font-family: "IBM Plex Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-serif-medium {
  font-family: "IBM Plex Serif", serif;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-serif-semibold {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-serif-bold {
  font-family: "IBM Plex Serif", serif;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-serif-thin-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-serif-extralight-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-serif-light-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-serif-regular-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-serif-medium-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-serif-semibold-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-serif-bold-italic {
  font-family: "IBM Plex Serif", serif;
  font-weight: 700;
  font-style: italic;
}