/* ==========================================================================
   reidEXA — home.css
   Homepage-specific styles. Loaded after site.css.

   Sections:
      1. Hero (Midnight, atmospheric, photo + meta grid)
      2. Generic .section shells (light)
      3. About (bio + facts panel)
      4. EXA framework section (Midnight, three pillar cards)
      5. Selected Work — case study list with elevation hover
      6. Global Teams (paper background, two columns)
      7. Credentials (paper cards row)
      8. Contact (Midnight, split layout)
      9. Layout utility classes
     10. Mobile (≤900px)
     11. Reduced motion

   Note: .cta / .cta-primary / .cta-secondary live in site.css with the
   dimensional treatment. Do NOT redefine them here — earlier versions of
   this file overrode them with a flat treatment that broke the elevation
   pattern on the homepage only.
   ========================================================================== */


/* ==========================================================================
   1. Hero — Midnight base with diagonal grid overlay and atmospheric wash
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background:
    radial-gradient(900px 600px at 12% 10%,
      hsl(var(--electric-hsl) / 0.12), transparent 60%),
    radial-gradient(700px 480px at 100% 90%,
      hsl(var(--midnight-3-hsl) / 0.85), transparent 55%),
    var(--midnight);
  box-shadow: var(--bevel-light);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image:
    linear-gradient(hsl(var(--electric-hsl) / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--electric-hsl) / 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--electric);
}
.hero-title {
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: 68px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
}
.hero-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--electric);
}
.hero-sub {
  max-width: 500px;
  margin-bottom: 44px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--slate-dim);
}

.hero-meta {
  padding-top: 28px;
  border-top: 1px solid var(--midnight-4);
}
.hero-meta-industries {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--midnight-4);
}
.hero-meta-industries-label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
}
.hero-meta-industries-list {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--white);
}
.hero-meta-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
}
.hero-meta-item {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.hero-meta-item strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
}

.hero-photo-wrap {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}
.hero-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(15%) contrast(1.05);
}
.hero-photo-accent {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--electric);
  border-radius: 6px;
}
.hero-caption {
  position: absolute;
  bottom: -36px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}


/* ==========================================================================
   2. Generic .section shells (used by About, Work, Teams, Credentials)
   ========================================================================== */

.section {
  padding: 110px 0;
  border-bottom: 1px solid var(--cloud);
}
.section-title {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--midnight);
}
.section-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--slate);
}
.section-intro {
  max-width: 560px;
  margin-bottom: 64px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--slate);
}


/* ==========================================================================
   3. About — bio prose + facts panel
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-bio {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--midnight);
}
.about-bio p { margin-bottom: 20px; }
.about-bio p:first-child {
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--midnight);
}
.about-facts {
  padding: 36px;
  background: var(--paper);
  border-top: 2px solid var(--electric);
  border-radius: 8px;
  box-shadow: var(--elev-2), var(--bevel-dark);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.about-facts:hover { box-shadow: var(--elev-3), var(--bevel-dark); }
.fact { padding: 14px 0; border-bottom: 1px solid var(--cloud); }
.fact:last-child { border-bottom: none; }
.fact-label {
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.fact-value { font-size: 14px; font-weight: 500; color: var(--midnight); }


/* ==========================================================================
   4. EXA framework section — Midnight base, oversized "EXA" glyph,
   three pillar cards, primary CTA below
   ========================================================================== */

.exa-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  background:
    radial-gradient(1100px 720px at 8% 0%,
      hsl(var(--electric-hsl) / 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 100%,
      hsl(var(--midnight-3-hsl) / 0.85), transparent 55%),
    var(--midnight);
}
.exa-section::before {
  content: 'EXA';
  position: absolute;
  bottom: -90px;
  right: -40px;
  font-family: var(--display);
  font-size: 440px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: hsl(var(--electric-hsl) / 0.05);
  pointer-events: none;
}
.exa-section .section-label   { color: var(--electric); }
.exa-section .section-title   { max-width: 720px; color: var(--white); }
.exa-section .section-title em {
  font-weight: 700;
  color: var(--electric);
}
.exa-section .section-intro   { color: var(--slate-dim); }

.exa-pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.exa-pillar {
  position: relative;
  display: block;
  padding: 36px 28px;
  background: var(--midnight-3);
  border-top: 2px solid var(--electric);
  border-radius: 8px;
  /* A is its own element here — defang underline + inherited color so the
     three Midnight cards don't carry browser-default link decoration. */
  color: inherit;
  text-decoration: none;
  box-shadow: var(--elev-dark-2), var(--bevel-light);
  transition:
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.exa-pillar:hover {
  transform: translateY(-4px);
  background: var(--midnight-4);
  box-shadow: var(--elev-dark-3), var(--bevel-light-strong);
}
.exa-pillar-num {
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--electric);
}
.exa-pillar-title {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--white);
}
.exa-pillar-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--slate-dim);
}

/* Wrapper for the framework CTA below the three pillars */
.exa-cta-row {
  position: relative;
  margin-top: 40px;
}


/* ==========================================================================
   5. Selected Work — case study list with elevation hover
   ========================================================================== */

.case-list {
  display: flex;
  flex-direction: column;
}
.case {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--cloud);
  border-radius: var(--r-md);
  /* A is the element here — defang the default underline and inherit color
     so the row is a clickable card, not an underlined link. */
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    padding 0.3s var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.case:last-child { border-bottom: 1px solid var(--cloud); }
.case:focus-visible { outline-offset: 6px; }

.case:hover {
  z-index: 1;
  /* Lift + Electric highlight wash — surface tint, not a text background,
     so it stays well under WCAG body-text contrast limits. */
  background:
    linear-gradient(
      90deg,
      hsl(var(--electric-hsl) / 0.05) 0%,
      hsl(var(--electric-hsl) / 0.02) 60%,
      transparent 100%
    ),
    var(--white);
  box-shadow: var(--elev-2), var(--bevel-dark);
  transform: translateY(-1px);
  padding-left: 24px;
  padding-right: 16px;
  /* Hide the cloud border on the hovered card so its elevated tile doesn't
     have a hard line slicing through the top edge. */
  border-top-color: transparent;
}
.case:hover + .case {
  /* Hide the immediate next sibling's top border too, so the line doesn't
     slice across the bottom of the elevated tile. */
  border-top-color: transparent;
}

.case-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.case-content { min-width: 0; }
.case-industry {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--electric);
}
.case-title {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--midnight);
}
.case-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--slate);
}
.case-arrow {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--slate);
  transition:
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.case:hover .case-arrow {
  color: var(--electric);
  transform: translateX(6px);
}


/* ==========================================================================
   6. Global Teams — two columns of location chips
   ========================================================================== */

.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.teams-col {
  padding: 36px;
  background: var(--white);
  border-top: 2px solid var(--electric);
  border-radius: 8px;
  box-shadow: var(--elev-2), var(--bevel-dark);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.teams-col:hover { box-shadow: var(--elev-3), var(--bevel-dark); }
.teams-col-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cloud);
}
.teams-col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.teams-col-count {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--electric);
}
.teams-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-loc {
  padding: 7px 14px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--midnight);
  border-radius: 4px;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}
.team-loc:hover {
  background: var(--electric);
  color: var(--white);
}
.team-loc.international {
  background: var(--midnight);
  color: var(--white);
}
.team-loc.international:hover { background: var(--electric); }


/* ==========================================================================
   7. Credentials — paper cards row
   ========================================================================== */

.credentials {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cred-card {
  padding: 32px 28px;
  background: var(--paper);
  border-left: 2px solid var(--electric);
  border-radius: 8px;
  box-shadow: var(--elev-2), var(--bevel-dark);
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.cred-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elev-3), var(--bevel-dark);
}
.cred-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--midnight);
}
.cred-num em {
  font-style: normal;
  font-weight: 700;
  color: var(--electric);
}
.cred-label {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}


/* ==========================================================================
   8. Contact section — Midnight base, split layout, contact card
   ========================================================================== */

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  background:
    radial-gradient(900px 620px at 0% 0%,
      hsl(var(--electric-hsl) / 0.10), transparent 60%),
    radial-gradient(1100px 760px at 100% 100%,
      hsl(var(--midnight-3-hsl) / 0.85), transparent 55%),
    var(--midnight);
}
.contact-section .section-label { color: var(--electric); }

.contact-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-title {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
}
.contact-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--electric);
}
.contact-sub {
  max-width: 480px;
  margin-bottom: 44px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--slate-dim);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-card {
  padding: 40px;
  background: var(--midnight-3);
  border-top: 2px solid var(--electric);
  border-radius: 8px;
  box-shadow: var(--elev-dark-3), var(--bevel-light-strong);
}
.contact-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--midnight-4);
}
.contact-item:last-child { border-bottom: none; }
.contact-item-label {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-dim);
}
.contact-item-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
}
.contact-item-value a { color: var(--electric); }


/* ==========================================================================
   9. Layout utility classes
   These replace inline style= attributes that previously lived on index.html
   (per project brief §11.6, no inline styles in shipping HTML).
   ========================================================================== */

.section-paper-edge { border-top: 1px solid var(--cloud); }
.section-no-border  { border-bottom: none; }


/* ==========================================================================
   10. Mobile — single consolidated breakpoint (≤900px)
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-title    { font-size: 42px; }
  .section-title { font-size: 32px; }
  .contact-title { font-size: 38px; }

  .exa-pillars,
  .credentials,
  .teams-grid {
    grid-template-columns: 1fr;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }
  .case-title { font-size: 22px; }
  /* On touch devices, :hover briefly fires on tap. Soften the lift so it
     doesn't introduce visual noise during scroll-triggered tap states. */
  .case:hover {
    transform: none;
    padding-left: 16px;
    padding-right: 0;
  }
}


/* ==========================================================================
   11. Reduced motion — disable transforms on cards. site.css already nukes
   most animations and transitions globally; these page-specific transforms
   need an explicit override.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .case,
  .case:hover,
  .exa-pillar,
  .exa-pillar:hover,
  .cred-card,
  .cred-card:hover {
    transform: none;
  }
}
