/* ============================================================
   THE FRONTIER COMMUNICATIONS
   Master stylesheet — shared across all pages
   ============================================================ */

:root {
  /* Brand palette */
  --rose:        #B76E79;   /* Rose gold — primary accent */
  --rose-soft:   #C98A93;
  --lilac:       #D8C9E8;   /* Soft lilac */
  --sage:        #B8C4B0;   /* Sage green */
  --ivory:       #F7F3EE;   /* Champagne ivory — primary bg */
  --ivory-warm:  #F1EAE0;
  --espresso:    #2F2725;   /* Deep espresso — dark sections */
  --espresso-2:  #3A312E;
  --gold:        #D4B483;   /* Warm gold */
  --white:       #FFFFFF;

  /* Text */
  --ink:         #2A2422;
  --ink-soft:    #574B43;
  --ink-faint:   #786B61;
  --line:        #E3D9CD;

  /* Type */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', 'Manrope', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --maxw-md: 880px;
  --pad: 7vw;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

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

/* ── Selection ── */
::selection { background: var(--rose); color: var(--ivory); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--rose);
  display: block;
}
.eyebrow.center { justify-content: center; }

.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.5px;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 104px);
}
.h-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.3px;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 64px);
}
.h-sub {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.3;
  color: var(--ink);
}
em.accent, .accent { font-style: italic; color: var(--rose); }
.lede {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-md { max-width: var(--maxw-md); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section { padding: clamp(80px, 11vw, 160px) 0; }
.section-dark { background: var(--espresso); color: var(--ivory); }
.section-ivory { background: var(--ivory); }
.section-white { background: var(--white); }
.section-warm { background: var(--ivory-warm); }

.section-dark .h-title,
.section-dark .display,
.section-dark .h-sub { color: var(--ivory); }
.section-dark .lede { color: rgba(247,243,238,0.72); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .eyebrow::before { background: var(--gold); }
.section-dark em.accent,
.section-dark .accent { color: var(--gold); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: 74px;
  background: rgba(247,243,238,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s, height .4s;
}
.nav.scrolled {
  height: 62px;
  border-bottom-color: var(--line);
  background: rgba(247,243,238,0.94);
}
.nav-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.nav-wordmark { height: 30px; width: auto; display: block; transition: height .4s; }
.nav.scrolled .nav-wordmark { height: 26px; }
@media (max-width: 640px) { .nav-wordmark { height: 24px; } }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--rose);
  transition: width .3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rose); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.btn-nav {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 24px;
  background: var(--espresso);
  color: var(--ivory);
  font-weight: 500;
  border: 1px solid var(--espresso);
  transition: all .3s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--rose); border-color: var(--rose); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: .3s; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: var(--espresso);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 300;
  padding: 8px 0;
  transition: color .25s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  padding: 16px 36px;
  transition: all .3s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--rose); color: var(--white); border-color: var(--rose); }
.btn-primary:hover { background: var(--espresso); border-color: var(--espresso); }
.btn-dark { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn-dark:hover { background: var(--rose); border-color: var(--rose); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-faint); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.section-dark .btn-ghost { color: var(--ivory); border-color: rgba(247,243,238,0.3); }
.section-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }

/* Text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--rose);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color .3s;
}
.tlink:hover { border-bottom-color: var(--rose); }
.tlink .arr { transition: transform .3s; }
.tlink:hover .arr { transform: translateX(4px); }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head {
  padding: clamp(140px, 18vh, 220px) 0 clamp(60px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.page-head .lede { max-width: 620px; margin-top: 28px; }
.page-head .display { max-width: 980px; }

/* Decorative thin lines motif */
.motif-lines {
  position: absolute;
  top: 0; bottom: 0; right: 6vw;
  display: flex; gap: 26px;
  pointer-events: none; opacity: .5;
}
.motif-lines span {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

/* ============================================================
   GENERIC GRID + CARDS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* Capability / pillar card */
.pillar {
  padding: 42px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .35s, box-shadow .35s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(47,39,37,0.4); }
.pillar .num {
  font-family: var(--serif);
  font-size: 15px; font-style: italic;
  color: var(--rose); margin-bottom: 22px; display: block;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.pillar p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.pillar .tags {
  margin-top: 20px; font-size: 12.5px; letter-spacing: .3px;
  color: var(--ink-faint); line-height: 1.7;
}

/* ============================================================
   APPROACH (numbered steps)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(212,180,131,0.25); }
.step {
  padding: 44px 32px;
  background: var(--espresso);
}
.step .s-num {
  font-family: var(--serif);
  font-size: 56px; font-weight: 300;
  color: var(--gold); line-height: 1; display: block; margin-bottom: 24px;
  opacity: .9;
}
.step h4 {
  font-family: var(--serif); font-weight: 400; font-size: 25px;
  color: var(--ivory); margin-bottom: 12px;
}
.step p { font-size: 14px; color: rgba(247,243,238,0.62); line-height: 1.65; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case .c-meta .num {
  font-family: var(--serif); font-style: italic; font-size: 15px;
  color: var(--rose); display: block; margin-bottom: 16px;
}
.case .c-meta h3 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12; margin-bottom: 18px;
}
.case .c-meta .sector {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}
.case .c-body { display: grid; gap: 24px; }
.cap-row { display: grid; grid-template-columns: 130px 1fr; gap: 22px; align-items: baseline; }
.cap-row .k {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--rose); font-weight: 600; padding-top: 3px;
}
.cap-row .v { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .n {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 5.5vw, 76px); line-height: 1; color: var(--rose);
  display: block;
}
.section-dark .stat .n { color: var(--gold); }
.stat .l {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 14px; display: block;
}
.section-dark .stat .l { color: rgba(247,243,238,0.55); }

/* ============================================================
   FEATURED-IN BAND
   ============================================================ */
.featured-band { text-align: center; }
.featured-label {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 40px;
}
.section-dark .featured-label,
.bg-espresso .featured-label { color: rgba(247,243,238,0.68); }
.logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 52px; align-items: center;
}
.logos span {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 2.3vw, 27px);
  color: var(--ink-soft); opacity: .82;
  letter-spacing: .3px; line-height: 1;
  transition: opacity .3s, color .3s;
}
.logos span:hover { opacity: 1; color: var(--rose); }
.section-dark .logos span { color: var(--ivory); }
.section-dark .logos span:hover { color: var(--gold); }

/* ============================================================
   PILLS (curated lists)
   ============================================================ */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
  transition: all .25s;
  white-space: nowrap;
}
.pill:hover { border-color: var(--rose); color: var(--rose); background: rgba(183,110,121,0.05); }

/* ============================================================
   INSIGHTS
   ============================================================ */
.insight {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .3s;
}
.insight:hover { padding-left: 14px; }
.insight:last-of-type { border-bottom: 1px solid var(--line); }
.insight .i-cat {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--rose); font-weight: 600; margin-bottom: 14px; display: block;
}
.insight h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin-bottom: 12px;
}
.insight p { color: var(--ink-soft); font-size: 16px; max-width: 720px; }
.insight .i-read {
  margin-top: 16px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-faint);
}

/* Insight card variant */
.insight-card {
  background: var(--white); border: 1px solid var(--line);
  padding: 38px 34px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s, box-shadow .35s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(47,39,37,0.4); }
.insight-card .i-cat { color: var(--rose); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; }
.insight-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; }
.insight-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.insight-card .i-read { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; }
.field label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 15px 18px;
  transition: border-color .25s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--rose); }
.field textarea { resize: vertical; min-height: 140px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--espresso);
  color: rgba(247,243,238,0.78);
  padding: clamp(64px, 8vw, 96px) 0 36px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(212,180,131,0.18); }
.footer-lockup { width: 150px; height: auto; display: block; }
.footer p.tag { margin-top: 20px; max-width: 340px; font-size: 14.5px; line-height: 1.7; color: rgba(247,243,238,0.74); }
.footer h5 {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.footer-col a { display: block; text-decoration: none; color: rgba(247,243,238,0.78); font-size: 14.5px; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 12px; letter-spacing: .5px; color: rgba(247,243,238,0.6);
  flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 44px 30px; }
}
@media (max-width: 820px) {
  .nav-links, .btn-nav.desktop { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .case { grid-template-columns: 1fr; gap: 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --pad: 22px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cap-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
