/* ============================================
   OUR HOUSE AGENCY — Warm Editorial Luxury
   ============================================ */

/* FONT NOTE: Primary body font is Agrandir, display font is Migra (both Pangram Pangram).
   Currently using Google Font fallbacks (Outfit / Fraunces).
   Add @font-face rules here when font files are available in a fonts/ directory. */

:root {
  --bg: #FAF7F2;
  --bg-warm: #F0EBE3;
  --bg-dark: #1C1917;
  --text: #1C1917;
  --text-light: #FAF7F2;
  --text-muted: #9C9488;
  --accent: #92362a;
  --accent-hover: #7a2d23;
  --gold: #fdaa02;
  --gold-light: #ffc340;
  --warm: #d5b799;

  --font-display: 'Migra', 'Fraunces', Georgia, serif;
  --font-body: 'Agrandir', 'Outfit', -apple-system, sans-serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease);
}

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

html {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Subtle grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  margin-bottom: 1rem;
  text-align: center;
}
.preloader-logo img {
  height: 140px;
  width: auto;
  display: inline-block;
  animation: logoEntrance 0.5s ease-out both;
}
.preloader-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.preloader-bar {
  width: 120px;
  height: 1px;
  background: rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 0 auto;
}
.preloader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--text);
  animation: fillBar 0.6s ease-in-out forwards;
}
@keyframes fillBar { to { width: 100%; } }
@keyframes logoEntrance {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2.5rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo img {
  height: 96px;
  width: auto;
  filter: brightness(0);
  transition: filter var(--transition);
}

.navbar:not(.light) .nav-logo img { filter: brightness(0) invert(1); }

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

.nav-link {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(28, 25, 23, 0.55);
  position: relative;
  transition: color 0.4s var(--ease);
}

.nav-link:hover {
  color: rgba(28, 25, 23, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link--cta {
  background: var(--text);
  color: var(--text-light) !important;
  padding: 0.65rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(28, 25, 23, 0.15);
}

.navbar:not(.light) .nav-link { color: rgba(250, 247, 242, 0.6); }
.navbar:not(.light) .nav-link:hover { color: rgba(250, 247, 242, 1); }
.navbar:not(.light) .nav-link--cta {
  background: var(--text-light);
  color: var(--text) !important;
}
.navbar:not(.light) .nav-link--cta:hover {
  box-shadow: 0 10px 25px rgba(250, 247, 242, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: var(--transition);
  transform-origin: center;
}
.navbar:not(.light) .nav-toggle span { background: var(--text-light); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translateY(4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translateY(-4.5px); }

/* Plus Toggle */
.nav-toggle--plus {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  display: block;
}
/* on mobile show flex, on desktop none? Wait, currently .nav-toggle has display:none on desktop, block on mobile */
.nav-toggle--plus span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
}
.nav-toggle--plus span:nth-child(1) { transform: translateY(-50%); }
.nav-toggle--plus.active span:nth-child(1) { transform: translateY(-50%) rotate(45deg); }
.nav-toggle--plus span:nth-child(2) { transform: translateY(-50%) rotate(90deg); opacity:1; }
.nav-toggle--plus.active span:nth-child(2) { transform: translateY(-50%) rotate(-45deg); opacity:1; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--accent); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  overflow: hidden;
  will-change: opacity;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(146, 54, 42, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(253, 170, 2, 0.05) 0%, transparent 50%);
  z-index: 0;
}

/* Houses Row Band */
.hero-houses-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  color: rgba(28, 25, 23, 0.55);
  animation: fadeUp 1.2s var(--ease-out) 0.8s forwards;
}
.hero-houses-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Placeholder */
.hero-video-placeholder {
  position: relative;
  z-index: 5;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.8s forwards;
}
.video-placeholder-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
}
.video-play-icon { flex-shrink: 0; }
.video-placeholder-inner span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-bottom: 0;
  will-change: opacity;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  color: var(--text);
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  line-height: 1.05;
}

.title-word {
  display: inline-block;
  transform: translateY(110%);
  animation: titleReveal 1s var(--ease-out) forwards;
}

.title-line:nth-child(1) .title-word { animation-delay: 1.2s; }
.title-line:nth-child(2) .title-word { animation-delay: 1.35s; }

@keyframes titleReveal {
  to { transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 1s ease 1.6s forwards;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpCenter {
  0% { opacity: 0; transform: translate(-50%, 15px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUpCenter 1s ease 2s forwards;
}

.hero-scroll-hint .scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(28, 25, 23, 0.18);
  border-radius: 11px;
  position: relative;
}

.hero-scroll-hint .scroll-wheel {
  width: 3px;
  height: 6px;
  background: rgba(28, 25, 23, 0.25);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 2s ease infinite;
}

@keyframes wheel {
  0%,100% { top: 5px; opacity: 1; }
  50% { top: 16px; opacity: 0.2; }
}

.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Spacer */
.hero-spacer { display: none; }

/* ============================================
   ROOM SECTIONS
   ============================================ */
.room {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2.5rem;
  overflow: hidden;
}

.room-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
}

.room-inner--wide {
  max-width: 1120px;
}

/* ============================================
   SECTION TYPOGRAPHY
   ============================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.8rem;
  height: 1px;
  background: var(--accent);
}

.section-label--light { color: var(--gold); }
.section-label--light::before { background: var(--gold); }

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.section-heading--light { color: var(--text-light); }

.body-text {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: rgba(28, 25, 23, 0.75);
}
.body-text strong { font-weight: 600; color: var(--text); }

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

[data-reveal].revealed [data-reveal-child] {
  opacity: 0;
  transform: translateY(25px);
  animation: revealChild 0.8s var(--ease-out) forwards;
}
[data-reveal].revealed [data-reveal-child]:nth-child(1) { animation-delay: 0.1s; }
[data-reveal].revealed [data-reveal-child]:nth-child(2) { animation-delay: 0.25s; }
[data-reveal].revealed [data-reveal-child]:nth-child(3) { animation-delay: 0.4s; }
[data-reveal].revealed [data-reveal-child]:nth-child(4) { animation-delay: 0.55s; }

@keyframes revealChild {
  to { opacity: 1; transform: translateY(0); }
}

/* Section entry */
.room .room-inner {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.room.section-visible .room-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT
   ============================================ */
.room--about {
  background: var(--bg-warm);
}

/* --- Two-column layout: photo left, text right --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.about-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text .section-heading {
  margin-bottom: 1.25rem;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 0.5rem;
}

.about-text .tom {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 0 0.7em;
}
.about-text .tom::before,
.about-text .tom::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.45em;
  height: 1px;
  background: var(--gold);
}
.about-text .tom::before { left: 0; }
.about-text .tom::after  { right: 0; }

/* --- Layer 2: Founders --- */
.founders-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.founder-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: transparent;
  transition: background 0.4s var(--ease), transform 0.35s var(--ease);
  transform-style: preserve-3d;
}

.founder-card:hover {
  background: rgba(28, 25, 23, 0.03);
}

.founder-portrait {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  position: relative;
  border: 2px solid rgba(28, 25, 23, 0.06);
  transition: border-color 0.4s var(--ease);
}

.founder-card:hover .founder-portrait {
  border-color: var(--gold);
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s var(--ease);
}

.founder-card:hover .founder-portrait img {
  transform: scale(1.08);
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.founder-descriptor {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Layer 3: Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.value-card {
  position: relative;
  padding: 2.8rem 2.2rem;
  border-left: 1px solid rgba(213, 183, 153, 0.35);
  transition: background 0.5s var(--ease);
}

.value-card:first-child {
  border-left: none;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 2.8rem;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  transition: height 0.5s var(--ease);
}

.value-card:first-child::before {
  left: 0;
}

.value-card:hover {
  background: rgba(213, 183, 153, 0.1);
}

.value-card:hover::before {
  height: 48px;
}

.value-number {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.value-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.value-line {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(28, 25, 23, 0.55);
}

/* Value card entrance animation */
.value-card {
  opacity: 0;
  transform: translateY(30px);
}

.value-card.value-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.value-card.value-visible::before {
  height: 48px;
  transition: height 0.5s var(--ease) 0.3s;
}


/* ============================================
   SERVICES
   ============================================ */
.room--services {
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid rgba(253, 170, 2, 0.18);
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(28, 25, 23, 0.6);
  max-width: 480px;
  margin: 0 auto;
}

.heading-accent {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

/* Roadmap Styles */
.roadmap {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 0;
}
.roadmap-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: rgba(253, 170, 2, 0.25);
}
.roadmap-step {
  position: relative;
  padding-left: 4.5rem;
  margin-bottom: 4rem;
}
.roadmap-step:last-child {
  margin-bottom: 0;
}

/* Dots */
.roadmap-dot {
  position: absolute;
  top: 6px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--gold);
  z-index: 2;
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.roadmap-step:hover .roadmap-dot {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(253, 170, 2, 0.4);
}
.roadmap-dot--hero {
  border-color: var(--accent);
  width: 20px;
  height: 20px;
  left: 11px;
  top: 3px;
}
.roadmap-step:hover .roadmap-dot--hero {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(146, 54, 42, 0.35);
}

/* Content Box */
.roadmap-content {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.roadmap-step:hover .roadmap-content {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(253, 170, 2, 0.4);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  transform: translateX(5px);
}
.roadmap-step--hero:hover .roadmap-content {
  border-color: rgba(146, 54, 42, 0.35);
}

/* Typography inside Roadmap */
.roadmap-number {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.roadmap-step--hero .roadmap-number {
  color: var(--gold);
}
.roadmap-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  color: var(--text);
  letter-spacing: -0.01em;
}
.roadmap-title--hero {
  font-size: 2.2rem;
  color: var(--text);
}
.roadmap-step:hover .roadmap-title { color: var(--accent); }
.roadmap-step--hero:hover .roadmap-title--hero { color: var(--accent); }

.roadmap-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(28, 25, 23, 0.7);
}
.roadmap-step--hero .roadmap-desc {
  margin-bottom: 1.5rem;
}

/* Tags */
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tags span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(28, 25, 23, 0.18);
  border-radius: 100px;
  color: rgba(28, 25, 23, 0.7);
  transition: all 0.3s ease;
}
.roadmap-step--hero:hover .service-tags span {
  border-color: rgba(146, 54, 42, 0.4);
  color: var(--accent);
}

/* ============================================
   WORK
   ============================================ */
.room--work {
  background: var(--bg-warm);
}

.work-header {
  text-align: center;
  margin-bottom: 1rem;
}

/* Marquee */
.work-marquee {
  overflow: hidden;
  margin-bottom: 3rem;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.marquee-dot {
  display: inline-block;
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
  font-style: normal !important;
}

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

/* Video Placeholder in Work */
.work-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 500px;
  background: rgba(28, 25, 23, 0.04);
  border: 1px dashed rgba(28, 25, 23, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.work-video-placeholder:hover {
  background: rgba(28, 25, 23, 0.06);
  border-color: rgba(28, 25, 23, 0.3);
}

.work-video-placeholder .video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.work-video-placeholder .video-placeholder-inner span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 0.8rem;
}

.work-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.work-item.work-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.work-item:nth-child(1).work-visible { transition-delay: 0.05s; }
.work-item:nth-child(2).work-visible { transition-delay: 0.1s; }
.work-item:nth-child(3).work-visible { transition-delay: 0.15s; }
.work-item:nth-child(4).work-visible { transition-delay: 0.2s; }
.work-item:nth-child(5).work-visible { transition-delay: 0.25s; }

.work-item--tall { grid-row: span 2; }
.work-item--wide { grid-column: span 2; }

.work-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.work-item:hover .work-img { transform: scale(1.05); }

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, rgba(28, 25, 23, 0.15) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-item:hover .work-overlay { opacity: 1; }

.work-cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.work-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.work-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-item:hover .work-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   CONTACT
   ============================================ */
.room--contact {
  background: var(--bg-dark);
  color: var(--text-light);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
}

.contact-sub {
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.form-row {
  display: flex;
  gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.1);
  color: var(--text-light);
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(250, 247, 242, 0.2);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(250, 247, 242, 0.08);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--gold);
  color: var(--text);
  border: none;
  padding: 14px 36px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(253, 170, 2, 0.25);
}

.form-success {
  display: none;
  padding: 0.8rem 1.2rem;
  background: rgba(72, 187, 120, 0.12);
  border: 1px solid rgba(72, 187, 120, 0.25);
  border-radius: 10px;
  color: #68D391;
  font-size: 0.85rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* Contact Right */
.contact-right {
  padding-top: 1rem;
}

.contact-block {
  margin-bottom: 1.8rem;
}
.contact-block h4 {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.3);
  margin-bottom: 0.4rem;
}
.contact-block a,
.contact-block p {
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  line-height: 1.5;
}
.contact-block a:hover { color: var(--accent); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-light);
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links a span {
  font-size: 0.8rem;
  font-weight: 400;
}

.contact-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 247, 242, 0.06);
}

.footer-copy {
  font-size: 0.68rem;
  color: rgba(250, 247, 242, 0.25) !important;
}

/* ============================================
   CURSOR GLOW
   ============================================ */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  background: radial-gradient(circle, rgba(146, 54, 42, 0.07) 0%, rgba(253, 170, 2, 0.03) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
  will-change: transform;
  mix-blend-mode: normal;
}
.cursor-glow.active { opacity: 1; }

/* ============================================
   FLOATING AMBIENT SHAPES
   ============================================ */
.ambient-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.12;
  filter: blur(80px);
  will-change: transform;
  animation: floatShape 20s ease-in-out infinite alternate;
}
.ambient-shape--1 {
  width: 300px; height: 300px;
  background: var(--accent);
  top: 10%; left: -5%;
  animation-delay: 0s;
  animation-duration: 22s;
}
.ambient-shape--2 {
  width: 250px; height: 250px;
  background: var(--gold);
  bottom: 15%; right: -5%;
  animation-delay: -5s;
  animation-duration: 18s;
}
.ambient-shape--3 {
  width: 200px; height: 200px;
  background: var(--accent);
  top: 20%; right: 10%;
  animation-delay: -10s;
  animation-duration: 25s;
}
.ambient-shape--4 {
  width: 280px; height: 280px;
  background: var(--gold);
  bottom: 10%; left: 5%;
  animation-delay: -7s;
  animation-duration: 20s;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.08); }
  100% { transform: translate(-25px, -15px) scale(1); }
}

/* ============================================
   SCROLL PROGRESS GLOW
   ============================================ */
.scroll-progress::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 30px;
  height: 10px;
  background: var(--accent);
  filter: blur(6px);
  border-radius: 50%;
  opacity: 0.7;
}

/* ============================================
   MARQUEE HOVER SPEED
   ============================================ */
.work-marquee:hover .marquee-track {
  animation-duration: 10s;
}
.marquee-track {
  transition: animation-duration 0.5s ease;
}

/* ============================================
   SERVICE CARD SHIMMER BORDER
   ============================================ */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(253, 170, 2, 0.4) 50%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  background-size: 250% 250%;
  background-position: 200% 0;
  transition: background-position 0s;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}
.service-card:hover::before {
  opacity: 1;
  background-position: -50% 0;
  transition: background-position 0.8s ease, opacity 0.3s ease;
}

/* ============================================
   SERVICE NUMBER ROLL-IN
   ============================================ */
.service-number {
  overflow: hidden;
}
.service-card.svc-visible .service-number {
  animation: numberRoll 0.6s var(--ease-out) forwards;
}
@keyframes numberRoll {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 0.5; }
}

/* ============================================
   FORM INPUT RIPPLE
   ============================================ */
.contact-form input,
.contact-form textarea {
  position: relative;
}
.form-field-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.form-field-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.form-field-wrap:focus-within::after {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   SECTION HEADING LETTER SPREAD
   ============================================ */
.section-heading {
  transition: letter-spacing 0.5s var(--ease), color 0.5s ease;
}
.section-heading:hover {
  letter-spacing: 0.01em;
}

/* ============================================
   TEXT SCRAMBLE (section labels)
   ============================================ */
.section-label[data-scramble] {
  overflow: hidden;
}
.section-label .scramble-char {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================
   SECTION COUNTER
   ============================================ */
.section-counter {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 999;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.5s ease;
  pointer-events: none;
}
.section-counter.visible { opacity: 1; }
.section-counter .counter-current {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.5s ease;
}
.section-counter.dark .counter-current { color: var(--text-light); }
.section-counter.dark { color: rgba(250, 247, 242, 0.4); }

/* ============================================
   MAGNETIC BUTTON
   ============================================ */
.nav-link--cta,
.form-submit {
  will-change: transform;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle--plus { display: block; }
  .navbar { padding: 1rem 1.2rem; }
  .nav-logo img { height: 64px; }

  .hero {
    padding: 0 1.2rem;
    align-items: center;
  }

  /* Scale houses up on mobile: bigger/taller, fewer visible (cropped & centered) */
  .hero-houses-band { overflow: hidden; }
  .hero-houses-svg {
    width: 340%;
    margin-left: -120%;
  }

  .hero-title {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  }

  .hero-scroll-hint { bottom: 1.2rem; }
  .hero-scroll-hint span { font-size: 0.55rem; }
  .hero-scroll-hint .scroll-mouse { width: 18px; height: 28px; }

  .room { padding: 6.5rem 1.5rem 5rem 1.5rem; }

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

  .founders-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 380px;
    margin-bottom: 3.5rem;
  }

  .founder-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1.2rem 1rem;
  }

  .founder-portrait {
    width: 72px;
    height: 72px;
    margin: 0;
    flex-shrink: 0;
  }

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

  .value-card {
    border-left: none;
    border-top: 1px solid rgba(213, 183, 153, 0.35);
    padding: 2rem 0.5rem;
  }

  .value-card:first-child {
    border-top: none;
  }

  .value-card::before {
    top: 0;
    left: 0.5rem;
    width: 0;
    height: 3px;
    border-radius: 0 0 2px 2px;
  }

  .value-card:hover::before {
    width: 48px;
    height: 3px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row { flex-direction: column; }
  
  .services-subgrid { grid-template-columns: 1fr; }

  .section-heading { font-size: clamp(2rem, 7vw, 3rem); }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem; /* Prevent iOS zoom */
  }

  /* Disable section entry animation on mobile */
  .room .room-inner {
    opacity: 1;
    transform: none;
  }

  /* Hide cursor-based effects on mobile */
  .cursor-glow { display: none; }
  .section-counter { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 0 1rem; }

  .hero-title { font-size: clamp(2.3rem, 11vw, 2.9rem); }

  .room { padding: 5.5rem 1rem 4rem 1rem; }

  .founders-row { max-width: 100%; }

  .founder-portrait {
    width: 60px;
    height: 60px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .work-item--wide { grid-column: span 1; }
}

/* ============================================
   SCROLL-SNAP (Desktop)
   ============================================ */
@media (min-width: 769px) {
  .room { scroll-snap-align: start; }
}
