/* ==========================================================================
   SubjectRX — homepage.css
   Page-specific styles for index.html only.
   All shared tokens, reset, nav, footer, buttons, and typography
   come from global.css — do not redefine them here.
   ========================================================================== */


/* ─────────────────────────────────────────────────────────────────────────
   HERO
   Left: flex column inside .wrap, copy top-aligned, stats pin to bottom.
   Right: .hero-image sits outside .wrap, absolutely positioned within
   .hero so it can reach the browser edge. Option 2 treatment — equal
   margin top, right, and bottom; flush to right browser edge.
   ───────────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: var(--nav-h, 52px);
  background: linear-gradient(135deg, #156650 0%, #0C5642 42%, #093F32 100%);
  overflow: hidden;
  position: relative;
  min-height: calc(100dvh - var(--nav-h, 52px));
}

/* .hero-inner is now copy-only — single column, no image grid column */
.hero-inner {
  display: flex;
  min-height: calc(100dvh - var(--nav-h, 52px));
  padding-right: 42%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  padding: 72px 52px 0 0;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .36);
  display: block;
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.03;
  letter-spacing: -.018em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-h1-fade {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 4.8vw, 58px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.03;
  letter-spacing: -.018em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 0;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(255, 255, 255, .52);
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
}

/* Stats pin to the bottom of the content column */
.hero-stats {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 52px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  gap: 0;
}

.hero-stat {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.hero-stat-n {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 300;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -.04em;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.hero-stat-l {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  line-height: 1.5;
  display: block;
}

/* Image — absolutely positioned within .hero, outside .wrap.
   Flush to right browser edge. Height spans full hero from
   top (below nav offset) to bottom. object-fit:cover keeps
   the portrait image contained and well-cropped. */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  overflow: hidden;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

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

  .hero-inner {
    min-height: auto;
    padding-right: 0;
  }

  .hero-content {
    padding: 44px 0 0;
  }

  /* On tablet/mobile image returns to flow, stacks below copy */
  .hero-image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 32px;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  .hero-stats {
    padding-bottom: 36px;
  }

  .hero-stat-n {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .hero-h1,
  .hero-h1-fade {
    font-size: clamp(32px, 9vw, 42px);
  }

  .hero-sub {
    font-size: 13.5px;
    max-width: 100%;
  }

  .hero-stat-n {
    font-size: 24px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   WHAT WE DO
   ───────────────────────────────────────────────────────────────────────── */
.wwd {
  background: var(--cream);
  padding: 96px 0 88px;
}

.wwd-statement {
  max-width: 620px;
  padding-bottom: 48px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--bdr);
}

.wwd-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.wwd-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(170deg, #BDB8AE 0%, #A8A398 100%);
}

.wwd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wwd-copy {
  display: flex;
  flex-direction: column;
}

/* Ink-coloured body copy variant — used for the emphasis line in wwd */
.wwd-copy .body-copy-ink {
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.76;
  color: var(--ink);
  margin-bottom: 16px;
}

.wwd-client {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--bdr-lt);
}

.wwd-client-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 10px;
}

.wwd-client-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
}

.wwd-terms {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bdr);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.wwd-term {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: .7;
}

.wwd-term-sep {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--bdr);
  margin: 0 10px;
}

@media (max-width: 900px) {
  .wwd {
    padding: 64px 0;
  }

  .wwd-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .wwd-img {
    aspect-ratio: 3/2;
    max-width: 400px;
  }

  .wwd-statement {
    margin-bottom: 36px;
    padding-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .wwd-statement {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .wwd-terms {
    gap: 2px 0;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   PROBLEM — dark green narrative section
   problem-open is the semantic h2 equivalent. Promoted to <h2> in the
   rebuild with identical visual output.
   ───────────────────────────────────────────────────────────────────────── */
.problem {
  padding: 96px 0;
  background: linear-gradient(135deg, #0A3A2D 0%, #072F24 50%, #06271E 100%);
}

.problem-inner {
  max-width: 580px;
}

.problem-open {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 32px;
}

.problem-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}

.problem-beat {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}

.problem-rule {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin: 32px 0;
}

.problem-close {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.78;
  color: rgba(255, 255, 255, .82);
}

.problem-close em {
  font-style: italic;
  color: var(--white);
}

.problem-close strong {
  font-weight: 500;
  color: var(--white);
}

@media (max-width: 768px) {
  .problem {
    padding: 64px 0;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   WHY SUBJECTRX
   ───────────────────────────────────────────────────────────────────────── */
.why {
  background: var(--surf);
  padding: 96px 0;
  border-top: 1px solid var(--bdr);
}

.why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--bdr);
}

.why-context {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
}

.why-lead {
  padding-right: 56px;
  border-right: 1px solid var(--bdr);
}

.why-num {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--sage);
  display: block;
  margin-bottom: 18px;
}

.why-lead-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 14px;
}

.why-lead-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.76;
  color: var(--muted);
}

.why-stack {
  padding-left: 48px;
  display: flex;
  flex-direction: column;
}

.why-item {
  flex: 1;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.why-item + .why-item {
  border-top: 1px solid var(--bdr-lt);
  padding-top: 32px;
  padding-bottom: 0;
}

.why-item-title {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 10px;
}

.why-item-body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--muted);
}

@media (max-width: 900px) {
  .why {
    padding: 64px 0;
  }

  .why-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 32px;
    margin-bottom: 36px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-lead {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--bdr);
    padding-bottom: 32px;
  }

  .why-stack {
    padding-left: 0;
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .why-item {
    padding-bottom: 22px;
  }

  .why-item + .why-item {
    padding-top: 22px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   IMAGE BREAK
   ───────────────────────────────────────────────────────────────────────── */
.img-break {
  background: var(--cream);
  padding: 80px 0;
  border-top: 1px solid var(--bdr);
}

.img-break-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
  align-items: center;
}

.img-break-label {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 18px;
}

.img-break-h {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.26;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 18px;
}

.img-break-h em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.22em;
}

.img-break-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.72;
  color: var(--muted);
}

.img-break-frame {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(160deg, #C0BAB0 0%, #A4A098 100%);
}

.img-break-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 960px) {
  .img-break {
    padding: 60px 0;
  }

  .img-break-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .img-break-frame {
    aspect-ratio: 3/2;
    max-width: 500px;
  }
}


/* Founder eyebrow — extended margin to create separation from the grid below */
.eyebrow-founder {
  margin-bottom: 32px;
}


/* ─────────────────────────────────────────────────────────────────────────
   FOUNDER / ABOUT
   pos-line is the section's semantic heading-level statement.
   Remains as <p> — it is a brand statement, not a section heading.
   The section title is conveyed by the visually-hidden h2 below.
   ───────────────────────────────────────────────────────────────────────── */
.founder {
  background: var(--surf);
  padding: 96px 0;
  border-top: 1px solid var(--bdr);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.founder-quote-wrap {
  border-left: 2px solid var(--g);
  padding-left: 24px;
  margin-bottom: 20px;
}

.founder-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.62;
  color: var(--ink);
}

.founder-attr {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
}

.founder-accent {
  width: 28px;
  height: 2px;
  background: var(--g);
  margin-bottom: 24px;
  border-radius: 1px;
}

.pos-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 20px;
}

.pos-line em {
  font-style: italic;
}

.founder-detail {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.74;
  color: var(--muted);
  margin-bottom: 12px;
}

.founder-detail:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .founder {
    padding: 64px 0;
  }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .founder-quote {
    font-size: 16px;
  }

  .pos-line {
    font-size: 22px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   CTA BAND
   Left-offset layout — anchored to content column, not centred.
   Falls back to centred on mobile.
   ───────────────────────────────────────────────────────────────────────── */
.cta-band {
  padding: 92px 0;
  background: linear-gradient(135deg, #0C503E 0%, #0A4A39 50%, #083D30 100%);
}

.cta-offset {
  max-width: 460px;
  margin-left: max(44px, calc(50% - 540px));
}

@supports not (margin-left: max(44px, calc(50% - 540px))) {
  .cta-offset {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-h {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 4px;
}

.cta-h-em {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  display: block;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .cta-band {
    padding: 72px 0;
    text-align: center;
  }

  .cta-offset {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-h {
    font-size: clamp(16px, 4vw, 21px);
  }
}

@media (max-width: 600px) {
  .cta-band {
    padding: 60px 0;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   VISUALLY HIDDEN UTILITY
   For semantic headings that should not disrupt visual design.
   ───────────────────────────────────────────────────────────────────────── */
.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;
}
