/* ============================================================
   DMH Management — Stylesheet
   Design system: dark luxury editorial
   ============================================================ */

/* Google Fonts loaded via <link> in index.html */

/* ------------------------------------------------------------
   Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colour */
  --bg:              #0A0A0A;
  --surface:         #131313;
  --surface2:        #1A1A1A;
  --tiffany:         #6ECDC8;
  --tiffany-deep:    #3A9E99;
  --tiffany-dim:     rgba(110, 205, 200, 0.15);
  --tiffany-subtle:  rgba(110, 205, 200, 0.06);
  --text:            #F0F0EC;
  --text-muted:      rgba(240, 240, 236, 0.72);
  --text-subtle:     rgba(240, 240, 236, 0.38);
  --border:          rgba(240, 240, 236, 0.08);
  --border-tiffany:  rgba(110, 205, 200, 0.20);

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --container:    1200px;
  --gutter:       clamp(1.25rem, 5vw, 3rem);
  --section-pad:  clamp(5rem, 10vw, 9rem);

  /* Misc */
  --radius:       8px;
  --transition:   0.2s ease;
}

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

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

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

input,
textarea,
select,
button {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ------------------------------------------------------------
   Layout Utilities
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

/* ------------------------------------------------------------
   Typography Scale
   ------------------------------------------------------------ */

/* Small all-caps label above a headline */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;       /* 11px */
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1rem;
}

/* Primary display headline */
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-headline em {
  font-style: italic;
  font-weight: 300;
}

/* Supporting paragraph */
.section-body {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 56ch;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-fallback {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--tiffany);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #0A0A0A;
  background: var(--tiffany);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--tiffany-deep);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-line {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open .burger-line:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-burger.open .burger-line:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0A0A0A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--tiffany);
}

.mobile-link--cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--tiffany);
  border: 0.5px solid var(--border-tiffany);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  transition: background var(--transition), color var(--transition);
}

.mobile-link--cta:hover {
  background: var(--tiffany-subtle);
}

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

  .nav-burger {
    display: flex;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 4rem;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Left column ---- */

.hero-content {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--tiffany);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: 0.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn--primary {
  background: var(--tiffany);
  color: #0A0A0A;
}

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

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-tiffany);
}

/* ---- Right column ---- */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-photo-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08) brightness(0.92);
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(to top,  rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 30%, transparent 60%),
    linear-gradient(to right, transparent 55%, rgba(10,10,10,0.45) 100%),
    linear-gradient(to left,  transparent 80%, rgba(10,10,10,0.2)  100%);
}

.hero-photo-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 30%, transparent 45%, rgba(10,10,10,0.35) 100%);
}

.hero-photo-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

.caption-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.caption-role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--tiffany);
  margin-top: 0.15rem;
}

/* No-photo fallback */

.hero-photo-slot.no-photo .hero-photo-img,
.hero-photo-slot.no-photo .hero-photo-overlay {
  display: none;
}

.hero-photo-slot.no-photo::after {
  display: none;
}

.hero-photo-slot.no-photo::before {
  content: 'DMH';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(110, 205, 200, 0.12);
  z-index: 0;
}

.hero-photo-slot.no-photo .hero-photo-caption {
  position: static;
  text-align: center;
  padding: 1rem 0;
}

/* Tiffany accent line */

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

.hero-tiffany-line {
  width: 1px;
  height: clamp(3rem, 6vw, 5rem);
  background: var(--tiffany);
  margin-top: 1.5rem;
  align-self: flex-end;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.8s forwards;
}

/* Scroll indicator */

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.2s forwards;
}

.scroll-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 2.5rem;
  background: var(--text-subtle);
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--tiffany);
  animation: scrollDrop 2s ease-in-out 1.5s infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

/* ============================================================
   RESPONSIVE — HERO
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 3rem;
  }

  .hero-visual {
    display: flex;
  }

  .hero-photo-slot {
    aspect-ratio: 4 / 3;
    max-height: 55vw;
  }

  .hero-tiffany-line {
    display: none;
  }

  .hero-content {
    max-width: 80%;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
  }

  .hero-headline {
    margin-bottom: clamp(1rem, 4vw, 2rem);
  }

  .hero-photo-slot {
    aspect-ratio: 3 / 2;
    max-height: none;
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============================================================
   PARTNER MARQUEE BAR
   ============================================================ */

.marquee-bar {
  border-top:    0.5px solid var(--border-tiffany);
  border-bottom: 0.5px solid var(--border-tiffany);
  background: var(--bg);
  padding: 1.5rem 0;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.9rem;
}

.marquee-outer {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

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

.m-item {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 1rem;
  transition: color 0.2s ease;
  cursor: default;
}

.m-item:hover {
  color: var(--tiffany);
}

.m-sep {
  color: rgba(110, 205, 200, 0.4);
  padding: 0 0.25rem;
  user-select: none;
}

/* ============================================================
   PHILOSOPHY PILLARS
   ============================================================ */

.philosophy-section {
  background: var(--surface);
  border-top:    0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

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

.pillar {
  padding: 2rem 0;
}

.pillar-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--tiffany);
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.pillar-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   ORIGIN / ABOUT SECTION
   ============================================================ */

.origin-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.origin-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1rem;
}

.origin-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text);
}

/* ---- Two-column grid ---- */

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}

/* ---- Left column ---- */

.origin-quote {
  border-left: 2px solid var(--tiffany);
  padding-left: 2rem;
  margin-bottom: 3rem;
}

.origin-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.origin-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--tiffany);
}

.origin-img-slot {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.origin-img-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10,10,10,0.7) 0%, transparent 50%);
}

.origin-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) contrast(1.08) brightness(0.92);
}

.origin-img-slot.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.origin-img-slot.no-photo .origin-img {
  display: none;
}

.origin-img-slot.no-photo::before {
  content: 'Photo';
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.origin-img-slot.no-photo::after {
  display: none;
}

/* ---- Right column ---- */

.origin-lead {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.origin-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tiffany);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.text-link:hover {
  gap: 0.75rem;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .origin-grid {
    grid-template-columns: 1fr;
  }

  .origin-img-slot {
    aspect-ratio: 3 / 4;
    max-height: 480px;
  }
}

@media (max-width: 768px) {
  .origin-quote p {
    font-size: clamp(1rem, 5vw, 1.2rem);
  }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.services-stack {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 0.5px solid var(--border);
}

.service-row--last {
  border-bottom: 0.5px solid var(--border);
}

/* ---- Left meta column ---- */

.service-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 0.35rem;
}

.service-num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--tiffany);
}

.service-tiffany-bar {
  display: block;
  width: 1px;
  height: 3rem;
  background: rgba(110, 205, 200, 0.2);
}

/* ---- Right content column ---- */

.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 0.875rem;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 1.5rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.service-list li {
  position: relative;
  padding-left: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1px;
  background: var(--tiffany);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 4rem 1fr;
    gap: 1.5rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .service-title {
    font-size: clamp(1.2rem, 5vw, 1.4rem);
  }
}

/* ============================================================
   STATS SECTION
   ============================================================ */

.stats-section {
  background: var(--surface);
  border-top:    0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  border-right: 0.5px solid var(--border);
}

.stat-item--last {
  border-right: none;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--tiffany);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

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

  .stat-item {
    border-right: none;
    border-bottom: 0.5px solid var(--border);
  }

  .stat-item--last {
    border-bottom: none;
  }
}

/* ============================================================
   DANIEL SECTION
   ============================================================ */

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

.daniel-photo-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.daniel-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.2) 40%,
    transparent 65%
  );
}

.daniel-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.08) brightness(0.92);
}

.daniel-photo-tiffany {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--tiffany);
  z-index: 2;
}

.daniel-photo-frame.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.daniel-photo-frame.no-photo .daniel-photo-img,
.daniel-photo-frame.no-photo .daniel-photo-tiffany {
  display: none;
}

.daniel-photo-frame.no-photo::after {
  content: 'Daniel Horsfall';
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-subtle);
}

/* ---- Content column ---- */

.daniel-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.daniel-name em {
  font-style: italic;
  color: var(--tiffany);
}

.daniel-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding-bottom: 2rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 2rem;
}

.daniel-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.daniel-links {
  display: flex;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
  margin-top: 2rem;
}

.daniel-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.daniel-link:hover {
  color: var(--tiffany);
}

@media (max-width: 1024px) {
  .daniel-grid {
    grid-template-columns: 1fr;
  }

  .daniel-photo-frame {
    aspect-ratio: 3 / 4;
    max-height: 520px;
  }
}

@media (max-width: 768px) {
  .daniel-photo-frame {
    max-height: 460px;
  }
}

/* ============================================================
   LAB-95 ECOSYSTEM CARD
   ============================================================ */

.ecosystem-section {
  background: var(--surface);
}

.eco-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: var(--radius);
  border: 0.5px solid rgba(110, 205, 200, 0.2);
  overflow: hidden;
}

.eco-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tiffany);
}

.eco-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1rem;
}

.eco-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.eco-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 2rem;
}

.eco-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--tiffany);
  border: 0.5px solid rgba(110, 205, 200, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.eco-btn:hover {
  background: rgba(110, 205, 200, 0.06);
}

.eco-right {
  display: flex;
  align-items: center;
}

.eco-list {
  border-left: 0.5px solid rgba(110, 205, 200, 0.2);
  padding-left: 2.5rem;
  width: 100%;
}

.eco-list li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
}

.eco-list li:last-child {
  border-bottom: none;
}

@media (max-width: 1024px) {
  .eco-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: flex-start;
}

/* ---- Left column ---- */

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

.contact-direct {
  padding-top: 2rem;
  border-top: 0.5px solid var(--border);
}

.contact-email-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.4rem;
}

.contact-email {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--tiffany);
  transition: color var(--transition);
}

.contact-email:hover {
  color: var(--text);
}

/* ---- Form ---- */

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

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

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

.form-group label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: block;
}

.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-subtle);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(110, 205, 200, 0.4);
}

.btn-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--tiffany);
  color: #0A0A0A;
  border: none;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover {
  background: #3A9E99;
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

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

/* Prevent iOS font-size zoom on focus */
@media (max-width: 768px) {
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-row.two-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo-fallback {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--tiffany);
}

.footer-divider {
  height: 0.5px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

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

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--tiffany);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-credit {
  text-align: center;
  padding-top: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
}

.footer-credit-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--tiffany);
  text-decoration: none;
  transition: color var(--transition);
  vertical-align: middle;
}

.footer-credit-brand:hover {
  color: var(--text);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--tiffany);
  color: #0A0A0A;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 2px;
  z-index: 200;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--tiffany);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none !important;
  }
}

/* ============================================================
   MOBILE TOUCH TARGETS  (≤480px)
   ============================================================ */

@media (max-width: 480px) {
  .btn,
  .eco-btn,
  .btn-submit {
    min-height: 44px;
  }

  .nav-burger {
    width: 44px;
    height: 44px;
  }

  .eco-card {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   INNER PAGES — SHARED
   ============================================================ */

.page-hero {
  padding-top: clamp(120px, 18vw, 160px);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 0.5px solid var(--border);
}

.page-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1.25rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.page-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
}

.page-cta-strip {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}

.page-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* Homepage origin teaser (replaces full grid) */
.origin-teaser {
  max-width: 62ch;
}

.origin-teaser .origin-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  margin-bottom: 2rem;
}

/* ============================================================
   SERVICES PAGE — VISUAL
   ============================================================ */

.sv-intro {
  max-width: 56ch;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.sv-intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.sv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.sv-card {
  padding: 2.5rem 2rem;
  border: 0.5px solid var(--border);
  border-right: none;
  transition: background var(--transition);
}

.sv-card:last-child {
  border-right: 0.5px solid var(--border);
}

.sv-card:hover {
  background: var(--surface);
}

.sv-card-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1.5rem;
}

.sv-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sv-card-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

.sv-funnel {
  display: flex;
  align-items: flex-start;
  height: 56px;
}

.sv-funnel-left {
  flex: 1;
  height: 40px;
  border-bottom: 0.5px solid var(--border-tiffany);
  border-right: 0.5px solid var(--border-tiffany);
}

.sv-funnel-center {
  width: 1px;
  height: 56px;
  background: var(--border-tiffany);
  flex-shrink: 0;
}

.sv-funnel-right {
  flex: 1;
  height: 40px;
  border-bottom: 0.5px solid var(--border-tiffany);
  border-left: 0.5px solid var(--border-tiffany);
}

.sv-outcome {
  border: 0.5px solid var(--border-tiffany);
  background: var(--tiffany-subtle);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.sv-outcome-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tiffany);
  margin-bottom: 1rem;
}

.sv-outcome-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.sv-outcome-body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 56ch;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .sv-grid {
    grid-template-columns: 1fr;
  }
  .sv-card {
    border-right: 0.5px solid var(--border);
    border-bottom: none;
  }
  .sv-card:last-child {
    border-bottom: 0.5px solid var(--border);
  }
  .sv-funnel {
    display: none;
  }
  .sv-outcome {
    margin-top: 2rem;
  }
}

/* ============================================================
   TEAM PAGE
   ============================================================ */

.team-bio-full p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.team-bio-full p:last-child {
  margin-bottom: 0;
}

.team-more {
  margin-top: clamp(5rem, 10vw, 7rem);
  padding-top: clamp(3rem, 6vw, 4rem);
  border-top: 0.5px solid var(--border);
  text-align: center;
}

.team-more-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 1rem;
}

.team-more-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-page-layout {
  padding-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(4rem, 8vw, 8rem);
  align-items: flex-start;
}

.contact-page-sidebar-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.contact-page-sidebar-body {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-who {
  margin-bottom: 2.5rem;
}

.contact-who-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.875rem;
}

.contact-who-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-who-list li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.contact-who-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--tiffany);
  font-size: 0.7rem;
}

@media (max-width: 900px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
