/* ===================================================================
   SOLTIS v2 — Enhanced experience layer
   Cursor flashlight · Project archive · Living grain
=================================================================== */

/* ── Film grain ─────────────────────────────────────────────────── */
.v2-grain {
  position: fixed;
  inset: -150%;
  width: 400%; height: 400%;
  z-index: 9988;
  pointer-events: none;
  opacity: 0.038;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  animation: grain-drift 0.38s steps(1) infinite;
}
@keyframes grain-drift {
  0%   { transform: translate(0%,    0%);   }
  14%  { transform: translate(-3.2%, -2.1%); }
  28%  { transform: translate(2.4%,  3.8%); }
  42%  { transform: translate(-4.1%,  1.2%); }
  57%  { transform: translate(3.5%, -3.6%); }
  71%  { transform: translate(-1.8%,  2.9%); }
  85%  { transform: translate(4.0%, -1.4%); }
}

/* ── Hero: clean typographic ────────────────────────────────────── */
.v2-hero-clean {
  background:
    radial-gradient(ellipse 60% 70% at 12% 82%, rgba(31,33,26,0.35) 0%, transparent 68%),
    radial-gradient(ellipse 50% 55% at 88% 18%, rgba(16,18,13,0.15)  0%, transparent 65%),
    var(--ink);
}

/* Background video replaced by Ken Burns slideshow */
.v2-hero-ghost-img { display: none; }

.v2-hero-kb {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.v2-kb-frame {
  position: absolute;
  inset: -8%;
  width: 116%; height: 116%;
  background-size: cover;
  background-position: center;
  filter: saturate(0.65) brightness(0.55) contrast(1.05);
  opacity: 0;
  will-change: transform, opacity;
}

/* First frame starts visible immediately */
.v2-kb-frame:nth-child(1) { animation: kb-first 35s  0s ease-in-out infinite; }
.v2-kb-frame:nth-child(2) { animation: kb-b    35s  7s ease-in-out infinite; }
.v2-kb-frame:nth-child(3) { animation: kb-a    35s 14s ease-in-out infinite; }
.v2-kb-frame:nth-child(4) { animation: kb-b    35s 21s ease-in-out infinite; }
.v2-kb-frame:nth-child(5) { animation: kb-a    35s 28s ease-in-out infinite; }

@keyframes kb-first {
  0%        { opacity: 1;   transform: scale(1.10) translate( 2%,  1%); }
  25%       { opacity: 1; }
  32%       { opacity: 0;   transform: scale(1.00) translate(-1%, -0.5%); }
  100%      { opacity: 0;   transform: scale(1.10) translate( 2%,  1%); }
}

@keyframes kb-a {
  0%         { opacity: 0;   transform: scale(1.10) translate( 2%,  1%); }
  7%,  28%   { opacity: 1; }
  35%        { opacity: 0;   transform: scale(1.00) translate(-1%, -0.5%); }
  100%       { opacity: 0;   transform: scale(1.10) translate( 2%,  1%); }
}
@keyframes kb-b {
  0%         { opacity: 0;   transform: scale(1.10) translate(-2%, -1%); }
  7%,  28%   { opacity: 1; }
  35%        { opacity: 0;   transform: scale(1.00) translate( 1%,  0.5%); }
  100%       { opacity: 0;   transform: scale(1.10) translate(-2%, -1%); }
}

/* Warm ambient glow */
.v2-hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 8% 78%, rgba(201,160,102,0.065) 0%, transparent 70%),
    radial-gradient(ellipse 35% 40% at 92% 22%, rgba(107,112,64,0.04)  0%, transparent 70%);
}

/* Title — fully contained */
.hero-title {
  font-size: clamp(34px, 4.2vw, 72px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.038em !important;
}

.v2-hero-clean .hero-inner {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  padding-right: 60px;
}

/* Animated brass rule beneath title */
.v2-brass-rule {
  width: min(640px, 72vw);
  height: 2px;
  margin: 16px 0 16px;
  overflow: visible;
}
.v2-brass-rule svg { width: 100%; height: 2px; display: block; overflow: visible; }
.v2-brass-draw {
  animation: v2-draw-brass 1.1s 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes v2-draw-brass { to { stroke-dashoffset: 0; } }

/* Lede fades in after the line */
.v2-lede-anim {
  opacity: 0;
  animation: v2-lede-in 0.9s 3s ease both;
}
@keyframes v2-lede-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll cue — vertical line with descending rider */
.v2-scroll-cue {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: v2-lede-in 0.8s 3.8s ease both;
}
.v2-scroll-track {
  width: 1px;
  height: 44px;
  background: rgba(242,234,216,0.08);
  position: relative;
  overflow: hidden;
}
.v2-scroll-rider {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brass);
  animation: v2-scroll-ride 2s 4s ease-in-out infinite;
}
@keyframes v2-scroll-ride {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}
.v2-scroll-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.22);
}

/* Ensure intro hides instantly */
#intro.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

/* ── Project archive ─────────────────────────────────────────────── */
.v2-proj-section {
  background: var(--ink);
  border-top: 1px solid rgba(242,234,216,0.05);
}

.v2-proj-wrap {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 100vh;
}

/* Left column */
.v2-proj-left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(242,234,216,0.06);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.v2-proj-left .chapter {
  padding: 80px 48px 56px 80px;
  border-bottom: 1px solid rgba(242,234,216,0.06);
  flex-shrink: 0;
  overflow: hidden;
}

/* Constrain chapter title within column */
.v2-proj-left .chapter-title {
  font-size: clamp(28px, 3.2vw, 48px) !important;
}

.v2-proj-left .chapter-lede {
  font-size: 14px;
}

.v2-proj-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Each project entry */
.v2-entry {
  padding: 30px 48px 30px 80px;
  border-bottom: 1px solid rgba(242,234,216,0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.4s;
  user-select: none;
}

/* Brass accent line on left edge */
.v2-entry::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brass-soft), var(--brass));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.v2-entry.active::before { transform: scaleY(1); }
.v2-entry.active { background: rgba(242,234,216,0.018); }

/* Project code */
.v2-entry-code {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.45;
  margin-bottom: 10px;
  transition: opacity 0.35s;
}
.v2-entry.active .v2-entry-code { opacity: 1; }

/* Project name */
.v2-entry-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: rgba(242,234,216,0.28);
  transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.v2-entry-name em {
  font-style: italic;
  font-size: 0.88em;
  color: rgba(201,160,102,0.3);
  transition: color 0.45s;
}
.v2-entry.active .v2-entry-name { color: var(--bone); }
.v2-entry.active .v2-entry-name em { color: var(--brass-soft); }

/* Slide-down metadata */
.v2-entry-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.3);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s 0.05s,
    margin-top 0.35s;
}
.v2-entry.active .v2-entry-meta {
  max-height: 28px;
  opacity: 0.55;
  margin-top: 12px;
}

/* Right panel — sticky image canvas */
.v2-proj-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #080a06;
}

/* Each image layer */
.v2-panel-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.v2-panel-img.active { opacity: 1; }

.v2-panel-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.55) contrast(1.1);
  transform: scale(1.06);
  transition:
    transform 9s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 1.6s;
}
.v2-panel-img.active img {
  transform: scale(1.0);
  filter: saturate(0.78) brightness(0.68) contrast(1.06);
}

/* Gradient veil over image */
.v2-panel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,10,6,0.55) 0%, transparent 40%),
    linear-gradient(to top,   rgba(8,10,6,0.85) 0%, transparent 55%);
  z-index: 1;
}

/* Info overlay inside image */
.v2-panel-info {
  position: absolute;
  bottom: 64px;
  left: 60px;
  right: 60px;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  0.65s 0.45s,
    transform 0.65s 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.v2-panel-img.active .v2-panel-info { opacity: 1; transform: translateY(0); }

.v2-panel-big {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--bone);
}
.v2-panel-big em {
  font-style: italic;
  color: var(--brass-soft);
  display: block;
  font-size: 0.82em;
  margin-top: 4px;
}

.v2-panel-specs {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.4);
  margin-top: 18px;
  display: flex;
  gap: 28px;
}

.v2-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(201,160,102,0.22);
  transition: border-color 0.3s, letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.v2-panel-cta:hover {
  border-color: var(--brass);
  letter-spacing: 0.32em;
}

/* Empty state: before any hover */
.v2-panel-idle {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s;
}
.v2-panel-idle.gone { opacity: 0; }
.v2-panel-idle-text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.08);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* ── Hero: terminal typewriter ───────────────────────────────────── */
/* hero-inner stays visible — terminal overlays on top, dissolves away */

.hero-terminal {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.9s ease, filter 0.9s ease;
}
.hero-terminal.dissolving { opacity: 0; filter: blur(12px); }
.hero-terminal.gone { display: none; }

.hero-terminal-inner {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: var(--bone);
  width: min(600px, 90vw);
  position: relative;
}

.tl-header {
  color: var(--brass);
  letter-spacing: 0.2em;
  font-size: 10px;
  opacity: 0.9;
  text-transform: uppercase;
}
.tl-rule {
  color: rgba(201,160,102,0.2);
  letter-spacing: 0;
  display: block;
  line-height: 1.6;
}
.tl-gap { display: block; height: 6px; }
.tl-row {
  display: flex;
  gap: 0;
}
.tl-key {
  color: rgba(242,234,216,0.28);
  min-width: 128px;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tl-val { color: rgba(242,234,216,0.85); }
.tl-status .tl-val { color: var(--brass-soft); }
.tl-line { animation: tl-appear 0.15s ease both; }
@keyframes tl-appear {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-terminal-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--brass);
  vertical-align: middle;
  margin-left: 3px;
  animation: cursor-blink 0.75s step-end infinite;
}
@keyframes cursor-blink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}

/* ── Project theater ────────────────────────────────────────────── */
.proj-theater {
  position: relative;
  background: var(--ink);
}

.proj-theater-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Each slide */
.proj-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 42% 58%;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.proj-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Text half */
.proj-slide-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  overflow: hidden;
  background: var(--ink);
  z-index: 1;
}
/* Atmospheric blurred bg derived from photography */
.proj-slide-text::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--proj-blur-img) center / cover no-repeat;
  filter: blur(60px) saturate(0.12) brightness(0.18);
  opacity: 0.85;
  z-index: 0;
}
.proj-slide-text > * { position: relative; z-index: 1; }

.proj-slide-code {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.7;
  margin-bottom: 32px;
}
.proj-slide-name {
  font-family: var(--display);
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--bone);
  margin: 0 0 32px;
}
.proj-slide-name em {
  display: block;
  font-style: italic;
  color: var(--brass-soft);
  font-size: 0.8em;
  margin-top: 6px;
}
.proj-slide-story {
  font-family: var(--display);
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: rgba(242,234,216,0.6);
  margin: 0 0 44px;
  max-width: 360px;
  border-left: 1px solid rgba(201,160,102,0.25);
  padding-left: 20px;
  text-wrap: pretty;
}
.proj-slide-facts {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
}
.proj-slide-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-slide-facts b {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.proj-slide-facts span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.3);
}
.proj-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(201,160,102,0.22);
  transition: letter-spacing 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
  width: fit-content;
}
.proj-slide-cta:hover { letter-spacing: 0.34em; border-color: var(--brass); }

/* Image half */
.proj-slide-img {
  position: relative;
  overflow: hidden;
}
.proj-slide-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.72) contrast(1.06);
  transform: scale(1.08);
  transition: filter 1s, transform 10s cubic-bezier(0.2,0.7,0.3,1);
  will-change: transform;
}
.proj-slide.active .proj-slide-img img {
  transform: scale(1.0);
  filter: saturate(0.85) brightness(0.78) contrast(1.04);
}
/* Gradient veil */
.proj-slide-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14,16,10,0.3) 0%, transparent 25%);
}

/* Counter */
.proj-theater-counter {
  position: absolute;
  bottom: 44px;
  right: 52px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,234,216,0.25);
  z-index: 10;
}
.proj-theater-counter b {
  color: rgba(242,234,216,0.7);
  font-weight: 400;
}

/* Progress thread */
.proj-theater-thread {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 42%;
  height: 1px;
  background: rgba(242,234,216,0.06);
  z-index: 10;
}
.proj-theater-thread-fill {
  height: 100%;
  background: linear-gradient(to right, var(--brass-soft), var(--brass));
  width: 0%;
  transition: width 0.3s ease;
}

/* Chapter header for theater */
.proj-theater .chapter {
  position: absolute;
  top: 0; left: 0;
  padding: 52px 64px;
  z-index: 20;
  pointer-events: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .proj-slide { grid-template-columns: 1fr; }
  .proj-slide-text { padding: 60px 32px; min-height: 55vh; }
  .proj-slide-img { min-height: 45vh; }
}


/* ==========================================================================
   MATERIAL LIGHTBOX
   Chips previously showed a pointer cursor and opened nothing. Now they open
   the sample full-size, one at a time, sized to always fit the viewport.
   ========================================================================== */
.mat-lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 4vh 6vw;
  background: rgba(8, 9, 6, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s .35s;
}
.mat-lb.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
body.mat-lb-lock { overflow: hidden; }

.mat-lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; max-height: 92vh; }
.mat-lb-img {
  /* Fit the whole sample on screen whatever its aspect ratio. */
  max-width: 100%; max-height: 78vh; max-height: 78svh;
  width: auto; height: auto; object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  transform: scale(.97); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.mat-lb.open .mat-lb-img { transform: scale(1); }
.mat-lb-cap {
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--bone); text-align: center;
}
.mat-lb-cap .it { font-style: italic; color: var(--brass-soft); }
.mat-lb-count {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(242,234,216,.5);
}

.mat-lb-close, .mat-lb-nav {
  position: absolute; z-index: 2;
  background: transparent; border: 1px solid rgba(242,234,216,.25);
  color: var(--bone); cursor: pointer; line-height: 1;
  transition: background .3s, color .3s, border-color .3s;
}
.mat-lb-close:hover, .mat-lb-nav:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.mat-lb-close:focus-visible, .mat-lb-nav:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 3px; }
.mat-lb-close { top: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; }
.mat-lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; font-size: 30px;
  display: flex; align-items: center; justify-content: center;
}
.mat-lb-nav.prev { left: 20px; }
.mat-lb-nav.next { right: 20px; }

@media (max-width: 820px) {
  .mat-lb { padding: 8vh 16px; }
  .mat-lb-img { max-height: 62vh; max-height: 62svh; }
  .mat-lb-cap { font-size: 18px; gap: 10px; }
  .mat-lb-nav { width: 46px; height: 46px; font-size: 24px; }
  .mat-lb-nav.prev { left: 8px; }
  .mat-lb-nav.next { right: 8px; }
  .mat-lb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON — every page, always reachable
   ========================================================================== */
.wa-float {
  position: fixed; right: 24px; bottom: 48px; z-index: 150;
  display: flex; align-items: center; gap: 0;
  height: 58px; padding: 0 17px;
  border-radius: 999px;
  background: var(--brass-soft); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: gap .35s cubic-bezier(.2,.7,.3,1), padding .35s cubic-bezier(.2,.7,.3,1), transform .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.wa-float:focus-visible { outline: 2px solid var(--bone, #f2ead8); outline-offset: 3px; }
.wa-float svg { width: 26px; height: 26px; flex: 0 0 auto; display: block; }
.wa-float .wa-label {
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; max-width: 0; opacity: 0;
  transition: max-width .35s cubic-bezier(.2,.7,.3,1), opacity .25s;
}
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { max-width: 190px; opacity: 1; }
.wa-float:hover, .wa-float:focus-visible { gap: 11px; padding-right: 22px; }
/* The lightbox sits above it; hide the button while a sample is open. */
body.mat-lb-lock .wa-float { opacity: 0; pointer-events: none; }

@media (max-width: 820px) {
  .wa-float { right: 16px; bottom: 16px; height: 54px; padding: 0 15px; }
  /* No hover on touch — keep it a compact circle. */
  .wa-float .wa-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float .wa-label, .mat-lb, .mat-lb-img { transition: none; }
}

/* ==========================================================================
   CONTACT — social links + studio map
   ========================================================================== */
.contact-social { margin-top: 44px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.contact-social .cs-lbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--brass); margin-right: 6px;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(201,160,102,.35); color: var(--bone);
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.social-btn svg { width: 16px; height: 16px; display: block; }
.social-btn:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.social-btn:focus-visible { outline: 2px solid var(--brass-soft); outline-offset: 3px; }

.contact-map { margin-top: 48px; }
.contact-map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 7;
  border: 1px solid rgba(201,160,102,.25); overflow: hidden; background: #14150f;
}
.contact-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) invert(0.92) contrast(0.85); }
.contact-map-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .contact-map-frame { aspect-ratio: 4 / 3; }
  .contact-social { gap: 10px; }
}

/* ==========================================================================
   HERO TEXT LEGIBILITY — soft scrim so title + lede read on bright photos
   ========================================================================== */
.v2-hero-clean::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,14,9,0.60) 0%, rgba(12,14,9,0.22) 42%, transparent 68%),
    linear-gradient(0deg,  rgba(12,14,9,0.55) 0%, transparent 42%);
}
.v2-hero-clean .hero-inner { position: relative; z-index: 3; }
.v2-hero-clean .v2-scroll-cue { z-index: 3; }

/* ==========================================================================
   MOBILE MENU (hamburger) — desktop nav links overflow on phones
   ========================================================================== */
.nav-burger { display: none; }
.nav-mobile { display: none; }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; padding: 16px 20px; mix-blend-mode: normal; color: var(--bone); z-index: 60; }
  .nav-left, .nav-right { display: none !important; }
  .nav-logo { grid-column: 1; justify-self: start; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    grid-column: 2; justify-self: end;
    width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent; z-index: 60;
  }
  .nav-burger span { display: block; height: 2px; width: 100%; background: var(--bone); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
    position: fixed; inset: 0; z-index: 55;
    background: rgba(12,14,9,0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
  }
  .nav-mobile.open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .3s ease, transform .3s ease; }
  .nav-mobile a {
    font-family: var(--display); font-size: 30px; font-weight: 300; color: var(--bone);
    letter-spacing: -0.01em; text-transform: none;
  }
  .nav-mobile a:last-child { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass); padding: 14px 26px; border-radius: 999px; }
  body.nav-open { overflow: hidden; }

  /* ----- HERO ----- */
  .hero-lede { max-width: 100%; }
  .v2-hero-clean::after { background:
    linear-gradient(0deg, rgba(12,14,9,0.72) 0%, rgba(12,14,9,0.15) 45%, transparent 72%); }

  /* ----- PROJECTS: horizontal scroller → vertical stack ----- */
  .hscroll { height: auto !important; }
  .hscroll-stage { position: static !important; height: auto !important; overflow: visible !important; display: block !important; }
  .hscroll-track { flex-direction: column !important; flex-wrap: wrap; gap: 18px !important; padding: 0 20px !important; transform: none !important; }
  .proj-card { width: 100% !important; height: 66vh !important; align-self: auto !important; margin: 0 !important; }
  .hscroll-progress, .hscroll-counter, .hscroll-hint { display: none !important; }

  /* ----- PROCESS: horizontal film → vertical stack ----- */
  #proc-scroll { height: auto !important; }
  .proc-sticky { position: static !important; height: auto !important; overflow: visible !important; }
  .proc-track { flex-direction: column !important; width: auto !important; transform: none !important; gap: 40px; padding: 0 20px; }
  .proc-spread { flex-direction: column !important; width: 100% !important; min-width: 0 !important; gap: 20px; }
  .proc-img { width: 100% !important; height: 52vh !important; }
  .proc-text { width: 100% !important; padding: 0 !important; }
  .proc-thread { display: none !important; }

  /* ----- BUILT: seam-reveal → render + finished photo stacked, tap to expand ----- */
  #built-scroll { height: auto !important; }
  .built-sticky { position: static !important; height: auto !important; }
  .built-intro-frame { position: static !important; opacity: 1 !important; visibility: visible !important; height: auto !important; padding: 60px 24px 30px; text-align: left; }
  .built-scroll-cue { display: none !important; }
  .built-stage { position: static !important; opacity: 1 !important; height: auto !important; display: flex; flex-direction: column; gap: 34px; padding: 0 12px 40px; }
  .built-pair { position: static !important; opacity: 1 !important; display: flex !important; flex-direction: column; gap: 10px; }
  .built-render, .built-photo { position: relative !important; display: block !important; width: 100% !important; height: auto !important; clip-path: none !important; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
  .built-render img, .built-photo img { position: static !important; width: 100% !important; height: auto !important; transform: none !important; object-fit: contain !important; display: block; filter: none !important; }
  .built-m-tag { position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); background: rgba(12,14,9,0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 5px 11px; border-radius: 999px; pointer-events: none; }
  .built-m-tag.render { color: var(--brass); }
  .built-m-zoom { position: absolute; bottom: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--bone); background: rgba(12,14,9,0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 50%; pointer-events: none; }
  .built-seam, .built-label-design, .built-label-built, .built-bar, .built-pair-label { display: none !important; }

  /* ----- MATERIALS: scattered chips → clean grid ----- */
  .mat-stage { height: auto !important; position: static !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 20px; }
  .mat-center-info { display: none !important; }
  .mat-chip { position: static !important; width: 100% !important; height: auto !important; transform: none !important; box-shadow: 0 6px 20px rgba(61,66,32,0.12); }
  .mat-chip-swatch { height: 40vw !important; }

  /* ----- COMMERCIAL: single column already; ensure title fits ----- */
  .commercial-title { font-size: clamp(24px, 6vw, 34px) !important; }
}

/* ==========================================================================
   PROJECTS INTRO ("Every home should be different") — smaller heading,
   full-height panel, and a gentle scroll-snap on the intro views.
   ========================================================================== */
.chapter-title-lead { font-size: clamp(40px, 4.9vw, 78px) !important; line-height: 1.04; }

@media (min-width: 821px) {
  /* Gentle magnetic settle on the two intro views — proximity (not mandatory)
     so it never fights the scroll-driven galleries further down. */
  html { scroll-snap-type: y proximity; }
  #hero { scroll-snap-align: start; scroll-snap-stop: normal; }
  #projects > .chapter {
    min-height: 100vh;
    align-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

/* ==========================================================================
   HOMEPAGE REVISION (desktop) — fit key sections to one screen, extend the
   gentle vertical page-snap to the static full-screen views.
   ========================================================================== */
@media (min-width: 821px) {
  /* Item 4 — Commercial fits one screen */
  .commercial { padding-bottom: 44px; }
  #commercial .chapter { padding: 94px 40px 26px; }
  .commercial-item img { height: clamp(300px, 40vh, 430px) !important; }

  /* Item 9/3 — Services fit one screen: smaller title, wider body column, tighter rows */
  .services { padding-bottom: 36px; }
  #services .chapter { padding: 76px 40px 14px; }
  #services .chapter-title { font-size: clamp(36px, 4vw, 62px); }
  #services .service-row { padding: 13px 0; grid-template-columns: 78px 0.72fr 1.85fr; gap: 40px; }
  #services .service-row-body { line-height: 1.45; max-width: 820px; }
  #services .service-row-title { font-size: clamp(26px, 2.6vw, 38px); }

  /* Item 2 — Partner sections (Aleksandar & Jelena) fit one screen */
  .principal { padding: 72px 40px 56px; }
  #principal-2 { padding-top: 52px; }
  .principal-img { max-height: 72vh; }
  .principal-bio { margin-top: 22px; }
  .principal-bio p { line-height: 1.5; margin-bottom: 13px; font-size: clamp(16px, 1.15vw, 20px); }
  .principal-stats { margin-top: 26px; padding-top: 22px; }
  #principal, #principal-2 { scroll-snap-align: start; scroll-snap-stop: normal; }

  /* Item 7 — Mood board: smaller heading so the intro + samples fit closer to one screen */
  #materials .chapter { padding: 84px 40px 20px; }
  #materials .chapter-title { font-size: clamp(40px, 4.4vw, 74px); }
  #materials .mat-stage { height: 720px; margin-top: 26px; }
  #materials .mat-chip { width: 182px; height: 236px; }
  #materials .mat-chip-swatch { height: 182px; }

  /* Item 1 — gentle page-snap on the static full-screen views
     (scroll-jacked sections process/materials/projects-gallery are left free) */
  #hero, #commercial, #manifesto, #principal-2, #principal, #services, #contact {
    scroll-snap-align: start; scroll-snap-stop: normal;
  }
}

/* Jelena's portrait — keep more of the original colour (less desaturation) */
#principal-2 .principal-img img { filter: saturate(0.9) contrast(1.02) brightness(0.94); }
#principal-2 .principal-img:hover img { filter: saturate(1) contrast(1.05) brightness(1); }
