/* ============================================================
   ARCHITECTURAL SURFACES — STYLES
   Apple HIG-aligned · Parallax-enabled · Material-forward
   ============================================================ */

/* ============================================================
   BRAND FONTS (self-hosted, web-licensed)
   ============================================================ */
@font-face {
  font-family: 'Verlag';
  src: url('assets/fonts/Verlag-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sinclaire';
  src: url('assets/fonts/Sinclaire-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sinclaire';
  src: url('assets/fonts/Sinclaire-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Coterie';
  src: url('assets/fonts/Coterie-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- Brand palette (from Architectural Surfaces brand book) --- */
  --burgundy:    #401a0d;   /* primary — public site */
  --forest:      #273125;   /* secondary — members site */
  --rose:        #a68b85;   /* muted dusty rose */
  --bronze:      #8c6927;   /* warm metallic accent */
  --stone:       #bfbdb8;   /* neutral greige */
  --mint:        #5e8c6e;   /* soft sage accent */
  --pure-white:  #ffffff;

  /* --- Semantic aliases (existing variable names remapped to brand) --- */
  --bone:        #f4f1ec;   /* warm off-white */
  --paper:       #ebe6df;   /* deeper paper tone */
  --linen:       #e2dcd2;
  --mineral:     #1f1510;   /* deep burgundy-black */
  --ink:         #140a06;   /* deepest */
  --slate:       #6b6862;
  --whisper:     #a39e95;

  --sage:        var(--rose);     /* dusty rose replaces old mint-sage */
  --sage-deep:   var(--burgundy); /* deep accent = burgundy */
  --sage-pale:   #efe7e4;         /* pale rose wash */

  --travertine:  #c4a987;
  --marble:      #e8e3dc;
  --terracotta:  var(--bronze);   /* bronze replaces terracotta */

  /* --- Accent (drives primary CTAs, links, highlights) --- */
  --accent:      var(--burgundy);
  --accent-deep: #2a100a;         /* darker burgundy for hover */
  --accent-soft: var(--rose);

  /* --- Type --- */
  --serif:   'Sinclaire', 'Fraunces', 'Times New Roman', Georgia, serif;
  --sans:    'Verlag', 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Coterie', 'Sinclaire', Georgia, serif;

  /* --- Spacing scale --- */
  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  2rem;
  --space-l:  4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* --- Layout --- */
  --max-width: 1440px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);

  /* --- Motion --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mineral);
  background: var(--bone);
  overflow-x: hidden;
}

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

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

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--sage);
  color: var(--ink);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 var(--space-m);
}

.eyebrow--light { color: rgba(255, 255, 255, 0.7); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage-deep);
}

.section-title--light { color: var(--bone); }
.section-title--light em { color: var(--sage); }

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

.section-head {
  margin-bottom: var(--space-l);
}

.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
  align-items: end;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-l);
  }
}

.section-head__aside {
  font-size: 1rem;
  color: var(--slate);
  max-width: 32ch;
  margin: 0;
  justify-self: end;
}

/* ============================================================
   BRAND MARK
   ============================================================ */
.brand-mark {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: inherit;
  display: inline-flex;
  align-items: baseline;
}

/* Image logo variant (replaces text A|S mark) */
.brand-mark--img {
  display: inline-block;
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: filter 0.35s var(--ease-out), opacity 0.3s ease;
}
.brand-mark--footer {
  height: 56px;
  /* primary-logo-white.png is already white — no filter needed */
}
/* When nav sits over the dark hero, tint the burgundy mark toward bone */
.nav.is-light:not(.is-scrolled) .brand-mark--img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.brand-mark__sep {
  color: var(--sage-deep);
  margin: 0 0.1em;
  font-style: normal;
  font-weight: 300;
}

.brand-word {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-left: 0.75rem;
  border-left: 1px solid currentColor;
  padding-left: 0.75rem;
  align-self: center;
}

@media (max-width: 720px) {
  .brand-word { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.4s var(--ease-out), padding 0.3s var(--ease-out), backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(244, 241, 236, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
}

.nav.is-light:not(.is-scrolled) { color: var(--bone); }
.nav.is-light:not(.is-scrolled) .brand-word { color: rgba(244, 241, 236, 0.75); }
.nav.is-light:not(.is-scrolled) .brand-mark__sep { color: var(--sage); }

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
}

.nav__brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
}

.nav__links {
  display: none;
  gap: 2.25rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  transition: opacity 0.2s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-out);
}

.nav__links a:hover::after { width: 100%; }

@media (min-width: 960px) {
  .nav__links { display: flex; }
}

.nav__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.nav.is-light:not(.is-scrolled) .nav__cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.nav__cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}

@media (min-width: 720px) {
  .nav__cta { display: inline-flex; }
}

/* Mobile menu */
.nav__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.nav__menu span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__menu[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav__menu[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav__menu { display: none; }
}

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--bone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.nav__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nav__drawer a {
  font-style: italic;
  transition: color 0.2s ease;
}

.nav__drawer a:hover { color: var(--sage-deep); }

.nav__drawer-cta {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  margin-top: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn svg { transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
}

.btn--primary:hover {
  background: var(--mineral);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid currentColor;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bone);
}

.btn--ghost-light {
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.4);
}

.btn--ghost-light:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.btn--light {
  background: var(--bone);
  color: var(--ink);
  border: 1px solid var(--bone);
}

.btn--light:hover {
  background: transparent;
  color: var(--bone);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.15) 40%,
      rgba(0, 0, 0, 0.55) 100%);
  z-index: 2;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__content {
  position: relative;
  z-index: 5;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bone);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 8vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-m);
  max-width: 14ch;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--sage-pale);
}

.hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(244, 241, 236, 0.85);
  margin: 0 0 var(--space-l);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .btn--ghost {
  color: var(--bone);
  border-color: rgba(244, 241, 236, 0.4);
}

.hero .btn--ghost:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(244, 241, 236, 0.6), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   STUDIO (pinned-section parallax)
   ============================================================ */
.studio {
  padding: var(--space-2xl) 0;
  background: var(--bone);
  position: relative;
}

.studio .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
}

@media (min-width: 1000px) {
  .studio .container {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }
}

.studio__pin {
  position: relative;
}

@media (min-width: 1000px) {
  .studio__pin {
    position: sticky;
    top: 8rem;
    align-self: start;
    height: fit-content;
  }
}

.studio__intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.4;
  color: var(--mineral);
  margin: 0 0 var(--space-xl);
  max-width: 38ch;
}

.studio__pillars {
  display: grid;
  gap: var(--space-l);
}

.pillar {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: var(--space-m);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-m);
  align-items: start;
}

.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--sage-deep);
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
  max-width: 48ch;
}

/* ============================================================
   PARALLAX BREAK (layered depth)
   ============================================================ */
.parallax-break {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mineral);
}

.parallax-layer {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-layer--bg {
  /* Travertine-inspired layered gradient */
  background:
    radial-gradient(ellipse at 30% 40%, rgba(196, 169, 135, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(168, 181, 163, 0.25), transparent 60%),
    linear-gradient(135deg, #2a2926 0%, #3d3a35 100%);
}

.parallax-layer--mid {
  background:
    radial-gradient(circle at 20% 80%, rgba(176, 112, 80, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(232, 227, 220, 0.08), transparent 50%);
  opacity: 0.7;
}

.parallax-break__quote {
  position: relative;
  z-index: 5;
  max-width: 720px;
  padding: 0 var(--pad-x);
  text-align: center;
}

.parallax-break__quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  color: var(--bone);
  margin: 0;
}

.parallax-break__quote em {
  font-style: italic;
  color: var(--sage-pale);
}

/* ============================================================
   MATERIALS
   ============================================================ */
.materials {
  padding: var(--space-2xl) 0;
  background: var(--paper);
}

.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

@media (min-width: 640px) {
  .materials__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .materials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l);
  }
}

.material {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

.material:hover { transform: translateY(-4px); }

.material__swatch {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.12);
}

/* Material swatches — each declares a URL (drop photo into /assets/) on top of
   a procedural gradient fallback. Missing photos silently fall through to the
   gradient, so the site never shows broken-image boxes.
   See README for the asset filename manifest. */
.material__swatch--travertine {
  background-image:
    url('assets/material-travertine.jpg'),
    repeating-linear-gradient(110deg,
      rgba(176, 130, 90, 0.08) 0px,
      rgba(176, 130, 90, 0.08) 2px,
      transparent 2px, transparent 8px),
    radial-gradient(ellipse at 30% 20%, #d4b894 0%, #c4a987 60%, #ad9676 100%);
}

.material__swatch--marble {
  background-image:
    url('assets/material-marble.jpg'),
    repeating-linear-gradient(45deg,
      rgba(120, 120, 120, 0.06) 0px,
      rgba(120, 120, 120, 0.06) 1px,
      transparent 1px, transparent 12px),
    linear-gradient(135deg, #f0ebe2 0%, #e8e3dc 50%, #d8d2c8 100%);
}

.material__swatch--porcelain {
  background-image:
    url('assets/material-porcelain.jpg'),
    radial-gradient(ellipse at 70% 30%, rgba(168, 144, 110, 0.25), transparent 60%),
    linear-gradient(180deg, #c8b89e 0%, #a89578 100%);
}

.material__swatch--terrazzo {
  background-color: #ebe6df;
  background-image:
    url('assets/material-terrazzo.jpg'),
    radial-gradient(circle at 20% 30%, #8a6d4f 2px, transparent 3px),
    radial-gradient(circle at 60% 60%, #d4a07a 3px, transparent 4px),
    radial-gradient(circle at 80% 20%, #6e8068 2px, transparent 3px),
    radial-gradient(circle at 30% 80%, #2a2926 2px, transparent 3px),
    radial-gradient(circle at 70% 90%, #b8a890 3px, transparent 4px);
  background-size: cover, 60px 60px, 80px 80px, 50px 50px, 70px 70px, 90px 90px;
  background-repeat: no-repeat, repeat, repeat, repeat, repeat, repeat;
}

.material__swatch--limestone {
  background-image:
    url('assets/material-limestone.jpg'),
    radial-gradient(ellipse at 50% 50%, rgba(80, 80, 80, 0.15), transparent 70%),
    linear-gradient(135deg, #6b6862 0%, #4a4844 100%);
}

.material__swatch--plaster {
  background-image:
    url('assets/material-plaster.jpg'),
    radial-gradient(ellipse at 25% 30%, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(0, 0, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #e8dccc 0%, #d4c4ae 100%);
}

.material__meta h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.material__meta p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   PROJECTS (classic parallax backgrounds)
   ============================================================ */
.projects {
  padding: var(--space-2xl) 0;
  background: var(--bone);
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  align-items: center;
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-xl);
  }
  .project--reverse .project__visual { order: 2; }
}

.project__visual {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background-size: 110% auto;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 20px 60px -20px rgba(0, 0, 0, 0.15);
  will-change: background-position;
  transition: background-position 0.05s linear;
}

@media (min-width: 900px) {
  .project__visual { aspect-ratio: 4 / 5; }
}

/* Project visuals — each project has a folder under assets/projects/<slug>/.
   The card hero is hero.jpg in that folder. Other images (01.jpg, 02.jpg…)
   in the folder are reserved for the future case-study gallery pages.
   Photos should be supplied at 1600×2000 (4:5) or larger. */
.project__visual--1 {
  background-image:
    url('assets/projects/hinterland-haven/hero.jpg'),
    linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3)),
    radial-gradient(ellipse at 30% 40%, #c4a987 0%, #8b7355 100%);
}

.project__visual--2 {
  background-image:
    url('assets/projects/coastal-pavilion/hero.jpg'),
    linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.25)),
    linear-gradient(180deg, #e8e3dc 0%, #a8b5a3 100%);
}

.project__visual--3 {
  background-image:
    url('assets/projects/office-feature-wall/hero.jpg'),
    linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.4)),
    radial-gradient(ellipse at 70% 30%, #d4c4ae 0%, #6b6862 100%);
}

.project__tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--space-s);
}

.project__body h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-m);
  color: var(--ink);
}

.project__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 var(--space-m);
  max-width: 44ch;
}

.project__credits {
  font-size: 0.85rem;
  color: var(--whisper);
  letter-spacing: 0.03em;
}

.project__credits span {
  font-style: italic;
  color: var(--slate);
  margin-right: 0.4rem;
}

/* ============================================================
   JOURNAL / INSTAGRAM
   ============================================================ */
.journal {
  padding: var(--space-2xl) 0;
  background: var(--paper);
}

.journal__follow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
  align-self: end;
  justify-self: end;
  transition: color 0.2s ease;
}

.journal__follow:hover { color: var(--sage-deep); }

.journal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-m);
}

@media (min-width: 900px) {
  .journal__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
  }
}

.ig-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  will-change: transform;
  transition: transform 0.4s var(--ease-out);
}

.ig-tile:hover { transform: translateY(-4px); }

.ig-tile__media {
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 30px -8px rgba(0, 0, 0, 0.12);
  position: relative;
}

.ig-tile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-tile:hover .ig-tile__media::after { opacity: 1; }

/* Instagram tiles — URL layer on top, gradient fallback below.
   Photos should be square (1080×1080 minimum). Filenames map to
   the captions set in index.html; update both when reordering. */
.ig-tile__media--1 {
  background-image:
    url('assets/ig-1.jpg'),
    radial-gradient(ellipse at 30% 30%, #c4a987 0%, #8b7355 100%);
}
.ig-tile__media--2 {
  background-image:
    url('assets/ig-2.jpg'),
    linear-gradient(135deg, #d4c4ae 0%, #a89578 100%);
}
.ig-tile__media--3 {
  background-image:
    url('assets/ig-3.jpg'),
    radial-gradient(ellipse at 50% 50%, #ad9676 0%, #6b5840 100%);
}
.ig-tile__media--4 {
  background-image:
    url('assets/ig-4.jpg'),
    radial-gradient(ellipse at 70% 30%, #d4b894 0%, #b8956e 100%);
}

.ig-tile__caption {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.4;
}

/* ============================================================
   TRADE
   ============================================================ */
.trade {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.trade__bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(168, 181, 163, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(196, 169, 135, 0.12), transparent 50%);
  will-change: transform;
}

.trade__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.trade__lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.75);
  max-width: 52ch;
  margin: var(--space-m) 0 var(--space-l);
  font-weight: 300;
}

.trade__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--space-2xl) 0;
  background: var(--bone);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
  }
}

.contact__details {
  display: grid;
  gap: var(--space-l);
  align-content: start;
}

.contact__item {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: var(--space-s);
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--whisper);
  margin: 0 0 0.5rem;
}

.contact__item a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__item a:hover {
  border-bottom-color: currentColor;
  color: var(--sage-deep);
}

/* Form */
.contact__form {
  display: grid;
  gap: var(--space-m);
}

.form-row {
  display: grid;
}

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

@media (min-width: 600px) {
  .form-row--split { grid-template-columns: 1fr 1fr; }
}

.form-row label {
  display: block;
  position: relative;
}

.form-row label span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--whisper);
  margin-bottom: 0.5rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-bottom-color: var(--sage-deep);
}

.form-row input:invalid:not(:placeholder-shown):not(:focus),
.form-row textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-bottom-color: var(--terracotta);
}

.form-submit {
  justify-self: start;
  margin-top: var(--space-m);
}

.form-status {
  margin: var(--space-s) 0 0;
  font-size: 0.9rem;
  color: var(--sage-deep);
  min-height: 1.4em;
}

.form-status.is-error { color: var(--terracotta); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-l) 0 var(--space-m);
  background: var(--ink);
  color: rgba(244, 241, 236, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid rgba(244, 241, 236, 0.1);
}

@media (min-width: 800px) {
  .footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--space-xl);
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--bone);
}

.footer__brand .brand-mark { color: var(--bone); }
.footer__brand .brand-mark__sep { color: var(--sage); }

.footer__brand p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer__brand p span {
  color: rgba(244, 241, 236, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.footer__links a {
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}

.footer__links a:hover {
  color: var(--bone);
  border-bottom-color: var(--sage);
}

.footer__meta {
  font-size: 0.8rem;
  color: rgba(244, 241, 236, 0.5);
  display: grid;
  gap: 0.25rem;
  align-content: center;
}

.footer__meta p { margin: 0; }

@media (min-width: 800px) {
  .footer__meta { text-align: right; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CMS-HYDRATED CONTENT
   Styles for Sanity-rendered items that share behaviour with
   their hardcoded counterparts but have dynamic backgrounds.
   ============================================================ */
.material__swatch--cms,
.project__visual--cms,
.ig-tile__media--cms {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.journal__item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}
.journal__item:hover { transform: translateY(-4px); }

.journal__cover {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--linen);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.journal__date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.5rem;
}

.journal__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: var(--ink);
}

.journal__excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
}

/* Project card rendered from CMS */
.project--cms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .project--cms {
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
  }
}
.project__visual--cms {
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  min-height: 320px;
}
.project__meta .project__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.75rem;
}
.project__meta .project__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.1;
  color: var(--ink);
}
.project__meta .project__summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 1.25rem;
  max-width: 42ch;
}
.project__link {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.project__link:hover { opacity: 0.7; }

/* ============================================================
   CUSTOM CURSOR (desktop only)
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s var(--ease-out), opacity 0.25s ease;
  opacity: 0;
  mix-blend-mode: difference;
}

.cursor.is-active {
  width: 36px;
  height: 36px;
  background: rgba(168, 181, 163, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .cursor { opacity: 0.7; }
  /* Optional: hide native cursor on interactive elements
     body { cursor: none; }
     a, button, input, select, textarea { cursor: none; } */
}

@media (max-width: 900px), (hover: none) {
  .cursor { display: none; }
}

/* ============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-parallax-y],
  [data-parallax-bg],
  .parallax-layer {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__video {
    /* Pause video for users who prefer reduced motion */
    /* Note: requires JS to actually pause - CSS can't pause video */
  }

  .hero__scroll-line { animation: none; opacity: 0.6; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .hero__video, .hero__veil, .hero__grain, .hero__scroll,
  .parallax-break, .trade__bg, .cursor { display: none; }
  body { background: white; color: black; }
}
