/* ==========================================================================
   FINVAL — Architectural Visualization Studio
   ========================================================================== */

:root{
  --bg: #0b0b0c;
  --bg-elevated: #131315;
  --bg-card: #17171a;
  --text: #f2f0ec;
  --text-dim: #9a978f;
  --text-dimmer: #6b6863;
  --accent: #c9a876;
  --accent-soft: rgba(201,168,118,0.14);
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);
  --radius: 4px;
  --container: 1280px;
  --ease: cubic-bezier(.16,.8,.24,1);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html{ scroll-behavior: auto; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font: inherit; cursor:pointer; border:none; background:none; color:inherit; }
input, textarea, select{ font: inherit; color: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- preloader ---------- */
html.is-loading, html.lightbox-open{ overflow: hidden; }
.preloader{
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.is-hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark{
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--text);
  opacity: 0; animation: preloaderMark .7s var(--ease) forwards;
}
.preloader-bar{
  width: 160px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.preloader-bar span{
  display: block; width: 40%; height: 100%; border-radius: 2px;
  background: var(--accent);
  animation: preloaderSlide 1.15s ease-in-out infinite;
}
@keyframes preloaderMark{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes preloaderSlide{
  0%{ transform: translateX(-130%); }
  100%{ transform: translateX(350%); }
}
@media (prefers-reduced-motion: reduce){
  .preloader-mark{ animation: none; opacity: 1; }
  .preloader-bar span{ animation: none; width: 100%; }
}

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

/* ---------- typography ---------- */
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h1 em, h2 em, h3 em{ font-style: normal; color: var(--accent); }

h2{ font-size: clamp(2rem, 4vw, 3.4rem); }
h3{ font-size: clamp(1.1rem, 1.6vw, 1.4rem); }

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:""; width: 22px; height: 1px; background: var(--accent);
}
.eyebrow--light{ color: var(--accent); }

.section-intro{
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 460px;
  margin-top: 20px;
}
.section-intro--light{ color: rgba(242,240,236,0.65); max-width: 560px; }

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

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent);
  color: #14120d;
}
.btn-primary:hover{ transform: translateY(-2px); background:#dcbb8b; }
.btn-ghost{
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm{ padding: 10px 20px; font-size: 0.82rem; }
.btn-block{ width:100%; justify-content:center; }
.arrow{ transition: transform .3s var(--ease); display:inline-block; }
.btn:hover .arrow{ transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(11,11,12,0.96);
  padding: 14px 0;
  border-color: var(--line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; }

.logo{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo-dot{ color: var(--accent); }

.main-nav{ display:flex; gap: 40px; }
.main-nav a{
  font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  position: relative; transition: color .3s;
}
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:1px;
  background: var(--accent); transition: width .3s var(--ease);
}
.main-nav a:hover{ color: var(--text); }
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap: 20px; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width: 32px; height: 32px;
}
.nav-toggle span{
  display:block; width:100%; height:1px; background: var(--text); transition: transform .3s, opacity .3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-bg{
  position:absolute; inset:0; z-index:0;
  background: var(--bg);
  overflow: hidden;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, rgba(11,11,12,0.94) 0%, rgba(11,11,12,0.82) 32%, rgba(11,11,12,0.48) 58%, rgba(11,11,12,0.22) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 22%, rgba(11,11,12,0) 78%, rgba(11,11,12,0.5) 100%);
}

.hero-inner{ position:relative; z-index:1; }

.hero-title{
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  display:flex; flex-direction:column;
  max-width: 950px;
}

.hero-tagline{
  margin-top: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 0.94rem;
  color: var(--text);
  max-width: 460px;
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions{ display:flex; gap: 18px; margin-top: 42px; flex-wrap: wrap; }

.hero-stats{
  position: relative; z-index:1;
  margin-top: 80px;
  display:grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.stat{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px; }
.stat-num{ font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem); font-weight:700; }
.stat-suffix{ font-family: var(--font-display); font-size: 1.2rem; color: var(--accent); font-weight:700; }
.stat p{ width:100%; color: var(--text-dimmer); font-size: 0.82rem; margin-top: 4px; }

.scroll-cue{
  position:absolute; bottom: 28px; left:50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1px solid var(--line); border-radius: 20px;
  display:flex; justify-content:center; padding-top: 8px; z-index:1;
}
.scroll-cue span{
  width:3px; height:6px; background: var(--accent); border-radius: 2px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown{
  0%{ opacity:1; transform: translateY(0); }
  100%{ opacity:0; transform: translateY(10px); }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-elevated);
}
.marquee-track{
  display:flex; align-items:center; gap: 22px;
  width: max-content;
  animation: scroll 40s linear infinite;
}
.marquee--alt .marquee-track{ animation-duration: 55s; }
.marquee-track span{
  font-family: var(--font-display); font-size: 1.1rem; font-weight:500;
  color: var(--text-dim); white-space:nowrap; text-transform:uppercase; letter-spacing:0.03em;
}
.marquee-track i{ color: var(--accent); font-style:normal; }
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ==========================================================================
   SECTION GENERIC
   ========================================================================== */
.section{ padding: 130px 0; }
.section--alt{ background: var(--bg-elevated); }
#work-full{ padding-bottom: 0; }
.section-head{ max-width: 720px; margin-bottom: 70px; }
.section-cta{ margin-top: 60px; display:flex; justify-content:center; }

/* ==========================================================================
   WORK LIST — editorial zigzag case studies. Each render keeps its native
   aspect ratio (no cropping); alternating sides and generous air break up
   what would otherwise read as a solid stack of images.
   ========================================================================== */
.work-list{
  display: flex;
  flex-direction: column;
  gap: 110px;
}

.work-row{
  display: flex;
  align-items: center;
  gap: 64px;
}
.work-row:nth-of-type(even){ flex-direction: row-reverse; }

.work-row-media{
  position: relative;
  flex: 0 0 58%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.work-row-info{ flex: 1; min-width: 0; }
.work-row-num{
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem;
  color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 20px;
}
.work-row-info h3{ font-size: 1.7rem; margin-bottom: 6px; }
.work-row-loc{ color: var(--text-dimmer); font-size: 0.88rem; margin-bottom: 20px; }
.work-row-desc{
  color: var(--text-dim); font-size: 1rem; line-height: 1.65;
  max-width: 380px; margin-bottom: 26px;
}

.work-row-media img{
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  animation: kenburns 24s ease-in-out infinite alternate;
  transition: filter .5s;
}
.work-row:hover .work-row-media img{ filter: brightness(1.06); animation-play-state: paused; }

.work-row:nth-of-type(2n) img{ animation-duration: 28s; }
.work-row:nth-of-type(3n) img{ animation-duration: 20s; animation-direction: alternate-reverse; }

@keyframes kenburns{
  0%{ transform: scale(1); }
  100%{ transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce){
  .work-row-media img{ animation: none; }
}

/* ---------- work page — large-format single-column list ---------- */
.work-full-list{
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.work-full-item:hover .work-row-media img{ filter: brightness(1.06); animation-play-state: paused; }
.work-full-item:nth-of-type(2n) .work-row-media img{ animation-duration: 28s; }
.work-full-item:nth-of-type(3n) .work-row-media img{ animation-duration: 20s; animation-direction: alternate-reverse; }

.work-full-caption{
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.work-full-caption .work-row-num{ margin-bottom: 0; font-size: 1.5rem; }
.work-full-caption-text{ flex: 1; min-width: 0; }
.work-full-caption-text h3{ font-size: 1.4rem; margin-bottom: 4px; }
.work-full-caption-text p{ color: var(--text-dimmer); font-size: 0.88rem; }
.work-full-caption .tag{ flex: 0 0 auto; }

@media (max-width: 720px){
  .work-full-list{ gap: 64px; }
  .work-full-caption{ flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; padding-top: 18px; }
  .work-full-caption .tag{ order: 1; }
}

/* ---------- work page — filter chips (floating pill, stays pinned while scrolling the reel) ---------- */
.work-filters{
  position: sticky;
  top: 96px;
  z-index: 30;
  display: inline-flex;
  gap: 10px;
  width: fit-content;
  margin-bottom: 40px;
  padding: 10px;
  background: rgba(11,11,12,0.55);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

/* ---------- work page — cinematic reel ----------
   scroll-snapped slides. Wide/landscape renders scale to the full width of
   the viewport at their native ratio (height follows, so the slide may run
   taller or shorter than 100vh) — no letterboxing, nothing cropped. Portrait
   and square renders are packed into justified rows of 2–3 (via flex-grow
   proportional to each image's own aspect ratio, with the row's height
   computed from their combined ratio) — every image keeps its native
   proportions with nothing cropped off. Filter pill stays pinned via
   position:sticky for the whole scroll. */
body.page-work{ scroll-snap-type: y proximity; scroll-padding-top: 70px; }

.work-reel{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.work-slide{
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work-slide:not(:first-child){
  border-top: 1px solid rgba(255,255,255,0.12);
}
.work-slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: kenburns 26s ease-in-out infinite alternate;
  transition: filter .5s;
}
.work-slide.is-solo{ height: auto; }
.work-slide.is-solo img{
  position: static;
  width: 100%;
  height: auto;
  object-fit: initial;
}
.work-slide:hover img{ filter: brightness(1.06); animation-play-state: paused; }
.work-slide:nth-of-type(2n) img{ animation-duration: 30s; }
.work-slide:nth-of-type(3n) img{ animation-duration: 22s; animation-direction: alternate-reverse; }

/* ---------- work page — justified portrait/square rows (no cropping) ---------- */
.work-slide.work-group{
  height: auto;
  display: flex;
  align-items: stretch;
}
.work-group-item{
  position: relative;
  flex-shrink: 1;
  flex-basis: 0;
  overflow: hidden;
}
.work-group-item:not(:first-child){ border-left: 1px solid rgba(255,255,255,0.12); }
.work-group-item:hover img{ filter: brightness(1.06); animation-play-state: paused; }

@media (max-width: 720px){
  .work-slide.work-group{ flex-direction: column; aspect-ratio: auto !important; height: auto; }
  .work-group-item{ flex: none !important; width: 100%; }
  .work-group-item img{ position: static; width: 100%; height: auto; }
  .work-group-item:not(:first-child){ border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* ---------- work page — per-render caption ----------
   a soft bottom scrim carries the title, echoing the eyebrow's dash motif
   instead of a badge — quieter than a pill, still reads over any image. */
.work-caption{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 44px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.28) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}
.work-caption::before{
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.work-caption h3{
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px){
  .work-caption{ padding: 36px 14px 14px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce){
  .work-slide img{ animation: none; }
}

/* ---------- work reel progress rail ---------- */
.work-reel-progress{
  position: fixed;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.work-reel-progress.is-visible{ opacity: 1; visibility: visible; }
.work-reel-progress-count{
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  white-space: nowrap;
}
.work-reel-progress-track{
  position: relative;
  width: 2px;
  height: 160px;
  background: var(--line);
}
.work-reel-progress-fill{
  position: absolute;
  top: 0; left: 0; width: 100%;
  height: 0%;
  background: var(--accent);
  transition: height .1s linear;
}
@media (max-width: 980px){
  .work-reel-progress{ display: none; }
}

.tag{
  font-size: 0.7rem; color: var(--accent); text-transform:uppercase; letter-spacing:0.06em;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; white-space:nowrap;
  display: inline-block;
}

/* ---------- click-to-enlarge affordance on renders ---------- */
.work-row-media{ cursor: zoom-in; }
.work-row-media::after{
  content: "";
  position: absolute; inset: 0;
  background: rgba(11,11,12,0.28);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.work-row-media::before{
  content: "";
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(11,11,12,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='19' height='19'%3E%3Cpath d='M11 4a7 7 0 1 1 0 14 7 7 0 0 1 0-14ZM21 21l-4.3-4.3M11 8v6M8 11h6' stroke='%23f2f0ec' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.work-row-media:hover::after, .work-row-media:focus-visible::after{ opacity: 1; }
.work-row-media:hover::before, .work-row-media:focus-visible::before{ opacity: 1; transform: scale(1); }

/* ---------- testimonials ---------- */
.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.testimonial-card{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px 44px 0;
}
.testimonial-card:first-child{ padding-left: 0; }
.testimonial-card:last-child{ padding-right: 0; }
.testimonial-card:not(:first-child)::before{
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}

.testimonial-mark{
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 10px;
}

.testimonial-quote{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.01em;
}
.testimonial-person{
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar{
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2.5px;
  border: 1.5px solid var(--accent);
  filter: grayscale(1);
  flex: 0 0 auto;
}
.testimonial-person h3{ font-size: 0.95rem; margin-bottom: 2px; }
.testimonial-person p{ color: var(--text-dim); font-size: 0.82rem; }

.testimonial-featured{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.testimonial-featured-media video{
  display: block; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: #000;
  filter: grayscale(1) contrast(1.05);
}
.testimonial-featured-content{ display: flex; flex-direction: column; }
.testimonial-featured-content .testimonial-person{ margin-top: 28px; padding-top: 0; border-top: none; }

.testimonial-grid--pair{ grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px){
  .testimonial-featured{ grid-template-columns: 1fr; gap: 28px; }
  .testimonial-grid{ grid-template-columns: 1fr; gap: 48px; }
  .testimonial-card{ padding: 0; }
  .testimonial-card:not(:first-child)::before{
    left: 0; right: 0; top: -24px; bottom: auto; width: auto; height: 1px;
  }
  .testimonial-card:not(:first-child){ padding-top: 0; }
}

/* ---------- cookie consent banner ---------- */
.cookie-banner{
  position: fixed;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 9000;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cookie-banner.is-visible{ opacity: 1; transform: translateY(0); }
.cookie-banner p{
  flex: 1; min-width: 240px; margin: 0;
  color: var(--text-dim); font-size: 0.88rem; line-height: 1.5;
}
.cookie-banner p a{ color: var(--accent); text-decoration: underline; }
.cookie-banner-actions{ display: flex; gap: 12px; flex-shrink: 0; }

@media (max-width: 720px){
  .cookie-banner{
    left: 12px; right: 12px; bottom: 12px; padding: 18px;
    flex-direction: column; align-items: stretch;
  }
  .cookie-banner-actions{ justify-content: flex-end; }
}

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(8,8,9,0.94);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox-stage{
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: min(1400px, 90vw);
  max-height: 90vh;
  transform: scale(.96);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.lightbox.is-open .lightbox-stage{ transform: scale(1); opacity: 1; }
.lightbox-stage img{
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-card);
}
.lightbox-stage figcaption{ text-align: center; margin-top: 20px; }
.lightbox-stage h3{ font-size: 1.15rem; margin-bottom: 4px; }
.lightbox-stage p{ color: var(--text-dim); font-size: 0.85rem; margin-bottom: 10px; }
.lightbox-desc{ max-width: 480px; line-height: 1.6; }
.lightbox-desc:empty, .lightbox-stage .tag:empty{ display: none; }

.lightbox-close, .lightbox-nav{
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover{ background: rgba(255,255,255,0.12); border-color: var(--accent); }
.lightbox-close{ top: 28px; right: 28px; }
.lightbox-nav{ top: 50%; margin-top: -24px; }
.lightbox-prev{ left: 28px; }
.lightbox-next{ right: 28px; }
.lightbox-nav:active{ transform: scale(.92); }

.lightbox-count{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-dimmer); font-size: 0.78rem; letter-spacing: 0.05em;
}

@media (max-width: 720px){
  .lightbox{ padding: 20px; }
  .lightbox-stage img{ max-height: 64vh; }
  .lightbox-close{ top: 16px; right: 16px; width: 40px; height: 40px; }
  .lightbox-nav{ width: 40px; height: 40px; }
  .lightbox-prev{ left: 10px; }
  .lightbox-next{ right: 10px; }
  .work-row-media::before{ opacity: .85; transform: scale(1); }
}

/* ---------- start-a-project modal ---------- */
.modal{
  position: fixed; inset: 0; z-index: 10060;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.modal.is-open{ opacity: 1; visibility: visible; }
.modal-backdrop{
  position: absolute; inset: 0;
  background: rgba(8,8,9,0.88);
}
.modal-dialog{
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%; max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 48px;
  transform: translateY(20px) scale(.98);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal-dialog{ transform: translateY(0) scale(1); }
.modal-close{
  position: absolute; top: 20px; right: 20px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--text-dim);
  transition: border-color .3s, color .3s;
}
.modal-close:hover{ border-color: var(--accent); color: var(--accent); }
.modal-dialog h3{ font-size: 1.5rem; margin: 10px 0 10px; padding-right: 40px; }
.modal-sub{ color: var(--text-dim); font-size: 0.92rem; margin-bottom: 28px; line-height: 1.6; }
.modal-dialog form{ display: flex; flex-direction: column; gap: 18px; }

.modal-dialog--wide{ max-width: 720px; }
.privacy-updated{ color: var(--text-dimmer); font-size: 0.8rem; margin-bottom: 24px; }
.privacy-content h4{ font-size: 1rem; margin: 26px 0 8px; }
.privacy-content h4:first-of-type{ margin-top: 0; }
.privacy-content p{ color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }
.privacy-content a{ color: var(--accent); }

.cookie-cats{
  display: flex; flex-direction: column;
  margin: 24px 0 28px;
  border-top: 1px solid var(--line);
}
.cookie-cat{ padding: 20px 0; border-bottom: 1px solid var(--line); }
.cookie-cat-head{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.cookie-cat-head h4{ font-size: 0.95rem; margin: 0; }
.cookie-cat-status{
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.cookie-cat p{ color: var(--text-dim); font-size: 0.86rem; line-height: 1.55; }

.cookie-toggle{ position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-toggle input{
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1;
}
.cookie-toggle-track{
  position: absolute; inset: 0;
  background: var(--line); border-radius: 100px;
  transition: background .25s var(--ease);
}
.cookie-toggle-track::before{
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); transition: transform .25s var(--ease), background .25s;
}
.cookie-toggle input:checked + .cookie-toggle-track{ background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-track::before{ transform: translateX(18px); background: var(--bg); }
.cookie-toggle input:focus-visible + .cookie-toggle-track{ outline: 2px solid var(--accent); outline-offset: 2px; }

.cookie-prefs-actions{
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 4px;
}
.cookie-prefs-actions .btn{ flex: 1; min-width: 140px; text-align: center; }

@media (max-width: 480px){
  .cookie-prefs-actions{ flex-direction: column; }
  .cookie-prefs-actions .btn{ width: 100%; }
}

.connect-chips{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.connect-chip{
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-dim);
  background: none;
  transition: border-color .3s, color .3s, background .3s;
}
.connect-chip:hover{ border-color: var(--accent); color: var(--text); }
.connect-chip.is-active{ border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.modal-tz{ color: var(--text-dimmer); font-size: 0.8rem; margin-top: -8px; }
.modal-hint{ color: var(--text-dimmer); font-size: 0.8rem; margin-top: 8px; }

.pricing-checks{ display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.check-row{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
}
.check-row input[type="checkbox"]{
  width: 17px; height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.check-row em{
  display: block;
  font-style: normal;
  color: var(--text-dimmer);
  font-size: 0.8rem;
  margin-top: 2px;
}

@media (max-width: 600px){
  .modal{ padding: 14px; }
  .modal-dialog{ padding: 32px 24px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-list{ border-top: 1px solid var(--line); }
.service-row{
  display:grid;
  grid-template-columns: 80px 1fr 2fr;
  align-items:center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease), background .4s;
}
.service-row:hover{ padding-left: 16px; background: rgba(255,255,255,0.02); }
.service-num{ font-family: var(--font-display); color: var(--accent); font-size: 1rem; font-weight:600; }
.service-row p{ color: var(--text-dim); max-width: 480px; }

/* ---------- services accordion — click a row to reveal example + price ---------- */
.services-accordion{ border-top: 1px solid var(--line); }
.acc-item{ border-bottom: 1px solid var(--line); }

.acc-trigger{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  transition: padding-left .4s var(--ease);
}
.acc-trigger:hover, .acc-item.is-open .acc-trigger{ padding-left: 16px; }
.acc-trigger::before{
  content: "";
  position: absolute; left: -1px; top: 50%; bottom: 50%;
  width: 2px;
  background: var(--accent);
  transition: top .45s var(--ease), bottom .45s var(--ease);
}
.acc-item.is-open .acc-trigger::before{ top: 0; bottom: 0; }
.acc-trigger .service-num{ flex: 0 0 auto; }
.acc-trigger h3{
  flex: 1; min-width: 0;
  font-size: 1.3rem; font-weight: 500; margin: 0;
  transition: color .3s;
}
.acc-item.is-open .acc-trigger h3{ color: var(--accent); }

.acc-icon{
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  transition: transform .4s var(--ease), border-color .3s;
}
.acc-icon::before, .acc-icon::after{
  content: "";
  position: absolute; top: 50%; left: 50%;
  background: var(--text-dim);
  transition: background .3s;
}
.acc-icon::before{ width: 11px; height: 1px; transform: translate(-50%,-50%); }
.acc-icon::after{ width: 1px; height: 11px; transform: translate(-50%,-50%); }
.acc-item.is-open .acc-icon{ transform: rotate(135deg); border-color: var(--accent); }
.acc-item.is-open .acc-icon::before, .acc-item.is-open .acc-icon::after{ background: var(--accent); }

.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease);
}
.acc-item.is-open .acc-panel{ max-height: 900px; }

/* ---------- FAQ — text-only accordion answer (reuses .acc-item/.acc-trigger/.acc-panel) ---------- */
.faq-answer{
  padding: 4px 0 32px;
  max-width: 640px;
  color: var(--text-dim);
  line-height: 1.75;
}

.acc-panel-content{
  display: flex;
  gap: 44px;
  align-items: flex-start;
  padding: 4px 0 44px;
}
.acc-media{
  flex: 0 0 540px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.acc-item.is-open .acc-media{ opacity: 1; transform: translateY(0); transition-delay: .16s; }
.acc-media img, .acc-media video{
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  transition: transform .8s var(--ease);
}
.acc-item.is-open .acc-media img, .acc-item.is-open .acc-media video{ transform: scale(1); transition-delay: .16s; }
.acc-media--diagram{ display: flex; align-items: center; justify-content: center; padding: 12%; }
.acc-media--diagram svg{ width: 100%; height: 100%; color: var(--accent); opacity: .85; }

/* ---------- 360 panorama viewer (Pannellum, self-hosted) ---------- */
.acc-media--pano{ position: relative; background: var(--bg); }
.pano-viewer{ position: absolute; inset: 0; cursor: grab; }
.pano-viewer:active{ cursor: grabbing; }
.pano-viewer .pnlm-load-box{ display: none; }

.pano-hint{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s var(--ease);
}
.pano-hint.is-hidden{ opacity: 0; }
.pano-hint-icon{
  width: 100px;
  height: 50px;
  color: rgba(255,255,255,.92);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.6));
  animation: pano-hint-drag 1.6s ease-in-out infinite;
}
@keyframes pano-hint-drag{
  0%, 100%{ transform: translateX(-10px); }
  50%{ transform: translateX(10px); }
}
@media (prefers-reduced-motion: reduce){
  .pano-hint-icon{ animation: none; }
}

.acc-info{
  flex: 1; min-width: 0; padding-top: 4px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.acc-item.is-open .acc-info{ opacity: 1; transform: translateY(0); transition-delay: .26s; }
.acc-info p{ color: var(--text-dim); line-height: 1.7; max-width: 52ch; margin-bottom: 24px; }

@media (max-width: 800px){
  .acc-trigger{ gap: 16px; padding: 22px 0; }
  .acc-trigger h3{ font-size: 1.1rem; }
  .acc-panel-content{ flex-direction: column; gap: 24px; padding: 4px 0 32px; }
  .acc-media{ flex-basis: auto; width: 100%; }
}

/* ---------- services bento grid — alternate design, kept alongside the
   accordion above (unused CSS, harmless) so services-classic.html still
   renders correctly if this page is ever reverted ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 380px;
  grid-auto-flow: dense;
  gap: 20px;
}
.service-card{
  position: relative;
  display: block;
  grid-column: span 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.service-card.span-2{ grid-column: span 2; }
.service-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .5s;
}
.service-card:hover img{ transform: scale(1.05); filter: brightness(1.05); }
.service-card-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 40%, rgba(11,11,12,.05) 68%);
  pointer-events: none;
}
.service-card-body{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 28px;
}
.service-card .service-num{
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--accent-soft); -webkit-text-stroke: 1px var(--accent);
  margin-bottom: 10px;
}
.service-card h3{ font-size: 1.25rem; margin-bottom: 8px; }
.service-card-body p{
  color: rgba(242,240,236,.72);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 340px;
  margin-bottom: 16px;
}
.service-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.service-card:hover .arrow{ transform: translateX(4px); }

.service-card--diagram{
  display: flex;
  flex-direction: column;
}
.service-card-diagram{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
  color: var(--text-dimmer);
  transition: color .3s;
}
.service-card-diagram svg{ width: 60%; height: auto; }
.service-card--diagram:hover .service-card-diagram{ color: var(--accent-soft); }
.service-card-body--static{
  position: static;
  padding: 0 24px 24px;
}

@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 320px; }
}
@media (max-width: 560px){
  .services-grid{ grid-template-columns: 1fr; grid-auto-rows: 300px; gap: 16px; }
  .service-card.span-2{ grid-column: span 1; }
}

/* ---------- services explorer — third design: sticky numbered nav on the
   left, one large preview swapped in on the right. Kept alongside the grid
   and accordion CSS above (unused, harmless) so services-bento.html and
   services-classic.html keep rendering correctly. ---------- */
.services-explorer{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.services-explorer-nav{
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.explorer-item{
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  padding: 18px 0 18px 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dim);
  transition: padding-left .35s var(--ease), color .3s;
}
.explorer-item::before{
  content: "";
  position: absolute; left: -1px; top: 50%; bottom: 50%;
  width: 2px;
  background: var(--accent);
  transition: top .45s var(--ease), bottom .45s var(--ease);
}
.explorer-item:hover{ color: var(--text); padding-left: 28px; }
.explorer-item.is-active{ color: var(--text); padding-left: 28px; }
.explorer-item.is-active::before{ top: 0; bottom: 0; }
.explorer-num{
  flex: 0 0 auto;
  font-family: var(--font-display); font-size: 0.82rem;
  color: var(--text-dimmer);
  transition: color .3s;
}
.explorer-item.is-active .explorer-num{ color: var(--accent); }
.explorer-title{ font-size: 1rem; }

.services-explorer-stage{ position: relative; min-height: 520px; }
.explorer-panel{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 48px;
  transition: opacity .5s var(--ease);
}
.explorer-panel.is-active{
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.explorer-media{
  flex: 0 0 54%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.explorer-media img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.explorer-media--diagram{ display: flex; align-items: center; justify-content: center; padding: 10%; }
.explorer-media--diagram svg{ width: 100%; height: 100%; color: var(--accent); opacity: .85; }
.explorer-info{ flex: 1; min-width: 0; }
.explorer-info .tag{ margin-bottom: 18px; }
.explorer-info h3{ font-size: 1.7rem; margin-bottom: 16px; }
.explorer-info p{ color: var(--text-dim); line-height: 1.7; max-width: 46ch; margin-bottom: 30px; }

@media (max-width: 980px){
  .services-explorer{ grid-template-columns: 1fr; gap: 0; }
  .services-explorer-nav{ position: static; flex-direction: row; flex-wrap: wrap; border-top: none; margin-bottom: 40px; gap: 0 24px; }
  .explorer-item{ width: auto; padding: 12px 0; border-bottom: none; }
  .explorer-item::before{ display: none; }
  .explorer-item.is-active .explorer-title{ color: var(--accent); }
  .services-explorer-stage{ min-height: 0; }
  .explorer-panel{ flex-direction: column; align-items: stretch; gap: 24px; }
  .explorer-media{ flex-basis: auto; aspect-ratio: 16 / 10; }
}

/* ---------- services minimal list — fourth design: big typographic rows,
   no static imagery; hovering a row floats a preview image next to the
   cursor. Kept alongside the grid/accordion/explorer CSS above (unused,
   harmless) so the earlier services-*.html backups keep rendering. ---------- */
.services-list-mono{ border-top: 1px solid var(--line); }
.mono-row{
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mono-num{
  flex: 0 0 44px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-dimmer);
  transition: color .3s;
}
.mono-row:hover .mono-num{ color: var(--accent); }
.mono-thumb{ display: none; }
.mono-main{ flex: 1; min-width: 0; }
.mono-title{
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 500;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.mono-desc{
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 52ch;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mono-row:hover .mono-title{ color: var(--accent); transform: translateX(18px); }
.mono-row:hover .mono-desc{ opacity: 1; transform: translateX(18px); }
.mono-tag{
  flex: 0 0 auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dimmer);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  transition: color .3s, border-color .3s;
}
.mono-row:hover .mono-tag{ color: var(--accent); border-color: var(--accent); }
.mono-arrow{
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mono-row:hover .mono-arrow{ opacity: 1; transform: translateX(0); }

.mono-preview{
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  transform: translate(-9999px, -9999px) scale(.94);
  transition: opacity .3s var(--ease), transform .1s linear;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  background: var(--bg-card);
}
.mono-preview.is-visible{ opacity: 1; }
.mono-preview img{ display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px){
  .mono-row{ gap: 18px; padding: 22px 0; flex-wrap: wrap; }
  .mono-thumb{
    display: block;
    flex: 0 0 56px;
    width: 56px; height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
  }
  .mono-thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; }
  .mono-title{ font-size: 1.3rem; }
  .mono-row:hover .mono-title{ transform: none; }
  .mono-desc{ opacity: 1; transform: none; width: 100%; order: 5; margin-top: 4px; }
  .mono-row:hover .mono-desc{ transform: none; }
  .mono-tag{ display: none; }
  .mono-arrow{ display: none; }
  .mono-preview{ display: none; }
}

/* ---------- services carousel — fifth design: horizontal snap-scroll
   filmstrip, the first design on this page to scroll sideways rather than
   down. Kept alongside the grid/accordion/explorer/mono CSS above (unused,
   harmless) so the earlier services-*.html backups keep rendering. ---------- */
.services-carousel{ position: relative; }
.carousel-track{
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 4px;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-slide{
  position: relative;
  flex: 0 0 auto;
  width: min(620px, 76vw);
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg-card);
}
.carousel-slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .5s;
}
.carousel-slide:hover img{ transform: scale(1.04); filter: brightness(1.05); }
.carousel-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.42) 42%, rgba(11,11,12,.05) 68%);
  pointer-events: none;
}
.carousel-info{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px;
}
.carousel-info .service-num{ display: block; margin-bottom: 12px; }
.carousel-info h3{ font-size: 1.6rem; margin-bottom: 14px; }
.carousel-info p{
  color: rgba(242,240,236,.75);
  line-height: 1.6;
  max-width: 38ch;
  margin-bottom: 22px;
}

.carousel-slide--diagram{ display: flex; flex-direction: column; }
.carousel-diagram{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 30px 0;
  color: var(--text-dimmer);
  transition: color .3s;
}
.carousel-diagram svg{ width: 60%; height: auto; }
.carousel-slide--diagram:hover .carousel-diagram{ color: var(--accent-soft); }
.carousel-slide--diagram .carousel-info{ position: static; padding: 0 36px 36px; }

.carousel-controls{
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.carousel-arrow{
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.carousel-arrow:hover{ border-color: var(--accent); background: rgba(255,255,255,0.04); }
.carousel-arrow:active{ transform: scale(.94); }
.carousel-progress{
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
}
.carousel-progress-fill{
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 10%;
  background: var(--accent);
  transition: width .25s var(--ease);
}

@media (max-width: 720px){
  .carousel-slide{ width: 86vw; height: 460px; }
  .carousel-info{ padding: 26px; }
  .carousel-info h3{ font-size: 1.35rem; }
  .carousel-controls{ margin-top: 26px; gap: 16px; }
}

/* ---------- services catalog — sixth design: filterable grid of compact
   spec cards (small thumbnail, not full-bleed photo) grouped by category —
   reuses the same filter-chip pattern already proven on Work/Team. Kept
   alongside the CSS above (unused, harmless) so the earlier services-*.html
   backups keep rendering. ---------- */
.services-filter{
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.services-catalog{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.catalog-card{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.catalog-card:hover{ border-color: var(--accent); transform: translateY(-4px); }
.catalog-thumb{ aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elevated); }
.catalog-thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.catalog-card:hover .catalog-thumb img{ transform: scale(1.06); }
.catalog-thumb--diagram{ display: flex; align-items: center; justify-content: center; padding: 14%; color: var(--text-dimmer); transition: color .3s; }
.catalog-thumb--diagram svg{ width: 100%; height: 100%; }
.catalog-card:hover .catalog-thumb--diagram{ color: var(--accent-soft); }

.catalog-body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.catalog-body .service-num{ margin-bottom: 10px; }
.catalog-body h3{ font-size: 1.15rem; margin-bottom: 10px; }
.catalog-body p{
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.catalog-cta{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.catalog-card:hover .catalog-cta .arrow{ transform: translateX(4px); }

@media (max-width: 980px){
  .services-catalog{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .services-catalog{ grid-template-columns: 1fr; }
  .services-filter{ flex-wrap: wrap; }
}

/* ---------- services stack — seventh design: one big card at a time,
   presented as a deck with two faint cards peeking out behind it. Simple
   class-toggle swap (no scroll APIs) so it stays robust. Kept alongside the
   CSS above (unused, harmless) so the earlier services-*.html backups keep
   rendering. ---------- */
.services-stack{ display: flex; flex-direction: column; align-items: center; }
.stack-frame{
  position: relative;
  width: min(720px, 100%);
  height: 540px;
}
.stack-peek{
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.stack-peek-2{ transform: translateY(28px) scale(0.93); opacity: .35; z-index: 1; }
.stack-peek-1{ transform: translateY(14px) scale(0.965); opacity: .65; z-index: 2; }

.stack-card{
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(.96) translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.stack-card.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1) translateY(0);
  z-index: 4;
}
.stack-card img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.4) 42%, rgba(11,11,12,.05) 68%);
  pointer-events: none;
}
.stack-body{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px;
}
.stack-body .tag{ margin-bottom: 14px; }
.stack-body .service-num{ display: none; }
.stack-body h3{ font-size: 1.6rem; margin-bottom: 14px; }
.stack-body p{
  color: rgba(242,240,236,.75);
  line-height: 1.6;
  max-width: 40ch;
  margin-bottom: 22px;
}

.stack-card--diagram{ display: flex; flex-direction: column; }
.stack-diagram{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 30px 0;
  color: var(--text-dimmer);
  transition: color .3s;
}
.stack-diagram svg{ width: 55%; height: auto; }
.stack-card--diagram:hover .stack-diagram{ color: var(--accent-soft); }
.stack-card--diagram .stack-body{ position: static; padding: 0 36px 36px; }

.stack-controls{
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}
.stack-btn{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.stack-btn:hover{ border-color: var(--accent); background: rgba(255,255,255,0.04); }
.stack-btn:active{ transform: scale(.94); }
.stack-counter{
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
  min-width: 60px;
  text-align: center;
}

@media (max-width: 720px){
  .stack-frame{ height: 460px; }
  .stack-body{ padding: 26px; }
  .stack-body h3{ font-size: 1.3rem; }
}

/* ==========================================================================
   WHO IT'S FOR
   ========================================================================== */
.who-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 32px;
}
.who-card{ position:relative; }
.who-card h3{ margin-bottom: 12px; }
.who-card p{ color: var(--text-dim); font-size: 0.94rem; line-height: 1.6; }

/* ==========================================================================
   WHY FINVAL — COMPETITIVE ALTERNATIVES
   ========================================================================== */
.compare-grid{
  display:grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.compare-card{
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color .3s, transform .3s var(--ease);
}
.compare-card:hover{ border-color: var(--accent); transform: translateY(-4px); }
.compare-card .tag{ margin-bottom: 20px; }
.compare-card p{ color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }
.compare-list{ list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-list li{
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}
.compare-list li::before{ content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-grid{
  position: relative;
  display:grid; grid-template-columns: repeat(4,1fr); gap: 32px;
}
.process-line{
  position: absolute;
  top: 34px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: var(--line);
  opacity: 1; transform: none; /* neutralize base .reveal fade/rise — only the fill animates */
}
.process-line-fill{
  position: absolute; inset: 0;
  width: 0%;
  background: var(--accent);
  transition: width 1.6s var(--ease) .2s;
}
.process-line.in-view .process-line-fill{ width: 100%; }

.process-step{ position:relative; z-index:1; }
.process-node{
  position: relative;
  width: 68px; height: 68px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .4s, transform .4s var(--ease);
}
.process-step:hover .process-node{ border-color: var(--accent); transform: translateY(-4px); }
.process-icon{ width: 26px; height: 26px; color: var(--accent); }
.process-num{
  display:block; font-family: var(--font-display); font-size: 0.8rem; font-weight:700;
  color: var(--text-dimmer); letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.process-step h3{ margin-bottom: 12px; }
.process-step p{ color: var(--text-dim); font-size: 0.94rem; }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.team-card{ position:relative; }
.team-photo{
  aspect-ratio: 5/7;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.team-photo img{
  width:100%; height:100%; object-fit:cover;
  object-position: center;
  filter: grayscale(1) contrast(1.02);
  transition: transform .7s var(--ease), filter .5s;
}
.team-card:hover .team-photo img{ transform: scale(1.05); filter: grayscale(0.15) contrast(1.05); }
.team-card figcaption{ padding-top: 18px; }
.team-card h3{ font-size: 1.05rem; margin-bottom: 4px; }
.team-card p{ color: var(--accent); font-size: 0.85rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid{
  display:grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items:start;
}
.contact-copy h2{ margin-top: 4px; }
.contact-email{
  display:inline-block; margin-top: 32px; font-family: var(--font-display);
  font-size: 1.4rem; color: var(--accent); border-bottom: 1px solid var(--accent);
  padding-bottom: 4px; transition: opacity .3s;
}
.contact-email:hover{ opacity:0.75; }
.contact-channels{ display:flex; gap: 22px; margin-top: 28px; }
.contact-channels span{
  font-size: 0.82rem; color: var(--text-dim);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 100px;
}

.contact-form{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display:flex; flex-direction:column; gap: 20px;
}
.form-row{ display:flex; flex-direction:column; gap: 8px; }
.form-row label{ font-size: 0.8rem; color: var(--text-dim); text-transform:uppercase; letter-spacing:0.05em; }
.form-row input, .form-row select, .form-row textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .3s;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:none; border-color: var(--accent);
}
.form-row input::placeholder, .form-row textarea::placeholder{
  color: var(--text-dimmer);
  font-size: 0.86rem;
}
.form-note{ font-size: 0.82rem; color: var(--accent); min-height: 1em; }

.form-optional{ text-transform: none; letter-spacing: 0; color: var(--text-dimmer); font-weight: 400; }

.file-input{ display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-input-native{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.file-input-btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.82rem; color: var(--text-dim); white-space: nowrap;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.file-input-btn:hover{ border-color: var(--accent); color: var(--text); }
.file-input-native:focus-visible + .file-input-btn{ outline: 2px solid var(--accent); outline-offset: 2px; }
.file-input-name{ font-size: 0.82rem; color: var(--text-dimmer); word-break: break-all; }
.file-input-name.is-error{ color: var(--accent); }

.social-row--inline{ display: flex; gap: 18px; }
.social-row.social-row--inline{ margin-top: 0; }
.social-row--inline a{ color: var(--text-dim); font-size: 0.85rem; transition: color .3s; }
.social-row--inline a:hover{ color: var(--accent); }

/* ---------- contact page, split-screen layout ---------- */
.contact-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.contact-split-info, .contact-split-form{
  display: flex;
  align-items: center;
  padding: 150px 70px 70px;
}
.contact-split-info{ background: var(--bg); }
.contact-split-info > div{ max-width: 480px; }
.contact-split-info h1{ font-size: clamp(2.1rem, 3.2vw, 3rem); margin: 18px 0 24px; }
.contact-split-p{ color: var(--text-dim); line-height: 1.75; max-width: 46ch; }

.contact-meta{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact-meta-item--wide{ grid-column: 1 / -1; }
.contact-meta-label{
  display: block; color: var(--text-dimmer); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.contact-meta-item p{ color: var(--text-dim); font-size: 0.92rem; }

.contact-next{
  margin-top: 40px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-next .eyebrow{ margin-bottom: 0; }

.next-timeline{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 20px 0 22px;
}
.next-timeline::before{
  content: '';
  position: absolute;
  left: 21px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: var(--line);
}
.next-step{
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.next-step-icon{
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s;
}
.next-step:hover .next-step-icon{ border-color: var(--accent); }
.next-step-icon svg{ width: 20px; height: 20px; color: var(--accent); }
.next-step-text{ padding-top: 8px; }
.next-step-text h4{ font-size: 0.96rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.next-step-text p{ color: var(--text-dim); font-size: 0.86rem; line-height: 1.55; }

.contact-next-note{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dimmer);
  font-size: 0.84rem;
  line-height: 1.6;
}

.contact-split-form{ background: var(--bg-elevated); border-left: 1px solid var(--line); }
.contact-split-form form{
  width: 100%; max-width: 440px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-split-form .eyebrow{ margin-bottom: 4px; }
.contact-split-form .form-row input,
.contact-split-form .form-row select,
.contact-split-form .form-row textarea{
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 2px;
}
.contact-split-form .form-row input:focus,
.contact-split-form .form-row select:focus,
.contact-split-form .form-row textarea:focus{
  outline: none; border-color: var(--accent);
}

@media (max-width: 980px){
  .contact-split{ grid-template-columns: 1fr; min-height: auto; }
  .contact-split-info, .contact-split-form{ padding: 60px 24px; }
  .contact-split-info{ padding-top: 140px; }
  .contact-split-form{ border-left: none; border-top: 1px solid var(--line); }
  .contact-meta{ grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ border-top: 1px solid var(--line); padding-top: 80px; background: var(--bg-elevated); }
.footer-inner{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 60px;
}
.footer-brand p{ color: var(--text-dim); margin-top: 18px; max-width: 300px; font-size:0.92rem; }
.social-row{ display:flex; gap: 20px; margin-top: 26px; }
.social-row a{ font-size: 0.85rem; color: var(--text-dim); transition: color .3s; }
.social-row a:hover{ color: var(--accent); }

.footer-col h4{
  font-size: 0.78rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--text-dimmer);
  margin-bottom: 20px; font-family: var(--font-body); font-weight:600;
}
.footer-col a{
  display:block; color: var(--text-dim); font-size: 0.92rem; margin-bottom: 12px; transition: color .3s;
}
.footer-col a:hover{ color: var(--accent); }
.footer-note{ color: var(--text-dimmer); font-size: 0.85rem; margin-top: 14px; line-height:1.6; }

.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.footer-bottom p, .footer-bottom a{ color: var(--text-dimmer); font-size: 0.82rem; }
.footer-bottom a:hover{ color: var(--accent); }

/* ==========================================================================
   TEAM PAGE
   ========================================================================== */
.team-hero{
  padding: 180px 0 100px;
  background: var(--bg);
}
.team-hero-row{
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
.team-hero-info{ flex: 0 0 44%; min-width: 0; }
.team-hero h1{
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  margin-bottom: 28px;
}
.team-hero-p{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.team-hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.team-hero-stats .stat-num{ font-size: clamp(1.4rem, 2vw, 1.8rem); }
.team-hero-stats .stat p{ color: var(--text-dimmer); font-size: 0.8rem; margin-top: 4px; }

.team-hero-photo{
  flex: 1;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.team-hero-photo img{
  display: block; width: 100%; height: auto;
  filter: grayscale(1) contrast(1.02);
}

/* ---------- team hero, photo-background variant ---------- */
.team-hero--photo{
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 90px;
  overflow: hidden;
}
.team-hero-bg{
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--bg);
}
.team-hero-bg-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  filter: grayscale(1) contrast(1.05);
  transform-origin: center;
  animation: kenburns 28s ease-in-out infinite alternate;
}
.team-hero-scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(11,11,12,0.96) 0%, rgba(11,11,12,0.8) 26%, rgba(11,11,12,0.4) 55%, rgba(11,11,12,0.18) 100%),
    rgba(11,11,12,0.22);
}
.team-hero--photo .container{ position: relative; z-index: 1; }
.team-hero--photo .team-hero-info{ flex: none; max-width: 640px; }
.team-hero--photo h1{ max-width: 620px; }
.team-hero--photo .team-hero-p{ max-width: 560px; }
.team-hero--photo .team-hero-stats{
  max-width: 480px;
  border-top-color: rgba(255,255,255,0.16);
}
.team-hero--photo .team-hero-stats .stat p{ color: rgba(242,240,236,0.55); }

@media (prefers-reduced-motion: reduce){
  .team-hero-bg-img{ animation: none; }
}

/* ---------- founder spotlight ---------- */
.founder-row{
  display: flex;
  align-items: center;
  gap: 64px;
}
.founder-media{
  flex: 0 0 38%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.founder-media img{
  display: block; width: 100%; height: auto;
  filter: grayscale(1) contrast(1.02);
}
.founder-info{ flex: 1; min-width: 0; }
.founder-bio{
  color: var(--text-dim); font-size: 1.05rem; line-height: 1.75;
  max-width: 520px; margin-bottom: 32px;
}
.founder-motto{
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 32px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--text); font-style: normal;
}
.founder-motto span{
  display: block; font-family: var(--font-body); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-dimmer);
  margin-bottom: 10px; font-weight: 600;
}
.founder-name h3{ font-size: 1.1rem; margin-bottom: 2px; }
.founder-name p{ color: var(--accent); font-size: 0.85rem; }

/* ---------- department filter ---------- */
.team-filters{
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 50px;
}
.filter-chip{
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 500;
  color: var(--text-dim);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: color .3s, border-color .3s, background .3s;
}
.filter-chip:hover{ color: var(--text); border-color: rgba(255,255,255,0.2); }
.filter-chip.is-active{
  color: #14120d; background: var(--accent); border-color: var(--accent);
}

/* ---------- full team grid ---------- */
.team-full-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 28px;
  align-items: stretch;
}
.team-full-card{
  cursor: zoom-in;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.team-full-card .team-photo{ position: relative; }
.team-full-card .team-photo::after{
  content: "";
  position: absolute; inset: 0;
  background: rgba(11,11,12,0.28);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.team-full-card .team-photo::before{
  content: "";
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(11,11,12,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='17' height='17'%3E%3Cpath d='M11 4a7 7 0 1 1 0 14 7 7 0 0 1 0-14ZM21 21l-4.3-4.3M11 8v6M8 11h6' stroke='%23f2f0ec' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/17px no-repeat;
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.team-full-card:hover .team-photo::after,
.team-full-card:focus-visible .team-photo::after{ opacity: 1; }
.team-full-card:hover .team-photo::before,
.team-full-card:focus-visible .team-photo::before{ opacity: 1; transform: scale(1); }
.team-full-card figcaption{ padding-top: 16px; }
.team-full-card h3{ font-size: 1rem; margin-bottom: 3px; }
.team-role{ color: var(--accent); font-size: 0.78rem; margin-bottom: 10px; }
.team-bio{ color: var(--text-dim); font-size: 0.85rem; line-height: 1.55; }

.team-join-card{
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 320px;
  cursor: default;
}
.join-inner{ display: flex; flex-direction: column; align-items: center; gap: 6px; }
.join-plus{
  width: 44px; height: 44px; margin-bottom: 8px;
  border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent);
}
.join-inner h3{ font-size: 1rem; }
.join-inner p{ color: var(--text-dim); font-size: 0.85rem; margin-bottom: 10px; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px){
  .who-grid{ grid-template-columns: repeat(2,1fr); row-gap: 40px; }
  .compare-grid{ grid-template-columns: repeat(2,1fr); }
  .process-grid{ grid-template-columns: repeat(2,1fr); row-gap: 48px; }
  .process-line{ display: none; }
  .team-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; gap: 50px; }
  .contact-info-grid{ grid-template-columns: 1fr; gap: 40px; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }

  .work-list{ gap: 70px; }
  .work-row, .work-row:nth-of-type(even){ flex-direction: column; align-items: stretch; gap: 28px; }
  .work-row-media{ flex-basis: auto; }
  .work-row-desc{ max-width: none; }

  .team-hero{ padding: 140px 0 70px; }
  .team-hero-row{ flex-direction: column; align-items: stretch; gap: 40px; }
  .team-hero-info{ flex-basis: auto; }
  .team-hero--photo{ min-height: 100svh; padding: 120px 0 60px; align-items: flex-end; }
  .team-hero--photo .team-hero-info{ max-width: none; }
  .team-hero--photo .team-hero-stats{ max-width: none; }
  .founder-row{ flex-direction: column; align-items: stretch; gap: 32px; }
  .founder-media{ flex-basis: auto; max-width: 360px; }
  .founder-bio{ max-width: none; }
  .team-full-grid{ grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 720px){
  .container{ padding: 0 20px; }
  .main-nav{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 80vw);
    background: var(--bg-elevated); border-left: 1px solid var(--line);
    flex-direction: column; justify-content:center; align-items:flex-start;
    gap: 28px; padding: 40px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    z-index: 90;
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ font-size: 1.2rem; }
  .header-actions .btn-sm{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:first-child{ transform: translateY(3px) rotate(45deg); }
  .nav-toggle.open span:last-child{ transform: translateY(-2px) rotate(-45deg); }

  .hero-stats{ grid-template-columns: repeat(2,1fr); row-gap: 24px; }
  .who-grid{ grid-template-columns: 1fr; row-gap: 32px; }
  .compare-grid{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 40px 1fr; }
  .service-row p{ grid-column: 2 / 3; }
  .process-grid{ grid-template-columns: 1fr; row-gap: 40px; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction:column; gap: 10px; align-items:flex-start; }
  .section{ padding: 90px 0; }

  .team-full-grid{ grid-template-columns: repeat(2,1fr); }
}
