﻿/* ============================================================
   css/components.css
   Mercenary Beauty — Reusable UI Components

   WHY THIS FILE EXISTS:
   A "component" is a self-contained UI piece that can appear
   in multiple places: a button, a card, the nav bar. By
   putting these here (not in layout.css), we can reuse them
   across pages without duplicating code.

   WHAT BELONGS HERE vs layout.css:
   - components.css → the THING itself (a card, a button)
   - layout.css     → WHERE and HOW the thing is positioned
                      on a specific section of the page

   RESPONSIVE BREAKPOINTS IN THIS FILE:
   ≤1200px — Phases section: collapses overlapping layout to stacked column
   ≤640px  — Phases section: reduces shape sizes for phone screens

   LOAD ORDER: Must load AFTER tokens.css and base.css.
   ============================================================ */


/* ------------------------------------------------------------
   CONCEPT LABEL (dev/preview only)
   Remove this before final launch — it's just a floating
   banner to identify which design concept is being previewed.
   ------------------------------------------------------------ */

.concept-label {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--color-dark);
  color: var(--color-cta);
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
  pointer-events: none; /* Can't accidentally click it */
}


/* ------------------------------------------------------------
   NAV BAR
   position: fixed keeps the nav on screen as the user scrolls.
   z-index: 100 ensures it layers above all page content.
   JavaScript in main.js changes the .nav-light and
   .nav-cta-theme classes as different sections scroll into view.
   ------------------------------------------------------------ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter) 0 44px;
  height: var(--nav-height);
  background: var(--color-dark);
  transition: background var(--transition-base);
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
}

.nav-logo-main {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--color-dark);
}

.nav-logo-main img {
  transition: filter var(--transition-base);
  filter: brightness(0) invert(1); /* Makes logo white on dark background */
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240, 237, 225, .65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-cream);
}

.nav-cta {
  background: var(--color-cta) !important;
  color: var(--color-dark) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 100px;
}

/* --- Nav theme: light (cream sections) --- */
nav.nav-light .nav-logo-main img {
  filter: none;
}

nav.nav-light .nav-links a:not(.nav-cta) {
  color: var(--color-accent);
}

nav.nav-light .nav-links a:not(.nav-cta):hover {
  color: var(--color-dark);
}

/* --- Nav theme: CTA (yellow marquee section) --- */
nav.nav-cta-theme {
  background: var(--color-cta) !important;
}

nav.nav-cta-theme .nav-logo-main img {
  filter: brightness(0); /* Makes logo dark on yellow background */
}

nav.nav-cta-theme .nav-links a:not(.nav-cta) {
  color: rgba(26, 26, 46, .7);
}

nav.nav-cta-theme .nav-links a:not(.nav-cta):hover {
  color: var(--color-dark);
}

nav.nav-cta-theme .nav-cta {
  background: var(--color-dark) !important;
  color: var(--color-cta) !important;
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */

/* Primary CTA button — chartreuse pill with glow */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta);
  color: var(--color-dark);
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(211, 249, 92, .35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(211, 249, 92, .55);
}

/* Ghost button — understated link with underline */
.btn-ghost {
  color: rgba(240, 237, 225, .5);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 237, 225, .2);
  padding-bottom: 2px;
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--color-cream);
}


/* ------------------------------------------------------------
   SECTION SHARED STYLES
   These apply to every <section> on the page.
   ------------------------------------------------------------ */

.section {
  padding: var(--section-pad) var(--page-gutter);
}

/* Small decorative label above section titles (e.g., "Selected Work") */
.section-label {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* The short line before the label text */
.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 900;
  letter-spacing: var(--font-display-tracking);
  line-height: 1.05;
}

/* Italic styled word within a title */
.section-title em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 400;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

/* "All Work →" style link */
.view-all {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-dark);
  border-bottom: 2px solid var(--color-cta);
  padding-bottom: 2px;
  white-space: nowrap;
  margin-bottom: 6px;
}


/* ------------------------------------------------------------
   MARQUEE STRIP
   The yellow scrolling client name ticker beneath the hero.
   Infinite loop achieved by duplicating the items in HTML
   and animating translateX(-50%) — see base.css @keyframes.
   ------------------------------------------------------------ */

.marquee-strip {
  background: var(--color-cta);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}

.marquee-item {
  font-size: var(--text-label);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-dark);
  padding: 0 32px;
}

.marquee-sep {
  color: var(--color-primary-light);
  padding: 0 4px;
}


/* ------------------------------------------------------------
   CLIENT CARDS (Selected Work carousel)
   ------------------------------------------------------------ */

/* Outer scroll container — negative margin bleeds cards to
   page edge, overriding the section's padding */
.carousel-outer {
  overflow: hidden;
  margin: 0 calc(-1 * var(--page-gutter));
}

.carousel-track {
  display: flex;
  width: max-content; /* Expands to fit all cards in a single row */
  animation: carousel-scroll 38s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused; /* Pauses on hover so users can read */
}

.client-card {
  flex: 0 0 300px; /* Fixed width — won't shrink or grow */
  border-radius: 14px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(26, 26, 46, .06);
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
  display: block;
  margin-right: 20px;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26, 26, 46, .12);
}

.client-card-img {
  aspect-ratio: 4 / 3; /* Locks image to consistent proportion */
  overflow: hidden;
}

.client-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops image to fill box without distorting */
  transition: transform .5s ease;
}

.client-card:hover .client-card-img img {
  transform: scale(1.05);
}

.client-card-body {
  padding: 18px 20px;
}

.client-card-name {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.client-card-type {
  font-size: var(--text-label);
  color: var(--color-secondary);
}


/* ------------------------------------------------------------
   SERVICE ROWS (Services section list)
   ------------------------------------------------------------ */

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(240, 237, 225, .06);
  cursor: default;
  transition: all .25s;
}

.service-row:first-child {
  border-top: 1px solid rgba(240, 237, 225, .06);
}

.service-num {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
  font-size: var(--text-small);
  font-style: italic;
  color: rgba(240, 237, 225, .2);
  min-width: 28px;
  padding-top: 3px;
  transition: color .25s;
}

.service-row:hover .service-num {
  color: var(--color-accent);
}

.service-name {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
  font-size: var(--text-service);
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: 6px;
  transition: color .25s;
}

.service-row:hover .service-name {
  color: var(--color-cta);
}

.service-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(240, 237, 225, .4);
  line-height: 1.7;
}


/* ------------------------------------------------------------
   FOUNDER SECTION
   ------------------------------------------------------------ */

/* Left column — stack image + name block as a flex column */
.founder-img-wrap {
  display: flex;
  flex-direction: column;
  background: var(--color-cta);
  padding: 48px 20px 48px var(--page-gutter);
}

.founder-img-wrap > img {
  width: 75%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Name block sits at the bottom-left of the left column */
.founder-name-block {
  padding: 20px 0 0;
}

/* Right column — CTA background with padding */
.founder-bio {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.founder-name {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
  font-size: var(--text-founder);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.founder-title {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--color-dark);
  letter-spacing: .06em;
  padding-left: 5em;
}

.founder-img-float {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid var(--color-cream);
  box-shadow: 0 8px 32px rgba(26, 26, 46, .15);
}

.about-body {
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-secondary);
  margin-bottom: 24px;
}

/* Stats row (the 3 key metrics) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
  padding: 28px 0;
  border-top: 1px solid rgba(26, 26, 46, .08);
  border-bottom: 1px solid rgba(26, 26, 46, .08);
}

.stat-num {
  font-family: var(--font-display);
  letter-spacing: var(--font-display-tracking);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-dark);
}

.stat-num sup {
  font-size: 18px;
}

.stat-label {
  font-size: 10px;
  color: var(--color-secondary);
  margin-top: 4px;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   CTA / BOOKING SECTION
   ------------------------------------------------------------ */

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-cta-title);
  font-weight: 900;
  line-height: 1;
  letter-spacing: var(--font-display-tracking);
  color: var(--color-cream);
  margin-bottom: 20px;
  position: relative;
}

.cta-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 400;
}

.cta-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(240, 237, 225, .45);
  max-width: 48ch; /* ch = width of the "0" character — a readable line measure */
  margin: 0 auto 48px;
  line-height: 1.8;
  position: relative;
}

/* Calendly placeholder box */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240, 237, 225, .5);
}

.booking-form input[type="email"],
.booking-form textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(240, 237, 225, .25);
  border-radius: 4px;
  background: rgba(240, 237, 225, .08);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease;
}

.booking-form textarea {
  min-height: 120px;
  resize: vertical;
}

.booking-form input[type="email"]::placeholder,
.booking-form textarea::placeholder {
  color: rgba(240, 237, 225, .4);
}

.booking-form input[type="email"]:focus,
.booking-form textarea:focus {
  border-color: var(--color-accent);
}

.booking-form button {
  align-self: center;
  padding: 14px 48px;
  background: var(--color-accent);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.booking-form button:hover {
  opacity: .85;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

footer {
  background: var(--color-footer-bg);
  padding: 72px var(--page-gutter) 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(240, 237, 225, .06);
}

.footer-desc {
  font-size: var(--text-small);
  font-weight: 300;
  color: rgba(240, 237, 225, .35);
  max-width: 32ch;
  line-height: 1.8;
  margin-top: 14px;
}

.footer-col-title {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(240, 237, 225, .25);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: var(--text-small);
  font-weight: 300;
  color: rgba(240, 237, 225, .45);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-cta);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: var(--text-label);
  color: rgba(240, 237, 225, .2);
}


/* ------------------------------------------------------------
   ROTATE HIGHLIGHT
   Reusable split-pill highlight component. Currently used in:
     • Hero headline (line 70 of index.html) — wraps the rotating word
     • Phases header (line 159 of index.html) — wraps the full title

   Per-instance overrides via inline CSS variables:
     --highlight-width  controls fixed width (default: auto = size to content)
     --highlight-bg     controls pill color  (default: var(--color-cta))
     --highlight-color  controls text color  (default: var(--color-primary))

   Example:
     <span class="rotate-highlight" style="
       --highlight-width: 6ch;
       --highlight-bg:    var(--color-accent);
       --highlight-color: var(--color-cream);
     ">...</span>
   ------------------------------------------------------------ */

.rotate-highlight {
  display: inline-block;
  position: relative;
  vertical-align: 0.00em;
  background: transparent;
  color: var(--highlight-color, var(--color-primary));         /* Override: style="--highlight-color: #fff" */
  padding: 0.08em 0.42em 0.08em 0.32em;
  width: var(--highlight-width, auto);                         /* Override: style="--highlight-width: 10ch" */
  text-align: center;
  margin-left: -.15em;
}

/* Top pill — extends 25% above element, ends just past text midpoint */
.rotate-highlight::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 46%;
  background: var(--highlight-bg, var(--color-cta));           /* Override: style="--highlight-bg: #f00" */
  border-radius: 6px 999px 999px 6px / 999px 999px 999px 999px;
  z-index: -1;
}

/* Bottom pill — starts just past text midpoint, extends 25% below element */
.rotate-highlight::after {
  content: '';
  position: absolute;
  top: 54%;
  left: 5%;
  right: 5%;
  bottom: -8%;
  background: var(--highlight-bg, var(--color-cta));           /* Override: style="--highlight-bg: #f00" */
  border-radius: 999px 6px 6px 999px / 999px 999px 999px 999px;
  z-index: -1;
}


/* ============================================================
   PHASES SECTION — "Our 6 Phase Approach"
   Desktop: shapes overlap vertically using negative margin-top
   offsets and z-index stacking (children 2–6 of .phases-section).
   Tablet/mobile (≤1200px): collapses to stacked column — all
   negative margins and text offsets are reset in the media query.
   ============================================================ */

.phases-section {
  padding: 100px var(--page-gutter) 0;
  max-width: 1600px;
  margin: 0 auto;
}

.phases-header {
  margin-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phases-header .section-title {
  width: 100%;
  display: flex;
  justify-content: center;
}

.phases-header .section-label {
  justify-content: center;
}

.phases-header .rotate-highlight {
  margin-left: 0;  /* Neutralize the global -.15em nudge so the pill stays centered */
  width: auto;     /* Size to content so the pill never clips at any viewport size */
  padding-left: 0.55em;
  padding-right: 0.55em;
}

/* Pill covers full element — no left/right inset — so the padding becomes the visual gap */
.phases-header .rotate-highlight::before,
.phases-header .rotate-highlight::after {
  left: 0;
  right: 0;
}

.phase-row {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 72px 0;
  position: relative;

}



.phase-row--reverse {
  flex-direction: row-reverse;
}

.phase-shape-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phase-shape {
  position: relative;
  cursor: pointer;
}

.phase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: opacity 0.66s ease, transform 0.6s ease;
}

.phase-img--base  { opacity: 1; }
.phase-img--hover { opacity: 0; }

.phase-shape:has(.phase-img:hover) .phase-img--base  { opacity: 0; }
.phase-shape:has(.phase-img:hover) .phase-img--hover { opacity: 1; }

.phase-shape.oval {
  width: 520px;
  height: 800px;
  border-radius: 50%;
  overflow: hidden;
}

.phase-shape.rounded-rect {
  width: 520px;
  height: 800px;
  border-radius: 56px;
  overflow: hidden;
}

.phase-shape.diamond {
  width: 680px;
  height: 680px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.phase-shape.hexagon {
  width: 760px;
  height: 680px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* Rhombus: portrait diamond â€” same clip-path as diamond but tall/narrow */
.phase-shape.rhombus {
  width: 800px;
  height: 480px;
  clip-path: polygon(18% 0%, 100% 0%, 82% 100%, 0% 100%);
  overflow: hidden;
}

.phase-shape.circle {
  width: 680px;
  height: 680px;
  border-radius: 50%;
  overflow: hidden;
}
/* ------------------------------------------------------------
   PHASE SHAPE HOVER ZOOM
   Each shape starts zoomed in; hovering zooms back out.
   "zoom out a little" = scale 1.08 â†’ 1.0
   "zoom out a lot"    = scale 1.22 â†’ 1.0
   ------------------------------------------------------------ */

.phase-shape.oval .phase-img          { transform: scale(1.08); }
.phase-shape.rounded-rect .phase-img  { transform: scale(1.08); }
.phase-shape.diamond .phase-img       { transform: scale(1.08); }
.phase-shape.hexagon .phase-img       { transform: scale(1.08); }
.phase-shape.circle .phase-img        { transform: scale(1.08); }
.phase-shape.rhombus .phase-img       { transform: scale(1.08); }

.phase-shape.oval:has(.phase-img:hover) .phase-img,
.phase-shape.rounded-rect:has(.phase-img:hover) .phase-img,
.phase-shape.diamond:has(.phase-img:hover) .phase-img,
.phase-shape.hexagon:has(.phase-img:hover) .phase-img,
.phase-shape.circle:has(.phase-img:hover) .phase-img,
.phase-shape.rhombus:has(.phase-img:hover) .phase-img {
  transform: scale(1);
}


.phase-text {
  flex: 1;
  min-width: 0;
}

.phase-num {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.phase-name {
  font-family: var(--font-display);
  font-size: var(--text-service);
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.phase-desc {
  font-family: var(--font-body);
  font-size: var(--text-service);
  line-height: 1.75;
  color: var(--color-secondary);
  max-width: 500px;
}



/* ---- Desktop overlapping layout (>1200px only) ----
   nth-child counts include .phases-header as child(1),
   so the 6 phase rows are children 2–7.
   Negative margin-top pulls each row up to overlap the one
   above it. z-index controls which shape paints on top.
   ALL of these are reset in the ≤1200px media query below.
   ---------------------------------------------------- */

/* Row 1 â€” Oval: text 10% below top of shape (80px = 10% of 800px) */
.phases-section .phase-row:nth-child(2) {
  align-items: flex-start;
  z-index: 1;
}
.phases-section .phase-row:nth-child(2) .phase-text {
  margin-top: 150px;
}

/* Row 2 â€” Rectangle: 20% up the oval (160px = 20% of 800px), text centered */
.phases-section .phase-row:nth-child(3) {
  margin-top: -360px;
  align-items: flex-start;
  gap: 40px;
  z-index: 2;
}
.phases-section .phase-row:nth-child(3) .phase-text {
  flex: 0 1 460px;
  margin-left: auto;
  margin-top: 280px;
}

/* Row 3 â€” Diamond: 10% up rectangle (88px = 10% of 880px), text just below middle */
.phases-section .phase-row:nth-child(4) {
  margin-top: -250px;
  align-items: center;
  z-index: 3;
}
.phases-section .phase-row:nth-child(4) .phase-text {
  margin-top: 48px;
}

/* Row 4 â€” Hexagon: flush at bottom of diamond, text centered */
.phases-section .phase-row:nth-child(5) {
  margin-top: -200px;
  align-items: flex-start;
  gap: 40px;
  z-index: 4;
}
.phases-section .phase-row:nth-child(5) .phase-text {
  flex: 0 1 460px;
  margin-left: auto;
  margin-top: 200px;
}

/* Row 5 â€” Circle: 10% up diamond (64px = 10% of 640px), text just below center */
.phases-section .phase-row:nth-child(6) {
  margin-top: -120px;
  align-items: center;
  z-index: 5;
}
.phases-section .phase-row:nth-child(6) .phase-text {
  margin-top: 48px;
}
/* Row 6 â€” Rhombus: overlaps circle, text left-aligned like hexagon */
.phases-section .phase-row:nth-child(7) {
  margin-top: -120px;
  align-items: flex-start;
  gap: 40px;
  z-index: 6;
}
.phases-section .phase-row:nth-child(7) .phase-text {
  flex: 0 1 460px;
  margin-left: auto;
  margin-top: 120px;
}
/* ≤1200px — Tablet / large mobile
   Collapses side-by-side rows to stacked column layout.
   CRITICAL: also resets all negative margin-top and text offsets
   that were calculated for the desktop overlapping layout —
   without these resets, phases would heavily overlap on tablet. */
@media (max-width: 1200px) {
  .phases-section {
    padding: var(--section-pad-sm) var(--page-gutter-sm);
  }

  .phase-row,
  .phase-row--reverse {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 56px 0;
    /* Reset desktop overlap offsets */
    margin-top: 0 !important;
  }

  /* Reset all desktop text position offsets */
  .phases-section .phase-row:nth-child(2) .phase-text,
  .phases-section .phase-row:nth-child(3) .phase-text,
  .phases-section .phase-row:nth-child(4) .phase-text,
  .phases-section .phase-row:nth-child(5) .phase-text,
  .phases-section .phase-row:nth-child(6) .phase-text,
  .phases-section .phase-row:nth-child(7) .phase-text {
    margin-top: 0;
    margin-left: 0;
    flex: 1;
  }

  .phase-shape-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .phase-shape.oval         { width: 360px; height: 560px; }
  .phase-shape.rounded-rect { width: 360px; height: 560px; }
  .phase-shape.diamond      { width: 440px; height: 440px; }
  .phase-shape.hexagon      { width: 480px; height: 420px; }
  .phase-shape.rhombus      { width: 560px; height: 320px; }
  .phase-shape.circle       { width: 440px; height: 440px; }

  .phase-desc { max-width: 100%; }

  /* Center phase text block and its children */
  .phase-text {
    text-align: center;
    align-items: center;
    width: 100%;
  }
  .phase-num { justify-content: center; }
}

/* ≤640px — Mobile phones */
@media (max-width: 640px) {
  .phase-shape.oval         { width: 240px; height: 380px; }
  .phase-shape.rounded-rect { width: 240px; height: 380px; }
  .phase-shape.diamond      { width: 280px; height: 280px; }
  .phase-shape.hexagon      { width: 300px; height: 260px; }
  .phase-shape.rhombus      { width: 380px; height: 220px; }
  .phase-shape.circle       { width: 280px; height: 280px; }
}


/* ------------------------------------------------------------
   MOBILE NAV â€” hamburger + dropdown
   Active below 480 px (iPhone SE â†’ Pro Max range).
   ------------------------------------------------------------ */

.nav-menu-btn {
  display: none;                  /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger â†’ X animation when menu is open */
nav.nav-open .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hamburger tint on light / CTA nav themes */
nav.nav-light .nav-menu-btn span,
nav.nav-cta-theme .nav-menu-btn span { background: var(--color-dark); }

/* Dropdown panel â€” sits just below the fixed nav bar */
.nav-mobile-menu {
  display: none;                  /* becomes flex on mobile */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-dark);
  flex-direction: column;
  padding: 4px 0 16px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-mobile-menu a {
  display: block;
  padding: 14px 28px;
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(240, 237, 225, .65);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a:focus { color: var(--color-cream); }

/* Reveal dropdown when nav has .nav-open */
nav.nav-open .nav-mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 480px) {
  .nav-link-item { display: none; }   /* hide text links from main bar */
  .nav-menu-btn  { display: flex; }   /* show hamburger */
  .nav-mobile-menu { display: flex; } /* enable dropdown */
}

/* ------------------------------------------------------------
   SELECTED WORK HEADER — offset overlapping rectangles + type
   ------------------------------------------------------------ */

.work-header {
  padding: 16px var(--page-gutter);
  background: var(--color-brown-bg);
  margin: 0 calc(-1 * var(--page-gutter)) 48px;
}

/* Hidden — replaced by solid banner on .work-header */
.work-header-rect--1,
.work-header-rect--2 {
  display: none;
}

.work-header-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Line 1 — script font, cream */
.work-line-1 {
  font-family: var(--font-alt-header);
  color: var(--color-cream);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.1;
  opacity: 0.9;
}

/* Line 2 — display font, CTA chartreuse */
.work-line-2 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  color: var(--color-cta);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: var(--font-display-tracking);
}

/* Line 3 — display font, primary blue, indented under "m" in performance */
.work-line-3 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 20%;
  margin-top: 4px;
  white-space: nowrap;
}


/* Founder section: bleed CTA background to left page edge */
#about {
  padding-left: 0;
  padding-right: 0;
}
#about .founder-bio {
  padding-right: var(--page-gutter);
}
