/* ============================================
   HANNA RODGERS — PORTFOLIO
   Outfit 700 headings · DM Sans 300 body
   Muted 90s palette · Geometric borders
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;900&family=DM+Sans:wght@300;400&display=swap');

:root {
  --navy:     #2F4858;
  --burgundy: #6E3731;
  --amber:    #FFC951;
  --sage:     #82A6A4;
  --black:    #323232;
  --white:    #FAFAFA;
  --border:   2px solid #323232;
  --gap:      24px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.65;
  /* overflow-x: clip instead of hidden — 'hidden' on body creates a scroll
     container that kills vertical scrolling in iOS Safari */
  overflow-x: clip;
  max-width: 100vw;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

a.prose-link {
  border-bottom: 1px solid rgba(50,50,50,0.25);
  transition: opacity 0.2s;
}

a.prose-link:hover {
  opacity: 0.6;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* FIX: iOS Safari detects content wider than viewport at load and zooms out.
   Force every image container to stay within viewport width. */
.case-hero-image,
.case-hero-image img,
.work-card-image,
.strivr-img,
.strivr-img img,
.strivr-image-single img,
.project-image,
.project-image img {
  max-width: 100vw;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 64px;
  background: var(--white);
  border-bottom: var(--border);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  /* FIX: prevent logo wrapping to two lines on mobile */
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */

.page {
  padding-top: 64px;
  min-height: 100vh;
  overflow-x: clip;
}

/* ============================================
   HERO — SPLIT LAYOUT
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: calc(100vh - 64px);
  border-bottom: var(--border);
}

.hero-image {
  position: relative;
  border-right: var(--border);
  overflow: hidden;
  background: var(--sage);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px;
  background: var(--white);
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--black);
}

.hero-headline em {
  font-style: normal;
  color: var(--burgundy);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.7;
  max-width: 400px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-cta-row .hero-cta {
  align-self: center;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: opacity 0.2s, border-color 0.2s;
}

.hero-link:hover {
  opacity: 1;
  border-bottom-color: rgba(50,50,50,0.4);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--border);
  padding: 14px 24px;
  background: var(--white);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  /* FIX: don't let it stretch full width on mobile */
  align-self: flex-start;
}

.hero-cta:hover {
  background: var(--black);
  color: var(--white);
}

.hero-cta .arrow {
  transition: transform 0.2s;
}

.hero-cta:hover .arrow {
  transform: translateY(4px);
}

.headline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 6px 0 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: fit-content;
  /* FIX: prevent text clipping on narrow screens */
  white-space: nowrap;
  max-width: 100%;
}

/* FIX: scope hover to hover-capable devices only. Touch browsers emulate
   :hover on tap and don't reliably release it, which was leaving the
   button stuck in its amber fill state after tapping. */
@media (hover: hover) {
  .headline-toggle:hover {
    background: var(--amber);
    opacity: 0.8;
  }
}

.headline-toggle .toggle-arrow {
  display: inline-block;
  animation: arrow-pulse 1.8s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* ============================================
   WORK GRID
   ============================================ */

.work-section {
  padding: 80px 48px;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(50,50,50,0.15);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: var(--border);
}

.work-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-right: var(--border);
  aspect-ratio: 4/5;
  cursor: pointer;
  transition: none;
}

/* Image wrapper — desktop: fills the card's aspect-ratio:4/5 container */
.work-card-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.work-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:last-child {
  border-right: none;
}

.work-card:hover .work-card-image {
  transform: scale(1.04);
}

/* Fallback backgrounds when no image */
.work-card.hbd   { background: var(--burgundy); }
.work-card.strivr { background: var(--navy); }
.work-card.ww    { background: var(--sage); }

/* Per-card image crop adjustments */
.work-card.strivr .work-card-image { object-position: right center; }
.work-card.hbd .work-card-image    { object-position: 55% center; }

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(50,50,50,0.85) 0%, rgba(50,50,50,0.1) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  transition: opacity 0.3s;
}

.work-card-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.6);
  margin-bottom: 10px;
  font-weight: 300;
}

.work-card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}

.work-card-desc {
  font-size: 13px;
  color: rgba(250,250,250,0.7);
  font-weight: 300;
  line-height: 1.5;
  max-width: 280px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.work-card:hover .work-card-desc {
  opacity: 1;
  transform: translateY(0);
}

.work-card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(250,250,250,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.work-card:hover .work-card-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile-only text block — hidden on desktop, shown below image on mobile */
.work-card-text {
  display: none;
}

.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--border);
  min-height: 420px;
}

.case-hero-image {
  border-right: var(--border);
  overflow: hidden;
  background: var(--navy);
  min-height: 420px;
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: auto;
  transition: opacity 0.2s;
}

.case-back:hover { opacity: 0.8; }

.case-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 16px;
}

.case-title {
  font-size: clamp(32px, 3.5vw, 52px);
  margin-bottom: 20px;
}

.case-years {
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.45;
}

/* Case body */
.case-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  border-bottom: var(--border);
}

.case-sidebar {
  border-right: var(--border);
  padding: 56px 40px;
}

.case-meta-item {
  margin-bottom: 40px;
}

.case-meta-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 8px;
}

.case-meta-value {
  font-size: 15px;
  line-height: 1.5;
}

.case-main {
  padding: 56px 64px;
  /* FIX: prevent content from blowing out on mobile */
  min-width: 0;
  overflow: hidden;
}

.case-section {
  margin-bottom: 56px;
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(50,50,50,0.12);
}

.case-section p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.8;
  /* Tightened from 640px → 580px to bring the measure into a comfortable
     65–70 character range for the body font/size combo. */
  max-width: 580px;
}

.case-section p + p {
  margin-top: 16px;
}

/* Pull quote — editorial landmark inside case-section prose.
   Picks up the amber stripe motif and the burgundy + Outfit 700
   emphasis treatment already used in .outcome-list strong. */
.case-pullquote {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--burgundy);
  margin: 44px 0;
  max-width: 520px;
  /* blockquote default indentation reset */
  padding: 0;
}

.case-pullquote::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  background: var(--amber);
  margin-bottom: 20px;
}

/* When a pull quote follows a paragraph, cancel the paragraph-stacking
   margin so it's controlled solely by the pullquote's own margin. */
.case-section p + .case-pullquote,
.case-section .case-pullquote + p {
  margin-top: 44px;
}

.outcome-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 4px;
}

.outcome-list li {
  padding: 20px 24px;
  border: var(--border);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.8;
}

.outcome-list li strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--burgundy);
  margin-bottom: 4px;
  opacity: 1;
}

/* Project list — HBD featured/other work */
.project-list {
  list-style: none;
  margin-top: 4px;
}

.project-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(50,50,50,0.1);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.project-item:last-child {
  border-bottom: none;
}

.project-image {
  width: 220px;
  aspect-ratio: 16/10;
  background: var(--sage);
  overflow: hidden;
  flex-shrink: 0;
}

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

.project-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(50,50,50,0.3);
  background: rgba(130,166,164,0.2);
  border: 1px dashed rgba(50,50,50,0.15);
}

.project-content {}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--black);
}

.project-body {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 520px;
}

.project-media {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(50,50,50,0.08);
  max-width: 594px;
}

.project-media-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 12px;
}

.project-media-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.project-media-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-media-getty {
  width: 100%;
  /* FIX: Getty embeds have inline width/height attributes that blow out mobile */
  max-width: 100% !important;
  overflow: hidden;
}

/* FIX: catch any iframe or embed tag that carries hardcoded width attributes */
.project-media-getty iframe,
.project-media-getty a,
.project-media img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

.project-video-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--black);
  overflow: hidden;
  margin-bottom: 10px;
}

.project-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.project-video-link:hover .project-video-thumb img {
  opacity: 0.9;
}

.project-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(50,50,50,0.7);
  border: 2px solid rgba(250,250,250,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.project-video-link:hover .project-video-play {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.project-video-cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.project-video-link:hover .project-video-cta {
  opacity: 0.8;
}

.project-read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.4;
  border-bottom: 1px solid rgba(50,50,50,0.25);
  transition: opacity 0.2s;
}

.project-read-more:hover {
  opacity: 0.75;
}

/* Strivr inline images */
.strivr-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  /* FIX: constrain to parent width */
  width: 100%;
}

.strivr-image-single {
  margin-top: 12px;
  width: 100%;
}

.strivr-image-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
  /* FIX: constrain to parent width */
  width: 100%;
}

.strivr-img {
  /* FIX: explicit width so images don't overflow */
  width: 100%;
  min-width: 0;
}

.strivr-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.strivr-image-single img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.strivr-img-caption {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-top: 8px;
}

.redacted-block {
  margin-top: 24px;
  /* FIX: use 100% not max-width on mobile */
  width: 100%;
  max-width: 640px;
  background: var(--black);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redacted-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(250,250,250,0.5);
  text-transform: uppercase;
  user-select: none;
}

.project-sublabel {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.35;
  margin: 28px 0 12px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  border-bottom: var(--border);
  min-height: calc(100vh - 64px);
}

.about-hero-content {
  grid-area: unset;
  padding: 80px 64px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-hero-content h1 {
  font-size: clamp(48px, 5vw, 72px);
  margin-bottom: 40px;
}

.about-hero-content h1 em {
  font-style: normal;
  color: var(--sage);
}

.about-paragraphs p {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.75;
  max-width: 600px;
  margin-bottom: 28px;
}

.about-paragraphs p:last-child {
  margin-bottom: 0;
}

.about-closing {
  margin-top: 48px;
  padding-top: 40px;
  border-top: var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.about-sidebar {
  grid-area: unset;
  padding: 80px 48px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-mobile-photo {
  display: none;
}

.about-sidebar-photo {
  width: 100%;
  margin-bottom: 40px;
  border: var(--border);
}

.about-sidebar-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.about-sidebar-block {
  padding: 40px 0;
  border-bottom: 1px solid rgba(50,50,50,0.12);
}

.about-sidebar-block:first-child {
  padding-top: 0;
}

.about-sidebar-block:last-child {
  border-bottom: none;
}

.sidebar-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 14px;
}

.sidebar-value {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}

.sidebar-value strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  opacity: 1;
  margin-bottom: 4px;
  color: var(--black);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.contact-left {
  padding: 80px 64px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 28px;
  max-width: 480px;
}

.contact-left p {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.65;
  max-width: 440px;
  margin-bottom: 56px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 2px solid var(--black);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.contact-right {
  padding: 80px 64px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-right-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.4);
  margin-bottom: 40px;
}

.contact-info-block {
  margin-bottom: 40px;
}

.contact-info-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.35);
  margin-bottom: 10px;
}

.contact-info-value {
  font-size: 16px;
  color: rgba(250,250,250,0.85);
  line-height: 1.6;
}

.contact-info-value a {
  color: var(--amber);
  border-bottom: 1px solid rgba(255,201,81,0.3);
  transition: border-color 0.2s;
}

.contact-info-value a:hover {
  border-color: var(--amber);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-top: var(--border);
}

.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.35;
}

.footer-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.4;
}

/* ============================================
   ACCENT STRIPE
   ============================================ */

.amber-stripe {
  height: 4px;
  background: var(--amber);
  width: 100%;
}

/* ============================================
   UTILITY
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ============================================
   RESPONSIVE — 900px (tablet + mobile)
   ============================================ */

@media (max-width: 900px) {
  .nav {
    padding: 0 16px;
  }
  .nav-logo {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  /* ── HERO ── */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    border-right: none;
    border-bottom: var(--border);
    /* FIX: was aspect-ratio 3/2 — use a taller crop on mobile */
    aspect-ratio: 4/3;
    min-height: auto;
  }
  .hero-image img {
    object-position: center 40%;
  }
  .hero-content {
    padding: 48px 24px;
  }
  .hero-sub {
    /* FIX: remove max-width constraint — let it fill column */
    max-width: 100%;
  }

  /* ── WORK CARDS — image above, text below ── */
  .work-section {
    padding: 48px 24px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    border: var(--border);
  }
  .work-card {
    border-right: none;
    border-bottom: var(--border);
    aspect-ratio: unset;
    overflow: visible;
  }
  .work-card:last-child {
    border-bottom: none;
  }
  /* Image wrapper — padding-bottom enforces 3:2 regardless of image intrinsic size */
  .work-card-img-wrap {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.666%; /* 3:2 */
    overflow: hidden;
  }
  .work-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  /* Hide overlay and arrow on mobile */
  .work-card-overlay,
  .work-card-arrow {
    display: none;
  }
  /* Show the in-flow text block */
  .work-card-text {
    display: block;
    padding: 20px 24px 28px;
    background: var(--white);
  }
  .work-card-text .work-card-tag {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(50,50,50,0.45);
    margin-bottom: 10px;
    font-weight: 300;
  }
  .work-card-text .work-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .work-card-text .work-card-desc {
    font-size: 13px;
    color: rgba(50,50,50,0.65);
    font-weight: 300;
    line-height: 1.5;
  }

  /* ── CASE STUDY HERO ── */
  .case-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .case-hero-image {
    border-right: none;
    border-bottom: var(--border);
    /* FIX: was unconstrained — fix to 16/9, remove tall min-height */
    aspect-ratio: 16/9;
    min-height: auto;
    height: auto;
  }
  .case-hero-image img {
    /* FIX: ensure image fills the aspect-ratio box */
    width: 100%;
    height: 100%;
  }
  .case-hero-content {
    padding: 40px 24px;
    height: auto;
    /* FIX: was justify flex-end — on mobile stack naturally */
    justify-content: flex-start;
    gap: 8px;
  }
  .case-back {
    /* FIX: margin-bottom auto was pushing content down weirdly in column */
    margin-bottom: 24px;
  }

  /* ── CASE BODY ──
     On mobile, reorder so the prose (main) comes before the meta (sidebar).
     The reader encounters the story first instead of climbing a staircase
     of Role / Scope / Clients / Venues blocks before reaching the narrative. */
  .case-body {
    grid-template-columns: 1fr;
  }
  .case-main {
    order: 1;
    padding: 40px 24px;
  }
  .case-sidebar {
    order: 2;
    border-right: none;
    border-top: var(--border);
    border-bottom: none;
    padding: 40px 24px;
    /* 2-col grid for meta items on tablet; collapses to 1-col <480px below */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .case-meta-item {
    /* Tightened from 32px to reduce the vertical walk through meta */
    margin-bottom: 24px;
  }
  .case-section p {
    /* FIX: remove desktop max-width, let it fill container */
    max-width: 100%;
  }
  .case-pullquote {
    /* Tighter margins on mobile so the quote doesn't dominate the column */
    margin: 32px 0;
    max-width: 100%;
  }
  .case-section p + .case-pullquote,
  .case-section .case-pullquote + p {
    margin-top: 32px;
  }

  /* ── OUTCOME LIST ── */
  .outcome-list {
    grid-template-columns: 1fr;
  }

  /* ── IMAGE GRIDS ── */
  .strivr-image-pair,
  .strivr-image-trio {
    grid-template-columns: 1fr;
  }

  /* ── PROJECT LIST (HBD) ── */
  .project-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .project-image {
    width: 100%;
  }
  .project-body {
    /* FIX: remove desktop max-width */
    max-width: 100%;
  }

  /* ── ABOUT ── */
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-hero-content {
    border-right: none;
    border-bottom: var(--border);
    padding: 48px 24px;
  }
  .about-paragraphs p {
    /* FIX: remove desktop max-width */
    max-width: 100%;
  }
  .about-closing {
    /* FIX: closing line was sometimes clipping at narrow widths */
    font-size: clamp(18px, 4.5vw, 26px);
  }
  .about-sidebar {
    padding: 48px 24px;
  }
  /* FIX: show mobile photo, hide sidebar photo */
  .about-mobile-photo {
    display: block;
    width: 100%;
    margin-bottom: 40px;
    border: var(--border);
  }
  .about-mobile-photo img {
    display: block;
    width: 100%;
    /* FIX: about photo bug — constrain render size to reduce load */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    /* FIX: force browser to treat as block-level for rendering */
    max-width: 100%;
  }
  .about-sidebar-photo {
    display: none;
  }

  /* ── CONTACT ── */
  .contact-page {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .contact-left {
    border-right: none;
    border-bottom: var(--border);
    padding: 48px 24px;
    /* FIX: don't force full vh height on mobile */
    justify-content: flex-start;
  }
  .contact-left p {
    /* FIX: remove max-width on mobile */
    max-width: 100%;
    margin-bottom: 0;
  }
  .contact-right {
    padding: 48px 24px;
    justify-content: flex-start;
  }

  /* ── FOOTER ── */
  .footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* FIX: ensure work card description is always visible in the
   below-image text block on mobile, regardless of cascade */
.work-card-text .work-card-desc {
  opacity: 1 !important;
  transform: none !important;
  color: rgba(50,50,50,0.65) !important;
}

/* ============================================
   RESPONSIVE — 480px (phones only)
   ============================================ */

@media (max-width: 480px) {
  /* FIX: nav logo truncates on very small screens */
  .nav-logo {
    font-size: 13px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 12px;
  }

  /* FIX: hero headline can still be too large at 320px */
  .hero-headline {
    font-size: clamp(28px, 8vw, 42px);
  }

  /* FIX: work card overlay padding too tight */
  .work-card-overlay {
    padding: 20px;
  }
  .work-card-tag {
    font-size: 10px;
  }

  /* FIX: sidebar meta 2-col is cramped on phones */
  .case-sidebar {
    grid-template-columns: 1fr;
  }

  /* FIX: outcome tiles spacing */
  .outcome-list li {
    padding: 16px 18px;
  }

  /* FIX: redacted block padding */
  .redacted-block {
    padding: 20px 16px;
  }
  .redacted-text {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  /* FIX: contact form button shouldn't span full width */
  .contact-form button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* FIX: about closing line at 320px */
  .about-closing {
    font-size: clamp(17px, 5vw, 22px);
  }
}

/* ============================================
   PROOF BAR — metrics + clients
   ============================================ */

.proof-bar {
  border-bottom: var(--border);
  background: var(--navy);
}

.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 68px;
  border-bottom: 1px solid rgba(250,250,250,0.12);
  padding: 44px 34px;
}

/* No dividers — the numbers cluster centered, floating on the navy */
.proof-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.proof-metric strong {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.proof-tick {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--amber);
  margin: 14px 0 12px;
}

.proof-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,250,250,0.6);
}

.proof-clients {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 46px;
  padding: 32px 34px;
}

/* White client logos, optically balanced (height tuned per mark, not pixel-matched) */
.proof-logo {
  width: auto;
  height: 22px;
  display: block;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Near-uniform heights (artboards are all 32px tall). Only the long
   "Bank of America" wordmark and the bold Verizon mark get trimmed. */
.proof-logo.l-walmart      { height: 22px; }
.proof-logo.l-amazon       { height: 22px; }
.proof-logo.l-verizon      { height: 20px; }
.proof-logo.l-bofa         { height: 15px; }
.proof-logo.l-mgm          { height: 22px; }
.proof-logo.l-adventhealth { height: 22px; }
.proof-logo.l-sprouts      { height: 22px; }

@media (max-width: 900px) {
  .hero-cta-row {
    gap: 16px 24px;
  }
  .proof-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .proof-metrics {
    gap: 24px 44px;
    padding: 34px 24px;
  }
  .proof-metric strong {
    font-size: 30px;
  }
  .proof-clients {
    padding: 24px 20px;
    gap: 16px 28px;
  }
  .proof-logo.l-walmart      { height: 19px; }
  .proof-logo.l-amazon       { height: 19px; }
  .proof-logo.l-verizon      { height: 17px; }
  .proof-logo.l-bofa         { height: 13px; }
  .proof-logo.l-mgm          { height: 19px; }
  .proof-logo.l-adventhealth { height: 19px; }
  .proof-logo.l-sprouts      { height: 19px; }
}

@media (max-width: 480px) {
  .proof-metric strong {
    font-size: 26px;
  }
}
