/* ==========================================================================
   UNCAPPED CLOSERS — CENTRAL STYLESHEET
   Brand: Direction 01 / Premium Authority
   Single source of truth for site styling. Edit variables below to
   restyle the whole site.
   ========================================================================== */

/* ---------- 1. VARIABLES -------------------------------------------------- */
:root{
  /* Brand colors (Brand Kit, Direction 01) */
  --obsidian: #050505;   /* primary background */
  --bone:     #F4F4F2;   /* primary mark / type */
  --graphite: #171717;   /* panels / depth */
  --steel:    #A6A6A6;   /* secondary labels */

  /* Derived utility tones (do not use as brand accents) */
  --line:      rgba(244,244,242,0.14);
  --line-soft: rgba(244,244,242,0.08);
  --bone-dim:  rgba(244,244,242,0.62);
  --focus-ring: #F4F4F2;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-eyebrow: 0.8125rem;
  --fs-body:    1.0625rem;
  --fs-lead:    1.25rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 9rem;

  /* Layout */
  --content-max: 1180px;
  --content-pad: 1.5rem;
  --radius: 2px; /* brand is disciplined/sharp — near-zero radius throughout */

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 180ms;
}

/* ---------- 2. RESET / GLOBAL --------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}
body{
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, h4, p, figure{ margin: 0; }
svg{ display: block; }

/* Skip link */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bone);
  color: var(--obsidian);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus{ left: var(--content-pad); top: var(--content-pad); }

/* Focus states — visible everywhere, native first */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* ---------- 3. TYPOGRAPHY -------------------------------------------------- */
h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1{ font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2{ font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3{ font-size: 1.25rem; font-weight: 600; }

.lead{
  font-size: var(--fs-lead);
  color: var(--bone-dim);
  max-width: 62ch;
}
p + p{ margin-top: 1em; }
.measure{ max-width: 66ch; }

.eyebrow{
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-2);
}

.section-head{ margin-bottom: var(--space-4); }
.section-head h2{ max-width: 22ch; }

/* ---------- 4. LAYOUT ------------------------------------------------------ */
.wrap{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}
main section{
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line-soft);
}
main section:first-of-type{ border-top: none; }
.section-tight{ padding: var(--space-5) 0; }

.grid{ display: grid; gap: var(--space-3); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.divider{
  height: 1px;
  background: var(--line);
  border: none;
  margin: var(--space-5) 0;
}

.panel{
  background: var(--graphite);
  border: 1px solid var(--line-soft);
  padding: var(--space-4);
}

.on-bone{
  background: var(--bone);
  color: var(--obsidian);
}
.on-bone .eyebrow{ color: #5c5c5a; }
.on-bone .lead, .on-bone p{ color: #3a3a38; }

/* ---------- 5. HEADER / NAV ------------------------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
}
/* The blur/background live on a pseudo-element rather than on
   .site-header itself. backdrop-filter (like transform) makes the
   element it's set on the containing block for any fixed-position
   descendant. .nav-links (the mobile menu) is position:fixed and
   expects to be positioned against the viewport, so if
   backdrop-filter stayed on .site-header, the menu's inset would
   resolve against the ~84px-tall header instead of the screen,
   collapsing it to almost no height. */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5,5,5,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; flex-direction: column; line-height: 1; gap: 0.4rem; }
.brand-mark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.brand-logo{
  height: 50px;
  width: auto;
  display: block;
}
.footer-col .brand-logo{ height: 20px; margin-bottom: 0.25rem; }
.brand-tag{
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a{
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color var(--dur) var(--ease);
  padding: 0.4rem 0;
}
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.active{
  color: var(--bone);
}

.nav-cta{
  display: none;
  padding-left: 2.4rem!important;
  padding-right: 2.4rem!important;
}
@media (min-width: 861px){
  .nav-cta{ display: inline-flex; }
}

.menu-toggle{
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after{ content: ""; display: block; }
.menu-icon{ position: relative; width: 22px; height: 14px; }
.menu-icon span,
.menu-icon i{
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--bone);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-icon span{ top: 0; }
.menu-icon i.mid{ top: 50%; margin-top: -0.75px; }
.menu-icon i.bot{ bottom: 0; }
[data-nav-open="true"] .menu-icon span{ transform: translateY(6.25px) rotate(45deg); }
[data-nav-open="true"] .menu-icon i.mid{ opacity: 0; }
[data-nav-open="true"] .menu-icon i.bot{ transform: translateY(-6.25px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--obsidian);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--content-pad);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    overflow-y: auto;
  }
  [data-nav-open="true"] .nav-links{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a{ font-size: 1rem; }
  .nav-cta{ display: inline-flex; margin-top: var(--space-2); }
  .menu-toggle{ display: inline-flex; }
}

/* ---------- 6. BUTTONS ------------------------------------------------------ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--bone); color: var(--obsidian)!important; }
.btn-primary:hover{ background: #d9d9d6; }
.btn-ghost{ border-color: var(--line); color: var(--bone); }
.btn-ghost:hover{ border-color: var(--bone); }
.btn-dark{ background: var(--obsidian); color: var(--bone); border-color: var(--line); }
.btn-dark:hover{ border-color: var(--bone); }
.btn-wide{ width: 100%; }
.btn[disabled]{ opacity: 0.5; cursor: not-allowed; }

.actions{ display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }

/* ---------- 7. HERO --------------------------------------------------------- */
.hero{ padding: var(--space-7) 0 var(--space-6); border-top: none; }
.hero-inner{ max-width: 46rem; }
.hero h1{ text-wrap: balance; }
.hero .lead{ margin-top: var(--space-3); }
.hero .actions{ margin-top: var(--space-4); }
.hero-photo{ margin-top: var(--space-5); }

/* ---------- 8. PHOTO / MEDIA PLACEHOLDER ------------------------------------ */
.media-frame{
  position: relative;
  background: var(--graphite);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.media-frame.wide{ aspect-ratio: 16 / 10; }
.media-frame img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.media-frame.avatar{
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  max-width: 220px;
}
.media-frame.avatar img{ object-position: center; }
.media-frame .media-label{
  padding: var(--space-3);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  text-transform: uppercase;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  background: linear-gradient(to top, rgba(5,5,5,0.65), transparent 120%);
}
.media-frame .media-mark{
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.08em;
}
figcaption{
  margin-top: var(--space-2);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- 9. CARDS -------------------------------------------------------- */
.card{
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: var(--graphite);
}
.card h3{ margin-bottom: var(--space-2); }
.card p{ color: var(--bone-dim); font-size: 0.95rem; }
.card .num{
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: var(--space-2);
}

.card-feature{ background: var(--bone); color: var(--obsidian); }
.card-feature p{ color: #3a3a38; }
.card-feature .tag{
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--obsidian);
  color: var(--bone);
  padding: 0.25rem 0.6rem;
  margin-bottom: var(--space-3);
}

/* ---------- 10. LISTS -------------------------------------------------------- */
.check-list li,
.plain-list li{
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--bone-dim);
  font-size: 0.95rem;
  padding-left: 1.6rem;
  position: relative;
}
.check-list li::before{
  content: "\2713";
  position: absolute; left: 0; top: 0.85rem;
  color: var(--bone);
  font-weight: 700;
}
.cross-list li::before{
  content: "\2715";
  position: absolute; left: 0; top: 0.85rem;
  color: var(--steel);
}
.cross-list li{ padding-left: 1.6rem; position: relative; }
.plain-list li::before{
  content: "\2014";
  position: absolute; left: 0; top: 0.85rem;
  color: var(--steel);
}

/* ---------- 11. STATS / CASE STUDIES ---------------------------------------- */
.stat-card{
  border: 1px solid var(--line);
  padding: var(--space-4);
}
.stat-big{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
}
.stat-label{
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin: var(--space-2) 0 var(--space-3);
}
.stat-card h3{ font-size: 1.05rem; margin-bottom: var(--space-2); }
.stat-card p{ color: var(--bone-dim); font-size: 0.95rem; }

/* ---------- 12. FORMS -------------------------------------------------------- */
.form-field{ margin-bottom: var(--space-3); }
label{
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  margin-bottom: 0.5rem;
}
label .req{ color: var(--bone); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea{
  width: 100%;
  background: var(--graphite);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus{ border-color: var(--bone); }
textarea{ min-height: 120px; resize: vertical; }
.field-hint{ font-size: 0.8rem; color: var(--steel); margin-top: 0.4rem; }
fieldset{ border: none; padding: 0; margin: 0 0 var(--space-3); }
legend{
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  padding: 0;
  margin-bottom: 0.75rem;
}
.radio-row, .checkbox-row{ display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 0.6rem; }
.radio-row input, .checkbox-row input{ width: auto; margin-top: 0.2rem; }
.radio-row label, .checkbox-row label{ color: var(--bone-dim); margin: 0; }
.form-status{ margin-top: var(--space-3); font-size: 0.9rem; }
.form-status[data-state="error"]{ color: #e2b8b8; }
.form-status[data-state="success"]{ color: var(--bone); }

/* ---------- 13. FOOTER ------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: var(--space-5) 0 var(--space-4);
}
.footer-grid{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-col h4{
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-2);
}
.footer-col a{
  display: block;
  color: var(--bone-dim);
  padding: 0.3rem 0;
  font-size: 0.9rem;
}
.footer-col a:hover{ color: var(--bone); }
.footer-bottom{
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.8rem;
  color: var(--steel);
}
.footer-bottom a{ color: var(--steel); }
.footer-bottom a:hover{ color: var(--bone); }

/* ---------- 14. UTILITIES ---------------------------------------------------- */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center{ text-align: center; }
.mt-0{ margin-top: 0 !important; }
.center-col{ max-width: 42rem; margin-left: auto; margin-right: auto; }

/* ---------- 15. 404 / THANK YOU / LEGAL -------------------------------------- */
.status-page{
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-7) 0;
}
.status-code{
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--steel);
  text-transform: uppercase;
}
.legal h2{ font-size: 1.4rem; margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal h2:first-of-type{ margin-top: 0; }
.legal p, .legal li{ color: var(--bone-dim); }
.legal ul{ padding-left: 1.4rem; list-style: disc; margin-top: 0.5rem; }
.legal li{ padding: 0.2rem 0; }
.legal strong{ color: var(--bone); }

/* ---------- 16. RESPONSIVE -------------------------------------------------- */
@media (max-width: 720px){
  main section{ padding: var(--space-5) 0; }
  .footer-grid{ flex-direction: column; }
  .hero{ padding: var(--space-5) 0 var(--space-4); }

}

/* ---------- 17. CASE STUDY CARDS / VIDEO MODAL ------------------------------ */
.case-stats-bar{
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.case-stat .stat-big{ font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.case-stat .stat-label{ margin: 0.35rem 0 0; }

.case-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 980px){
  .case-list{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .case-list{ grid-template-columns: 1fr; }
}
.case-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--graphite);
  padding: var(--space-3);
}
.case-card .case-thumb{ margin-bottom: var(--space-3); }
.case-card .case-body{
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card .case-watch{ margin-top: auto; align-self: flex-start; }

.case-thumb{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #222220, #0a0a0a);
  padding: 0;
  cursor: pointer;
}
.case-thumb img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: opacity var(--dur) var(--ease);
}
.case-thumb:hover img{ opacity: 0.62; }
.case-thumb .case-tag{
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(5,5,5,0.6);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
}

.play-btn{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(244,244,242,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.play-btn svg{ width: 18px; height: 18px; fill: var(--obsidian); margin-left: 3px; }
.case-thumb:hover .play-btn{ transform: scale(1.08); background: var(--bone); }
.play-btn-lg{ position: static; width: 76px; height: 76px; margin: 0 auto 1rem; }
.play-btn-lg svg{ width: 22px; height: 22px; }

.case-body .eyebrow{ margin-bottom: var(--space-1); }
.case-body h3{ margin-bottom: var(--space-2); }
.case-body p:not(.eyebrow){ color: var(--bone-dim); font-size: 0.95rem; }
.case-watch{ margin-top: var(--space-3); }
.case-watch svg{ width: 12px; height: 12px; fill: currentColor; }

/* Full-case (linked) variant, e.g. once a dedicated page exists for a case study */
.case-card.case-linked .case-body{ display: flex; flex-direction: column; }

/* Video modal */
.video-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}
.video-modal[hidden]{ display: none; }
.video-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.86);
}
.video-modal-dialog{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  background: var(--graphite);
  border: 1px solid var(--line);
  padding: var(--space-4);
}
.video-modal-close{
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal-close:hover{ border-color: var(--bone); }
.video-modal-frame{
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder{ text-align: center; color: var(--steel); padding: var(--space-3); }
.video-placeholder p{ font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }
.video-modal-title{
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--bone-dim);
  text-align: center;
}
body.modal-open{ overflow: hidden; }
