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

/* ── THEME VARIABLES ────────────────────────────────── */
:root {
  --red: #F13100;
  --red-rgb: 241,49,0;
  --bg: #F7F7F7;
  --bg-surface: transparent;
  --text: #111111;
  --muted: #777;
  --border: rgba(241,49,0,0.35);
  --nav-bg: #F7F7F7;
  --nav-backdrop: none;
  --mobile-menu-bg: rgba(247,247,247,0.97);
  --process-num-color: rgba(241,49,0,0.18);
  --eyebrow-color: var(--muted);
  --nav-link-color: #111111;
  --nav-link-hover: var(--red);
  --grain-opacity: 0.46;
}

[data-theme="dark"] {
  --red: #C0392B;
  --red-rgb: 192,57,43;
  --bg: #111111;
  --bg-surface: #161616;
  --text: #F5F0EB;
  --muted: #888;
  --border: rgba(192,57,43,0.4);
  --nav-bg: #111111;
  --nav-backdrop: blur(8px);
  --mobile-menu-bg: rgba(17,17,17,0.98);
  --process-num-color: rgba(192,57,43,0.25);
  --eyebrow-color: var(--red);
  --nav-link-color: #888;
  --nav-link-hover: #F5F0EB;
  --grain-opacity: 0.18;
}

html, body { max-width: 100%; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

html:not([data-theme="dark"]) body {
  background-image:
    radial-gradient(ellipse 80vw 60vh at 60% 0%, rgba(241,49,0,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60vw 50vh at 10% 40%, rgba(241,49,0,0.04) 0%, transparent 65%),
    radial-gradient(ellipse 50vw 40vh at 80% 80%, rgba(241,49,0,0.05) 0%, transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(17,17,17,0.018) 1px, transparent 0);
  background-size: 100% 100%, 100% 100%, 100% 100%, 8px 8px;
  background-attachment: fixed, fixed, fixed, scroll;
}

/* Grain overlay — light only (opacity controlled by --grain-opacity) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: var(--grain-opacity);
  transition: opacity 0.4s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 100px;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 3rem;
  border-bottom: 0.5px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.3s ease;
}

nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: var(--nav-backdrop);
  -webkit-backdrop-filter: var(--nav-backdrop);
  border-bottom-color: var(--border);
}


nav::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Halved at the top: the nav is transparent there, so the body grain already
     shows through. A full second grain layer on top would double up and read
     as a dark band — but dropping it entirely makes the nav logo (above the
     body grain) read brighter red than the hero/footer logos. Half keeps the
     logo lightly muted for consistency without the dark band. Fades to full
     once the nav has its solid scrolled bg. */
  opacity: calc(var(--grain-opacity) * 0.5);
  transition: opacity 0.4s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 100px;
}

nav.scrolled::after { opacity: var(--grain-opacity); }

/* Finer grain on larger / lower-DPI screens (external monitors) so it
   doesn't read as coarse. Smaller tile = smaller grain. */
@media (min-width: 1440px) {
  body::before,
  nav::after { background-size: 80px 80px; }
}
@media (min-width: 1920px) {
  body::before,
  nav::after { background-size: 64px 64px; }
}

/* Standard ~1x displays (most external monitors) render the same grain at half
   the density of a retina laptop, so it reads much coarser and more intense.
   Width breakpoints can't detect this — resolution can. Pull opacity down and
   use a finer tile so it stays subtle film grain on those monitors. Retina
   laptops (2x) don't match this query and keep the fuller grain. */
@media (max-resolution: 1.5dppx) {
  :root { --grain-opacity: 0.28; }
  [data-theme="dark"] { --grain-opacity: 0.12; }
  body::before,
  nav::after { background-size: 56px 56px; }
}

.nav-logo {
  font-family: "Manufacturing Consent", serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--red);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--nav-link-color);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--nav-link-hover); }

/* THEME TOGGLE */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--red); color: var(--red); }
.theme-toggle svg { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(var(--red-rgb), 0.07) 0%, rgba(var(--red-rgb), 0.02) 50%, rgba(var(--red-rgb), 0) 85%),
    radial-gradient(ellipse 100% 75% at 50% 35%, rgba(var(--red-rgb), 0.04) 0%, rgba(var(--red-rgb), 0.01) 55%, rgba(var(--red-rgb), 0) 90%),
    radial-gradient(ellipse 130% 95% at 50% 35%, rgba(var(--red-rgb), 0.02) 0%, rgba(var(--red-rgb), 0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 25%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 25%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

html:not([data-theme="dark"]) .hero::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(var(--red-rgb), 0.18) 0%, rgba(var(--red-rgb), 0.08) 30%, rgba(var(--red-rgb), 0.02) 65%, rgba(var(--red-rgb), 0) 85%),
    radial-gradient(ellipse 110% 75% at 50% 35%, rgba(var(--red-rgb), 0.10) 0%, rgba(var(--red-rgb), 0.04) 40%, rgba(var(--red-rgb), 0.01) 65%, rgba(var(--red-rgb), 0) 90%),
    radial-gradient(ellipse 150% 100% at 50% 35%, rgba(var(--red-rgb), 0.06) 0%, rgba(var(--red-rgb), 0.01) 50%, rgba(var(--red-rgb), 0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 85%);
  mask-image: linear-gradient(to bottom, black 40%, transparent 85%);
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%,
      rgba(var(--red-rgb), 0.10) 0%,
      rgba(var(--red-rgb), 0.08) 15%,
      rgba(var(--red-rgb), 0.06) 28%,
      rgba(var(--red-rgb), 0.04) 42%,
      rgba(var(--red-rgb), 0.02) 58%,
      rgba(var(--red-rgb), 0.01) 72%,
      rgba(var(--red-rgb), 0) 85%),
    radial-gradient(ellipse 130% 85% at 50% 35%,
      rgba(var(--red-rgb), 0.05) 0%,
      rgba(var(--red-rgb), 0.03) 25%,
      rgba(var(--red-rgb), 0.01) 55%,
      rgba(var(--red-rgb), 0) 75%);
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 80%);
  mask-image: linear-gradient(to bottom, black 35%, transparent 80%);
  filter: blur(12px);
}

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

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--eyebrow-color);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
  position: relative; z-index: 1;
}

.hero-logo-text {
  font-family: "Manufacturing Consent", serif;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
  position: relative; z-index: 1;
}

.hero-sub {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
  position: relative; z-index: 1;
}

.hero-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  position: relative; z-index: 1;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
  position: relative; z-index: 1;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 0.5px solid var(--red);
  color: var(--text);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
  position: relative; z-index: 1;
}

.hero-cta:hover { background: var(--red); color: var(--bg); }

/* MARQUEE */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  background: var(--bg-surface);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.marquee-item span { color: var(--red); margin: 0 0.75rem; }

/* SECTIONS */
.section { padding: 6rem 3rem; max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  font-weight: 400;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.2;
  color: var(--text);
}

/* PROCESS */
.process-grid { display: flex; flex-direction: column; }

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  align-items: start;
  transition: background 0.3s;
}

.process-item:hover .process-name { color: var(--red); }

.process-num {
  font-family: "Manufacturing Consent", serif;
  font-size: 2.5rem;
  color: var(--process-num-color);
  line-height: 1;
  transition: color 0.3s;
}

.process-item:hover .process-num { color: var(--red); }

.process-name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.process-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
}

.process-divider { height: 1px; background: var(--border); }

/* SERVICES */
.services-wrap {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.service-item {
  padding: 3rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
}

.service-item:first-child { border-left: none; }
.service-item:nth-child(4n) { border-right: none; }
.service-item:last-child { border-right: none; }
.service-item:nth-child(n+5) { border-top: 1px solid var(--border); }
.service-item:hover { background: rgba(var(--red-rgb), 0.04); }

.service-num { font-size: 0.55rem; letter-spacing: 0.3em; color: var(--red); margin-bottom: 1.5rem; }

.service-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.8; }
.service-price { margin-top: 1.5rem; font-size: 0.6rem; letter-spacing: 0.2em; color: var(--text); text-transform: uppercase; }

.care-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}
.care-banner .service-num { margin-bottom: 1rem; }
.care-banner .service-desc { margin-top: 0.5rem; max-width: 52ch; }
.care-banner .service-price { margin-top: 0; white-space: nowrap; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; }
.about-left { display: flex; flex-direction: column; align-self: stretch; padding-right: 4rem; }
.about-credentials { flex: 1; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--border); }
.about-credential { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.cred-dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.cred-text { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; }
.about-right p { color: var(--text); margin-bottom: 1.5rem; }

/* CONTACT */
.contact-wrap {
  text-align: center;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: 300;
  margin: 1rem 0 0.5rem;
  line-height: 1.2;
  color: var(--text);
  position: relative; z-index: 1;
}

.contact-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  position: relative; z-index: 1;
}

.contact-email {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--red);
  color: var(--bg);
  text-decoration: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  transition: opacity 0.2s;
  position: relative; z-index: 1;
}

.contact-email:hover { opacity: 0.85; }

.contact-phone {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: relative; z-index: 1;
}
.contact-phone a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.contact-phone a:hover { color: var(--red); }

/* FOOTER */
footer {
  padding: 0.85rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foot-logo { font-family: "Manufacturing Consent", serif; font-weight: 400; color: var(--red); font-size: 1.6rem; white-space: nowrap; }
.foot-copy { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; }
.foot-social { display: flex; gap: 0.75rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.foot-social a { color: var(--muted); transition: color 0.2s; line-height: 0; }
.foot-social a:hover { color: var(--red); }
.nav-social { display: flex; gap: 0.6rem; align-items: center; }
.nav-social a { color: var(--muted); transition: color 0.2s; line-height: 0; }
.nav-social a:hover { color: var(--red); }

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

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--mobile-menu-bg);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu-top {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s;
}

.mobile-close:hover { color: var(--red); }

.mobile-social { display: flex; gap: 0.75rem; align-items: center; }
.mobile-social a { color: var(--muted); transition: color 0.2s; line-height: 0; }
.mobile-social a:hover { color: var(--red); }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--red); }

.mobile-menu-divider { width: 1px; height: 40px; background: var(--border); }

/* WORK SECTION */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin: 3rem 0 2.5rem;
}

.work-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin: 2.5rem 0 0;
}

.work-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.work-card:hover { background: rgba(var(--red-rgb), 0.03); }

.work-card-client {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.work-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.work-card-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
}

.work-card-meta {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
}

.work-card-tag {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-card-year {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 0.75rem;
}

.work-card-arrow {
  font-size: 0.75rem;
  color: var(--red);
  margin-left: auto;
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s;
}

a.work-card {
  text-decoration: none;
  color: inherit;
}

a.work-card:hover .work-card-arrow { transform: translateX(4px); opacity: 1; }

.work-card--web {
  grid-column: 1 / -1;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.work-card--web:hover { background: transparent; }
.work-card-web-preview {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #0d0d0d;
  flex-shrink: 0;
}
.work-card-web-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  pointer-events: none;
  transform-origin: top left;
}
.work-card-web-info {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
}
.work-card-web-info .work-card-desc {
  font-size: 0.85rem;
  font-weight: 400;
}
@media (max-width: 768px) {
  .work-card-web-preview { height: 220px; }
  .work-card-web-info { padding: 1.5rem; }
}

.work-see-all {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 0.5px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.work-see-all:hover { color: var(--red); }

/* PROJECT PAGE */
.project-header {
  padding: 9rem 3rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.project-back {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}

.project-back:hover { color: var(--red); }

.project-client {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.project-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.project-meta {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.project-meta-label {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta-value {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.project-gallery {
  padding: 4rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-gallery img,
.project-gallery video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

.project-gallery-3up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .project-gallery-3up { grid-template-columns: 1fr; }
}

.project-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.project-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* CLIENT LOGOS */
.logos-section {
  padding: 4rem 3rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  text-align: center;
}

.logos-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: center;
  gap: 3rem 2rem;
  margin-top: 2.5rem;
}
/* 8 logos -> two even rows of 4 (revisit the alternating brick once a 9th client lands) */

.logo-svg {
  height: 28px;
  width: auto;
  color: var(--text);
  opacity: 0.4;
  transition: opacity 0.2s;
  display: block;
}

.logo-svg:hover { opacity: 0.75; }

[data-theme="dark"] img.logo-img { filter: invert(1); }

/* WORK PAGE */
.work-page-hero {
  padding: 10rem 3rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.work-page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.work-page-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
  max-width: 560px;
}

.work-section {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

/* No divider on the first visible section so there's no stray line under
   the filter bar (the first-visible section changes as filters are applied) */
.work-section.first-visible { border-top: none; }

@media (min-width: 769px) and (max-width: 1024px) {
  .logos-strip { gap: 2.5rem 0; }
}

@media (max-width: 768px) {
  :root { --grain-opacity: 0.06; }
  [data-theme="dark"] { --grain-opacity: 0.06; }
  /* Smaller tile = finer, more compact grain so it doesn't buzz / read as
     coarse noise on a small screen. */
  body::before,
  nav::after { background-size: 44px 44px; }
  nav { padding: 1.2rem 1.5rem; gap: 1rem; }
  .nav-links { display: none; }
  .nav-social { display: none; }
  nav .theme-toggle { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-left { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--border); }
  .service-item:nth-child(n+5) { border-top: none; }
  .care-banner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .contact-email { padding: 0.9rem 1.5rem; font-size: 0.6rem; letter-spacing: 0.15em; }
  .work-grid { grid-template-columns: 1fr; }
  .work-full-grid { grid-template-columns: 1fr; }
  .work-page-hero { padding: 8rem 1.5rem 3rem; }
  .work-section { padding: 3rem 1.5rem; }
  .logos-section { padding: 3rem 1.5rem 4rem; }
  .logos-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 0;
  }
  .logos-strip .logo-svg:nth-child(n) { grid-column: auto; }
  .logo-svg { height: 20px; }
}

/* ── REVIEW PAGE ─────────────────────────────────────── */
/* Pin to one viewport: hero fills the space, footer sits at the bottom,
   no page scroll. Spacing is compressed so everything fits. */
.review-page { min-height: 100dvh; display: flex; flex-direction: column; }
.review-page .review-hero { flex: 1 1 auto; min-height: 0; padding: 6rem 2rem 2rem; gap: 0; }
.review-page footer { flex: 0 0 auto; }

/* The review page fits one viewport and never scrolls, so nav.scrolled never
   fires. Keep the nav transparent (so the hero glow shows through) but apply
   the scrolled grain + border so the logo reads the same as when scrolled. */
.review-page nav { border-bottom-color: var(--border); }
.review-page nav::after { opacity: var(--grain-opacity); }
/* Keep the grain behind the nav content so the logo/links stay full color
   (matching the hero wordmark) instead of being muted by the grain. */
.review-page nav > * { position: relative; z-index: 1; }

.review-hero .hero-eyebrow { margin-bottom: 1rem; }
.review-hero .hero-logo-text { font-size: clamp(2.6rem, 7vw, 4.5rem); margin-bottom: 0.25rem; }
.review-hero .hero-sub { margin-bottom: 1.25rem; }
.review-hero .hero-divider { height: 36px; margin: 0 auto 1.25rem; }

.review-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.75s forwards;
  position: relative; z-index: 1;
}

.review-hero .hero-headline {
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

.review-link {
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
  position: relative; z-index: 1;
}
.review-link a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 0.5px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.review-link a:hover { color: var(--red); }

.review-hero .hero-cta {
  background: var(--red);
  color: var(--bg);
  border: 0.5px solid var(--red);
  padding: 1.1rem 3rem;
  font-size: 0.72rem;
}
.review-hero .hero-cta:hover { background: transparent; color: var(--text); }

.review-qr {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.8s 1.3s forwards;
  position: relative; z-index: 1;
}
.review-qr a { display: block; }
.review-qr-label {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Transparent QR, theme-aware: dark modules in light theme,
   inverted to light in dark theme so it stays visible on dark bg */
.review-qr img {
  width: 150px;
  height: 150px;
  padding: 0.6rem;
  background: transparent;
  display: block;
}
[data-theme="dark"] .review-qr img { filter: invert(1); }

/* Tablet / short viewports — keep it on one screen */
@media (max-height: 820px), (max-width: 1024px) {
  .review-page .review-hero { padding-top: 5rem; }
  .review-hero .hero-eyebrow { margin-bottom: 0.75rem; }
  .review-hero .hero-divider { height: 28px; margin-bottom: 1rem; }
  .review-hero .hero-headline { margin-bottom: 1.25rem; }
  .review-qr { margin-top: 1.25rem; }
}

@media (max-width: 600px) {
  .review-page .review-hero { padding: 5rem 1.5rem 1.5rem; }
  .review-hero .hero-cta { padding: 0.9rem 2rem; font-size: 0.66rem; }
  .review-hero .hero-headline { font-size: 1rem; }
  .review-qr img { width: 132px; height: 132px; }
  .review-qr-label { font-size: 0.55rem; }
}

/* Very short screens — shrink the QR further so nothing clips */
@media (max-height: 680px) {
  .review-hero .hero-logo-text { font-size: clamp(2rem, 6vw, 3rem); }
  .review-qr { margin-top: 1rem; }
  .review-qr img { width: 116px; height: 116px; }
}
