/* =========================================================================
   Julia Bachman Portfolio — styles.css
   ========================================================================= */

/* ─── Custom Properties ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-parchment:   #D9DBD1;
  --color-moss:        #1C211E;
  --color-moss-light:  #6B6F68;
  --color-moss-dark:   #151917;
  --color-rose:        #A92D40;
  --color-rose-light:  #B37B83;
  --color-ochre:       #A92D40;
  --color-ochre-dark:  #7F2230;
  --color-parchment-dim: #C7CAC0;

  /* Typography */
  --font-serif:   'vinila-extended', Georgia, 'Times New Roman', serif;
  --font-sans:    'Montserrat', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   6rem;
  --space-2xl:  10rem;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max:  1280px;
  --nav-height:     4.5rem;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-parchment);
  color: var(--color-moss);
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ─── Page Transition ────────────────────────────────────────────────────── */
body {
  animation: pageEnter 0.4s ease forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.page-exit {
  animation: pageExit 0.3s ease forwards;
}

@keyframes pageExit {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ─── Scroll Animations ─────────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Case study pages: bypass scroll-reveal, show content immediately.
   Higher specificity (0,2,0) beats .animate-in (0,1,0) without !important */
.cs-body .animate-in {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Stagger children when parent has is-visible */
.animate-in.is-visible:nth-child(2) { transition-delay: 0.08s; }
.animate-in.is-visible:nth-child(3) { transition-delay: 0.16s; }
.animate-in.is-visible:nth-child(4) { transition-delay: 0.24s; }

/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--color-rose-light);
}

.section-title {
  font-family: 'vinila-extended', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-moss);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-title--light {
  color: var(--color-parchment);
}

.section-rule {
  width: 4rem;
  height: 3px;
  background: var(--color-ochre);
  margin-bottom: var(--space-lg);
}

.section-rule--ochre {
  background: var(--color-ochre);
}

.section-header {
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

/* ─── Tags ───────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.9em;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  background: var(--color-rose);
  color: var(--color-parchment);
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.tag--dark {
  background: var(--color-moss);
  color: var(--color-parchment);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85em 2em;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--transition-base), color var(--transition-base),
              transform var(--transition-fast), box-shadow var(--transition-base);
  cursor: pointer;
}

.btn--ochre {
  background: var(--color-ochre);
  color: var(--color-moss-dark);
}

.btn--ochre:hover {
  background: var(--color-ochre-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(169, 45, 64, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-parchment);
  border: 1.5px solid var(--color-parchment);
}

.btn--outline:hover {
  background: var(--color-parchment);
  color: var(--color-moss-dark);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  transition: background var(--transition-base), box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.nav.scrolled {
  background: rgba(217, 219, 209, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 33, 30, 0.12);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
  z-index: 101;
  flex-shrink: 0;
}

.nav.scrolled .nav__logo {
  color: var(--color-moss);
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(217, 219, 209, 0.8);
  transition: color var(--transition-base);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-ochre);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-parchment);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav.scrolled .nav__link {
  color: var(--color-moss-light);
}

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link.active {
  color: var(--color-moss);
}

/* Hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  z-index: 101;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-parchment);
  transition: transform var(--transition-base), opacity var(--transition-base),
              background var(--transition-base);
  transform-origin: center;
}

.nav.scrolled .nav__hamburger span {
  background: var(--color-moss);
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-moss-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.nav__mobile-overlay.open {
  transform: translateX(0);
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--color-parchment);
  letter-spacing: -0.01em;
  transition: color var(--transition-base);
}

.nav__mobile-link:hover {
  color: var(--color-ochre);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO — asymmetric editorial lockup
══════════════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--color-moss);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 3.5rem) clamp(1.5rem, 5vw, 4rem) 4.5rem;
  min-height: clamp(380px, 62vh, 640px);
}

/* ── Monogram texture — engraved, barely-there emblem ───────────────────── */
.hero__monogram {
  position: absolute;
  top: 50%;
  right: clamp(3rem, 16vw, 16rem);
  transform: translateY(-54%);
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(8rem, 19vw, 19rem);
  line-height: 1;
  color: rgba(250, 250, 250, 0.022);
  text-shadow:
    1px 1px 1px rgba(250, 250, 250, 0.05),
    -1px -1px 1.5px rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ── Left column ──────────────────────────────────────────────────────── */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* Name lockup */
.hero__lockup {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  padding-left: 0.06em; /* prevent J left-stroke from clipping */
}

.hero__line-one {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.hero__line-two {
  margin-top: -0.04em;
}

/* Mask container — clip-path slots the reveal animation while letting
   J's left stroke and bottom descender breathe beyond the em-box */
.hero__mask {
  clip-path: inset(-4px 0 -20px -70px);
  line-height: 1;
}

/* Shared display type */
.hero__firstname,
.hero__lastname {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  font-weight: 900;
  color: var(--color-parchment);
  letter-spacing: -0.025em;
  display: block;
  line-height: 0.92;
  will-change: transform;
}

/* Slide-up-from-mask entrance */
.hero__firstname {
  animation: maskReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__lastname {
  animation: maskReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both;
}

@keyframes maskReveal {
  from { transform: translateY(145%); }
  to   { transform: translateY(0); }
}

/* "Lee" — tiny monospaced label in ochre */
.hero__midname {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: clamp(0.65rem, 1.3vw, 1rem);
  font-weight: 700;
  color: var(--color-ochre);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-self: flex-end;
  padding-bottom: 0.55em;
  opacity: 0;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
  flex-shrink: 0;
}

/* Sub: role + CTA */
.hero__sub {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.05s forwards;
}

.hero__role {
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.1vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 219, 209, 0.42);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ochre);
  border-bottom: 1px solid var(--color-ochre);
  padding-bottom: 0.2rem;
  width: fit-content;
  transition: gap 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__cta:hover {
  gap: 0.9rem;
  color: var(--color-ochre-dark);
}

/* ── Right column: cascade ────────────────────────────────────────────── */
.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(2rem, 4vw, 4rem);
  border-left: 1px solid rgba(217, 219, 209, 0.1);
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-top: 3rem;
}

/* ── Scroll cue ───────────────────────────────────────────────────────── */
.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue__mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--color-rose);
  border-radius: 12px;
  position: relative;
  display: block;
}

.scroll-cue__wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--color-rose);
  border-radius: 2px;
  animation: scrollCueWheel 1.6s ease-in-out infinite;
}

@keyframes scrollCueWheel {
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0; top: 16px; }
  100% { opacity: 0; top: 6px; }
}

.scroll-cue__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-rose);
}

.hero__cascade-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 219, 209, 0.3);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
}

/* Fixed-height container — cascade size changes never touch the hero layout */
.hero__cascade {
  position: relative;
  height: 11rem;
  overflow: hidden;
  transform: translateZ(0); /* own compositing layer */
}

.cascade-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.85rem); /* fixed — never changes */
  color: var(--color-ochre);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left top;
  /* Only transform + opacity — fully GPU-composited, zero reflow */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity   0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-height) + 2.5rem);
    padding-bottom: 3rem;
  }
  .hero__right {
    border-left: none;
    border-top: 1px solid rgba(217, 219, 209, 0.1);
    padding-left: 0;
    padding-top: 2.5rem;
    margin-top: 1.5rem;
  }
  .hero__firstname,
  .hero__lastname {
    font-size: clamp(2.5rem, 12vw, 5.5rem);
  }
}

@media (max-width: 680px) {
  .hero__right {
    display: flex;
    border-left: none;
    border-top: 1px solid rgba(217, 219, 209, 0.1);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 1.5rem;
  }
  .hero__firstname,
  .hero__lastname {
    font-size: clamp(2.25rem, 14vw, 4.5rem);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ABOUT — Obsessions layout
══════════════════════════════════════════════════════════════════════════ */
.about {
  padding: var(--space-xl) 0;
  background: var(--color-moss);
}

.about__header {
  margin-bottom: var(--space-lg);
}

.about__body {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.about__bio {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(217, 219, 209, 0.65);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.about__obsessions-heading {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(217, 219, 209, 0.65);
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(217, 219, 209, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about__obsessions-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-ochre);
  opacity: 0.4;
}

.obsessions-list {
  list-style: none;
}

.obsession-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(217, 219, 209, 0.15);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

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

.obsession-item:hover {
  transform: translateX(6px);
}

.obsession-item__num {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-ochre);
  letter-spacing: 0.06em;
  padding-top: 0.2rem;
  user-select: none;
}

.obsession-item__text {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, 1.3vw, 0.975rem);
  color: var(--color-parchment);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════════════
   WORK / CASE STUDIES
══════════════════════════════════════════════════════════════════════════ */
.work {
  padding: var(--space-md) 0 var(--space-xl);
  background: var(--color-parchment-dim);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Work Card */
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--color-parchment);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(21, 25, 23, 0.15);
}

.work-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 600 / 400;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.work-card:hover .work-card__image {
  transform: scale(1.05);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 25, 23, 0.9) 0%, rgba(21, 25, 23, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

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

.work-card__overlay-text {
  font-size: 0.875rem;
  color: var(--color-parchment);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.work-card__overlay-cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ochre);
}

.work-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.work-card__client {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-ochre);
}

.work-card__title {
  font-family: 'vinila-extended', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-moss);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   CREATIVE CORNER
══════════════════════════════════════════════════════════════════════════ */
.creative {
  padding: var(--space-xl) 0;
  background: var(--color-parchment);
}

.creative__grid {
  columns: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
}

.creative-item {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-base);
}

.creative-item:hover {
  transform: scale(1.01);
}

.creative-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              filter var(--transition-base);
}

.creative-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}

.creative-item__caption {
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-moss-light);
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-parchment-dim);
}

/* Quote item */
.creative-item--quote {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

.creative-item--rose {
  background: var(--color-rose);
}

.creative-item__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  color: var(--color-parchment);
  border: none;
  padding: 0;
}

.creative-item__cite {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(217, 219, 209, 0.7);
  font-style: normal;
}

/* Moss text item */
.creative-item--moss {
  background: var(--color-moss);
  padding: 2.5rem 2rem;
}

.creative-item__text-block h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ochre);
  margin-bottom: 0.85rem;
}

.creative-item__text-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(217, 219, 209, 0.75);
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════════════════ */
.contact {
  padding: var(--space-xl) 0;
  background: var(--color-moss-dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__heading {
  font-family: 'vinila-extended', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--color-parchment);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.contact__heading em {
  font-style: italic;
  color: var(--color-ochre);
}

.contact__subtext {
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  color: rgba(217, 219, 209, 0.6);
  line-height: 1.7;
  max-width: 40ch;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-rose-light);
  transition: color var(--transition-base), gap var(--transition-base);
  width: fit-content;
}

.contact__link:hover {
  color: var(--color-ochre);
  gap: 1rem;
}

/* Contact Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-rose-light);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(169, 45, 64, 0.35);
  padding: 0.75rem 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-parchment);
  outline: none;
  transition: border-color var(--transition-base);
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: rgba(217, 219, 209, 0.3);
}

.form-input:focus {
  border-bottom-color: var(--color-ochre);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-moss-dark);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(169, 45, 64, 0.15);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-parchment);
}

.footer__tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(217, 219, 209, 0.45);
  font-family: var(--font-serif);
}

.footer__copy {
  font-size: 0.75rem;
  color: rgba(217, 219, 209, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════
   CASE STUDY PAGES
══════════════════════════════════════════════════════════════════════════ */

/* Left-side text block — constrained width with 1-inch left margin */
.cs-left-block {
  margin-left: 6rem;          /* ~1 inch at standard screen density */
  max-width: 520px;           /* hard cap so text never crosses midpoint */
  padding: 5rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cs-split-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-left-block p {
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  color: var(--color-moss-light);
  line-height: 1.85;
}

.cs-left-block p + p {
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .cs-left-block {
    margin-left: 1.5rem;
    max-width: calc(100% - 3rem);
  }
}
.cs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  background: rgba(21, 25, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cs-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-parchment-dim);
  transition: color var(--transition-base), gap var(--transition-base);
}

.cs-nav__back:hover {
  color: var(--color-ochre);
  gap: 0.8rem;
}

.cs-nav__logo {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-parchment);
}

/* Case study hero */
.cs-hero {
  position: relative;
  height: 65vh;
  min-height: 380px;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.cs-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cs-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(21, 25, 23, 0.88) 0%,
    rgba(21, 25, 23, 0.4) 50%,
    rgba(21, 25, 23, 0.15) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
}

.cs-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--color-parchment);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Meta bar */
.cs-meta {
  background: var(--color-moss-dark);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
}

.cs-meta__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cs-meta__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-meta__label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-rose-light);
}

.cs-meta__value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-parchment);
}

.cs-meta__divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(169, 45, 64, 0.25);
  flex-shrink: 0;
}

.cs-meta__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Case study body */
.cs-body {
  background: var(--color-parchment);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.cs-section {
  max-width: 740px;
  margin-inline: auto;
  padding: var(--space-lg) clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--color-parchment-dim);
}

.cs-section:last-child {
  border-bottom: none;
}

.cs-section__label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-rose);
  margin-bottom: 0.6rem;
  display: block;
}

.cs-section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-moss);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cs-section p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  color: var(--color-moss-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  max-width: 65ch;
}

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

/* Full-width image in case study */
.cs-image-full {
  margin: var(--space-lg) 0;
  width: 100%;
  overflow: hidden;
}

.cs-image-full img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

.cs-image-full figcaption {
  padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-moss-light);
  background: var(--color-parchment-dim);
  letter-spacing: 0.04em;
}

/* Case study intro split: fixed-width text column + media, stacks on mobile */
.cs-split {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-parchment-dim);
}

.cs-split__text {
  flex: 0 0 auto;
  width: 460px;
  margin-left: 5rem;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* The standout insight: the site's existing serif pull-quote treatment */
.cs-insight {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
  color: var(--color-moss);
  line-height: 1.4;
  border-left: 3px solid var(--color-rose);
  padding-left: 1.1rem;
}

@media (max-width: 900px) {
  .cs-split {
    flex-direction: column;
  }

  .cs-split__text {
    width: 100%;
    margin-left: 0;
    padding: 2.5rem clamp(1.25rem, 6vw, 2.5rem);
  }
}

/* Results highlight */
.cs-results-highlight {
  background: var(--color-moss);
  padding: var(--space-lg) clamp(1.5rem, 5vw, 3rem);
  margin: var(--space-lg) clamp(1.25rem, 5vw, 3rem);
}

.cs-results-highlight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.cs-stat__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-ochre);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.cs-stat__label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(217, 219, 209, 0.65);
  line-height: 1.4;
}

/* Next project */
.cs-next {
  background: var(--color-moss-dark);
  padding: 4rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-decoration: none;
  transition: background var(--transition-base);
}

.cs-next:hover {
  background: var(--color-moss);
}

.cs-next__label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-rose-light);
  margin-bottom: 0.5rem;
}

.cs-next__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-parchment);
}

.cs-next__arrow {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-ochre);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.cs-next:hover .cs-next__arrow {
  transform: translateX(8px);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet: ≤ 1024px ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__name-line {
    font-size: clamp(2.5rem, 10vw, 5rem);
  }

  .about__body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__heading {
    font-size: clamp(3rem, 10vw, 5rem);
  }

  .cs-results-highlight__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .creative__grid {
    columns: 2;
  }
}

/* ── Mobile: ≤ 768px ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  .hero__name-line {
    font-size: clamp(2.25rem, 13vw, 4rem);
  }

  .work__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .creative__grid {
    columns: 1;
  }

  .cs-results-highlight__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs-next {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Small mobile: ≤ 480px ────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero__name-line {
    font-size: clamp(3rem, 20vw, 4.5rem);
  }

  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .about__photo-accent {
    display: none;
  }

  .cs-meta__inner {
    gap: 1rem;
  }

  .cs-meta__divider {
    display: none;
  }
}

/* ── Large screens: ≥ 1440px ──────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero__inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .work__grid {
    gap: 2.5rem;
  }
}
