/* ============================================================
   ARCHVIZ JC — Architectural Visualisation
   Palette: Charcoal #3A3A3A · Taupe #BDB8B3 · Grey #8C8C8C
            Canvas #F9F9F9 · White #FFFFFF
   ============================================================ */

:root {
  --charcoal: #3A3A3A;
  --taupe: #BDB8B3;
  --grey: #8C8C8C;
  --canvas: #F9F9F9;
  --white: #FFFFFF;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --ease: cubic-bezier(.22, .8, .26, .99);
  --nav-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.thin { font-weight: 500; color: var(--grey); }

.container {
  width: min(1240px, 92vw);
  margin-inline: auto;
}

section { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.2rem;
}
.eyebrow.dark { color: var(--grey); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { color: var(--grey); margin-top: 0.9rem; max-width: 46ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.btn-light { background: var(--white); color: var(--charcoal); }
.btn-light:hover { background: transparent; border-color: var(--white); color: var(--white); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); border: none; }
.btn-dark:hover { background: #262626; letter-spacing: 0.3em; }
.btn-block { width: 100%; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: var(--canvas);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-mark { width: 110px; height: 110px; }
.preloader-mark .draw path {
  stroke: var(--charcoal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: drawline 2.2s var(--ease) forwards;
}
.preloader-mark .draw path:nth-child(2) { animation-delay: .15s; }
.preloader-mark .draw path:nth-child(3) { animation-delay: .3s; }
.preloader-mark .draw path:nth-child(4) { animation-delay: .45s; }
.preloader-mark .draw path:nth-child(5) { animation-delay: .55s; }
.preloader-mark .draw path:nth-child(6) { animation-delay: .65s; }
.preloader-mark .draw path:nth-child(7) { animation-delay: .8s; }
.preloader-mark .draw path:nth-child(8) { animation-delay: .95s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.preloader-word {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5em;
  font-size: 0.85rem; color: var(--charcoal); padding-left: 0.5em;
  opacity: 0; animation: fadein .8s 1s forwards;
}
@keyframes fadein { to { opacity: 1; } }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
.nav-inner {
  width: min(1320px, 94vw); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.nav.scrolled {
  background: #3A3A3A;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.scrolled {
    background: rgba(58, 58, 58, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-mark path { stroke: var(--white); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.18em; color: var(--white); line-height: 1.2;
  display: flex; flex-direction: column;
}
.brand-text small {
  font-size: 0.48rem; font-weight: 600; letter-spacing: 0.34em; color: var(--taupe);
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,.85); text-decoration: none;
  padding: .4rem 0; position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.nav-cta {
  border: 1px solid rgba(255,255,255,.5); padding: .65rem 1.4rem;
  transition: all .35s var(--ease);
}
.nav-links a.nav-cta:hover { background: var(--white); color: var(--charcoal); }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white);
  transition: transform .35s var(--ease), opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; padding: 0; color: var(--white);
}
.hero-media { position: absolute; inset: 0; background: var(--charcoal); }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease);
}
.hero-video.is-active { opacity: 1; animation: slowzoom 9s linear forwards; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,.45) 0%, rgba(20,20,20,.3) 45%, rgba(20,20,20,.58) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 0 6vw; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  font-weight: 800; letter-spacing: -0.01em; margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero-title em { font-style: normal; color: var(--taupe); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.85);
  margin-bottom: 2.6rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-reel-ui {
  position: absolute; bottom: 2.2rem; right: 3vw; z-index: 3;
  display: flex; align-items: center; gap: 1rem;
}
.reel-label {
  font-family: var(--font-head); font-size: .66rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.reel-dots { display: flex; gap: .55rem; }
.reel-dots .dot {
  width: 26px; height: 2px; border: none; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .3s;
}
.reel-dots .dot.is-active { background: var(--white); }

.scroll-hint {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 3; height: 72px; width: 2px; overflow: hidden;
}
.scroll-line {
  position: absolute; top: 0; left: 0; width: 2px; height: 100%;
  background: rgba(255,255,255,.85);
  animation: scrolldrop 2s var(--ease) infinite;
}
@keyframes scrolldrop {
  0% { transform: translateY(-100%); }
  60% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============ Mission ============ */
.mission { background: var(--white); text-align: center; }
.mission-statement {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 700; max-width: 21ch; margin: 0 auto;
}
.accent-underline {
  background-image: linear-gradient(var(--taupe), var(--taupe));
  background-repeat: no-repeat; background-size: 100% 3px; background-position: 0 96%;
}
.stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  max-width: 880px; margin-inline: auto;
}
.stat strong {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; display: block; line-height: 1;
}
.stat strong::after { content: "+"; color: var(--taupe); }
.stat span {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
  display: block; margin-top: .5rem;
}

/* ============ Compare slider ============ */
.compare-section { background: var(--canvas); }
.compare {
  position: relative; overflow: hidden; cursor: ew-resize;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 30px 80px -30px rgba(58,58,58,.45);
}
.compare-img { width: 100%; height: auto; pointer-events: none; }
.compare-after { position: relative; }
.compare-before-wrap {
  position: absolute; inset: 0; width: 50%; overflow: hidden;
  background: var(--white);
}
.sketch { position: absolute; inset: 0; isolation: isolate; }
.sketch img {
  position: absolute; top: 0; left: 0;
  width: auto; height: 100%; max-width: none;
}
/* grayscale base + inverted blurred copy in color-dodge = pencil-sketch lines */
.sketch-base { filter: grayscale(1) brightness(1.08); }
.sketch-dodge {
  filter: grayscale(1) invert(1) blur(3px);
  mix-blend-mode: color-dodge;
}
.blueprint-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(58,58,58,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,58,58,.13) 1px, transparent 1px);
  background-size: 44px 44px;
  mix-blend-mode: multiply;
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  background: var(--white); transform: translateX(-50%); z-index: 4;
}
.handle-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.compare-tag {
  position: absolute; top: 1.4rem; z-index: 3;
  font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  padding: .5rem 1rem; backdrop-filter: blur(4px);
}
.tag-left { left: 1.4rem; background: rgba(255,255,255,.8); color: var(--charcoal); }
.tag-right { right: 1.4rem; background: rgba(58,58,58,.6); color: var(--white); }

/* ============ Compare tabs ============ */
.compare-tabs {
  display: flex; gap: 1rem; margin-bottom: 2rem; justify-content: center;
}
.compare-tab {
  font-family: var(--font-head); font-size: .75rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  padding: .8rem 2rem; cursor: pointer;
  background: transparent; color: var(--grey);
  border: 1px solid var(--taupe);
  transition: all .3s var(--ease);
}
.compare-tab:hover { color: var(--charcoal); border-color: var(--charcoal); }
.compare-tab.is-active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.compare-tab-content {
  display: none;
}
.compare-tab-content.is-active {
  display: block;
}

/* ============ Portfolio ============ */
.portfolio { background: var(--white); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.filter {
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .7rem 1.5rem; cursor: pointer;
  background: transparent; color: var(--grey);
  border: 1px solid var(--taupe);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--charcoal); border-color: var(--charcoal); }
.filter.is-active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.card {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer; background: var(--charcoal);
}
.project-card {
  aspect-ratio: 1 / 1.04;
}
.project-feature {
  grid-column: span 2;
  aspect-ratio: 8 / 4.15;
}
.card-wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.card img, .card video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
/* soft glowing border on hover */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 0 rgba(189,184,179,0);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover::after {
  border-color: rgba(189,184,179,.85);
  box-shadow: inset 0 0 22px rgba(189,184,179,.18), 0 0 28px rgba(189,184,179,.35);
}
.card video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; }
.card:hover img { transform: scale(1.06); }
.card.playing video { opacity: 1; }
.card figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 4rem 1.35rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(20,20,20,.88));
  color: var(--white);
  transform: translateY(1.2rem); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.card:hover figcaption { transform: translateY(0); opacity: 1; }
.card figcaption strong {
  font-family: var(--font-head); font-weight: 700; letter-spacing: .06em;
  display: block; font-size: clamp(1.02rem, 1.4vw, 1.35rem); margin-bottom: .35rem;
}
.card figcaption span { font-size: .76rem; color: var(--taupe); letter-spacing: .08em; text-transform: uppercase; }
.card figcaption em { font-style: normal; opacity: .75; text-transform: none; letter-spacing: .04em; }
.project-kicker {
  display: inline-block;
  margin-bottom: .55rem;
  font-family: var(--font-head);
  font-size: .62rem !important;
  font-weight: 700;
  letter-spacing: .22em !important;
  color: var(--white) !important;
}
.card.hidden { display: none; }

/* ============ Services ============ */
.services { background: var(--canvas); }
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem;
}
.service {
  background: var(--white); padding: 2.8rem 2.2rem 2.4rem;
  border: 1px solid transparent;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -28px rgba(58,58,58,.35), 0 0 32px rgba(189,184,179,.28);
  border-color: var(--taupe);
}
.service-icon { width: 56px; height: 56px; margin-bottom: 1.6rem; }
.service-icon path, .service-icon circle {
  stroke: var(--charcoal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 220; stroke-dashoffset: 0;
}
.service:hover .service-icon path, .service:hover .service-icon circle {
  animation: redraw 1.4s var(--ease) forwards;
}
@keyframes redraw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
.service h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; margin-bottom: .7rem;
}
.service p { font-size: .9rem; color: var(--grey); }

/* ============ Process ============ */
.process { background: var(--white); }
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2.4rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--taupe); }
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  letter-spacing: .2em; color: var(--taupe);
  position: absolute; top: -0.65rem; left: 0; background: var(--white); padding-right: .8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.step p { font-size: .9rem; color: var(--grey); }

/* ============ About ============ */
.about { background: var(--canvas); }
.about-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-media img { box-shadow: 0 30px 70px -30px rgba(58,58,58,.5); }
.about-media-card {
  position: absolute; right: -1.6rem; bottom: -1.6rem;
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.4;
  padding: 1.8rem 2rem;
}
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--grey); margin-bottom: 1.1rem; max-width: 54ch; }
.about-clients {
  list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem;
}
.about-clients li {
  font-family: var(--font-head); font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .55rem 1.1rem; border: 1px solid var(--taupe); color: var(--charcoal);
}

/* ============ Banner ============ */
.banner {
  position: relative; padding: clamp(6rem, 12vw, 10rem) 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden; color: var(--white);
}
.banner > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.banner-shade { position: absolute; inset: 0; background: rgba(30,30,30,.55); }
.banner-content { position: relative; z-index: 2; padding: 0 6vw; }
.banner h2 { margin-bottom: 2rem; font-weight: 800; }

/* ============ Contact ============ */
.contact { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-copy h2 { margin-bottom: 1.3rem; }
.contact-copy p { color: var(--grey); max-width: 44ch; }
.contact-details { margin-top: 2.2rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-line {
  display: flex; align-items: center; gap: .8rem;
  color: var(--charcoal); text-decoration: none; font-size: .95rem;
}
.contact-line svg { color: var(--taupe); flex: none; }
a.contact-line:hover { color: var(--grey); }

.contact-form {
  background: var(--canvas); padding: clamp(1.8rem, 3.5vw, 3rem);
  border: 1px solid #eee;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: block; margin-bottom: 1.2rem; }
.field span {
  display: block; font-family: var(--font-head); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--grey);
  margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem;
  font-family: var(--font-body); font-size: .95rem; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--taupe); border-radius: 0;
  outline: none; transition: border-color .3s; resize: vertical;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C8C8C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--charcoal); }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--grey); text-align: center; min-height: 1.4em; }
.form-note.ok { color: #4d7c4d; }
.form-note.error { color: #a54545; }
.contact-form .btn:disabled {
  cursor: wait;
  opacity: .65;
}

/* ============ Footer ============ */
.footer { background: var(--charcoal); color: var(--taupe); padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; align-items: start;
}
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-brand .brand-mark path { stroke: var(--taupe); stroke-width: 3.5; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { font-size: .9rem; color: var(--grey); }
.footer-nav { display: grid; gap: .7rem; }
.footer-nav a {
  color: var(--taupe); text-decoration: none;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  transition: color .3s;
}
.footer-nav a:hover { color: var(--white); }
.footer-meta { display: grid; gap: .7rem; font-size: .85rem; color: var(--grey); }
.footer-meta a { color: var(--taupe); text-decoration: none; }
.footer-meta a:hover { color: var(--white); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(20, 20, 20, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-figure { max-width: min(1400px, 90vw); max-height: 86vh; }
.lb-figure img, .lb-figure video {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  margin-inline: auto; box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.lb-figure video { width: min(1280px, 90vw); }
/* author display rules would otherwise defeat the hidden attribute */
.lb-figure img[hidden], .lb-figure video[hidden] { display: none; }
.lb-figure figcaption {
  text-align: center; color: var(--taupe); margin-top: 1.1rem;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 1.2rem;
}
.lb-count { color: var(--grey); letter-spacing: .14em; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none; color: var(--white);
  cursor: pointer; font-size: 2.6rem; line-height: 1; opacity: .7; transition: opacity .3s;
  padding: 1rem;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1.4rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 3.4rem; }

/* ============ Portfolio CTA strip ============ */
.portfolio-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap;
}
.portfolio-cta p {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--grey);
}

/* ============ Card views chip ============ */
.card-views {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  font-family: var(--font-head); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--white); background: rgba(20,20,20,.55);
  padding: .35rem .7rem; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.card:hover .card-views { opacity: 1; transform: none; }

/* ============ Motion (Animations & Walkthroughs) ============ */
.motion { background: var(--charcoal); color: var(--white); }
.motion h2 { color: var(--white); }
.thin-light { font-weight: 500; color: var(--taupe); }
.section-sub.light { color: var(--taupe); }
.motion-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.motion-card {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 9; background: #2e2e2e;
}
.motion-card img, .motion-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.motion-card video { opacity: 0; }
.motion-card.playing video { opacity: 1; }
.motion-card:hover img { transform: scale(1.05); }
.motion-card::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.motion-card:hover::after {
  border-color: rgba(189,184,179,.7);
  box-shadow: inset 0 0 26px rgba(0,0,0,.35), 0 0 30px rgba(189,184,179,.22);
}
.play-badge {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(249,249,249,.92); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  transition: transform .4s var(--ease), background .3s;
  pointer-events: none;
}
.play-badge svg { margin-left: 3px; }
.motion-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); background: var(--white); }
.motion-card.playing .play-badge { opacity: 0; }
.motion-card figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 2.4rem 1.4rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(15,15,15,.82));
}
.motion-card figcaption strong {
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  letter-spacing: .05em; display: block;
}
.motion-card figcaption span {
  font-size: .72rem; color: var(--taupe); letter-spacing: .14em; text-transform: uppercase;
}

/* ============ Why ArchViz JC ============ */
.why { background: var(--white); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.4rem;
}
.why-item { padding-top: 1.6rem; border-top: 1px solid var(--taupe); position: relative; }
.why-num {
  font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  letter-spacing: .2em; color: var(--taupe);
  position: absolute; top: -0.65rem; left: 0; background: var(--white); padding-right: .8rem;
}
.why-item h3 { font-size: 1.02rem; margin-bottom: .6rem; }
.why-item p { font-size: .9rem; color: var(--grey); }

/* ============ Testimonials ============ */
.testimonials { background: var(--canvas); }
.quote-slider { position: relative; max-width: 760px; min-height: 240px; }
.quote {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; position: relative; }
.quote p {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.5; color: var(--charcoal);
  margin-bottom: 1.6rem;
}
.quote footer strong {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; display: block;
}
.quote footer span {
  font-size: .74rem; color: var(--grey); letter-spacing: .16em; text-transform: uppercase;
}
.quote-dots { display: flex; gap: .55rem; margin-top: 2rem; }
.qdot {
  width: 26px; height: 2px; border: none; cursor: pointer;
  background: var(--taupe); opacity: .45; transition: opacity .3s, background .3s;
}
.qdot.is-active { background: var(--charcoal); opacity: 1; }

/* ============ FAQ ============ */
.faq { background: var(--white); }
.faq-wrap { max-width: 860px; }
.faq-list details {
  border-bottom: 1px solid var(--taupe);
}
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: 1.4rem 0; color: var(--charcoal);
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--grey); }
.faq-icon {
  position: relative; flex: none; width: 14px; height: 14px;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--grey);
  transition: transform .4s var(--ease);
}
.faq-icon::before { left: 0; top: 6px; width: 14px; height: 2px; }
.faq-icon::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-list details[open] .faq-icon::after { transform: scaleY(0); }
.faq-list details[open] .faq-icon::before { transform: rotate(180deg); }
.faq-body { padding: 0 0 1.5rem; max-width: 64ch; }
.faq-body p { color: var(--grey); font-size: .94rem; }
.faq-list details[open] .faq-body { animation: faqin .5s var(--ease); }
@keyframes faqin {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ============ Form hint ============ */
.form-hint {
  margin-top: .9rem; font-size: .78rem; color: var(--grey);
  text-align: center; line-height: 1.6;
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0; transform: translateY(34px);
  filter: blur(7px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.d-1 { transition-delay: .12s; }
.d-2 { transition-delay: .24s; }
.d-3 { transition-delay: .36s; }

/* ---- Hero title word-by-word reveal ---- */
.hero-title .w {
  display: inline-block;
  opacity: 0; transform: translateY(.55em);
  filter: blur(8px);
}
.hero-title.play .w {
  animation: wordin .8s var(--ease) forwards;
  animation-delay: calc(var(--wi) * 90ms);
}
@keyframes wordin {
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---- Parallax layers (transforms driven by JS) ---- */
.hero-media, .hero-content, .about-media img, .banner > img {
  will-change: transform;
}

/* ---- Magnetic buttons ---- */
.btn.magnetic { transition: all .35s var(--ease), transform .25s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-video.is-active { animation: none; }
  .scroll-line { animation: none; }
  .hero-title .w, .hero-title.play .w {
    opacity: 1; transform: none; filter: none; animation: none;
  }
}

/* ============ Theme toggle ============ */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: 1.4rem;
  color: rgba(255,255,255,.85);
  transition: color .3s, transform .45s var(--ease);
}
.theme-toggle:hover { color: var(--white); transform: rotate(20deg); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============ Dark theme ============ */
/* Dark surfaces: page #141414 · panels #1d1d1d · cards #232323
   Text: #E9E7E4 on dark, muted #A39F9B — taupe accents unchanged. */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #141414; color: #E9E7E4; }

html[data-theme="dark"] .preloader { background: #141414; }
html[data-theme="dark"] .preloader-mark .draw path { stroke: #E9E7E4; }
html[data-theme="dark"] .preloader-word { color: #E9E7E4; }

html[data-theme="dark"] .mission,
html[data-theme="dark"] .portfolio,
html[data-theme="dark"] .process,
html[data-theme="dark"] .why,
html[data-theme="dark"] .faq,
html[data-theme="dark"] .contact { background: #1d1d1d; }

html[data-theme="dark"] .compare-section,
html[data-theme="dark"] .services,
html[data-theme="dark"] .about,
html[data-theme="dark"] .testimonials { background: #141414; }

html[data-theme="dark"] .step-num,
html[data-theme="dark"] .why-num { background: #1d1d1d; }

html[data-theme="dark"] .service { background: #232323; }
html[data-theme="dark"] .service:hover {
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.7), 0 0 32px rgba(189,184,179,.18);
}
html[data-theme="dark"] .service-icon path,
html[data-theme="dark"] .service-icon circle { stroke: #E9E7E4; }

html[data-theme="dark"] .eyebrow.dark { color: var(--taupe); }
html[data-theme="dark"] .thin { color: #A39F9B; }
html[data-theme="dark"] .mission-statement,
html[data-theme="dark"] .quote p,
html[data-theme="dark"] .faq-list summary,
html[data-theme="dark"] .contact-line,
html[data-theme="dark"] .about-clients li { color: #E9E7E4; }
html[data-theme="dark"] .about-clients li { border-color: #4a4a4a; }
html[data-theme="dark"] .faq-list summary:hover { color: var(--taupe); }

html[data-theme="dark"] .filter { color: #A39F9B; border-color: #4a4a4a; }
html[data-theme="dark"] .filter:hover { color: #E9E7E4; border-color: #E9E7E4; }
html[data-theme="dark"] .filter.is-active { background: #E9E7E4; color: #141414; border-color: #E9E7E4; }

html[data-theme="dark"] .btn-dark { background: #E9E7E4; color: #141414; }
html[data-theme="dark"] .btn-dark:hover { background: var(--white); }

html[data-theme="dark"] .qdot { background: #555; }
html[data-theme="dark"] .qdot.is-active { background: #E9E7E4; }

html[data-theme="dark"] .step,
html[data-theme="dark"] .why-item,
html[data-theme="dark"] .faq-list details { border-color: #3c3c3c; }

html[data-theme="dark"] .contact-form { background: #232323; border-color: #333; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  background: #2b2b2b; color: #E9E7E4; border-color: #4a4a4a;
}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus { border-color: var(--taupe); }
html[data-theme="dark"] .form-note.ok { color: #8fbf8f; }

html[data-theme="dark"] .about-media img,
html[data-theme="dark"] .compare { box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
html[data-theme="dark"] .footer { background: #111; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .project-feature { grid-column: span 2; }
  .motion-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media-card { right: 0; bottom: -1.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --nav-h: 70px; }
  .nav-toggle { display: flex; z-index: 60; }
  .nav.scrolled {
    background: #3A3A3A;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links {
    position: fixed; inset: 0; z-index: 50;
    flex-direction: column; justify-content: center; gap: 1.8rem;
    background: #2E2E2E;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1rem; }
  .hero-reel-ui { right: auto; left: 50%; transform: translateX(-50%); bottom: 4.6rem; }
  .scroll-hint { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hide-sm { display: none; }
  .compare-tag { top: .8rem; }
  .tag-left { left: .8rem; }
  .tag-right { right: .8rem; }
  .handle-circle { width: 42px; height: 42px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .project-feature { grid-column: auto; aspect-ratio: 1 / 1.04; }
  .card-wide { grid-column: auto; aspect-ratio: 16 / 9; }
  .motion-grid { grid-template-columns: 1fr; }
  .quote-slider { min-height: 300px; }
}
