/*
Theme Name: HG Cosmos
Theme URI: https://hipsettergroup.com
Author: The Hipsetter Group
Description: Bespoke theme for The Hipsetter Group. Space and astronauts — classy, professional, high tech. Black, white and gold.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: hg-cosmos
*/

/* =========================================================
   1. Tokens & base
   ========================================================= */
:root {
  --space-950: #07070a;
  --space-900: #0c0c12;
  --space-800: #12121a;
  --space-700: #1a1a24;
  --gold: #b79200;
  --gold-bright: #d4af37;
  --gold-soft: #e9d68f;
  --ivory: #f5f4f0;
  --white: #ffffff;
  --ink: #17171c;
  --ink-soft: #55555e;
  --star: rgba(255, 255, 255, 0.75);
  --hairline-d: rgba(255, 255, 255, 0.12);
  --hairline-l: rgba(23, 23, 28, 0.14);
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", "Open Sans", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
  --container-wide: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--space-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
p { margin: 0 0 1.4em; }
::selection { background: var(--gold); color: #000; }

.container { max-width: var(--container); margin: 0 auto; padding-left: clamp(20px, 4vw, 48px); padding-right: clamp(20px, 4vw, 48px); }
.container--wide { max-width: var(--container-wide); }

/* Labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  letter-spacing: 0.005em;
}
.section-lede { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-soft); max-width: 760px; line-height: 1.85; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::after { content: "\2192"; font-size: 14px; letter-spacing: 0; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--gold); color: #0a0a0d; box-shadow: 0 0 34px rgba(212, 175, 55, 0.35); }
.btn:hover::after { transform: translateX(5px); }
.btn--gold { background: var(--gold); color: #0a0a0d; }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--gold-soft); box-shadow: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Starfield decoration */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.stars circle { fill: var(--star); }
.stars svg { width: 100%; height: 100%; }

/* =========================================================
   2. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: none;
  border-bottom: 1px solid var(--hairline-d);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { background: rgba(7, 7, 10, 0.97); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 88px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.site-nav a {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: right 0.35s var(--ease);
}
.site-nav a:hover { color: var(--gold-soft); }
.site-nav a:hover::after { right: 0; }
.site-nav .nav-cta {
  border: 1px solid rgba(212, 175, 55, 0.6);
  color: var(--gold-soft);
  padding: 11px 22px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--gold); color: #0a0a0d; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 130; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px auto; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-open .site-header { z-index: 140; background: transparent; border-color: transparent; box-shadow: none; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--space-950);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    z-index: 120;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 17px; letter-spacing: 0.3em; }
}

/* =========================================================
   3. Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--space-950);
  color: #fff;
  overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.86) 0%, rgba(7, 7, 10, 0.45) 45%, rgba(7, 7, 10, 0.05) 75%),
              linear-gradient(180deg, rgba(7, 7, 10, 0.45) 0%, rgba(7, 7, 10, 0) 30%, rgba(7, 7, 10, 0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: clamp(120px, 18vh, 210px); padding-bottom: clamp(110px, 16vh, 190px); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.06;
  max-width: 13ch;
  margin-bottom: 26px;
}
.hero-tagline {
  font-family: var(--display);
  font-size: clamp(15px, 1.7vw, 21px);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 46px;
}
.hero-tagline span { color: rgba(255,255,255,0.55); padding: 0 6px; }
@media (max-width: 640px) {
  .hero-tagline { font-size: 12.5px; letter-spacing: 0.2em; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* =========================================================
   4. Sections
   ========================================================= */
.section { position: relative; padding-top: clamp(80px, 11vw, 145px); padding-bottom: clamp(80px, 11vw, 145px); }
.section--light { background: var(--ivory); }
.section--white { background: #fff; }
.section--dark { background: var(--space-900); color: rgba(255, 255, 255, 0.86); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-lede { color: rgba(255, 255, 255, 0.6); }
.section-head { margin-bottom: clamp(44px, 6vw, 76px); }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-left: auto; margin-right: auto; }

/* About cards */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); }
.about-card { border-top: 1px solid var(--hairline-l); padding-top: 30px; position: relative; }
.about-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 64px; height: 1px;
  background: var(--gold);
}
.about-card .card-num { font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; color: var(--gold); display: block; margin-bottom: 16px; }
.about-card h3 { font-size: clamp(21px, 2.1vw, 26px); margin-bottom: 12px; }
.about-card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Definition band */
.definition-band { position: relative; overflow: hidden; background: var(--space-950); }
.definition-inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; text-align: left; }
.definition-word {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 56px);
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.definition-word .accent { color: var(--gold-bright); }
.definition-pos { font-style: italic; color: rgba(255, 255, 255, 0.45); font-size: 15px; margin-bottom: 26px; font-family: Georgia, serif; }
.definition-text {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  border-left: 2px solid var(--gold);
  padding-left: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
}
.definition-src { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.6vw, 40px); }
.service-card {
  background: #fff;
  border: 1px solid var(--hairline-l);
  padding: clamp(28px, 3vw, 42px);
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(23, 23, 28, 0.12); border-color: rgba(183, 146, 0, 0.35); }
.service-card:hover::before { opacity: 1; }
.service-card .service-num { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; color: var(--gold); display: block; margin-bottom: 18px; }
.service-card h3 { font-size: clamp(20px, 1.9vw, 24px); margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.8; }
@media (max-width: 980px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* Intersection band */
.intersection-band { position: relative; background: var(--space-950); color: #fff; overflow: hidden; text-align: center; }
.intersection-bg, .intersection-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intersection-bg::after { content: ""; position: absolute; inset: 0; background: rgba(7, 7, 10, 0.68); }
.intersection-inner { position: relative; z-index: 2; padding-top: clamp(90px, 12vw, 150px); padding-bottom: clamp(90px, 12vw, 150px); }
.intersection-inner h2 {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  max-width: 30ch;
  margin: 0 auto 10px;
}
.intersection-inner h2 strong { display: block; color: #fff; font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); margin-top: 6px; }
.intersection-inner h2 strong em { font-style: normal; color: var(--gold-soft); }
.can-list { margin: clamp(40px, 5vw, 60px) auto 0; max-width: 680px; text-align: left; }
.can-title { font-family: var(--display); font-size: 12.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; text-align: center; }
.can-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.can-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.88);
}
.can-list li::before {
  content: "\2726";
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-size: 13px;
}
@media (max-width: 640px) { .can-list ul { grid-template-columns: 1fr; } }

/* Clients */
.clients-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(40px, 5vw, 64px);
}
.client-chip {
  background: #fff;
  border: 1px solid var(--hairline-l);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 30px;
  min-height: 120px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.client-chip img { max-height: 64px; width: auto; max-width: 82%; object-fit: contain; filter: grayscale(1); opacity: 0.82; transition: opacity 0.35s var(--ease), filter 0.35s var(--ease); }
.client-chip:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(23, 23, 28, 0.12); border-color: rgba(183, 146, 0, 0.4); }
.client-chip:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 900px) { .clients-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .clients-wall { grid-template-columns: repeat(2, 1fr); } }

/* Case studies */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.8vw, 44px); }
.case-card {
  position: relative;
  background: var(--space-800);
  border: 1px solid var(--hairline-d);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.case-card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.5); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55); }
.case-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.case-card:hover .case-thumb img { transform: scale(1.05); filter: grayscale(0.2); }
.case-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.case-kicker { font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.case-body h3 { color: #fff; font-size: 21px; line-height: 1.3; margin-bottom: 12px; }
.case-body p { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; line-height: 1.75; margin-bottom: 22px; }
.case-cta { margin-top: auto; font-family: var(--display); font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft); display: inline-flex; gap: 10px; align-items: center; }
.case-cta::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.case-card:hover .case-cta::after { transform: translateX(5px); }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

/* Team */
.team-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.team-media { position: relative; }
.team-media img { width: 100%; filter: grayscale(1); box-shadow: 0 30px 70px rgba(23, 23, 28, 0.28); }
.team-media::after { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid rgba(183, 146, 0, 0.5); z-index: -1; }
.team-body h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 6px; }
.team-role { font-family: var(--display); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.team-body p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .team-layout { grid-template-columns: 1fr; } .team-media { max-width: 380px; } }

/* CTA band */
.cta-band { position: relative; background: var(--space-950); color: #fff; overflow: hidden; }
.cta-bg, .cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,10,0.9) 0%, rgba(7,7,10,0.45) 60%, rgba(7,7,10,0.55) 100%); }
.cta-inner { position: relative; z-index: 2; padding-top: clamp(90px, 13vw, 170px); padding-bottom: clamp(90px, 13vw, 170px); text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(30px, 4.4vw, 54px); margin-bottom: 22px; }
.cta-inner .cta-copy { color: rgba(255, 255, 255, 0.72); max-width: 760px; margin: 0 auto 20px; font-size: 16.5px; line-height: 1.85; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin-top: 38px; }
.cta-phone { font-family: var(--display); font-size: 19px; letter-spacing: 0.08em; color: #fff; }
.cta-phone span { display: block; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.cta-phone:hover { color: var(--gold-soft); }

/* =========================================================
   5. Footer
   ========================================================= */
.site-footer { background: #050507; color: rgba(255, 255, 255, 0.62); font-size: 14px; border-top: 1px solid var(--hairline-d); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(40px, 5vw, 80px); padding: clamp(56px, 7vw, 90px) 0 clamp(36px, 4vw, 56px); }
.footer-brand img { height: 36px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 380px; line-height: 1.8; margin: 0; }
.footer-col h4 { color: #fff; font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.62); }
.footer-col a:hover { color: var(--gold-soft); }
.footer-phone { font-family: var(--display); font-size: 21px; color: #fff; letter-spacing: 0.04em; }
.footer-phone:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.38);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255, 255, 255, 0.38); }
.footer-legal a:hover { color: var(--gold-soft); }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; } }

/* =========================================================
   6. Interior pages
   ========================================================= */
.page-hero { position: relative; background: var(--space-950); color: #fff; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 2; padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(70px, 9vw, 110px); }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); margin: 0; max-width: 22ch; }
.page-hero .page-hero-lede { color: rgba(255, 255, 255, 0.66); max-width: 700px; margin: 20px 0 0; font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.85; }

/* Case study article */
.case-article { max-width: 880px; margin: 0 auto; }
.case-block { border-top: 1px solid var(--hairline-l); padding-top: 34px; margin-bottom: clamp(40px, 5vw, 60px); position: relative; }
.case-block::before { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 1px; background: var(--gold); }
.case-block h2 { font-family: var(--display); font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.case-block p { color: var(--ink-soft); font-size: 16.5px; line-height: 1.9; }
.case-media { margin: 0 0 clamp(40px, 5vw, 60px); }
.case-media img { width: 100%; }
.case-media figcaption { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }
.case-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: clamp(40px, 5vw, 60px); }
.case-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--hairline-l); padding-top: 30px; flex-wrap: wrap; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 6vw, 100px); align-items: start; }
.contact-aside h2 { font-size: clamp(26px, 3vw, 36px); }
.contact-aside p { color: var(--ink-soft); }
.contact-direct { border-top: 1px solid var(--hairline-l); margin-top: 34px; padding-top: 28px; }
.contact-label { font-family: var(--display); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.contact-value { font-family: var(--display); font-size: 25px; color: var(--ink); }
.contact-value:hover { color: var(--gold); }
.contact-form-panel {
  background: #fff;
  border: 1px solid var(--hairline-l);
  border-top: 2px solid var(--gold);
  padding: clamp(30px, 4vw, 54px);
  box-shadow: 0 30px 70px rgba(23, 23, 28, 0.08);
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Gravity Forms */
.gform_wrapper { font-family: var(--body); }
.gform_wrapper .gform_title { font-family: var(--display); font-size: 26px; color: var(--ink); }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label {
  font-family: var(--display);
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"],
.gform_wrapper textarea, .gform_wrapper select {
  width: 100%;
  border: 1px solid var(--hairline-l);
  background: var(--ivory);
  padding: 13px 15px !important;
  font-family: var(--body);
  font-size: 15px !important;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.gform_wrapper input:focus, .gform_wrapper textarea:focus, .gform_wrapper select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 146, 0, 0.15);
}
.gform_wrapper .gfield { margin-bottom: 8px; }
.gform_wrapper .gform_footer input[type="submit"], .gform_wrapper .gform_button {
  background: var(--ink);
  color: var(--gold-soft);
  border: 1px solid var(--ink);
  padding: 16px 40px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.gform_wrapper .gform_footer input[type="submit"]:hover { background: var(--gold); border-color: var(--gold); color: #0a0a0d; }
.gform_wrapper .gfield_radio label, .gform_wrapper .gfield_checkbox label {
  font-family: var(--body);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400 !important;
  color: var(--ink);
}
.gform_wrapper .gfield_required { color: var(--gold); }

/* Mask / flyer pages */
.flyer-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.flyer-image img { width: 100%; border: 1px solid var(--hairline-l); box-shadow: 0 30px 70px rgba(23, 23, 28, 0.14); }
@media (max-width: 860px) { .flyer-layout { grid-template-columns: 1fr; } }

/* Plain entry */
.entry-plain { max-width: 800px; margin: 0 auto; padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 100px); }
.entry-plain h1 { font-size: clamp(30px, 4vw, 44px); }
.entry-plain h2 { font-size: 25px; margin-top: 1.6em; }

/* Light content wrapper for interior pages */
.page-body { background: var(--ivory); }

/* wpautoterms footer bar */
.wpautoterms-footer { display: none; }

/* Utilities */
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 12px 20px; z-index: 999; }
.skip-link:focus { left: 12px; top: 12px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; }
