/* ============================================================
   TWIN FORK INTERIORS — DESIGN SYSTEM
   Editorial residential design studio
   ============================================================ */

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --navy: #1B2B4D;
  --navy-deep: #131E36;
  --navy-soft: #5A6680;
  --navy-mute: #8A93A8;
  --white: #FFFFFF;
  --paper: #FAFAF8;
  --line: #E8E6E0;
  --line-soft: #F1EFE9;
  --stone: #D9D5C9;

  /* Typography */
  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-body: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-ui: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 160px;

  /* Layout */
  --container-max: 1440px;
  --container-padding: 64px;
  --container-padding-mobile: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.45s;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.display-xl {
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.94;
}

.display-l {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 0.96;
}

.display-m {
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.02;
}

.display-s {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

.italic {
  font-style: italic;
  font-weight: 300;
}

.lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--navy-soft);
  max-width: 56ch;
}

.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
}

.body-soft {
  color: var(--navy-soft);
}

/* Eyebrow / small UI label */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.eyebrow.no-rule::before {
  display: none;
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-fill {
  background: var(--navy);
  color: var(--white);
}

.btn-fill:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.link-arrow {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--navy);
  transition: gap var(--duration) var(--ease);
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform var(--duration) var(--ease);
}

.link-arrow:hover {
  gap: 22px;
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-logo-text {
  /* Visually hidden — kept for accessibility fallback */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--navy);
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 12px 24px;
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.nav-cta:hover {
  background: var(--navy);
  color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

/* Mobile menu hidden by default — only shown when nav is open on mobile */
.mobile-menu {
  display: none;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transition: all var(--duration) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 21px; }

.nav-toggle.open span:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  top: 16px;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* When nav is open on mobile, show the menu as a full-screen flex panel */
  .nav.mobile-open + .mobile-menu {
    display: flex;
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-6) var(--container-padding-mobile);
    z-index: 99;
  }

  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--navy);
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-7) 0 var(--space-4);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-brand-mark {
  margin-bottom: var(--space-3);
}

.footer-brand-mark img {
  height: 80px;
  width: auto;
  /* Invert navy logo to white for the dark footer */
  filter: brightness(0) invert(1);
  display: block;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 38ch;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-3);
}

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

.footer-col a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--white);
  transition: opacity var(--duration) var(--ease);
}

.footer-col a:hover {
  opacity: 0.65;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7) 0 var(--space-8);
}

.hero-content .eyebrow {
  margin-bottom: var(--space-4);
  color: var(--navy-soft);
}

.hero h1 {
  margin-bottom: var(--space-4);
}

.hero .lede {
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--line-soft) 0%, var(--stone) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: rgba(27, 43, 77, 0.45);
  text-align: center;
  max-width: 240px;
  line-height: 1.6;
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-caption::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--navy);
  opacity: 0.5;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-5) 0 var(--space-6);
  }
}

/* ============================================================
   INTRO BAR
   ============================================================ */
.intro-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.intro-item-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
  display: block;
  margin-bottom: 8px;
}

.intro-item-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .intro-bar {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding: var(--space-4) 0;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-9) 0;
}

.section-tight {
  padding: var(--space-7) 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  align-items: end;
}

.section-header .eyebrow {
  align-self: start;
  padding-top: 16px;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-7) 0;
  }
  .section-header {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }
}

/* ============================================================
   FEATURED PROJECT (Homepage)
   ============================================================ */
.featured-project {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-6);
}

.featured-project-info .eyebrow {
  margin-bottom: var(--space-3);
  color: var(--navy-soft);
}

.featured-project-info h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-3);
}

.featured-project-info .meta {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  color: var(--navy-soft);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.featured-project-info p {
  margin-bottom: var(--space-4);
  max-width: 50ch;
  color: var(--navy-soft);
}

.featured-project-image {
  aspect-ratio: 16 / 11;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--line-soft) 0%, var(--stone) 100%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: rgba(27, 43, 77, 0.4);
  text-align: center;
  padding: var(--space-3);
}

@media (max-width: 880px) {
  .featured-project {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ============================================================
   SERVICES PREVIEW (Homepage)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.service-card {
  border-top: 1px solid var(--navy);
  padding-top: var(--space-3);
}

.service-num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--navy-mute);
  display: block;
  margin-bottom: var(--space-3);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 38ch;
}

@media (max-width: 880px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ============================================================
   QUOTE / EDITORIAL PULL
   ============================================================ */
.editorial-quote {
  padding: var(--space-8) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 22ch;
  margin: 0 auto;
}

.editorial-quote .attribution {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-mute);
  margin-top: var(--space-4);
  font-weight: 500;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  margin-bottom: var(--space-4);
  color: var(--navy-soft);
}

.page-header h1 {
  margin-bottom: var(--space-4);
  max-width: 18ch;
}

.page-header .lede {
  max-width: 56ch;
}

/* ============================================================
   STUDIO PAGE
   ============================================================ */
.studio-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  padding: var(--space-8) 0;
  align-items: start;
}

.studio-portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.studio-text h2 {
  margin-bottom: var(--space-4);
}

.studio-text p {
  margin-bottom: var(--space-3);
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy);
}

.studio-text p:last-child {
  margin-bottom: 0;
}

.studio-text .lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: var(--space-4);
  font-weight: 300;
}

.sisters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
}

.sister-card .eyebrow {
  color: var(--navy-soft);
  margin-bottom: var(--space-3);
}

.sister-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-3);
}

.sister-card p {
  color: var(--navy-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 40ch;
}

@media (max-width: 880px) {
  .studio-intro,
  .sisters {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service-block:last-child {
  border-bottom: 1px solid var(--line);
}

.service-block-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 64px;
  color: var(--navy-mute);
  line-height: 1;
}

.service-block h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-3);
}

.service-block .lede {
  margin-bottom: var(--space-4);
  color: var(--navy);
}

.service-block .scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-soft);
}

.service-block .scope-list li {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.service-block .scope-list li::before {
  content: "—";
  color: var(--navy-mute);
  flex-shrink: 0;
}

.process {
  padding: var(--space-8) 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.process-step {
  border-top: 1px solid var(--navy);
  padding-top: var(--space-3);
}

.process-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--navy-mute);
  display: block;
  margin-bottom: var(--space-2);
}

.process-step h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy-soft);
}

@media (max-width: 880px) {
  .service-block {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .service-block .scope-list {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   PROJECTS INDEX
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-5);
  padding: var(--space-7) 0;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card-image {
  aspect-ratio: 4 / 3;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.project-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.project-card:hover .project-card-image::after {
  opacity: 0.06;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.project-card-meta .label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
}

.project-card h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.014em;
  margin-bottom: 8px;
}

.project-card .scope {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--navy-soft);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

/* ============================================================
   PROJECT CASE STUDY
   Echoes the Canva mood board layout
   ============================================================ */
.case-header {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.case-header-left .eyebrow {
  color: var(--navy-soft);
  margin-bottom: var(--space-3);
}

.case-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-3);
  max-width: 14ch;
}

.case-header .meta {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--navy-soft);
}

/* Color palette swatches — signature element from mood boards */
.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 200px;
  justify-self: end;
}

.palette-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.palette-label {
  grid-column: 1 / -1;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
  margin-top: 8px;
  text-align: right;
}

@media (max-width: 768px) {
  .case-header {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .palette {
    justify-self: start;
  }
}

/* Case study paired hero — image left, pull quote right */
.case-hero-paired {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-7);
  align-items: center;
}

.case-hero-image {
  aspect-ratio: 4 / 5;
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}

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

.case-hero-quote {
  padding: var(--space-4) var(--space-5);
}

.case-hero-quote .eyebrow {
  margin-bottom: var(--space-4);
  color: var(--navy-soft);
}

.case-hero-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.case-hero-quote .attribution {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-mute);
  font-weight: 500;
}

@media (max-width: 880px) {
  .case-hero-paired {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .case-hero-quote {
    padding: 0;
  }
}

/* Case study sections */
.case-section {
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--line);
}

.case-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-7);
  align-items: start;
}

.case-section-grid h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}

.case-section-grid h2 .italic {
  font-style: italic;
  font-weight: 300;
}

.case-section-grid .body p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: var(--space-3);
  color: var(--navy);
}

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

.case-credits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.case-credit-item .label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
  display: block;
  margin-bottom: 8px;
}

.case-credit-item .value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.4;
}

.case-gallery {
  padding: var(--space-7) 0;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-3);
}

.case-gallery-item {
  background: var(--line-soft);
  position: relative;
  overflow: hidden;
}

.case-gallery-item.full {
  grid-column: span 12;
  aspect-ratio: 16 / 9;
}

.case-gallery-item.half {
  grid-column: span 6;
  aspect-ratio: 4 / 5;
}

.case-gallery-item.third {
  grid-column: span 4;
  aspect-ratio: 1;
}

.case-gallery-item.two-thirds {
  grid-column: span 8;
  aspect-ratio: 3 / 2;
}

.case-pull-quote {
  padding: var(--space-8) 0;
  text-align: center;
}

.case-pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 26ch;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .case-section-grid,
  .case-credits {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .case-credits {
    gap: var(--space-3);
  }
  .case-gallery-item.half,
  .case-gallery-item.third,
  .case-gallery-item.two-thirds {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
  padding: var(--space-7) 0;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-4);
  max-width: 14ch;
}

.contact-info .lede {
  margin-bottom: var(--space-5);
  color: var(--navy);
}

.contact-detail {
  margin-bottom: var(--space-3);
}

.contact-detail .label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
  display: block;
  margin-bottom: 6px;
}

.contact-detail .value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--navy);
}

.contact-detail .value a {
  color: var(--navy);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.contact-detail .value a:hover {
  border-color: var(--navy);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-mute);
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--navy);
  padding: 12px 0;
  outline: none;
  transition: border-color var(--duration) var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-display);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--navy-deep);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--navy-mute);
  font-style: italic;
  font-weight: 300;
}

.contact-form button[type="submit"] {
  margin-top: var(--space-3);
  align-self: flex-start;
}

.form-success,
.form-error {
  padding: var(--space-3);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  margin-top: var(--space-3);
  display: none;
}

.form-success.visible,
.form-error.visible {
  display: block;
}

.form-success {
  color: var(--navy);
  border-left: 2px solid var(--navy);
  padding-left: var(--space-3);
}

.form-error {
  color: #8B2323;
  border-left: 2px solid #8B2323;
  padding-left: var(--space-3);
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   404
   ============================================================ */
.notfound {
  padding: var(--space-9) 0;
  text-align: center;
}

.notfound h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.notfound p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--navy-soft);
  margin-bottom: var(--space-5);
  font-weight: 300;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.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;
}

.text-center { text-align: center; }
.text-soft { color: var(--navy-soft); }

/* Reveal animation on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
