/* ============================================================
   FARM DOG CREATIVE — Stylesheet
   Fonts: Cormorant Garamond (serif headings) + Inter (sans body)
   ============================================================ */

/* =====================
   DESIGN TOKENS
===================== */
:root {
  /* Colour palette */
  --bg:           #FAF7F2;
  --bg-warm:      #F4EEE4;
  --navy:         #1D2B42;
  --navy-mid:     #2D3F5E;
  --sage:         #7A8C7A;
  --sage-light:   #A8B8A8;
  --wheat:        #C4A87A;
  --wheat-light:  #E8D9BC;
  --text:         #2C2C2C;
  --text-muted:   #6B6B6B;
  --white:        #FFFFFF;
  --border:       #E4DDD2;

  /* Typography */
  --serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing — increased ~18% from original */
  --section-pad: clamp(5rem, 10vw, 8.5rem);
  --container:   1200px;

  /* Shape */
  --radius:    14px;
  --radius-sm: 9px;
  --radius-xs: 5px;

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(29, 43, 66, 0.05);
  --shadow-sm: 0 2px 10px rgba(29, 43, 66, 0.07);
  --shadow:    0 6px 28px rgba(29, 43, 66, 0.10);
  --shadow-lg: 0 16px 56px rgba(29, 43, 66, 0.14);

  /* Motion */
  --ease:     cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 280ms;
}

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

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

body {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* =====================
   FOCUS (accessibility)
===================== */
:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =====================
   CONTAINER
===================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* =====================
   SHARED TYPE
===================== */
.section-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--navy);
}

.section-heading em {
  font-style: italic;
  color: var(--sage);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 1.125rem;
  max-width: 540px;
  line-height: 1.75;
}

.section-sub--light {
  color: rgba(255,255,255,0.55);
}

.section-header {
  margin-bottom: clamp(3rem, 5.5vw, 4.5rem);
}

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 2.125rem;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  transition:
    background-color var(--duration) var(--ease),
    color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-mid);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover {
  background: var(--bg);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn--outline-light {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

/* =====================
   NAVIGATION
===================== */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  padding-block: 1.375rem;
  transition:
    background-color 0.4s var(--ease),
    padding-block 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  transition: color var(--duration) var(--ease);
  flex-shrink: 0;
}
.nav.scrolled .nav__logo { color: var(--navy); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  transition: color var(--duration) var(--ease);
  letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--white); }
.nav.scrolled .nav__links a { color: var(--text); }
.nav.scrolled .nav__links a:hover { color: var(--navy); }

.nav__cta {
  background: rgba(255,255,255,0.15) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-xs) !important;
  border: 1.5px solid rgba(255,255,255,0.38) !important;
  font-weight: 500 !important;
  transition: all var(--duration) var(--ease) !important;
}
.nav__cta:hover { background: rgba(255,255,255,0.26) !important; }
.nav.scrolled .nav__cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  border-color: var(--navy) !important;
}
.nav.scrolled .nav__cta:hover { background: var(--navy-mid) !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 201;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}
.nav.scrolled .nav__toggle span { background: var(--navy); }
.nav.menu-open .nav__toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
  background: var(--white);
}
.nav.menu-open .nav__toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav.menu-open .nav__toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
  background: var(--white);
}

/* =====================
   HERO
===================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero.loaded .hero__bg img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(18, 25, 42, 0.6) 0%,
    rgba(18, 25, 42, 0.32) 45%,
    rgba(18, 25, 42, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
  max-width: 860px;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wheat-light);
  margin-bottom: 1.625rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}

.hero__heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.625rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.75s var(--ease-out) 0.4s forwards;
}
.hero__heading em {
  font-style: italic;
  color: var(--wheat-light);
}

.hero__sub {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.65s var(--ease-out) 0.8s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.42);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.3s forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.42), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* =====================
   SERVICES
===================== */
.services {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.625rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--wheat-light);
}

.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--sage);
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.625rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.service-card__badge {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat);
  background: var(--wheat-light);
  border-radius: var(--radius-xs);
  padding: 0.2em 0.55em;
  line-height: 1.6;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.72;
}

/* Value prop paragraph below the grid */
.services__value {
  margin-top: 3.5rem;
  padding: 2.25rem 2.5rem;
  background: var(--bg-warm);
  border-radius: var(--radius);
  border-left: 3px solid var(--wheat);
  max-width: 720px;
}
.services__value p {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.7;
}

/* =====================
   ABOUT
===================== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

.about__image {
  position: relative;
  overflow: hidden;
}
.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.8s var(--ease);
}
.about__image:hover img { transform: scale(1.025); }

.about__content {
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 5.5vw, 4.5rem);
}

.about__text .section-heading { margin-bottom: 1.5rem; }

.about__text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 1rem;
}

/* The dogs note — slightly different treatment */
.about__dogs-note {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-size: 1rem !important;
  color: var(--text) !important;
  opacity: 0.7;
  padding-top: 0.25rem;
  margin-bottom: 2rem !important;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.value__marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wheat);
  margin-top: 0.45rem;
}

/* =====================
   DIVIDER IMAGE
===================== */
.divider-image {
  position: relative;
  height: clamp(300px, 38vw, 540px);
  overflow: hidden;
}
.divider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.divider-image__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29, 43, 66, 0.15) 0%,
    rgba(29, 43, 66, 0.48) 100%
  );
}
.divider-image__caption {
  position: absolute;
  bottom: 1.875rem;
  right: clamp(1.25rem, 3vw, 2.5rem);
  color: rgba(255,255,255,0.62);
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* =====================
   PORTFOLIO
===================== */
.portfolio {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.625rem;
  align-items: start;
}

/* Cards are image-forward — text lives as an overlay */
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card__image {
  position: relative;
  overflow: hidden;
}
.portfolio-card--large .portfolio-card__image {
  aspect-ratio: 3 / 2.6;
}
.portfolio-card:not(.portfolio-card--large) .portfolio-card__image {
  aspect-ratio: 3 / 3.2;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.65s var(--ease);
  display: block;
}
.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.05);
}

/* Full-card overlay — always partially visible */
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 30, 50, 0.88) 0%,
    rgba(20, 30, 50, 0.45) 45%,
    rgba(20, 30, 50, 0.08) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.75rem;
  transition: background var(--duration) var(--ease);
}
.portfolio-card:hover .portfolio-card__overlay {
  background: linear-gradient(
    to top,
    rgba(20, 30, 50, 0.95) 0%,
    rgba(20, 30, 50, 0.55) 50%,
    rgba(20, 30, 50, 0.15) 100%
  );
}

.portfolio-card__overlay-text {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.portfolio-card__category {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat-light);
  opacity: 0.85;
}

.portfolio-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  margin: 0;
}
.portfolio-card--large .portfolio-card__title {
  font-size: 1.5rem;
}

.portfolio-card__status {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.52);
  font-style: italic;
  margin: 0;
  margin-top: 0.125rem;
}

/* CTA below the grid */
.portfolio__cta {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.portfolio__cta-note {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}

/* =====================
   CASE STUDY
===================== */
.case-study {
  background: var(--bg-warm);
}

.case-study__opening {
  padding-top: var(--section-pad);
  padding-bottom: 2.5rem;
}

.case-study__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
  flex-wrap: wrap;
}
.case-study__meta span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Full-bleed hero image */
.case-study__hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  overflow: hidden;
}
.case-study__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.case-study__hero-caption {
  position: absolute;
  bottom: 1rem;
  right: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
}

/* Story body */
.case-study__body {
  padding-block: 4rem var(--section-pad);
  max-width: 820px;
}

/* Timeline strip */
.case-study__timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 4rem;
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.case-study__timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-shrink: 0;
}

.case-study__timeline-year {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
}

.case-study__timeline-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.case-study__timeline-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-inline: 1.5rem;
  position: relative;
}
.case-study__timeline-line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
}

/* Chapters */
.case-study__chapter {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.case-study__chapter:last-of-type {
  border-bottom: none;
}

.case-study__chapter-heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1.375rem;
}

.case-study__chapter-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.case-study__chapter-content p:last-child { margin-bottom: 0; }

/* Split layout for "How It Grew" */
.case-study__chapter-content--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Service list */
.case-study__services {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.case-study__services li {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  padding-left: 1.125rem;
  position: relative;
}
.case-study__services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* Photo break */
.case-study__photo-break {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.case-study__photo-break-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.case-study__photo-break-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.case-study__photo-break-item:hover img { transform: scale(1.04); }

/* Feature list (bullet list inside chapter) */
.case-study__feature-list {
  margin-block: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.case-study__feature-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.125rem;
  position: relative;
}
.case-study__feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wheat);
}

/* Website link */
.case-study__site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.case-study__site-link svg { width: 14px; height: 14px; }
.case-study__site-link:hover { color: var(--sage); border-color: var(--sage); }

/* Outcomes grid */
.case-study__outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.case-study__outcome {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.375rem 1.5rem;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.case-study__outcome:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.case-study__outcome h4 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.case-study__outcome p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Closing reflection */
.case-study__reflection {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.75rem 3rem;
  margin-top: 1rem;
}
.case-study__reflection p {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.case-study__reflection p:last-child { margin-bottom: 0; }

/* Placeholder portfolio cards */
.portfolio-card__image--placeholder {
  aspect-ratio: 3 / 3.2;
  background: var(--bg-warm);
  border: 1.5px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
.portfolio-card__placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  text-align: center;
  padding: 1.5rem;
}
.portfolio-card__placeholder-icon {
  color: var(--sage-light);
  width: 36px;
  height: 36px;
}
.portfolio-card__placeholder-icon svg { width: 100%; height: 100%; }
.portfolio-card__placeholder-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}
.portfolio-card__placeholder-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .case-study__hero-image { aspect-ratio: 16 / 7; }
  .case-study__chapter-content--split { grid-template-columns: 1fr; gap: 1.5rem; }
  .case-study__outcomes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .case-study__timeline { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .case-study__timeline-line { display: none; }
  .case-study__photo-break { grid-template-columns: 1fr; }
  .case-study__hero-image { aspect-ratio: 4 / 3; }
  .case-study__reflection { padding: 2rem 1.75rem; }
  .case-study__reflection p { font-size: 1.0625rem; }
}

/* =====================
   FEATURED PROJECT
===================== */
.featured {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.featured__header {
  margin-bottom: 3rem;
  max-width: 760px;
}

.featured__title-row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.125rem;
}

.featured__duration {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

.featured__intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.78;
}

.featured__layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.featured__image-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.featured__image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.65s var(--ease);
}
.featured__image-main:hover img { transform: scale(1.03); }

.featured__sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 0.25rem;
}

.featured__role-heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1rem;
}

.featured__role-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.featured__role-list li {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.featured__role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}

.featured__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.featured__link svg { width: 14px; height: 14px; }
.featured__link:hover { color: var(--sage); border-color: var(--sage); }

/* Outcomes bar */
.featured__outcomes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.featured__outcome {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.featured__outcome:last-child { border-right: none; }

.featured__outcome-value {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--wheat);
  line-height: 1;
}

.featured__outcome-label {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* Gallery strip */
.featured__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.featured__gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.featured__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.featured__gallery-item:hover img { transform: scale(1.04); }

/* Responsive */
@media (max-width: 1024px) {
  .featured__layout { grid-template-columns: 1fr; }
  .featured__image-main { aspect-ratio: 16 / 9; }
  .featured__outcomes { grid-template-columns: repeat(2, 1fr); }
  .featured__outcome { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .featured__outcome:nth-child(2n) { border-right: none; }
  .featured__outcome:nth-child(3),
  .featured__outcome:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  .featured__outcomes { grid-template-columns: 1fr 1fr; }
  .featured__gallery { grid-template-columns: 1fr; }
}

/* =====================
   CS TEASER (homepage)
===================== */
.cs-teaser {
  padding-block: var(--section-pad);
  background: var(--navy);
}

.cs-teaser .section-label {
  color: var(--wheat-light);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.cs-teaser__image {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.cs-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 0.8s var(--ease);
}
.cs-teaser:hover .cs-teaser__image img { transform: scale(1.02); }

.cs-teaser__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(29,43,66,0.18) 0%,
    rgba(29,43,66,0.52) 100%
  );
}

.cs-teaser__content {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 3.5rem;
  align-items: start;
}

.cs-teaser__heading {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
}

.cs-teaser__meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

.cs-teaser__right p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.82;
  margin-bottom: 1rem;
}
.cs-teaser__right p:last-of-type { margin-bottom: 0; }

.cs-teaser__btn {
  margin-top: 2rem;
  background: var(--white) !important;
  color: var(--navy) !important;
  border-color: var(--white) !important;
}
.cs-teaser__btn:hover {
  background: var(--wheat-light) !important;
  border-color: var(--wheat-light) !important;
}

@media (max-width: 1024px) {
  .cs-teaser__image { aspect-ratio: 16 / 7; }
  .cs-teaser__content { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .cs-teaser__image { aspect-ratio: 4 / 3; }
}

/* =====================
   CASE STUDY PAGE
===================== */
.case-page__hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.case-page__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.case-page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 22, 35, 0.82) 0%,
    rgba(15, 22, 35, 0.28) 55%,
    rgba(15, 22, 35, 0.10) 100%
  );
}
.case-page__hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
}

.case-page__back {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  transition: color var(--duration) var(--ease);
}
.case-page__back:hover { color: rgba(255,255,255,0.88); }

.case-page__client {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 1rem;
}

.case-page__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.case-page__location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.42);
  letter-spacing: 0.06em;
}

/* Meta strip */
.case-page__meta {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding-block: 2rem;
}
.case-page__meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.case-page__meta-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 0.375rem;
}
.case-page__meta-value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .case-page__meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .case-page__meta-grid { grid-template-columns: 1fr; }
}

/* Photo caption (after photo break) */
.case-study__photo-caption {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 3.5rem;
}

/* Outcomes heading */
.case-study__chapter .case-study__outcomes-grid {
  margin-top: 1.5rem;
}

/* Case page CTA */
.case-page__cta {
  padding-block: var(--section-pad);
  background: var(--bg);
  text-align: center;
}
.case-page__cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}
.case-page__cta p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* =====================
   HOW I WORK (principles)
===================== */
.principles {
  padding-block: var(--section-pad);
  background: var(--navy);
}

.principles .section-label { color: var(--wheat-light); opacity: 0.8; }
.principles .section-heading { color: var(--white); }

.principles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.principle__number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--wheat);
  opacity: 0.5;
  line-height: 1;
}

.principle__heading {
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
}

.principle p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

/* =====================
   CONTACT
===================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  min-height: 700px;
}

.contact__image {
  position: relative;
  overflow: hidden;
}
.contact__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.contact__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(29, 43, 66, 0.28) 0%,
    rgba(29, 43, 66, 0.04) 100%
  );
}

.contact__content {
  background: var(--bg-warm);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 5.5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact__text .section-heading { margin-bottom: 1.125rem; }

.contact__text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 0.75rem;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.375rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--duration) var(--ease);
}
.contact__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: var(--sage);
}
.contact__link:hover { color: var(--sage); }

/* Form */
.contact__form-intro {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.form-required {
  color: var(--wheat);
  font-size: 0.875rem;
  line-height: 1;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9375rem 1.125rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #C0BAB2; }
.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--wheat-light);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--wheat);
  box-shadow: 0 0 0 3px rgba(196, 168, 122, 0.14);
}
.form-group textarea { min-height: 148px; }

/* Trust indicators */
.contact__trust {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.25rem 1.375rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  list-style: none;
}
.contact__trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.contact__trust svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--sage);
  margin-top: 0.1em;
}

/* Submit */
.contact__submit {
  width: 100%;
  padding-block: 1.0625rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* =====================
   FOOTER
===================== */
.footer { background: var(--navy); color: var(--white); }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 200px;
  align-items: center;
  gap: 3rem;
  padding-block: 3.25rem;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.375rem;
  letter-spacing: 0.01em;
}

.footer__tagline {
  font-family: var(--serif);
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.footer__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.footer__nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration) var(--ease);
}
.footer__nav a:hover { color: var(--white); }

.footer__dogs {
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease);
}
.footer__dogs:hover { opacity: 0.82; }
.footer__dogs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.375rem;
}
.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.32);
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.42; }
  50%       { transform: scaleY(1.18); opacity: 0.9; }
}

/* Scroll-triggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 90ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 270ms; }
.reveal-delay-4 { transition-delay: 360ms; }
.reveal-delay-5 { transition-delay: 450ms; }
.reveal-delay-6 { transition-delay: 540ms; }

/* =====================
   RESPONSIVE — 1100px
===================== */
@media (max-width: 1100px) {
  .principles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }
}

/* =====================
   RESPONSIVE — 1024px
===================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about__image {
    height: min(56vw, 480px);
  }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
  }
  .portfolio-card--large {
    grid-column: 1 / -1;
  }
  .portfolio-card--large .portfolio-card__image {
    aspect-ratio: 16 / 7;
  }

  .contact {
    grid-template-columns: 1fr;
  }
  .contact__image {
    height: min(55vw, 380px);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__dogs {
    grid-column: 1 / -1;
    width: 200px;
  }
  .footer__nav { justify-content: flex-end; }
}

/* =====================
   RESPONSIVE — 768px
===================== */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    z-index: 200;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
  }
  .nav__links a:hover { color: var(--white); }
  .nav__cta {
    background: rgba(255,255,255,0.1) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: var(--white) !important;
    padding: 0.75rem 2.5rem !important;
    font-size: 1.5rem !important;
  }

  .services__grid { grid-template-columns: 1fr; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio-card--large .portfolio-card__image { aspect-ratio: 4 / 3.2; }
  .portfolio-card:not(.portfolio-card--large) .portfolio-card__image { aspect-ratio: 4 / 3; }

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

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer__nav { justify-content: center; }
  .footer__dogs { margin-inline: auto; }
  .footer__bottom-inner {
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
  }
}

/* =====================
   RESPONSIVE — 520px
===================== */
@media (max-width: 520px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .form-row { grid-template-columns: 1fr; }
}

/* =====================
   REDUCED MOTION
===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { transform: none !important; }
}
