/* ============================================================
   MILLION DESIGNERS — Premium Stylesheet
   Warm Olive-Black · Red #C1121F · Warm White
   ============================================================ */

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

:root {
  --bg:          #161310;
  --bg-2:        #1F1B14;
  --bg-3:        #2A251C;
  --bg-4:        #352F23;
  --bg-5:        #42392A;
  --text:        #EDE8DF;
  --text-muted:  #9A9080;
  --text-dim:    #625C50;
  --accent:      #C1121F;
  --accent-dark: #8a0d15;
  --accent-glow: rgba(193, 18, 31, 0.14);
  --border:      #332E24;
  --border-light:#46402F;
  --radius:      2px;
  --font-sans:   'Montserrat', system-ui, sans-serif;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-mono:   'Space Mono', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --section-gap: 120px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (hover: none) { body { cursor: auto; } }

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; cursor: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
@media (hover: none) { a, button { cursor: auto; } }
ul { list-style: none; }

.container { width: 90%; max-width: 1240px; margin: 0 auto; }
.section   { padding: var(--section-gap) 0; position: relative; }
.mono      { font-family: var(--font-mono); }

/* ===================================================
   CUSTOM CURSOR
   =================================================== */
.cursor-outer, .cursor-inner {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* Full-screen AutoCAD crosshair — own divs, GPU-only movement */
.cursor-crosshair-h,
.cursor-crosshair-v {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  background: rgba(237,232,223,0.22);
  will-change: transform;
}
.cursor-crosshair-h {
  top: 0; left: 0; right: 0;
  height: 1px;
  width: 100vw;
}
.cursor-crosshair-v {
  top: 0; left: 0; bottom: 0;
  width: 1px;
  height: 100vh;
}
body.cursor-hover .cursor-crosshair-h,
body.cursor-hover .cursor-crosshair-v { background: rgba(193,18,31,0.55); }

/* Small square indicator at intersection */
.cursor-outer {
  width: 14px; height: 14px;
  border: 1px solid rgba(237,232,223,0.65);
  border-radius: 0;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  transform: translate(-50%, -50%);
}

/* Red dot center */
.cursor-inner {
  width: 3px; height: 3px;
  border-radius: 0;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

body.cursor-hover .cursor-outer {
  width: 18px; height: 18px;
  border-color: var(--accent);
}

/* Text inputs: I-beam */
body.cursor-text .cursor-outer {
  width: 2px; height: 22px;
  border-radius: 0;
  background: var(--accent);
  border: none;
}

/* ===================================================
   PRELOADER
   =================================================== */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.preloader.done { opacity: 0; visibility: hidden; }

.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}

.preloader-blueprint {
  width: 140px; height: 140px;
  opacity: 0;
  animation: fadeUp 0.5s ease 0.2s forwards;
}
.blueprint-svg .bp-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: drawLine 1.6s var(--ease-out) forwards;
}
.bp-frame    { animation-delay: 0.1s; }
.bp-corner   { animation-delay: 0.3s; }
.bp-cross-h  { animation-delay: 0.5s; }
.bp-cross-v  { animation-delay: 0.6s; }
.bp-building { animation-delay: 0.7s; }
.bp-dim      { animation-delay: 1.1s; }

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeUp   { to { opacity: 1; } }

.preloader-logo {
  width: 180px; opacity: 0;
  animation: fadeUp 0.5s ease 1.1s forwards;
}
.preloader-logo img { height: 56px; width: auto; object-fit: contain; margin: 0 auto; }

.preloader-progress {
  width: 200px; height: 1px;
  background: var(--border);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.3s forwards;
}
.preloader-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s linear; }

.preloader-label {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.22em;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeUp 0.4s ease 1.3s forwards;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.35s var(--ease-out);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.btn-primary::before {
  content: ''; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: rgba(255,255,255,0.08);
  transition: left 0.4s var(--ease-out);
}
.btn-primary:hover::before { left: 0; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-light); }
.btn-ghost:hover { border-color: rgba(237,232,223,0.5); transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ===================================================
   SECTION COMMON
   =================================================== */
.section-eyebrow {
  font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 300; line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 300; }

.title-underline {
  width: 48px; height: 2px;
  background: var(--accent);
  margin-bottom: 28px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) 0.3s;
}
.title-underline.centered { margin: 0 auto 28px; transform-origin: center; }
[data-reveal].in-view .title-underline,
.section-header.in-view .title-underline { transform: scaleX(1); }

.section-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 520px; line-height: 1.9; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header .section-desc { margin: 0 auto; }

.section-number {
  position: absolute; top: 48px; right: 5%;
  font-size: 0.6rem; letter-spacing: 0.2em;
  color: var(--text-dim); font-family: var(--font-mono);
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
[data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 24px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(19,16,8,0.96);
  backdrop-filter: blur(20px);
  padding: 13px 0;
  border-bottom-color: var(--border);
}
.nav-container {
  width: 90%; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 58px; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active-nav::after { width: 100%; }
.nav-links a.active-nav { color: var(--text); }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 10px 24px; border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 1001; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: all 0.35s var(--ease-out); }

/* ===================================================
   HERO — CSS-only architectural background
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* Architectural background */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 68% 38%, rgba(193,18,31,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 15% 75%, rgba(65,56,35,0.7) 0%, transparent 55%),
    linear-gradient(155deg, #231E15 0%, #181410 45%, #0F0D09 100%);
  animation: heroBgBreath 12s ease-in-out infinite;
}
@keyframes heroBgBreath {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.12); }
}

/* Blueprint dot grid — visible */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(237,232,223,0.28) 1.2px, transparent 1.2px);
  background-size: 48px 48px;
  background-position: 24px 24px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 24px 24px; }
  100% { background-position: 72px 72px; }
}

/* ---- Building window lights — warm faded yellow, very slow ---- */
rect.win,
rect.win.red,
rect.win.cool { fill: rgba(255, 205, 80, 0.18); }

.win-a { animation: winCycle 22s ease-in-out 0.0s  infinite; }
.win-b { animation: winCycle 30s ease-in-out 4.6s  infinite; }
.win-c { animation: winCycle 18s ease-in-out 8.3s  infinite; }
.win-d { animation: winCycle 36s ease-in-out 2.2s  infinite; }
.win-e { animation: winCycle 26s ease-in-out 12.0s infinite; }
.win-f { animation: winCycle 20s ease-in-out 6.8s  infinite; }
.win-g { animation: winCycle 32s ease-in-out 15.0s infinite; }
.win-h { animation: winCycle 16s ease-in-out 19.5s infinite; }

@keyframes winCycle {
  0%,  42% { opacity: 0.88; }
  52%, 83% { opacity: 0.04; }
  93%, 100% { opacity: 0.88; }
}

/* Ruled lines — visible */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(237,232,223,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,232,223,0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  animation: gridDrift 40s linear infinite reverse;
}

/* Scanning line that sweeps down */
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(193,18,31,0.5), transparent);
  z-index: 1;
  animation: scanLine 8s linear infinite;
  pointer-events: none;
}
@keyframes scanLine {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Architectural building silhouette SVG */
.hero-skyline {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 110%; max-width: 1600px;
  height: 48%;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.8s forwards, skylineDrift 60s linear infinite 3s;
}
@keyframes skylineDrift {
  0%   { transform: translateX(-50%) translateX(0); }
  50%  { transform: translateX(-50%) translateX(-30px); }
  100% { transform: translateX(-50%) translateX(0); }
}
.hero-skyline svg { width: 100%; height: 100%; }

/* Blueprint grid overlay lines — visible */
.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s ease 2.2s forwards;
}
.grid-h, .grid-v { position: absolute; }
.grid-h { left: 0; right: 0; height: 1px; background: rgba(237,232,223,0.12); }
.grid-v { top: 0; bottom: 0; width: 1px; background: rgba(237,232,223,0.12); }
.grid-h:nth-child(1) { top: 33.33%; }
.grid-h:nth-child(2) { top: 66.66%; }
.grid-h:nth-child(3) { top: 50%; background: rgba(193,18,31,0.22); }
.grid-v:nth-child(4) { left: 33.33%; }
.grid-v:nth-child(5) { left: 66.66%; }
.grid-v:nth-child(6) { left: 50%; background: rgba(193,18,31,0.22); }

/* Corner registration marks */
.corner-mark {
  position: absolute; width: 44px; height: 44px;
  color: rgba(237,232,223,0.5);
  opacity: 0; animation: fadeUp 0.5s var(--ease-out) forwards;
}
.corner-tl { top: 24px; left: 24px; animation-delay: 2.4s; }
.corner-tr { top: 24px; right: 24px; animation-delay: 2.5s; }
.corner-bl { bottom: 24px; left: 24px; animation-delay: 2.6s; }
.corner-br { bottom: 24px; right: 24px; animation-delay: 2.7s; }

/* Coordinate / technical labels */
.hero-coord {
  position: absolute; top: 32px;
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.18em;
  color: rgba(237,232,223,0.55);
  opacity: 0; animation: fadeUp 0.5s ease 2.8s forwards;
}
.hero-coord-tl { left: 80px; }
.hero-coord-tr { right: 80px; }

/* Hero content */
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 120px 20px 160px;
  max-width: 980px;
}

.hero-tag {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.22em;
  color: rgba(237,232,223,0.75);
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s ease 2.1s, transform 0.6s var(--ease-out) 2.1s;
}
.hero-tag.in { opacity: 1; transform: none; }
.tag-line { display: block; width: 40px; height: 1px; background: var(--accent); }

.hero-headline {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 9vw, 7.8rem);
  font-weight: 300; line-height: 1.0;
  margin-bottom: 32px;
  color: var(--text);
}
/* ── Hero headline line-wrap ── */
.line-wrap       { display: block; overflow: hidden; }
.line-wrap .line { display: block; }

/* Each character starts hidden, animates in via keyframe */
.hero-headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px) rotate(6deg);
  will-change: opacity, transform;
}

/* Normal words: slide up + straighten */
.hero-headline .char.in {
  animation: charRise 0.65s var(--ease-out) forwards;
}

/* Accent/italic words: blur + slide, red colour */
.line-wrap.accent-line { color: var(--accent); }
.line-wrap.accent-line .char { filter: blur(8px); }
.line-wrap.accent-line .char.in {
  animation: charBlurRise 0.7s var(--ease-out) forwards;
}
.hero-headline .char.out {
  animation: charFadeOut 0.35s ease forwards !important;
}

@keyframes charRise {
  0%   { opacity: 0; transform: translateY(80px) rotate(6deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes charBlurRise {
  0%   { opacity: 0; transform: translateY(50px); filter: blur(12px); }
  50%  { opacity: 0.8; filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes charFadeOut {
  0%   { opacity: 1; transform: translateY(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
}

.hero-sub {
  font-size: 0.97rem; color: rgba(237,232,223,0.45);
  max-width: 500px; margin: 0 auto 44px;
  line-height: 1.9; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease 2.8s, transform 0.7s var(--ease-out) 2.8s;
}
.hero-sub.in { opacity: 1; transform: none; }

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease 3.0s, transform 0.7s var(--ease-out) 3.0s;
}
.hero-actions.in { opacity: 1; transform: none; }

/* Dimension line — horizontal decorative element */
.hero-dim-line {
  position: absolute;
  bottom: 90px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  z-index: 2; opacity: 0;
  animation: fadeUp 0.5s ease 3.3s forwards;
}
.dim-tick { width: 1.5px; height: 22px; background: rgba(237,232,223,0.5); }
.dim-rule { width: 100px; height: 1px; background: rgba(237,232,223,0.3); }
.dim-value {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em;
  white-space: nowrap;
  color: rgba(237,232,223,0.62);
}

/* Vertical side text */
.hero-vert-text {
  position: absolute; bottom: 110px;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: rgba(237,232,223,0.45);
  writing-mode: vertical-rl; z-index: 2;
  opacity: 0; animation: fadeUp 0.6s ease 3.2s forwards;
}
.hero-vert-left  { left: 32px; }
.hero-vert-right { right: 32px; transform: rotate(180deg); }

/* Scroll indicator */
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: fadeUp 0.5s ease 3.4s forwards;
}
.scroll-track {
  width: 1.5px; height: 48px;
  background: rgba(237,232,223,0.1);
  position: relative; overflow: hidden; border-radius: 1px;
}
.scroll-thumb {
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--accent);
  animation: scrollDrop 2s ease-in-out infinite 3.5s;
}
@keyframes scrollDrop {
  0%   { top: -100%; }
  50%  { top: 100%; }
  100% { top: 100%; }
}
.scroll-text { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.24em; color: rgba(237,232,223,0.18); }

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

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-image { position: relative; }

.about-img-frame {
  position: relative; aspect-ratio: 3/4;
  overflow: hidden; background: var(--bg-3);
}
.about-img-frame img { transition: transform 1s var(--ease-out); }
.about-img-frame:hover img { transform: scale(1.05); }

.frame-corner { position: absolute; width: 20px; height: 20px; z-index: 2; }
.fc-tl { top: 10px; left: 10px;   border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.fc-tr { top: 10px; right: 10px;  border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.fc-bl { bottom: 10px; left: 10px;  border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.fc-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.about-badge {
  position: absolute; bottom: -32px; right: -32px;
  background: var(--accent); padding: 28px 32px;
  text-align: center; line-height: 1;
}
.badge-number { font-family: var(--font-serif); font-size: 3rem; font-weight: 600; color: #fff; line-height: 1; }
.badge-sup    { font-size: 1.4rem; vertical-align: super; color: rgba(255,255,255,0.65); }
.badge-label  { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 8px; }

.about-content { padding-bottom: 32px; }
.title-underline { width: 48px; height: 2px; background: var(--accent); margin-bottom: 32px; }

.about-lead { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 300; line-height: 1.75; color: rgba(237,232,223,0.82); margin-bottom: 20px; }
.about-body { color: var(--text-muted); font-size: 0.9rem; line-height: 1.95; margin-bottom: 40px; }

.about-values { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.value-item   { display: flex; align-items: center; gap: 14px; }
.value-index  { font-family: var(--font-mono); font-size: 0.6rem; color: var(--accent); min-width: 20px; }
.value-line   { flex: 0 0 24px; height: 1px; background: var(--border); }
.value-text   { font-size: 0.88rem; color: rgba(237,232,223,0.6); }

/* ===================================================
   SERVICES
   =================================================== */
.services { background: var(--bg); }

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg-2); padding: 56px 48px;
  position: relative; overflow: hidden; transition: background 0.4s;
}
.service-card:hover { background: var(--bg-3); }

.service-number { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; color: var(--text-dim); }

.service-icon { width: 56px; height: 56px; margin-bottom: 28px; color: var(--accent); transition: transform 0.4s var(--ease-out); }
.service-card:hover .service-icon { transform: scale(1.08); }
.service-icon svg { width: 100%; height: 100%; }

.service-icon .draw-path {
  stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
.service-card.in-view .draw-path,
.service-card:hover .draw-path { stroke-dashoffset: 0; }

.service-title { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 400; margin-bottom: 16px; }
.service-desc  { color: var(--text-muted); font-size: 0.87rem; line-height: 1.85; margin-bottom: 28px; }

.service-list { display: flex; flex-direction: column; gap: 9px; }
.service-list li {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); padding-left: 18px; position: relative; transition: color 0.3s;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 8px; height: 1px;
  background: var(--accent); transition: width 0.3s var(--ease-out);
}
.service-card:hover .service-list li { color: rgba(237,232,223,0.5); }
.service-card:hover .service-list li::before { width: 12px; }

.service-card-line {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.6s var(--ease-out);
}
.service-card:hover .service-card-line { width: 100%; }

/* ===================================================
   PORTFOLIO
   =================================================== */
.portfolio { background: var(--bg-3); }

.portfolio-filters { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.filter-btn {
  padding: 9px 22px; font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.3s var(--ease-out);
}
.filter-btn:hover, .filter-btn.active { color: #fff; border-color: var(--accent); background: var(--accent); }

.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px; gap: 3px;
}
.portfolio-item { overflow: hidden; position: relative; }
.pf-large { grid-column: span 2; }

.portfolio-img-wrap {
  position: relative; width: 100%; height: 100%;
  overflow: hidden; background: var(--bg-4);
}
.portfolio-img-wrap img { transition: transform 0.8s var(--ease-out); position: absolute; inset: 0; }
.portfolio-img-wrap:hover img { transform: scale(1.07); }

.pf-corner { position: absolute; width: 16px; height: 16px; z-index: 2; opacity: 0; transition: opacity 0.3s; }
.pf-c-tl { top: 10px; left: 10px;   border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.pf-c-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.portfolio-img-wrap:hover .pf-corner { opacity: 1; }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,10,5,0.97) 0%, rgba(13,10,5,0.35) 60%, transparent 100%);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 28px;
}
.portfolio-img-wrap:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat  { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.portfolio-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; margin-bottom: 5px; color: var(--text); }
.portfolio-detail { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(237,232,223,0.38); }

.pf-arrow {
  width: 40px; height: 40px;
  border: 1px solid rgba(237,232,223,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); flex-shrink: 0; align-self: flex-end;
  transition: background 0.3s, border-color 0.3s;
}
.pf-arrow svg { width: 16px; height: 16px; }
.portfolio-img-wrap:hover .pf-arrow { background: var(--accent); border-color: var(--accent); }

/* ===================================================
   STATS
   =================================================== */
.stats {
  background: var(--bg-3);
  padding: 100px 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Red top accent bar */
.stats::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
}

.stats-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(237,232,223,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,232,223,0.03) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}

.stats .section-header { margin-bottom: 56px; }
.stats .section-eyebrow { color: var(--accent); }
.stats .section-title   { color: var(--text); }
.stats .section-title em { color: var(--accent); }
.stats .title-underline { background: var(--accent); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item {
  padding: 44px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
  transition: background 0.4s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-4); }

/* Corner accent on hover */
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}
.stat-item:hover::before { width: 100%; }

.stat-top  { display: flex; align-items: flex-start; line-height: 1; }
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-plus   { font-size: 1.6rem; color: var(--accent); margin-top: 10px; opacity: 0.6; }
.stat-divider { width: 32px; height: 1px; background: var(--border-light); }
.stat-label  {
  font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonials { background: var(--bg-2); }

.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track  { display: flex; transition: transform 0.7s var(--ease-out); }

.testimonial-card { min-width: 100%; padding: 0 80px; text-align: center; }
.testimonial-mark { color: var(--accent); width: 48px; margin: 0 auto 24px; }

.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 300; font-style: italic;
  line-height: 1.8; color: rgba(237,232,223,0.78);
  max-width: 780px; margin: 0 auto 44px;
}
.testimonial-author { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }
.author-avatar { width: 46px; height: 46px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; color: #fff; }
.author-name   { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 2px; }
.author-role   { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; color: var(--text-muted); }
.testimonial-rating { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 52px; }
.slider-btn {
  width: 44px; height: 44px; border: 1px solid var(--border-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s;
}
.slider-btn svg  { width: 16px; height: 16px; }
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--border-light); transition: all 0.3s; border: none; }
.slider-dot.active { background: var(--accent); transform: scale(1.4); }

/* ===================================================
   CONTACT
   =================================================== */
.contact { background: var(--bg); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; align-items: start; }
.contact-info { padding-top: 4px; }

.contact-item {
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 36px; padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-icon-wrap { width: 36px; height: 36px; min-width: 36px; color: var(--accent); }
.contact-icon-wrap svg { width: 100%; height: 100%; }
.contact-label { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.contact-value { display: block; font-size: 0.92rem; color: rgba(237,232,223,0.72); }

.contact-socials { display: flex; gap: 10px; margin-top: 44px; }
.social-link {
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.3s;
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 28px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.form-group   { display: flex; flex-direction: column; gap: 8px; position: relative; }

.form-group label {
  font-size: 0.63rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); display: flex; gap: 8px; align-items: center; transition: color 0.3s;
}
.form-group label .mono { color: var(--accent); font-size: 0.52rem; }

.form-group input,
.form-group select,
.form-group textarea {
  background: transparent; border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text); font-family: var(--font-sans); font-size: 0.9rem; font-weight: 300;
  padding: 12px 0; outline: none; transition: border-color 0.3s;
  -webkit-appearance: none; border-radius: 0;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-bottom-color: var(--accent); }
.form-group:focus-within label { color: var(--text-muted); }

.input-line {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease-out); pointer-events: none;
}
.form-group:focus-within .input-line { width: 100%; }

.form-group select option { background: var(--bg-3); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.7; }

.form-note         { font-size: 0.78rem; text-align: center; min-height: 18px; letter-spacing: 0.06em; }
.form-note.success { color: #6dbf73; }
.form-note.error   { color: var(--accent); }

.form-send-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.form-send-options {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.btn-send {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid; border-radius: var(--radius);
  cursor: none; transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-telegram {
  background: rgba(41, 182, 246, 0.1); border-color: rgba(41, 182, 246, 0.35); color: #29b6f6;
}
.btn-telegram:hover { background: rgba(41, 182, 246, 0.2); border-color: #29b6f6; }
.btn-whatsapp {
  background: rgba(37, 211, 102, 0.1); border-color: rgba(37, 211, 102, 0.35); color: #25d366;
}
.btn-whatsapp:hover { background: rgba(37, 211, 102, 0.2); border-color: #25d366; }
.btn-email {
  background: rgba(193, 18, 31, 0.1); border-color: rgba(193, 18, 31, 0.35); color: var(--accent);
}
.btn-email:hover { background: rgba(193, 18, 31, 0.2); border-color: var(--accent); }

@media (max-width: 520px) {
  .form-send-options { grid-template-columns: 1fr; }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: #0F0D09;
}

/* Blurred gradient background — extends beyond bounds to hide blur edges */
.footer::before {
  content: '';
  position: absolute; inset: -60px;
  background:
    radial-gradient(ellipse 70% 55% at 68% 38%, rgba(193,18,31,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 15% 75%, rgba(65,56,35,0.85) 0%, transparent 55%),
    linear-gradient(155deg, #231E15 0%, #181410 45%, #0F0D09 100%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Dark overlay — kills background bleed, protects text legibility */
.footer::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(8, 6, 4, 0.72);
  pointer-events: none;
  z-index: 0;
}

.footer-top-line {
  position: relative; z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 80px;
}

.footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 60px; padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer-logo    { height: 44px; width: auto; object-fit: contain; margin-bottom: 18px; }
.footer-tagline { font-family: var(--font-serif); font-size: 1rem; font-style: italic; font-weight: 600; color: rgba(237,232,223,0.85); margin-bottom: 14px; }
.footer-desc    { font-size: 0.83rem; font-weight: 500; color: rgba(237,232,223,0.75); line-height: 1.85; }

.footer-links h4,
.footer-contact-col h4 { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); margin-bottom: 22px; }

.footer-links ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a {
  font-size: 0.83rem; font-weight: 500; color: rgba(237,232,223,0.75); transition: all 0.3s;
  position: relative; padding-left: 0;
}
.footer-links a::before {
  content: ''; position: absolute;
  left: -14px; top: 50%; transform: translateY(-50%);
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--accent); padding-left: 14px; }
.footer-links a:hover::before { width: 10px; }

.footer-contact-col p { font-size: 0.83rem; font-weight: 500; color: rgba(237,232,223,0.75); margin-bottom: 8px; line-height: 1.6; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 48px; flex-wrap: wrap; gap: 6px; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; color: rgba(237,232,223,0.7); }
.footer-coords   { opacity: 0.6; }
.footer-dev      { opacity: 0.85; }
.footer-dev-link { color: rgba(237,232,223,0.9); text-decoration: none; border-bottom: 1px solid rgba(193,18,31,0.7); padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.footer-dev-link:hover { color: var(--accent); border-color: var(--accent); }

.magnetic { display: inline-flex; }

/* ===================================================
   RESPONSIVE
   =================================================== */
/* ============================================================
   RESPONSIVE — TABLET LARGE (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  :root { --section-gap: 96px; }
  .container       { padding: 0 32px; }
  .about-grid      { gap: 48px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .hero-headline   { font-size: clamp(3.2rem, 7vw, 6rem); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .container       { padding: 0 24px; }
  .portfolio-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pf-large        { grid-column: span 1; }
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.12); }
  .services-grid   { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-grid      { grid-template-columns: 1fr; gap: 40px; }
  .about-badge     { bottom: -16px; right: 16px; }
  .about-img-frame { aspect-ratio: 16/9; }
  .hero-headline   { font-size: clamp(2.8rem, 8vw, 5rem); }
  .section-title   { font-size: clamp(2rem, 5vw, 3rem); }
  .portfolio-filters { flex-wrap: wrap; gap: 8px; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}

/* ============================================================
   RESPONSIVE — TABLET ANIMATIONS (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero-bg         { animation: none; }
  .hero-bg::before { animation: none; }
  .hero-bg::after  { animation: none; }
  .hero-scan-line  { display: none; }
  .hero-skyline    { animation: fadeUp 1.2s ease 1.8s forwards; width: 100%; max-width: 100%; }
  .arch-grid       { display: none; }
  html, body       { overflow-x: hidden; max-width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  body  { cursor: auto; overflow-x: hidden; }
  html  { overflow-x: hidden; }
  .cursor-outer, .cursor-inner { display: none !important; opacity: 0 !important; }
  .cursor-crosshair-h, .cursor-crosshair-v { display: none !important; }
  body::before, body::after    { display: none !important; }
  .arch-bracket, .arch-measure { display: none; }

  /* Fix hero overflow */
  .hero            { overflow: hidden; max-width: 100vw; }
  .hero-skyline    { width: 100%; max-width: 100%; animation: fadeUp 1.2s ease 1.8s forwards; }
  .hero-bg         { animation: none; max-width: 100%; }
  .hero-bg::before { animation: none; }
  .hero-bg::after  { animation: none; }
  .hero-scan-line  { display: none; }
  .hero-grid       { display: none; }
  .corner-mark     { display: none; }
  .arch-grid       { display: none; }

  /* Prevent ANY section from overflowing — only clip width, never overflow-x on sections */
  section, .container, .nav, .footer { max-width: 100vw; }

  /* Hero text containment */
  .hero-content    { width: 100%; max-width: 100%; padding: 0 20px; box-sizing: border-box; }
  .hero-headline   { word-break: break-word; }

  /* Nav */
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(19,16,8,0.98);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 32px; z-index: 999;
  }
  .nav-links.open   { display: flex; }
  .nav-links a      { font-size: 1.1rem; }
  .nav-sister       { font-size: 0.85rem !important; padding: 8px 18px !important; }
  .nav-toggle       { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Hero */
  .hero-headline   { font-size: clamp(2.4rem, 10vw, 4rem); line-height: 1.1; }
  .hero-sub        { font-size: 0.85rem; }
  .hero-vert-text, .hero-coord, .hero-dim-line { display: none; }
  .hero-actions    { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
  .hero-actions .btn { text-align: center; }
  .hero-scroll-hint { bottom: 16px; }

  /* Sections */
  .section-number  { display: none; }
  .section-title   { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section-header  { margin-bottom: 40px; }
  .container       { padding: 0 20px; }

  /* About */
  .about-grid      { grid-template-columns: 1fr; gap: 32px; }
  .about-img-frame { aspect-ratio: 4/3; }
  .about-badge     { position: static; margin-top: 16px; display: inline-flex; gap: 10px; align-items: center; padding: 16px 20px; }
  .badge-number    { font-size: 2rem; }
  .about-stats     { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid   { grid-template-columns: 1fr; gap: 16px; }
  .service-card    { padding: 28px 24px; }

  /* Portfolio */
  .portfolio-grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portfolio-item  { height: 220px; }
  .portfolio-filters { gap: 8px; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .filter-btn      { white-space: nowrap; flex-shrink: 0; padding: 8px 16px; font-size: 0.75rem; }

  /* Stats */
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .stat-number     { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Testimonials */
  .testimonial-card { padding: 0 16px; }
  .testimonial-text { font-size: 0.95rem; line-height: 1.7; }
  .author-avatar   { width: 38px; height: 38px; font-size: 0.7rem; }

  /* Contact form */
  .form-row        { grid-template-columns: 1fr; gap: 0; }
  .form-send-options { grid-template-columns: 1fr; gap: 10px; }
  .contact-info    { gap: 24px; }
  .contact-item    { gap: 14px; }

  /* Footer */
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom   { flex-direction: column; gap: 8px; text-align: center; padding-bottom: 24px; }
  .footer-tagline  { font-size: 1rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE SMALL (≤520px)
   ============================================================ */
@media (max-width: 520px) {
  :root { --section-gap: 56px; }
  .container       { padding: 0 16px; }

  /* Hero */
  .hero-headline   { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-eyebrow    { font-size: 0.7rem; letter-spacing: 0.12em; }

  /* Portfolio — single column on small phones */
  .portfolio-grid  { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-item  { height: 260px; }
  .portfolio-filters { gap: 6px; }
  .filter-btn      { padding: 7px 13px; font-size: 0.72rem; }

  /* Stats */
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-child(even) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.12); }
  .stat-number     { font-size: clamp(2rem, 9vw, 3rem); }

  /* Services */
  .service-card    { padding: 24px 18px; }
  .service-icon    { width: 40px; height: 40px; }

  /* Testimonials */
  .testimonial-card { padding: 0 8px; }
  .corner-mark      { display: none; }

  /* Contact */
  .contact-icon-wrap { width: 40px; height: 40px; }

  /* Footer */
  .footer-grid     { gap: 28px; }
  .footer-coords   { display: none; }
  .sister-link     { font-size: 0.9rem; }

  /* Section headings */
  .section-title   { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .section-eyebrow { font-size: 0.68rem; }
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 8, 6, 0.96);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  padding: 20px;
}
.lightbox.open {
  opacity: 1; visibility: visible;
}
.lightbox-inner {
  position: relative;
  display: flex; gap: 0;
  max-width: 1100px; width: 100%;
  max-height: 90vh;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-out);
}
.lightbox.open .lightbox-inner {
  transform: scale(1);
}
.lightbox-img-wrap {
  flex: 1 1 65%;
  overflow: hidden;
  position: relative;
}
.lightbox-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-details {
  flex: 0 0 280px;
  padding: 48px 36px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--border);
}
.lightbox-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}
.lightbox-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}
.lightbox-detail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.lightbox-line {
  width: 36px; height: 1px;
  background: var(--accent);
  margin: 24px 0;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  z-index: 2;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close svg { width: 16px; height: 16px; }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(237,232,223,0.15);
  background: rgba(22,19,16,0.7);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 2;
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); background: rgba(193,18,31,0.1); }
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }

/* Add cursor pointer to portfolio items */
.portfolio-img-wrap { cursor: pointer; position: relative; }

/* ============================================================
   CERAMICS PROMO BANNER
   ============================================================ */
.ceramics-promo {
  position: relative;
  padding: 48px 0 0;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ceramics-promo-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 50%, rgba(193,18,31,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(65,56,35,0.5) 0%, transparent 60%);
  pointer-events: none;
}
.ceramics-promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.ceramics-promo-text {
  flex: 1;
  max-width: 640px;
}
.ceramics-promo-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(193,18,31,0.35);
  padding: 4px 12px;
  margin-bottom: 20px;
}
.ceramics-promo-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}
.ceramics-promo-heading em {
  font-style: italic;
  color: var(--accent);
}
.ceramics-promo-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 24px;
}
.ceramics-promo-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, gap 0.2s;
  white-space: nowrap;
}
.ceramics-promo-cta:hover {
  background: var(--accent-dark);
  gap: 18px;
}

/* Ceramic tile showcase row */
.ceramics-tiles-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 32px;
  max-width: 420px;
  margin-left: 0;
  margin-right: 0;
}
.ceramic-tile-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  position: relative;
}
.ceramic-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-height: 90px;
}
.ceramic-tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.ceramic-tile-card:hover .ceramic-tile-img img { transform: scale(1.05); }
.ceramic-tile-info {
  padding: 10px 12px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.2s;
}
.ceramic-tile-card:hover .ceramic-tile-info { background: var(--bg-4); }
.ceramic-tile-name {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
}
.ceramic-tile-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .ceramics-promo         { padding: 36px 0 0; }
  .ceramics-promo-inner   { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ceramics-promo-cta     { width: 100%; justify-content: center; padding: 12px 24px; }
  .ceramics-promo-heading { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .ceramics-promo-desc    { font-size: 0.82rem; }
  .ceramics-tiles-row     { grid-template-columns: repeat(3, 1fr); max-width: 100%; margin-top: 20px; }
  .ceramic-tile-img       { max-height: 80px; }
}

/* Sister brand nav link */
.nav-sister {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted) !important;
  border: 1px solid var(--border);
  padding: 4px 10px !important;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s !important;
}
.nav-sister:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* Sister brand footer block */
.sister-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.sister-link:hover { color: var(--accent); }
.sister-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Show More button */
.pf-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.pf-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pf-show-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(193,18,31,0.06);
}
.pf-show-more-btn svg { transition: transform 0.3s; }
.pf-show-more-btn:hover svg { transform: translateY(3px); }

/* Video play badge on portfolio cards */
.pf-video-badge {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
}

/* Lightbox video play overlay */
.lb-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(8,6,4,0.45);
  transition: background 0.2s;
}
#lightboxVideoWrap:hover .lb-play-overlay { background: rgba(8,6,4,0.6); }
.lb-play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: transform 0.2s;
}
#lightboxVideoWrap:hover .lb-play-btn { transform: scale(1.1); }
.lb-play-label {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .lightbox-inner { flex-direction: column; max-height: 95vh; overflow-y: auto; }
  .lightbox-img-wrap { flex: 0 0 56vw; min-height: 260px; }
  .lightbox-details { flex: none; padding: 28px 24px; border-left: none; border-top: 1px solid var(--border); }
  .lightbox-nav { display: none; }
}

/* ============================================================
   ARCHITECTURAL BODY ANIMATIONS
   ============================================================ */

/* Floating blueprint grid lines */
.arch-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.arch-grid::before,
.arch-grid::after {
  content: '';
  position: absolute;
  inset: 0;
}
.arch-grid::before {
  background-image:
    linear-gradient(rgba(193,18,31,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193,18,31,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: archGridDrift 60s linear infinite;
}
.arch-grid::after {
  background-image:
    linear-gradient(rgba(237,232,223,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,232,223,0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: archGridDrift 40s linear infinite reverse;
}
@keyframes archGridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Floating corner brackets that drift across sections */
.arch-bracket {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  animation: bracketFloat 18s ease-in-out infinite;
}
.arch-bracket::before,
.arch-bracket::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.arch-bracket.br-tl::before { top: 0; left: 0; width: 100%; height: 1px; }
.arch-bracket.br-tl::after  { top: 0; left: 0; width: 1px;  height: 100%; }
.arch-bracket.br-br::before { bottom: 0; right: 0; width: 100%; height: 1px; }
.arch-bracket.br-br::after  { bottom: 0; right: 0; width: 1px;  height: 100%; }

.arch-bracket:nth-child(1) { top: 18%; left: 8%;  animation-delay: 0s;   animation-duration: 20s; }
.arch-bracket:nth-child(2) { top: 42%; right: 6%; animation-delay: 5s;   animation-duration: 16s; }
.arch-bracket:nth-child(3) { top: 68%; left: 12%; animation-delay: 10s;  animation-duration: 22s; }
.arch-bracket:nth-child(4) { top: 80%; right: 9%; animation-delay: 3s;   animation-duration: 18s; }

@keyframes bracketFloat {
  0%,100% { opacity: 0;    transform: translateY(0)   scale(1);   }
  20%      { opacity: 0.35; }
  50%      { opacity: 0.18; transform: translateY(-24px) scale(1.15); }
  80%      { opacity: 0.35; }
}

/* Thin horizontal measuring lines that sweep through sections */
.arch-measure {
  position: fixed;
  left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(193,18,31,0.12) 20%,
    rgba(193,18,31,0.22) 50%,
    rgba(193,18,31,0.12) 80%,
    transparent 100%);
  animation: measureSweep 14s ease-in-out infinite;
  opacity: 0;
}
.arch-measure:nth-child(1) { animation-delay: 0s;  animation-duration: 14s; }
.arch-measure:nth-child(2) { animation-delay: 7s;  animation-duration: 18s; }

@keyframes measureSweep {
  0%   { top: 100vh; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: -2px;  opacity: 0; }
}

/* Section reveal: thin red accent line draws in from left */
.section-draw-line {
  display: block;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
  margin-bottom: 32px;
}
.section-draw-line.drawn { transform: scaleX(1); }

/* Contact value link style */
a.contact-value {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }

/* ============================================================
   ARCHITECTURAL UI/UX ANIMATIONS & INTERACTIONS
   ============================================================ */

/* Custom Cursor Coordinates (Desktop) */
.cursor-coords {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  font-size: 9px;
  color: rgba(237, 232, 223, 0.45);
  letter-spacing: 0.05em;
  will-change: transform;
  transform: translate(20px, 12px);
  white-space: nowrap;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.cursor-hover .cursor-coords {
  color: var(--accent);
}

/* Pinned Blueprint HUD Status Bar */
.blueprint-hud {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: rgba(26, 26, 25, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(237, 232, 223, 0.08);
  color: rgba(237, 232, 223, 0.5);
  font-size: 10px;
  letter-spacing: 0.06em;
  z-index: 999;
  pointer-events: none;
  font-family: var(--font-mono);
  user-select: none;
}
.blueprint-hud .hud-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.blueprint-hud .hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(237, 232, 223, 0.35);
}
.blueprint-hud .pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39FF14; /* Matrix Green pulse */
  box-shadow: 0 0 8px #39FF14;
  display: inline-block;
  animation: hudPulse 1.8s infinite ease-in-out;
}
.blueprint-hud .hud-elevation {
  font-weight: 700;
  color: var(--accent);
}

@keyframes hudPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* Card Blueprint Dimension lines on hover */
.portfolio-img-wrap::before,
.portfolio-img-wrap::after {
  content: '';
  position: absolute;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
  z-index: 10;
  pointer-events: none;
}
/* Horizontal dimension line at top */
.portfolio-img-wrap::before {
  top: -10px;
  left: 5%;
  width: 90%;
  height: 1px;
  transform: scaleX(0.4);
}
/* Vertical dimension line at right */
.portfolio-img-wrap::after {
  right: -10px;
  top: 5%;
  height: 90%;
  width: 1px;
  transform: scaleY(0.4);
}
.portfolio-img-wrap:hover::before {
  opacity: 0.6;
  transform: scaleX(1);
}
.portfolio-img-wrap:hover::after {
  opacity: 0.6;
  transform: scaleY(1);
}

/* Dimension text labels on hover */
.portfolio-item {
  position: relative;
}
.portfolio-item::before,
.portfolio-item::after {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 11;
  background: var(--dark); /* covers outline background */
  padding: 0 4px;
}
/* Width text at the top middle */
.portfolio-item::before {
  content: 'W: 420.00mm';
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}
/* Height text at the right middle */
.portfolio-item::after {
  content: 'H: 300.00mm';
  right: -34px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}
/* Large cards dimensions override */
.portfolio-item.pf-large::before {
  content: 'W: 840.00mm';
}
.portfolio-item.pf-large::after {
  content: 'H: 300.00mm';
}
.portfolio-item:hover::before,
.portfolio-item:hover::after {
  opacity: 0.85;
}

/* Service card blueprint dimension lines on hover */
.service-card {
  position: relative;
}
.service-card::before,
.service-card::after {
  content: '';
  position: absolute;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.35s, transform 0.4s var(--ease-out);
  z-index: 10;
  pointer-events: none;
}
.service-card::before {
  top: -8px;
  left: 10%;
  width: 80%;
  height: 1px;
  transform: scaleX(0.3);
}
.service-card::after {
  right: -8px;
  top: 10%;
  height: 80%;
  width: 1px;
  transform: scaleY(0.3);
}
.service-card:hover::before {
  opacity: 0.55;
  transform: scaleX(1);
}
.service-card:hover::after {
  opacity: 0.55;
  transform: scaleY(1);
}

/* Hide HUD and dimension overlays on mobile devices */
@media (max-width: 768px) {
  .blueprint-hud { display: none !important; }
  .cursor-coords { display: none !important; }
  .portfolio-item::before,
  .portfolio-item::after,
  .portfolio-img-wrap::before,
  .portfolio-img-wrap::after,
  .service-card::before,
  .service-card::after {
    display: none !important;
  }
}
