/* 997Website V2 — design tokens (Kiplinglee alignment) */
:root {
  --997-navy: #0B1220;
  --997-navy-deep: #0B1220;
  --997-red: #2563EB;
  --997-red-hover: #1d4ed8;
  --997-cream: #F7F5F0;
  --997-paper: #F7F5F0;
  --997-ink: #F7F5F0;
  --997-muted: #9a948a;
  --997-border: #1e293b;
  --997-gold: #D4A72C;
  --997-success: #16803c;

  --997-font-display: Georgia, 'Times New Roman', serif;
  --997-font-body: Georgia, 'Times New Roman', serif;

  --997-radius-sm: 6px;
  --997-radius-md: 12px;
  --997-radius-lg: 20px;

  --997-shadow-sm: 0 4px 16px rgba(10, 37, 64, 0.08);
  --997-shadow-md: 0 12px 40px rgba(10, 37, 64, 0.12);
  --997-shadow-lg: 0 24px 64px rgba(10, 37, 64, 0.16);

  --997-max-prose: 44rem;
  --997-max-wide: 70rem;
  --997-page-max: 72rem;
  --997-prose-narrow: 36rem;
  --997-gutter: clamp(1.25rem, 4vw, 2rem);
  --997-section-y: clamp(4rem, 8vw, 6rem);
  --997-section-y-tight: clamp(2.5rem, 5vw, 3.5rem);
  --997-section-y-hero: clamp(3rem, 10vw, 5.5rem);
}

.w997-v2 {
  font-family: var(--997-font-body);
  color: var(--997-paper);
  background: var(--997-navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.w997-v2 *,
.w997-v2 *::before,
.w997-v2 *::after {
  box-sizing: border-box;
}

.w997-v2 h1,
.w997-v2 h2,
.w997-v2 h3,
.w997-v2 .display {
  font-family: var(--997-font-display);
  color: var(--997-navy);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 1rem;
}

.w997-v2 p { margin: 0 0 1rem; }
.w997-v2 a { color: var(--997-red); }
.w997-v2 img { max-width: 100%; height: auto; display: block; }

.w997-wrap { max-width: var(--997-max-prose); margin: 0 auto; padding: 0 var(--997-gutter); }
.w997-wrap-wide { max-width: var(--997-max-wide); margin: 0 auto; padding: 0 var(--997-gutter); }

/* Pass 2 — unified page grid */
.w997-shell {
  width: 100%;
  max-width: var(--997-page-max);
  margin-inline: auto;
  padding-inline: var(--997-gutter);
}

.w997-section { padding: var(--997-section-y) 0; border-bottom: 1px solid var(--997-border); }
.w997-section--flush { border-bottom: none; }
.w997-section--hero {
  padding-block: var(--997-section-y-hero);
  min-height: min(88vh, 880px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--997-border);
  background: linear-gradient(180deg, #fff 0%, var(--997-cream) 100%);
}
.w997-section--work {
  padding-block: var(--997-section-y);
}
.w997-section--offer {
  padding-block: var(--997-section-y);
}
.w997-section--work-page {
  min-height: auto;
  background: #fff;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.w997-section--cream { background: var(--997-cream); }
.w997-section--navy { background: var(--997-navy); color: #e8edf3; }
.w997-section--navy h2,
.w997-section--navy h3 { color: #fff; }
.w997-section--navy p { color: #cdd5e0; }

.w997-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--997-red);
  margin-bottom: 1rem;
}

.w997-lead { font-size: 1.15rem; line-height: 1.55; color: var(--997-muted); }

.w997-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--997-radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.w997-btn-primary { background: var(--997-red); color: #fff !important; }
.w997-btn-primary:hover { background: var(--997-red-hover); }

.w997-btn-secondary {
  background: #fff;
  color: var(--997-navy) !important;
  border-color: var(--997-navy);
}
.w997-btn-secondary:hover { background: var(--997-cream); }

.w997-btn-ghost-on-dark {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}

.w997-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.w997-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.w997-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--997-radius-md);
  padding: 1rem;
  text-align: center;
}
.w997-stat .num {
  font-family: var(--997-font-display);
  font-size: 1.75rem;
  color: #fff;
  line-height: 1;
}
.w997-stat .lbl { font-size: 0.78rem; color: #aab4c0; margin-top: 0.35rem; }

.w997-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.w997-pillar {
  background: #fff;
  border: 1px solid var(--997-border);
  border-radius: var(--997-radius-md);
  padding: 1.5rem;
  box-shadow: var(--997-shadow-sm);
}
.w997-pillar h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.w997-pillar p { font-size: 0.95rem; color: var(--997-muted); margin: 0; }

.w997-proof-card {
  border-radius: var(--997-radius-md);
  overflow: hidden;
  border: 1px solid var(--997-border);
  background: #fff;
  box-shadow: var(--997-shadow-sm);
}
.w997-proof-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.w997-proof-card .body { padding: 1.25rem; }
.w997-proof-card .tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--997-red);
}
.w997-proof-card h3 { font-size: 1.15rem; margin: 0.35rem 0 0.5rem; }

.w997-query-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.w997-query-chips span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.w997-preview-banner {
  display: none; /* v2 lab — banner killed for portfolio review; re-enable before cutover if needed */
}

.w997-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--997-border);
}
.w997-nav-inner {
  max-width: var(--997-ed-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.w997-nav a.logo {
  font-family: var(--997-font-display);
  font-size: 1.35rem;
  color: var(--997-navy);
  text-decoration: none;
  font-weight: 700;
}
.w997-nav-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.w997-nav-links a { color: var(--997-navy); text-decoration: none; }
.w997-nav-links a:hover { color: var(--997-red); }

@media (max-width: 720px) {
  .w997-nav-links { display: none; }
}

/* Forms */
.w997-form-panel { background: #fff; border-radius: var(--997-radius-md); padding: 1.5rem; color: var(--997-ink); }
.w997-form-wrap label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--997-navy); }
.w997-form-wrap input,
.w997-form-wrap textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--997-border);
  border-radius: var(--997-radius-sm);
  font: inherit;
  margin-bottom: 0.25rem;
}
.w997-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.w997-form-group { margin-bottom: 0.75rem; }
.w997-consent { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.82rem; color: #cdd5e0; margin: 1rem 0; cursor: pointer; }
.w997-consent input { margin-top: 0.2rem; accent-color: var(--997-red); }
.w997-field-error { display: block; color: #ffb4b4; font-size: 0.78rem; min-height: 1rem; margin-bottom: 0.35rem; }
.w997-form-note { font-size: 0.85rem; color: #aab4c0; margin-top: 0.75rem; }
.w997-form-note a { color: #fff; }
.w997-form-success, .w997-form-error { padding: 1rem 0; }
.w997-success-title { font-family: var(--997-font-display); font-size: 1.35rem; color: #fff; margin-bottom: 0.5rem; }

/* Case studies + work hub */
.w997-case-hero { padding: 3rem 0 1rem; background: var(--997-cream); }
.w997-case-hero-img { margin: 1.5rem 0 0; border-radius: var(--997-radius-lg); overflow: hidden; box-shadow: var(--997-shadow-lg); }
.w997-case-hero-img img { width: 100%; max-height: 420px; object-fit: cover; }
.w997-case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .w997-case-grid { grid-template-columns: repeat(3, 1fr); } }
.w997-case-block { background: #fff; border: 1px solid var(--997-border); border-radius: var(--997-radius-md); padding: 1.25rem; }
.w997-case-block--result { background: var(--997-navy); color: #e8edf3; }
.w997-case-block--result h2 { color: #fff; }
.w997-case-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--997-red); }
.w997-check-list { margin: 0; padding-left: 1.1rem; line-height: 1.75; }
.w997-muted { color: var(--997-muted); font-size: 0.92rem; }
.w997-stat-grid--light .w997-stat { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.w997-case-secondary-img { margin-top: 2rem; border-radius: var(--997-radius-md); overflow: hidden; }

.w997-work-feature {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--997-border);
  align-items: center;
}
@media (min-width: 860px) {
  .w997-work-feature { grid-template-columns: 1.1fr 1fr; }
  .w997-work-feature--lead { grid-template-columns: 1.2fr 1fr; }
}
.w997-work-feature--lead .w997-work-feature-media img { max-height: 480px; object-fit: cover; width: 100%; border-radius: var(--997-radius-lg); box-shadow: var(--997-shadow-lg); }
.w997-work-feature-media img { width: 100%; border-radius: var(--997-radius-md); object-fit: cover; aspect-ratio: 16/10; }
.w997-work-feature-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.w997-work-feature-copy .tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--997-red);
  margin-bottom: 0.5rem;
}
.w997-pillar .tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--997-red);
  margin-bottom: 0.35rem;
}

/* Geo pages */
.w997-link-list { line-height: 1.85; padding-left: 1.1rem; }
.w997-spoke-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1rem; }
.w997-breadcrumb { font-size: 0.85rem; color: var(--997-muted); margin-bottom: 1rem; }
.w997-breadcrumb a { color: var(--997-red); }
.w997-proof-callout { background: var(--997-cream); border-left: 4px solid var(--997-red); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.w997-faq details { border-bottom: 1px solid var(--997-border); padding: 0.75rem 0; }
.w997-faq summary { cursor: pointer; font-weight: 600; color: var(--997-navy); }

/* ── Pass 5: conversion + visual impact ── */

.w997-section--tight { padding: clamp(2.25rem, 5vw, 3.25rem) 0; }

.w997-v2 h1 em { color: var(--997-red); font-style: italic; }

.w997-price-hit {
  color: var(--997-red);
  font-family: var(--997-font-display);
  font-size: 1.15em;
}

.w997-own-strip {
  font-size: 0.92rem;
  color: var(--997-navy);
  background: var(--997-cream);
  border-left: 3px solid var(--997-red);
  padding: 0.65rem 0.9rem;
  margin: 0 0 1rem;
}

.w997-hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 860px) {
  .w997-hero-grid { grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4rem); }
}
.w997-hero-copy { max-width: 38rem; }
@media (min-width: 860px) { .w997-hero-copy { max-width: none; } }
.w997-hero-figure {
  margin: 0;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-lg);
  order: -1;
}
@media (min-width: 860px) { .w997-hero-figure { order: 1; } }
.w997-hero-figure img {
  width: 100%;
  min-height: clamp(220px, 40vw, 520px);
  max-height: 560px;
  object-fit: cover;
}

/* Split sections — text + visual balance */
.w997-layout-split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .w997-layout-split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
  .w997-layout-split--reverse .w997-layout-split-visual { order: -1; }
}
.w997-layout-split-copy { max-width: 34rem; }
@media (min-width: 768px) { .w997-layout-split-copy { max-width: none; } }
.w997-layout-split-visual {
  margin: 0;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-md);
}
.w997-layout-split-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Section headers */
.w997-section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.w997-section-head--center {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.w997-section-head--center .w997-lead { margin-inline: auto; max-width: 36rem; }

/* Centered prose — intentional whitespace, not full-bleed text */
.w997-prose-center {
  max-width: var(--997-max-prose);
  margin-inline: auto;
  text-align: center;
}
.w997-prose-center--narrow { max-width: var(--997-prose-narrow); }
.w997-prose-center p:last-child { margin-bottom: 0; }

/* Offer panel */
.w997-offer-panel {
  background: #fff;
  border: 1px solid var(--997-border);
  border-radius: var(--997-radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--997-shadow-sm);
}
.w997-offer-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
@media (min-width: 768px) {
  .w997-offer-grid { grid-template-columns: 1.15fr 1fr; gap: 2.5rem; }
}
.w997-offer-aside { display: flex; flex-direction: column; gap: 0.25rem; }

/* Contact blocks */
.w997-contact-copy .w997-lead { color: #cdd5e0; }
.w997-contact-narrow {
  max-width: 32rem;
  margin-inline: auto;
}

/* Footer */
.w997-footer { padding-block: clamp(2rem, 4vw, 2.75rem); }
.w997-footer-inner { text-align: center; }

/* SavKim proof monolith */
.w997-proof-monolith {
  background: linear-gradient(165deg, var(--997-navy-deep) 0%, var(--997-navy) 55%, #0d3558 100%);
  color: #e8edf3;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.w997-proof-monolith h2 { color: #fff; font-size: clamp(1.85rem, 4vw, 2.75rem); }
.w997-proof-monolith-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .w997-proof-monolith-grid { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; }
}
.w997-proof-monolith-photo {
  margin: 0;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-lg);
}
.w997-proof-monolith-photo img {
  width: 100%;
  min-height: 240px;
  max-height: 520px;
  object-fit: cover;
}
.w997-proof-monolith-visual { position: relative; }
.w997-ad-zero {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--997-red);
  color: #fff;
  border-radius: var(--997-radius-md);
  padding: 0.75rem 1.1rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.w997-ad-zero--inline {
  position: static;
  display: inline-block;
  margin-bottom: 1rem;
}
.w997-ad-zero-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}
.w997-ad-zero-num {
  display: block;
  font-family: var(--997-font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
}
.w997-stat-grid--hero .w997-stat .num { font-size: clamp(2rem, 5vw, 2.75rem); }
.w997-stat-grid--compact { margin-top: 0.5rem; }
.w997-stat-grid--compact .w997-stat { padding: 0.65rem; }
.w997-stat-grid--compact .w997-stat .num { font-size: 1.35rem; }
.w997-proof-period { font-size: 0.88rem; color: #9aa5b1; margin-bottom: 0.5rem; }
.w997-proof-timeline { font-size: 0.85rem; color: #9aa5b1; }

/* Portfolio on home */
.w997-portfolio-spotlight { margin: 1.5rem 0; }
.w997-portfolio-spotlight-link {
  display: block;
  position: relative;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--997-shadow-lg);
}
.w997-portfolio-spotlight-link img {
  width: 100%;
  min-height: clamp(280px, 45vw, 540px);
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.w997-portfolio-spotlight-link:hover img { transform: scale(1.02); }
.w997-portfolio-spotlight-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(6,24,41,0.92));
  color: #fff;
}
.w997-portfolio-spotlight-cap .tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff8a96;
}
.w997-portfolio-spotlight-cap h3 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0.25rem 0 0.35rem;
}
.w997-portfolio-spotlight-cap p { color: #cdd5e0; margin: 0; font-size: 0.95rem; }

.w997-portfolio-duo {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) { .w997-portfolio-duo { grid-template-columns: 1fr 1fr; } }

.w997-portfolio-premium-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--997-radius-md);
  overflow: hidden;
  border: 1px solid var(--997-border);
  background: #fff;
  text-decoration: none;
  box-shadow: var(--997-shadow-md);
  transition: box-shadow 0.2s;
}
.w997-portfolio-premium-link:hover { box-shadow: var(--997-shadow-lg); }
.w997-portfolio-premium-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.w997-portfolio-premium-cap { padding: 1.15rem 1.25rem; flex: 1; }
.w997-portfolio-premium-cap .tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--997-red);
}
.w997-portfolio-premium-cap h3 {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  color: var(--997-navy);
}
.w997-portfolio-premium-cap p { font-size: 0.9rem; color: var(--997-muted); margin: 0; }
.w997-portfolio-more { text-align: center; margin-top: 1.5rem; font-weight: 600; }

/* Demo preview card (A-R Pro) */
.w997-demo-preview {
  background: linear-gradient(135deg, #0a2540 0%, #1a5a8a 100%);
  color: #fff;
  min-height: 200px;
}
.w997-demo-preview--large { min-height: 280px; }
.w997-demo-preview--case { margin-top: 1.25rem; border-radius: var(--997-radius-lg); overflow: hidden; }
.w997-demo-preview-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.85rem;
  background: rgba(0,0,0,0.25);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
}
.w997-demo-preview-chrome span {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25);
}
.w997-demo-preview-chrome em { margin-left: auto; font-style: normal; }
.w997-demo-preview-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.w997-demo-preview-body strong { font-size: 1.25rem; font-family: var(--997-font-display); }
.w997-demo-preview-body span { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

/* Offer + guarantee */
.w997-offer-list {
  margin: 1.25rem 0;
  padding-left: 1.1rem;
  line-height: 1.75;
}
.w997-guarantee {
  background: #fff;
  border: 2px solid var(--997-navy);
  border-radius: var(--997-radius-md);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.w997-hosting-note { font-size: 0.9rem; color: var(--997-muted); margin-bottom: 1.25rem; }

/* Work page upgrades */
.w997-work-feature--premium .w997-work-feature-media img {
  aspect-ratio: 4/3;
  max-height: none;
  border-radius: var(--997-radius-lg);
  box-shadow: var(--997-shadow-md);
}
.w997-work-secondary-thumb {
  margin-top: 0.65rem;
  border-radius: var(--997-radius-sm);
  aspect-ratio: 16/7;
  object-fit: cover;
  opacity: 0.92;
}
.w997-work-pbr p { font-size: 0.92rem; color: var(--997-muted); margin-bottom: 0.5rem; }
.w997-stat-grid--inline {
  margin: 1rem 0;
  background: var(--997-cream);
  padding: 0.75rem;
  border-radius: var(--997-radius-md);
}
.w997-stat-grid--inline .w997-stat {
  background: #fff;
  border: 1px solid var(--997-border);
}
.w997-stat-grid--inline .w997-stat .num { color: var(--997-navy); font-size: 1.5rem; }
.w997-stat-grid--inline .w997-stat .lbl { color: var(--997-muted); }
.w997-more-label { margin-top: 2.5rem; font-size: 1.25rem; }

/* Case study */
.w997-case-hero--proof { background: var(--997-cream); }
.w997-case-hero-img img {
  max-height: none;
  min-height: 240px;
  max-height: 560px;
  object-fit: cover;
}
.w997-case-gallery {
  margin-top: 2rem;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-md);
}
.w997-case-gallery img { width: 100%; max-height: 480px; object-fit: cover; }
.w997-muted-light { font-size: 0.88rem; color: #aab4c0; margin: 0; }

.w997-contact-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 768px) { .w997-contact-split { grid-template-columns: 1fr 1.1fr; gap: 2rem; } }

@media (max-width: 719px) {
  .w997-section--hero { min-height: auto; padding-block: clamp(2rem, 8vw, 3rem); }
  .w997-cta-row .w997-btn { width: 100%; }
  .w997-ad-zero { bottom: 0.65rem; right: 0.65rem; padding: 0.55rem 0.85rem; }
  .w997-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .w997-proof-monolith-photo img { min-height: 200px; }
  .w997-offer-panel { padding: 1.5rem; }
  .w997-portfolio-spotlight-link img { aspect-ratio: 4 / 3; min-height: 220px; }
  .w997-layout-split-copy { max-width: none; }
  .w997-hero-copy { max-width: none; }
}

@media (min-width: 1200px) {
  .w997-pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .w997-portfolio-duo { gap: 1.75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Pass 3 — Editorial art direction (homepage)
   Asymmetric grid · full-bleed moments · real project imagery
   ═══════════════════════════════════════════════════════════════ */

:root {
  --997-ed-max: 76rem;
  --997-ed-gutter: clamp(1.25rem, 4.5vw, 2.5rem);
  --997-ed-gap: clamp(1.5rem, 3vw, 2.5rem);
}

.w997-ed-page {
  overflow-x: clip;
}

.w997-ed-grid {
  width: 100%;
  max-width: var(--997-ed-max);
  margin-inline: auto;
  padding-inline: var(--997-ed-gutter);
}

/* ── Hero: asymmetric, image bleeds viewport ── */
.w997-ed-hero {
  min-height: min(94vh, 920px);
  display: flex;
  align-items: center;
  background: var(--997-paper);
  border-bottom: 1px solid var(--997-border);
}

.w997-ed-hero-inner {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  align-items: center;
  gap: var(--997-ed-gap);
}

@media (min-width: 900px) {
  .w997-ed-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
  }
}

.w997-ed-hero-copy {
  padding: clamp(2rem, 6vw, 4rem) var(--997-ed-gutter);
  max-width: 38rem;
}

@media (min-width: 900px) {
  .w997-ed-hero-copy {
    justify-self: end;
    width: 100%;
    max-width: 34rem;
    padding-right: clamp(2rem, 4vw, 3rem);
    margin-left: max(var(--997-ed-gutter), calc((100vw - var(--997-ed-max)) / 2 + var(--997-ed-gutter)));
  }
}

.w997-ed-hero-visual {
  margin: 0;
  overflow: hidden;
  order: -1;
}

@media (min-width: 900px) {
  .w997-ed-hero-visual {
    order: 1;
    height: min(94vh, 920px);
    margin-right: 0;
    border-radius: 0;
  }
}

.w997-ed-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 52vw, 560px);
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 900px) {
  .w997-ed-hero-visual img {
    min-height: 100%;
    border-radius: var(--997-radius-lg) 0 0 var(--997-radius-lg);
    box-shadow: var(--997-shadow-lg);
  }
}

/* ── Section bands ── */
.w997-ed-band {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.w997-ed-band--paper { background: var(--997-paper); }
.w997-ed-band--cream { background: var(--997-cream); }
.w997-ed-band--ink {
  background: var(--997-navy-deep);
  color: #e8edf3;
}
.w997-ed-band--ink h2,
.w997-ed-band--ink h3 { color: #fff; }
.w997-ed-band--ink p { color: #b8c4d0; }
.w997-ed-band--offer {
  background: var(--997-cream);
  padding-block: clamp(4.5rem, 11vw, 8rem);
}
.w997-ed-band--closing {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--997-border);
}

.w997-ed-band-head {
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.w997-ed-band-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

/* Problem: headline offset, image bleeds */
.w997-ed-problem-copy {
  max-width: 34rem;
  margin-left: auto;
  text-align: right;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.w997-ed-problem-copy h2 {
  font-size: clamp(1.85rem, 4vw, 3.25rem);
}

.w997-ed-bleed-image {
  margin: 0;
  width: 100vw;
  max-height: clamp(320px, 55vw, 680px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.w997-ed-bleed-image img {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 50vw, 640px);
  object-fit: cover;
  object-position: center;
}

.w997-ed-bleed-image--offset-right img {
  object-position: 65% center;
}

/* Diagnosis: image bleeds left, copy floats right */
.w997-ed-diagnosis {
  display: grid;
  gap: var(--997-ed-gap);
  align-items: center;
}

@media (min-width: 900px) {
  .w997-ed-diagnosis {
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    max-width: var(--997-ed-max);
    margin-inline: auto;
    padding-inline: var(--997-ed-gutter);
  }
}

.w997-ed-diagnosis-visual {
  margin: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

@media (min-width: 900px) {
  .w997-ed-diagnosis-visual {
    width: calc(100% + ((100vw - var(--997-ed-max)) / 2));
    margin-left: calc(50% - 50vw);
    border-radius: 0 var(--997-radius-lg) var(--997-radius-lg) 0;
  }
}

.w997-ed-diagnosis-visual img {
  width: 100%;
  min-height: clamp(300px, 48vw, 560px);
  object-fit: cover;
}

.w997-ed-diagnosis-copy {
  padding-inline: var(--997-ed-gutter);
  max-width: 32rem;
}

@media (min-width: 900px) {
  .w997-ed-diagnosis-copy {
    padding-inline: 0;
    padding-right: var(--997-ed-gutter);
  }
}

.w997-ed-diagnosis-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* Pillars on dark band */
.w997-ed-pillars {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .w997-ed-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.w997-ed-pillar {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}

.w997-ed-pillar-num {
  display: block;
  font-family: var(--997-font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--997-red);
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.w997-ed-pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.w997-ed-pillar p {
  font-size: 0.95rem;
  margin: 0;
}

/* Proof: cinematic full-bleed background */
.w997-ed-proof {
  position: relative;
  min-height: clamp(520px, 85vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.w997-ed-proof-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.w997-ed-proof-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.w997-ed-proof-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(6, 24, 41, 0.35) 0%,
    rgba(6, 24, 41, 0.75) 45%,
    rgba(6, 24, 41, 0.94) 100%
  );
}

.w997-ed-proof-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.w997-ed-proof-panel {
  max-width: 36rem;
  margin-left: auto;
  color: #e8edf3;
  background: rgba(10, 37, 64, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--997-radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}

.w997-ed-proof-panel h2 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
}

@media (min-width: 900px) {
  .w997-ed-proof-panel {
    margin-left: auto;
    margin-right: 0;
  }
}

/* Portfolio editorial showcases */
.w997-ed-work {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.w997-ed-work-head {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.w997-ed-work-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* Lil Naitch — visual wow, full bleed */
.w997-ed-showcase--wow {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.w997-ed-showcase-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.w997-ed-showcase--wow .w997-ed-showcase-link {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(420px, 75vh, 820px);
}

.w997-ed-showcase--wow img {
  width: 100%;
  height: 100%;
  min-height: clamp(420px, 75vh, 820px);
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

.w997-ed-showcase-link:hover img {
  transform: scale(1.03);
}

.w997-ed-showcase-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(2.5rem, 8vw, 5rem) var(--997-ed-gutter) clamp(2rem, 5vw, 3rem);
  background: linear-gradient(transparent, rgba(6, 24, 41, 0.95));
  color: #fff;
  max-width: 42rem;
}

@media (min-width: 900px) {
  .w997-ed-showcase-cap {
    padding-left: max(var(--997-ed-gutter), calc((100vw - var(--997-ed-max)) / 2 + var(--997-ed-gutter)));
  }
}

.w997-ed-showcase-cap .tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #ff8a96;
}

.w997-ed-showcase-cap h3 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0.35rem 0 0.5rem;
}

.w997-ed-showcase-cap p {
  color: #cdd5e0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin: 0 0 1rem;
  max-width: 32rem;
}

.w997-ed-showcase-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--997-gold);
}

/* SavKim — proof split */
.w997-ed-showcase--proof {
  max-width: var(--997-ed-max);
  margin-inline: auto;
  padding-inline: var(--997-ed-gutter);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.w997-ed-showcase-split {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-lg);
  background: var(--997-navy-deep);
}

@media (min-width: 900px) {
  .w997-ed-showcase-split {
    grid-template-columns: 1.25fr 1fr;
    min-height: 420px;
  }
}

.w997-ed-showcase-media {
  margin: 0;
  overflow: hidden;
}

.w997-ed-showcase-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(260px, 40vw, 480px);
  object-fit: cover;
}

.w997-ed-showcase-copy {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.w997-ed-showcase-copy .tag {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--997-red);
}

.w997-ed-showcase-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.35rem 0 0.75rem;
}

.w997-ed-showcase-copy p {
  color: var(--997-muted);
  margin: 0 0 1.25rem;
}

.w997-ed-showcase-copy .w997-ed-showcase-cta {
  color: var(--997-red);
}

/* A-R Pro — commercial capability */
.w997-ed-showcase--commercial {
  max-width: var(--997-ed-max);
  margin-inline: auto;
  padding-inline: var(--997-ed-gutter);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.w997-ed-showcase-commercial {
  display: grid;
  text-decoration: none;
  color: inherit;
  border-radius: var(--997-radius-lg);
  overflow: hidden;
  box-shadow: var(--997-shadow-lg);
  background: var(--997-navy-deep);
}

@media (min-width: 900px) {
  .w997-ed-showcase-commercial {
    grid-template-columns: 1.2fr 1fr;
    min-height: 380px;
  }
}

.w997-ed-commercial-visual {
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #061829 0%, #0a2540 50%, #1a4a72 100%);
}

.w997-demo-preview--editorial {
  width: 100%;
  max-width: 480px;
  min-height: clamp(220px, 35vw, 320px);
  border-radius: var(--997-radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.w997-demo-preview--editorial .w997-demo-preview-body {
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
}

.w997-demo-preview--editorial .w997-demo-preview-body strong {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.w997-ed-showcase-copy--dark {
  background: var(--997-navy);
  color: #e8edf3;
}

.w997-ed-showcase-copy--dark h3 { color: #fff; }
.w997-ed-showcase-copy--dark p { color: #b8c4d0; }
.w997-ed-showcase-copy--dark .w997-ed-showcase-cta { color: var(--997-gold); }

.w997-ed-portfolio-more {
  text-align: center;
  margin-top: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Offer — poster layout */
.w997-ed-offer {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  max-width: var(--997-ed-max);
  margin-inline: auto;
  padding-inline: var(--997-ed-gutter);
  align-items: start;
}

@media (min-width: 900px) {
  .w997-ed-offer {
    grid-template-columns: auto 1fr;
    gap: clamp(3rem, 8vw, 6rem);
  }
}

.w997-ed-offer-price {
  text-align: center;
}

@media (min-width: 900px) {
  .w997-ed-offer-price {
    text-align: left;
    position: sticky;
    top: 6rem;
  }
}

.w997-ed-offer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--997-red);
  margin-bottom: 0.5rem;
}

.w997-ed-offer-num {
  display: block;
  font-family: var(--997-font-display);
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.95;
  color: var(--997-navy);
  font-weight: 600;
}

.w997-ed-offer-tagline {
  font-family: var(--997-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--997-muted);
  margin: 0.75rem 0 0;
  max-width: 14rem;
}

.w997-ed-offer-body {
  background: #fff;
  border-radius: var(--997-radius-lg);
  padding: clamp(2rem, 4vw, 2.75rem);
  box-shadow: var(--997-shadow-md);
  border: 1px solid var(--997-border);
}

.w997-ed-offer-body .w997-offer-list { margin-top: 0; }

/* Closing (Kip + MyEasySystem) */
.w997-ed-closing {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.w997-ed-closing h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.w997-ed-closing-next {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--997-border);
  color: var(--997-muted);
  font-size: 0.98rem;
}

/* Contact — full bleed with real imagery */
.w997-ed-contact {
  position: relative;
  padding-block: clamp(4rem, 10vw, 7rem);
  color: #e8edf3;
}

.w997-ed-contact-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.w997-ed-contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.w997-ed-contact-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(6, 24, 41, 0.92) 0%,
    rgba(10, 37, 64, 0.88) 50%,
    rgba(6, 24, 41, 0.94) 100%
  );
}

.w997-ed-contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 768px) {
  .w997-ed-contact-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
  }
}

.w997-ed-contact-copy h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.w997-ed-contact-copy .w997-lead {
  color: #cdd5e0;
}

/* Mobile stacking */
@media (max-width: 899px) {
  .w997-ed-problem-copy {
    margin-left: 0;
    text-align: left;
    padding-inline: var(--997-ed-gutter);
  }

  .w997-ed-bleed-image {
    max-height: none;
  }

  .w997-ed-diagnosis-visual {
    margin-bottom: 0;
  }

  .w997-ed-diagnosis-copy {
    max-width: none;
  }

  .w997-ed-proof-panel {
    margin-inline: var(--997-ed-gutter);
    max-width: none;
  }

  .w997-ed-proof {
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .w997-ed-showcase--wow .w997-ed-showcase-cap {
    padding-left: var(--997-ed-gutter);
  }

  .w997-ed-hero-copy .w997-cta-row .w997-btn {
    width: 100%;
  }

  .w997-ed-offer-price {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--997-border);
  }
}

@media (max-width: 719px) {
  .w997-ed-hero {
    min-height: auto;
  }

  .w997-ed-showcase--wow .w997-ed-showcase-link {
    min-height: 70vh;
  }

  .w997-ed-showcase--wow img {
    min-height: 70vh;
  }
}
