/* ============================================
   AMERICAN COMMERCIAL GLASS — V2 DESIGN SYSTEM
   Next-gen, cinematic, dark-dominant brand experience
   ============================================ */

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

:root {
  --black: #050A12;
  --navy: #0D1E36;
  --navy-light: #132B4A;
  --navy-mid: #1B3A5C;
  --surface: #0D1B30;
  --surface-light: #132640;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --red: #E21B2C;
  --red-glow: rgba(226, 27, 44, 0.4);
  --red-soft: rgba(226, 27, 44, 0.12);

  --white: #FFFFFF;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-30: rgba(255,255,255,0.3);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);
  --white-04: rgba(255,255,255,0.04);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --section-pad: clamp(80px, 10vw, 160px);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--white-15) transparent;
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: var(--white-15); border-radius: 3px; }

body {
  font-family: var(--font);
  color: var(--white-70);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

::selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--white-30);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s;
}

.cursor-hover .cursor-dot {
  width: 60px;
  height: 60px;
  background: var(--red-glow);
}

.cursor-hover .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: transparent;
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: -0.04em;
  font-weight: 900;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.7;
  color: var(--white-50);
}

.text-lg { font-size: clamp(1.1rem, 1.4vw, 1.35rem); line-height: 1.7; }
.text-xl { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.5; color: var(--white-70); }

.text-massive {
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--white-04);
  user-select: none;
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(135deg, var(--white) 0%, var(--white-50) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--red); -webkit-text-fill-color: var(--red); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

.container-full {
  width: 100%;
  padding: 0 clamp(24px, 5vw, 60px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ---------- LABEL / TAG ---------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.label .line { width: 40px; height: 1px; background: var(--red); }

.tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--white-04);
  border: 1px solid var(--border);
  color: var(--white-50);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.5s var(--ease-out);
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--red-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-15);
}

.btn-ghost:hover {
  border-color: var(--white-50);
  background: var(--white-08);
}

.btn-lg { padding: 20px 48px; font-size: 1rem; }

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover svg { transform: translateX(4px); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  transition: gap 0.3s var(--ease-out);
}

.arrow-link:hover { gap: 14px; }
.arrow-link svg { width: 16px; height: 16px; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(5, 10, 18, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 60px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
}

.nav-logo img, .nav-logo .logo-img { height: 38px; width: auto; }
.footer-brand .logo-img { height: 32px; width: auto; }

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-logo .logo-main {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.1em;
}

.nav-logo .logo-sub {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-30);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-50);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-cta {
  padding: 10px 24px !important;
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover { box-shadow: 0 0 30px var(--red-glow) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
  }

  .nav-links.open { opacity: 1; pointer-events: all; }

  .nav-links a {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    padding: 12px 0;
    display: block;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s var(--ease-out);
  }

  .nav-links.open a { transform: translateY(0); opacity: 1; }
  .nav-links.open a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.open a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.open a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.open a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.open a:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.open a:nth-child(6) { transition-delay: 0.35s; }

  .nav-cta { margin-top: 20px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(60px, 8vh, 100px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg .hero-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual {
  background: radial-gradient(ellipse at 70% 30%, var(--navy-mid) 0%, var(--navy) 40%, var(--black) 80%);
  position: relative;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(230,57,70,0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(22,45,82,0.5) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,18,0.3) 0%, rgba(5,10,18,0.1) 40%, rgba(5,10,18,0.7) 80%, rgba(5,10,18,0.95) 100%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 { margin-bottom: 28px; overflow: hidden; }

.hero h1 .line {
  display: block;
  transform: translateY(110%);
  animation: revealLine 1s var(--ease-expo) forwards;
}

.hero h1 .line:nth-child(2) { animation-delay: 0.15s; }
.hero h1 .line:nth-child(3) { animation-delay: 0.3s; }

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

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--white-50);
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-side {
  position: absolute;
  right: clamp(24px, 5vw, 60px);
  bottom: clamp(60px, 8vh, 100px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-end;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero-stat { text-align: right; }

.hero-stat .number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat .stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero-side {
    position: relative;
    right: auto;
    bottom: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 40px;
    gap: 24px;
  }
  .hero-stat { text-align: left; }
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
}

.scroll-line {
  width: 1px;
  height: 50px;
  position: relative;
  overflow: hidden;
  background: var(--white-08);
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--red);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: var(--white-15);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-track .dot { color: var(--red); }

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

/* ---------- HORIZONTAL SCROLL PORTFOLIO ---------- */
.portfolio-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.portfolio-scroll::-webkit-scrollbar { display: none; }
.portfolio-scroll:active { cursor: grabbing; }

.project-card {
  flex: 0 0 auto;
  width: clamp(320px, 40vw, 500px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

.project-card-img img,
.project-card-img .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.project-card:hover .project-card-img img,
.project-card:hover .project-card-img .ph { transform: scale(1.08); }

.ph {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-15);
}

.ph-1 { background: linear-gradient(160deg, #0a1e36 0%, #1a3a5c 100%); }
.ph-2 { background: linear-gradient(160deg, #0d1f35 0%, #162d52 100%); }
.ph-3 { background: linear-gradient(160deg, #0f2140 0%, #1e4060 100%); }
.ph-4 { background: linear-gradient(160deg, #091828 0%, #142838 100%); }
.ph-5 { background: linear-gradient(160deg, #0b1a2e 0%, #1a3050 100%); }
.ph-6 { background: linear-gradient(160deg, #0d2238 0%, #1e3a58 100%); }

.project-card-img::after {
  content: attr(data-index);
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--white-30);
  background: rgba(5,10,18,0.6);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 100px;
}

.project-card-info { padding: 20px 0; }

.project-card-info .cat {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.project-card-info h4 { margin-bottom: 4px; transition: color 0.3s; }
.project-card:hover .project-card-info h4 { color: var(--red); }
.project-card-info .loc { font-size: 0.85rem; color: var(--white-30); }

.portfolio-progress {
  width: 200px;
  height: 2px;
  background: var(--white-08);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.portfolio-progress-bar {
  height: 100%;
  background: var(--red);
  width: 20%;
  transition: transform 0.1s linear;
}

/* ---------- SERVICE CARDS ---------- */
.service-card {
  padding: clamp(30px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover {
  background: var(--surface-light);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-number {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--white-15);
  margin-bottom: 24px;
}

.service-card h4 { margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; }

/* ---------- STATS ROW ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-block {
  padding: clamp(30px, 4vw, 50px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-block:last-child { border-right: none; }

.stat-block .num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-block .stat-text {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(1), .stat-block:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- MFG STRIP ---------- */
.mfg-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(30px, 4vw, 50px) 0;
  flex-wrap: wrap;
}

.mfg-logo {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-15);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

.mfg-logo:hover { color: var(--white-50); }

/* ---------- MFG DETAIL CARDS ---------- */
.mfg-card {
  padding: clamp(30px, 4vw, 50px);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.mfg-card:hover { border-color: var(--border-hover); background: var(--surface-light); }

.mfg-card-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.mfg-card p { font-size: 0.9rem; flex-grow: 1; }

.mfg-card .tags {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  padding: clamp(80px, 12vw, 160px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-soft) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 16px; position: relative; }
.cta-section p { max-width: 480px; margin: 0 auto 40px; position: relative; }
.cta-section .btn { position: relative; }

/* ---------- FOOTER ---------- */
.footer {
  padding: clamp(60px, 8vw, 100px) 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: var(--white-30); margin-top: 20px; max-width: 300px; }

.footer h5 {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 20px;
}

.footer-links a { display: block; padding: 6px 0; font-size: 0.85rem; color: var(--white-30); transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }

.footer-contact p { font-size: 0.85rem; color: var(--white-30); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--red); }

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-15);
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(140px, 18vh, 200px) 0 clamp(50px, 6vh, 80px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,0.04) 0%, transparent 60%);
  border-radius: 50%;
}

.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 16px; }
.page-hero p { max-width: 550px; font-size: 1.1rem; }

/* ---------- FORM ---------- */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-15); }

.form-group textarea { min-height: 160px; resize: vertical; }
.form-group select option { background: var(--navy); color: var(--white); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- CONTACT LAYOUT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 6vw, 100px);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
}

.contact-icon svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- PORTFOLIO FILTERS ---------- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter-btn:hover { border-color: var(--white-30); color: var(--white); }

.filter-btn.active {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

/* ---------- PROJECT GRID (portfolio page) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.project-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}

.project-grid-item img,
.project-grid-item .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.project-grid-item:hover img,
.project-grid-item:hover .ph { transform: scale(1.1); }

.project-grid-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 40px);
  background: linear-gradient(180deg, transparent 40%, rgba(5,10,18,0.9) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.project-grid-item:hover .project-grid-overlay { opacity: 1; }

.project-grid-overlay .cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.project-grid-overlay h4 { font-size: 1.2rem; margin-bottom: 2px; }
.project-grid-overlay .loc { font-size: 0.8rem; color: var(--white-50); }

.project-grid-item.featured { grid-column: span 2; grid-row: span 2; }

@media (max-width: 768px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid-item.featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
}
@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid-item.featured { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ---------- PROJECT DETAIL ---------- */
.project-detail-img {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--surface);
}

.project-detail-img img,
.project-detail-img .ph { width: 100%; height: 100%; object-fit: cover; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.meta-item {
  padding: 30px 0;
  border-right: 1px solid var(--border);
  padding-right: 30px;
}

.meta-item:last-child { border-right: none; }

.meta-item .meta-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-15);
  margin-bottom: 8px;
}

.meta-item .meta-value { font-size: 1rem; font-weight: 600; color: var(--white); }

@media (max-width: 768px) {
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .meta-item:nth-child(2) { border-right: none; }
  .meta-item:nth-child(1), .meta-item:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .meta-item:nth-child(3), .meta-item:nth-child(4) { padding-top: 20px; }
}

/* ---------- ABOUT ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.about-image img, .about-image .ph { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; } }

/* Value blocks */
.value-block {
  padding: clamp(40px, 5vw, 60px);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.value-block:hover {
  border-color: var(--border-hover);
  background: var(--surface-light);
  transform: translateY(-4px);
}

.value-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid var(--red-soft);
  border-radius: 8px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.value-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--red);
  padding-top: 4px;
}

.value-block h4 { margin-bottom: 12px; }
.value-block p { flex-grow: 1; }

/* ---------- INFO BOX ---------- */
.info-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
}

.info-box h4 { margin-bottom: 16px; }
.info-box p { font-size: 0.9rem; }

/* ---------- SERVICES DETAIL ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  min-height: 60vh;
}

.service-detail-content {
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.service-detail-visual img,
.service-detail-visual .ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail:nth-child(even) .service-detail-content { order: 2; }
.service-detail:nth-child(even) .service-detail-visual { order: 1; }

@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail-visual { aspect-ratio: 16/9; }
  .service-detail:nth-child(even) .service-detail-content { order: 1; }
  .service-detail:nth-child(even) .service-detail-visual { order: 2; }
}

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

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-fade] { opacity: 0; transition: opacity 1s var(--ease-out); }
[data-reveal-fade].revealed { opacity: 1; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ---------- GRAIN OVERLAY ---------- */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- VALUE ICON ---------- */
.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-soft);
  color: var(--red);
  margin-bottom: 16px;
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- DIVIDER ---------- */
.divider { width: 40px; height: 2px; background: var(--red); margin: 20px 0; }

/* ---------- MISC GRIDS ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
