/* ==========================================================================
   GLOVI Inc. — design tokens
   Sourced from the handoff spec. Border-radius is 0 everywhere by design.
   ========================================================================== */
:root {
  --ink:            #0a0a0a;  /* header, hero, stat strip, footer */
  --brown-black:    #14100a;  /* headings on light, text on gold */
  --gold:           #c9a94e;
  --gold-hover:     #dcbe6a;
  --bronze:         #b4893a;  /* eyebrows on light, links */
  --bronze-dark:    #8a6d24;
  --olive:          #5c4a15;  /* labels on the gold band */
  --warm-brown:     #3a3122;  /* body copy on the gold band */
  --body:           #4c4a46;
  --body-alt:       #4d4a45;
  --muted:          #5b5852;
  --footer-muted:   #8f8c85;
  --on-dark:        #e8e6e2;
  --white:          #ffffff;
  --off-white:      #faf8f3;
  --img-placeholder:#efece5;

  --gold-rest: rgba(201, 169, 78, 0.55);

  --shadow-card:  0 14px 30px rgba(20, 16, 10, 0.10);

  --gutter:    clamp(18px, 3.4vw, 56px);
  --section-y: clamp(64px, 8vw, 120px);
  --maxw:      1240px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: #1b1b1d;
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: #1b1b1d; text-decoration: none; }
a:hover { color: var(--bronze); }

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

::selection { background: var(--gold); color: var(--brown-black); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--brown-black);
  font-size: 14px;
  font-weight: 600;
  transition: top 160ms ease-out;
}
.skip-link:focus { top: 12px; color: var(--brown-black); }

/* Shared primitives -------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 82px;
  padding: 0 var(--gutter);
}

.site-header__logo {
  display: flex;
  align-items: center;
  height: 56px;
}
.site-header__logo .brand-mark--lockup { height: clamp(44px, 4.4vw, 58px); }
.site-header__logo .brand-mark--compact { display: none; height: 30px; }

@media (max-width: 700px) {
  .site-header__logo .brand-mark--lockup { display: none; }
  .site-header__logo .brand-mark--compact { display: block; }
}

/* Brand mark ---------------------------------------------------------------
   The GLOVI lockup and wordmark are inline SVG so they pick up the page's
   Newsreader/Poppins webfonts and inherit `color` from whatever they sit on
   (light on the dark header and footer). */
.brand-mark {
  display: block;
  width: auto;
  overflow: visible;
  color: var(--white);
}
.brand-mark__wm {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.075em;
}
.brand-mark__sub {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  opacity: 0.68;
}
.brand-mark__rule { opacity: 0.32; }
.brand-mark--lockup .brand-mark__wm { font-size: 57px; }
.brand-mark--wordmark .brand-mark__wm { font-size: 107px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 32px);
}

.site-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}
.site-nav__link:hover { color: var(--gold-hover); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav__link[aria-current="page"]:hover { color: var(--white); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.btn--gold {
  height: 48px;
  padding: 0 26px;
  margin-left: 8px;
  background: var(--gold);
  color: var(--brown-black);
  font-size: 14px;
  font-weight: 600;
}
.btn--gold:hover { background: var(--gold-hover); color: var(--brown-black); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  overflow: hidden;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 110px) 0 clamp(48px, 6vw, 80px);
}

.hero__globe {
  position: absolute;
  z-index: 0;
  top: 46%;
  right: 0;
  transform: translate(30%, -50%);
  height: min(78vh, 720px);
  width: min(78vh, 720px);
  pointer-events: none;
}
.hero__globe glovi-globe { display: block; width: 100%; height: 100%; }

.hero__body {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter);
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--white);
  max-width: 19ch;
  text-wrap: balance;
}

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stats {
  background: var(--ink);
  padding: 22px var(--gutter);
}

.stats__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 70px);
  flex-wrap: wrap;
}

.stats__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.stats__item::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  flex: 0 0 auto;
}

/* ==========================================================================
   Who We Are
   ========================================================================== */
.about {
  padding: var(--section-y) var(--gutter);
  background: var(--white);
}

.about__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brown-black);
  max-width: 14ch;
  text-wrap: balance;
}

.about__text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body);
  max-width: 58ch;
  text-align: justify;
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-size: 15px;
  font-weight: 500;
  color: var(--bronze);
}
.text-link span { font-size: 17px; transition: transform 160ms ease-out; }
.text-link:hover span { transform: translateX(4px); }

.about__figure {
  position: relative;
  aspect-ratio: 4 / 3.4;
  width: 100%;
  background: var(--img-placeholder);
}
.about__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Sectors
   ========================================================================== */
.sectors {
  padding: var(--section-y) var(--gutter);
  background: var(--off-white);
}

.sectors__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.sectors__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: clamp(38px, 4.6vw, 64px);
}

.sectors__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brown-black);
  max-width: 22ch;
  text-wrap: balance;
}

.sectors__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  text-wrap: pretty;
}

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.sector-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gold-rest);
  border-radius: 0;
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  text-align: left;
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
.sector-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-card);
}
.sector-card__name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brown-black);
}
.sector-card__line {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

/* ==========================================================================
   Projects & Presence
   ========================================================================== */
.projects {
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  background: var(--white);
}

.projects__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 4.5vw, 72px);
}

.projects__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.projects__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brown-black);
  max-width: 18ch;
  text-wrap: balance;
}

.projects__text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
}

.projects__cards {
  display: grid;
  grid-template-columns: minmax(220px, 320px);
  gap: clamp(14px, 1.6vw, 22px);
}

.fact-card {
  border: 1px solid var(--gold-rest);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
}
.fact-card__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}
.fact-card__value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown-black);
  margin-top: auto;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--gold);
  padding: clamp(52px, 6.5vw, 96px) var(--gutter);
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(34px, 4.6vw, 80px);
  align-items: start;
}

.contact__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__copy .eyebrow { color: var(--olive); }

.contact__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--brown-black);
  max-width: 20ch;
  text-wrap: balance;
}

.contact__text {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--warm-brown);
  max-width: 44ch;
  text-wrap: pretty;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.contact__links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--brown-black);
  align-self: flex-start;
}
.contact__links a:hover { color: var(--olive); }

.contact__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}
.field--wide { grid-column: 1 / -1; }

.field input,
.field textarea {
  border: 1px solid rgba(20, 16, 10, 0.28);
  border-radius: 0;
  background: var(--white);
  color: var(--brown-black);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 140ms ease-out;
}
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 14px 16px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brown-black);
}
.field input::placeholder,
.field textarea::placeholder { color: #8c8880; }

.form__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn--dark {
  height: 56px;
  padding: 0 34px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
}
.btn--dark:hover { background: #262626; color: var(--white); }
.btn--dark[disabled] { opacity: 0.62; cursor: progress; }

.form__status {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--brown-black);
  max-width: 42ch;
}
.form__status:empty { display: none; }
.form__status a { color: var(--brown-black); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--footer-muted);
  padding: clamp(44px, 5.5vw, 76px) var(--gutter) 34px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__brand .brand-mark--wordmark {
  height: 54px;
  max-width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
}
.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--footer-muted);
  max-width: 34ch;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.site-footer__copy {
  font-size: 13px;
  line-height: 1.6;
  color: var(--footer-muted);
}
.site-footer__links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.site-footer__links a { font-size: 13px; color: var(--footer-muted); }
.site-footer__links a:hover { color: var(--gold); }

@media (max-width: 600px) {
  .site-footer__legal { text-align: left; }
  .site-footer__links { justify-content: flex-start; }
}

/* ==========================================================================
   Sector detail — expand in place

   Clicking a card hides the 11-card grid and swaps in one full-width panel.
   Only one sector is open at a time.
   ========================================================================== */
.sectors__grid[hidden],
.sector-panel[hidden] { display: none; }

.sector-panel {
  background: var(--white);
  border: 1px solid var(--gold);
  padding: clamp(30px, 4vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
  animation: panel-in 220ms ease-out both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.sector-panel__head {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sector-panel__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
}

.sector-panel__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brown-black);
}
.sector-panel__title:focus { outline: none; }

.sector-panel__back {
  align-self: flex-start;
  margin-top: 6px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(201, 169, 78, 0.7);
  border-radius: 0;
  background: transparent;
  color: var(--bronze-dark);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease-out;
}
.sector-panel__back:hover { background: rgba(201, 169, 78, 0.14); }

.sector-panel__text {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--body-alt);
  text-wrap: pretty;
}

/* Photo — desktop only. Below 1024px the panel keeps its original
   head + paragraph layout; app.js leaves the image `hidden` there, so the
   file is never fetched either. */
.sector-panel__media { display: none; }

@media (min-width: 1024px) {
  /* Kept small deliberately — a thumbnail beside the copy, not a banner
     running the full width of the head column. */
  .sector-panel__media:not([hidden]) {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-top: 12px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--img-placeholder);
    border: 1px solid var(--gold-rest);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@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;
  }
}
