/* =========================================================
   REID OWENS — PORTFOLIO
   ========================================================= */

@font-face {
  font-family: 'Strong';
  src: url('Strong.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --slide-scale: 1;      /* default; per-slide sizes are at the bottom */
  --bg: #EFECEC;
  --navy: #002162;
  --red: #d4161d;
  --cream: #FDF0E4;
  --nav-h: 64px;
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

body {
  background-color: var(--bg);
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: none; }

/* Every page = exactly one screen */
.hero,
.section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 clamp(16px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;          /* empty parts of the bar don't block the slide */
}
.nav > * { pointer-events: auto; }  /* logo, links and menu button still work */
.nav.is-hidden > * { pointer-events: none; }

/* Frosted bar once you leave the hero */
.nav.is-scrolled {
  background: rgba(239, 236, 236, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 33, 98, 0.12);
}

/* Slides away while scrolling down, back on scroll up */
.nav.is-hidden { transform: translateY(-100%); }

.nav-logo {
  font-family: 'Strong', serif;
  font-size: 1.6rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--red); }

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.6vw, 44px);
}

.nav-links a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--red); }

/* Case Studies dropdown */
.has-drop { position: relative; }
.has-drop > a::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
}
.drop {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 180px;
  padding: 14px 0 8px;
  background: rgba(239, 236, 236, 0.97);
  box-shadow: 0 10px 30px rgba(0, 33, 98, 0.12);
  border-top: 2px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-drop:hover .drop,
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.drop a {
  display: block;
  padding: 8px 20px;
  font-size: 0.74rem;
  white-space: nowrap;
}
.drop a::after { display: none; }
.drop a:hover { color: var(--red); }

.gallery-page .drop { background: rgba(0, 33, 98, 0.97); }

/* Hamburger (phones / portrait tablets only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s ease, top 0.3s ease, background 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }

.nav.is-open .nav-toggle span { background: var(--cream); }
.nav.is-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav.is-open .nav-logo { color: var(--cream); position: relative; z-index: 2; }


/* =========================================================
   1. HERO
   ========================================================= */
.name {
  position: absolute;
  top: 6vh;   /* nav is see-through on the hero, links sit to the side */
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 22vw, 420px);
  aspect-ratio: 600 / 130;
  object-fit: cover;
  object-position: center 45%;
  z-index: 3;
}

.main-text {
  position: absolute;
  top: 15vh;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.main-text h1 {
  color: var(--navy);
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: 15.5vw;
  line-height: 0.85;
  white-space: nowrap;
}

.brand-text {
  margin-left: 38.5vw;
  position: relative;
  z-index: 1;            /* behind the foot */
}

.strategy-text {
  margin-left: -0.5vw;
  position: relative;
  z-index: 3;            /* over the legs */
  opacity: 0.9;
}

.hero-img {
  position: absolute;
  right: 0;
  top: 5vw;
  width: 80vw;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.scroll-arrow {
  position: absolute;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--red);
  font-size: 2.5rem;
  text-decoration: none;
  z-index: 3;
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}


/* =========================================================
   IMAGE SLIDES (About, Authentically You, Dustin, Hallie)
   ========================================================= */
.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide--light { background: var(--bg); }
.slide--navy  { background: var(--navy); }
.slide--paper { background: #EBE9E9; }

/* 16:9 box that fits the screen with a nav-bar-sized gap above
   (and below) it, so the nav never covers the slide.
   Buttons inside are positioned in % so they stay locked to the image. */
.frame {
  position: relative;
  width: calc(var(--slide-scale) * min(100vw, calc((100vh - 2 * var(--nav-h)) * 1.7778)));
  width: calc(var(--slide-scale) * min(100vw, calc((100svh - 2 * var(--nav-h)) * 1.7778)));
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}

/* About: a little extra breathing room so the text isn't clipped */
.frame--small {
  width: calc(var(--slide-scale) * min(92vw, calc((100vh - 2 * var(--nav-h)) * 1.7778)));
  width: calc(var(--slide-scale) * min(92vw, calc((100svh - 2 * var(--nav-h)) * 1.7778)));
}

.frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Invisible clickable area over text baked into an image */
.hotspot {
  position: absolute;
  display: block;
  z-index: 2;
}

/* Learn More button */
.learn-more {
  position: absolute;
  transform: translate(-50%, -50%);   /* left/top = button's center */
  z-index: 2;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: max(11px, 1.05cqw);
  letter-spacing: 0.14em;
  padding: 0.6em 1.5em;
  border: 1px solid currentColor;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.learn-more--cream { color: var(--cream); }
.learn-more--cream:hover { background: var(--cream); color: var(--navy); }

/* Dustin + Hallie: same gap for the nav, plus room for the
   View Gallery button underneath */
.frame--cta {
  width: calc(var(--slide-scale) * min(100vw, calc((100vh - 2 * var(--nav-h) - 70px) * 1.7778)));
  width: calc(var(--slide-scale) * min(100vw, calc((100svh - 2 * var(--nav-h) - 70px) * 1.7778)));
}

.gallery-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 0.85em 1.9em;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.gallery-cta:hover { background: var(--cream); color: var(--navy); }

/* Buttons under Authentically You */
.photo-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.photo-ctas .gallery-cta { margin-top: 22px; }

/* Fill the space around Dustin's + Hallie's slides so it looks like the
   slide keeps going: the photo side continues in the photo's light grey,
   the navy side continues in navy. --fw = the slide's width. */
#dustin-clark, #hallie-day {
  --fw: calc(var(--slide-scale) * min(100vw, calc((100svh - 2 * var(--nav-h) - 70px) * 1.7778)));
}

/* Dustin: photo on the left 38.75% of the slide */
#dustin-clark {
  background:
    linear-gradient(to right, transparent calc(50% - 0.1125 * var(--fw)), #04235e 0),
    linear-gradient(to bottom, #f3f3f5, #c4c4c4);
}

/* Hallie: photo on the right 29.35% of the slide */
#hallie-day {
  background:
    linear-gradient(to right, #002162 calc(50% + 0.2065 * var(--fw)), transparent 0),
    linear-gradient(to bottom, #d5d8dc, #b5b5b5);
}

/* Center each button under the navy part of its slide */
#dustin-clark .gallery-cta { transform: translateX(calc(0.19375 * var(--fw))); }
#hallie-day  .gallery-cta { transform: translateX(calc(-0.14675 * var(--fw))); }

/* Authentically You: leaves room under the slide for the two buttons
   and "Scroll to learn more", so all of it scales and centers together */
.frame--ay {
  width: calc(var(--slide-scale) * min(100vw, calc((100vh - 2 * var(--nav-h) - 120px) * 1.7778)));
  width: calc(var(--slide-scale) * min(100vw, calc((100svh - 2 * var(--nav-h) - 120px) * 1.7778)));
}

/* "Scroll to learn more" sits right under the buttons */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint span {
  font-size: 1.1rem;
  animation: hint-bob 2s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* Phone-only caption under Authentically You */
.mobile-caption { display: none; }

/* Phone-only About (hidden on desktop) */
.about-mobile { display: none; }


/* =========================================================
   CASE STUDIES
   ========================================================= */

/* Hover hint on the red signatures */
.hotspot--sig::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.hotspot--sig:hover::after,
.hotspot--sig:focus-visible::after { transform: scaleX(1); }

/* Buttons under the Case Studies slide (phones only) */
.case-ctas { display: none; }

/* Conan Gray placeholder */
.coming-soon {
  width: min(90vw, 760px);
  color: var(--navy);
  text-align: center;
  border-top: 4px double var(--navy);
  border-bottom: 1px solid var(--navy);
  padding: 5vh 0;
}
.coming-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.coming-title {
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0.6rem 0 1.4rem;
}
.coming-text {
  font-family: 'Strong', serif;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.coming-tag {
  margin-top: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* "Read More" under each case study: opens the full PDF in a new tab */
.read-more {
  display: inline-block;
  margin-top: 22px;
  padding: 0.85em 1.9em;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.read-more:hover { background: var(--navy); color: var(--cream); }

.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;
}

/* Case study text slides: readable text version on phones */
.case-text-mobile { display: none; }


/* =========================================================
   7. RESUME
   ========================================================= */
.resume {
  background: var(--bg);
  color: var(--navy);
  display: flex;
  overflow-y: auto;          /* scrolls inside if a short screen can't fit it */
}

.resume-inner {
  width: 100%;
  max-width: 1500px;
  margin: auto;              /* centers it, but never cuts off the top */
  padding: calc(var(--nav-h) + 1vh) clamp(16px, 4vw, 72px) 2.5vh;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 3.2fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

.resume-kicker {
  color: var(--red);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.resume-title {
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.9;
}

.resume-tag {
  margin: 1rem 0 1.2rem;
  font-size: clamp(0.8rem, 0.85vw, 0.95rem);
  line-height: 1.5;
  max-width: 34ch;
}

.resume-download {
  display: inline-block;
  padding: 0.75em 1.6em;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.resume-download:hover { background: var(--red); }

.resume-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.95fr;
  gap: clamp(20px, 3vw, 48px);
  border-top: 3px solid var(--navy);
  padding-top: 1.1rem;
}

.resume-block h3 {
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  letter-spacing: 0.04em;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.3rem;
  margin: 0 0 0.7rem;
}
.resume-block h3:not(:first-child) { margin-top: 1.2rem; }

.item { margin-bottom: 0.7rem; }

.item p {
  font-size: clamp(0.74rem, 0.8vw, 0.98rem);
  line-height: 1.4;
}

.item-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.item-title a { color: inherit; text-decoration-color: var(--red); }

.item-sub { font-style: italic; opacity: 0.85; }

.item ul {
  margin: 0.25rem 0 0 1.1em;
  padding: 0;
}
.item li {
  font-size: clamp(0.72rem, 0.76vw, 0.92rem);
  line-height: 1.38;
  margin-bottom: 0.1rem;
}
.item li::marker { color: var(--red); }

.resume-skills { margin-top: 1.8rem; }
.resume-skills h3 {
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.3rem;
  margin-bottom: 0.6rem;
}

.skills {
  font-size: clamp(0.74rem, 0.8vw, 0.98rem);
  line-height: 1.6;
}

.resume-contact {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}
.resume-contact a { color: var(--navy); text-decoration-color: var(--red); }

.when {
  color: var(--red);
  font-size: 0.85em;
  margin-left: 0.35em;
  white-space: nowrap;       /* keeps "2025 – Present" together */
}


/* =========================================================
   INNER PAGES (Kit Connor, Article)
   ========================================================= */
.back-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10;
  font-size: 14px;
  color: var(--navy);
  background: rgba(239, 236, 236, 0.9);
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.back-link:hover { background: var(--navy); color: var(--cream); }


/* =========================================================
   GALLERY PAGES
   ========================================================= */
.gallery-page {
  background: var(--navy);
  color: var(--cream);
  min-height: 100vh;
}
html:has(.gallery-page) { scroll-snap-type: none; }

.gallery-header {
  padding: calc(var(--nav-h) + 4vh) clamp(16px, 5vw, 80px) 5vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid rgba(253, 240, 228, 0.35);
}

.gallery-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.gallery-title {
  font-family: 'Strong', serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 11rem);
  line-height: 0.88;
}

.gallery-quote {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: right;
}

.gallery-grid {
  padding: 5vh clamp(16px, 5vw, 80px) 10vh;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}

/* Every photo is the same size square */
.gallery-grid figure {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(253, 240, 228, 0.06);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);   /* set per photo in the HTML */
  transition: transform 0.5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.gallery-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 clamp(16px, 5vw, 80px) 8vh;
}
.gallery-footer a {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}

.gallery-page .nav-logo,
.gallery-page .nav-links a { color: var(--cream); }
.gallery-page .nav-toggle span { background: var(--cream); }
.gallery-page .nav.is-scrolled {
  background: rgba(0, 33, 98, 0.9);
  box-shadow: 0 1px 0 rgba(253, 240, 228, 0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 14, 44, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }

.lightbox-stage {
  max-width: 92vw;
  max-height: 86vh;
  max-height: 86svh;
  overflow: hidden;
  touch-action: none;
}

.lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  max-height: 86svh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.is-zoomed img {
  transform: scale(2.5);
  cursor: zoom-out;
  transition: transform 0.25s ease, transform-origin 0.05s linear;
}

.lb-tip {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  white-space: nowrap;
}

.lb-btn {
  position: absolute;
  background: none;
  border: 0;
  color: var(--cream);
  font-size: 2rem;
  width: 56px;
  height: 56px;
  cursor: pointer;
}
.lb-close { top: 12px; right: 12px; }
.lb-prev  { left: 8px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 8px; top: 50%; transform: translateY(-50%); }

.lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  opacity: 0.8;
}


/* =========================================================
   PHONES + PORTRAIT TABLETS
   (anything taller than it is wide, or under 700px wide)
   ========================================================= */
@media (max-aspect-ratio: 1/1), (max-width: 700px) {

  :root { --nav-h: 56px; }

  html { scroll-snap-type: y proximity; }

  .hero, .section { scroll-snap-stop: normal; }

  /* ---- Nav becomes a full-screen menu ---- */
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 0 9vw;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; }
  .nav.is-open {
    background: transparent;
    box-shadow: none;
    transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;      /* lets the menu cover the full screen */
  }

  .nav-links a {
    font-family: 'Strong', serif;
    font-size: clamp(2.4rem, 11vw, 4.5rem);
    letter-spacing: 0.01em;
    color: var(--cream);
    text-transform: uppercase;
  }
  .nav-links a.is-active { color: var(--red); }

  /* ---- Hero: re-stacked to fill a tall screen ---- */
  .name {
    top: calc(var(--nav-h) + 3vh);
    width: min(62vw, 340px);
  }

  .main-text { top: 32svh; }

  .main-text h1 { font-size: 17vw; line-height: 0.9; }

  .brand-text    { margin-left: 22vw; }
  .strategy-text { margin-left: -1vw; }

  .hero-img {
    top: calc(32svh - 34vw);   /* foot lands on BRAND, like desktop */
    right: 0;
    width: 170vw;     /* legs only fill the right part of the PNG */
  }

  /* ---- Image slides ---- */
  .frame, .frame--small, .frame--cta, .frame--ay { width: 100vw; }
  #dustin-clark, #hallie-day { --fw: 100vw; }

  .gallery-cta { margin-top: 5svh; }

  .mobile-caption {
    display: block;
    max-width: 560px;
    padding: 5svh 16px 0;
    color: var(--cream);
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .mobile-caption p + p { margin-top: 0.8rem; }

  /* ---- About: readable HTML version ---- */
  .about {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    justify-content: flex-start;
  }
  .about-slide { display: none; }

  .about-mobile {
    display: block;
    width: 100%;
    max-width: 640px;
    padding: calc(var(--nav-h) + 2vh) 16px 8vh;
  }

  .about-photo {
    display: block;
    width: 78%;
    max-width: 420px;
    height: auto;
    margin: 0 auto 2rem 0;
  }

  .about-copy p {
    font-family: 'Strong', serif;
    color: var(--navy);
    font-size: 1.08rem;
    line-height: 1.55;
    margin-bottom: 1.1rem;
  }
  .about-copy em { font-style: normal; color: var(--red); }

  .about-closer {
    color: var(--red) !important;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }


  /* ---- Case Studies ---- */
  .case-ctas {
    display: flex;
    gap: 12px;
    margin-top: 5svh;
  }
  .case-cta {
    padding: 0.85em 1.4em;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .case-text-slide { display: none; }
  .case-story .read-more { margin: 4svh 0 8svh; }
  .case-story {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .case-text-mobile {
    display: block;
    max-width: 640px;
    padding: calc(var(--nav-h) + 4vh) 16px 8vh;
    font-family: 'Strong', serif;
    text-transform: uppercase;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    border-top: 3px solid var(--navy);
    border-bottom: 3px solid var(--navy);
    margin: 0 16px;
  }

  /* Dropdown items become indented links in the phone menu */
  .has-drop > a::before { display: none; }
  .drop {
    position: static;
    opacity: 1;
    visibility: inherit;
    transform: none;
    background: none;
    box-shadow: none;
    border: 0;
    padding: 0.4rem 0 0 1.2rem;
    min-width: 0;
  }
  .drop a {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.16em !important;
    padding: 6px 0;
    opacity: 0.85;
  }

  /* ---- Resume: stacked ---- */
  .resume {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .resume-inner {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 3vh);
    padding-bottom: 8vh;
  }
  .resume-cols { grid-template-columns: 1fr; }
  .item p { font-size: 0.92rem; }

  /* ---- Gallery ---- */
  .gallery-header { grid-template-columns: 1fr; }
  .gallery-quote { text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-prev, .lb-next { display: none; }   /* swipe instead */
}

/* Portrait tablets (iPad): roomier than phones */
@media (max-aspect-ratio: 1/1) and (min-width: 701px) {
  .main-text { top: 30svh; }
  .hero-img { top: calc(30svh - 34vw); }
  .resume-cols { grid-template-columns: repeat(2, 1fr); }
  .about-copy p { font-size: 1.25rem; }
  .about-mobile { max-width: 760px; padding-left: 40px; padding-right: 40px; }
}

/* Short landscape screens (phones turned sideways) */
@media (min-aspect-ratio: 1/1) and (max-height: 500px) {
  :root { --nav-h: 48px; }
  .nav-links a { font-size: 0.7rem; }
  .resume { align-items: flex-start; }
}

/* =========================================================
   SLIDE SIZES (desktop, laptop, sideways iPad only)
   1 = as big as possible without the nav covering it.
   Lower = smaller (e.g. 0.8). Phones always stay full width.
   ========================================================= */
@media (min-aspect-ratio: 1/1) and (min-width: 701px) {
  .slide--intro  { --slide-scale: 0.95; }  /* About + Authentically You */
  .slide--people { --slide-scale: 0.95; }  /* Dustin + Hallie */
  .slide--big    { --slide-scale: 1; }     /* Case Studies + Kit Connor */
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-arrow, .scroll-hint span { animation: none; }
  * { transition: none !important; }
}

/* =========================================================
   LOADING SCREEN
   ========================================================= */
html.is-loading,
html.is-loading body { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--navy);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader--navy { background: var(--navy); color: var(--cream); }

.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.loader-logo {
  font-family: 'Strong', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: 0.04em;
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.loader-logo span { color: var(--red); }

.loader-track {
  width: min(220px, 50vw);
  height: 2px;
  background: currentColor;
  opacity: 0.9;
  position: relative;
  overflow: hidden;
}
.loader-track::before {          /* faint full-length line under the bar */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.75;
}
.loader--navy .loader-track::before { background: var(--navy); }

.loader-bar {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.loader-pct {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-logo { animation: none; }
}