/* ============================================================
   BENTRIC — Digital Product Studio
   Architectural minimalism · forest-green wood · cinematic 3D
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #0B0E0C;
  --bg-2:          #111512;
  --bg-3:          #161B17;
  --line:          rgba(185, 194, 187, 0.10);
  --line-strong:   rgba(185, 194, 187, 0.18);

  /* Accents — deep forest green */
  --green-1:       #3F5A46;
  --green-2:       #4D6B54;
  --green-3:       #607A64;
  --green-deep:    #1C2A20;
  --green-glow:    rgba(96, 122, 100, 0.35);

  /* Text */
  --ink:           #FFFFFF;
  --ink-2:         #B9C2BB;
  --ink-3:         #8B938D;

  /* Type */
  --font: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --slow:    1.1s;
  --med:     0.7s;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--green-2); color: #fff; }

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

/* Vignette to deepen the edges, architectural-render feel */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 35%, transparent 45%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--green-3); opacity: 0.8; }

h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.display {
  font-size: clamp(2.5rem, 5.6vw, 5.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.0;
}
.h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: padding var(--med) var(--ease), background var(--med) var(--ease), border-color var(--med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 14px;
  background: rgba(11, 14, 12, 0.6);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 0.95rem; color: var(--ink-2); transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-text { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-size: 0.96rem; font-weight: 500;
  letter-spacing: -0.01em; transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), background var(--med) var(--ease);
  will-change: transform;
}
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--green-2), var(--green-1));
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 30px -12px var(--green-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 20px 45px -14px var(--green-glow); }

.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.015); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green-3); background: rgba(96,122,100,0.07); }

.btn-text { font-size: 0.95rem; color: var(--ink-2); transition: color 0.3s var(--ease); }
.btn-text:hover { color: var(--ink); }

/* ============================================================
   HERO  (3D canvas lives behind, fixed)
   ============================================================ */
#scene-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0;
  display: block; pointer-events: none;
}
.scene-stage { position: relative; z-index: 2; }

.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 80px;
  background:
    radial-gradient(64% 58% at 72% 42%, rgba(63, 90, 70, 0.20), transparent 70%),
    radial-gradient(46% 50% at 16% 82%, rgba(28, 42, 32, 0.45), transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: min(720px, 92%); }

/* large, calm static logo where the 3D used to be */
.hero-mark {
  position: absolute; top: 50%; right: -3%; transform: translateY(-50%);
  width: min(46vw, 560px); z-index: 0; pointer-events: none; line-height: 0;
}
.hero-mark img { width: 100%; height: auto; opacity: 0.10; }
@media (max-width: 860px) {
  .hero-mark { right: -22%; top: 62%; width: 86vw; }
  .hero-mark img { opacity: 0.06; }
}
@media (max-width: 520px) {
  .nav { padding-inline: 16px; }
  .nav .btn-primary { padding: 10px 14px; font-size: 0.85rem; }
  .nav .btn-primary .arrow { display: none; }
  .brand-logo { height: 24px; }
  .display { font-size: clamp(1.9rem, 8.4vw, 2.7rem); }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding: 13px 20px; font-size: 0.92rem; }
}
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 30px; }
.hero .subline {
  display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 14px;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: var(--ink); font-weight: 500;
}
.hero .subline span { position: relative; }
.hero .subline span:not(:last-child)::after {
  content: ""; position: absolute; right: -15px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: var(--green-3); transform: translateY(-50%);
}
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 38px; left: var(--pad); display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue .track { width: 1px; height: 46px; background: linear-gradient(var(--green-3), transparent); position: relative; overflow: hidden; }
.scroll-cue .track::after { content:""; position:absolute; top:0; left:0; width:100%; height:40%; background: var(--green-3); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(-100%);} 60%,100%{transform:translateY(260%);} }

/* The first two screens are transparent so the 3D shows through */
.transparent-stage { background: transparent; }

/* ============================================================
   WOOD SCENE caption (overlaps the panel-separation animation)
   ============================================================ */
.woodscene {
  min-height: auto; display: flex; align-items: flex-end;
  padding: 8vh 0 12vh;
}
.woodscene .container { display: grid; gap: 18px; }
.woodscene .h2 { max-width: 16ch; }
.woodscene .lead { margin-top: 6px; }

/* Solid wrapper begins — covers the canvas for the content half of the page */
.solid {
  position: relative; z-index: 3;
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(31,42,32,0.45), transparent 60%),
    var(--bg);
}
.solid::before {
  content:""; position:absolute; top:-120px; left:0; right:0; height:120px;
  background: linear-gradient(transparent, var(--bg)); z-index:-1;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 96px); max-width: 60ch; }
.sec-head .h2 { max-width: 18ch; }
.section { padding-block: clamp(90px, 13vw, 180px); }

/* ============================================================
   WOOD SURFACE (procedural CSS grain, forest tones)
   ============================================================ */
.wood {
  position: relative; overflow: hidden;
  background-color: #1b271f;
  background-image:
    repeating-linear-gradient(91deg,
      rgba(0,0,0,0.0) 0px, rgba(0,0,0,0.22) 1px, rgba(0,0,0,0.0) 3px, rgba(0,0,0,0.0) 7px),
    repeating-linear-gradient(89.4deg,
      rgba(96,122,100,0.0) 0px, rgba(96,122,100,0.14) 2px, rgba(0,0,0,0.0) 5px, rgba(0,0,0,0.0) 13px),
    repeating-linear-gradient(90.6deg,
      rgba(0,0,0,0.12) 0px, rgba(0,0,0,0.0) 9px, rgba(0,0,0,0.0) 22px),
    linear-gradient(95deg, #16201a 0%, #243528 38%, #1a261e 62%, #2a3d2e 100%);
  background-blend-mode: overlay, soft-light, multiply, normal;
}
.wood::after { /* knot / depth highlight */
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(60% 120% at 18% 12%, rgba(110,140,114,0.18), transparent 55%),
    radial-gradient(50% 90% at 88% 88%, rgba(0,0,0,0.4), transparent 60%);
  pointer-events:none;
}

/* light sweep used on hover for cards */
.sweep::before {
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.10) 48%, rgba(255,255,255,0.0) 60%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease);
}
.sweep:hover::before { transform: translateX(120%); }

/* ============================================================
   SERVICES — floating wooden blocks (3D tilt)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.service {
  position: relative; border-radius: 20px; min-height: 360px; padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d; transition: transform 0.5s var(--ease), box-shadow 0.6s var(--ease);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,0,0,0.9);
  will-change: transform;
}
.service:hover { box-shadow: 0 50px 90px -50px rgba(0,0,0,1), 0 0 0 1px var(--line-strong); }
.service .glass {
  position: absolute; inset: 0; border-radius: 20px; pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 30%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.service .idx { position:absolute; top:26px; left:30px; font-size:12px; letter-spacing:0.2em; color: var(--ink-3); transform: translateZ(40px); }
.service .engrave {
  position:absolute; top:0; right:0; width:46%; height:60%;
  opacity:0.5; transform: translateZ(20px);
  background:
    radial-gradient(circle at 30% 30%, rgba(0,0,0,0.5), transparent 60%);
  -webkit-mask-image: var(--pattern); mask-image: var(--pattern);
}
.service h3 { font-size: 1.7rem; margin-bottom: 10px; transform: translateZ(60px); }
.service p { color: var(--ink-2); font-size: 0.98rem; max-width: 34ch; transform: translateZ(40px); }
.service .tag { margin-top: 18px; font-size: 12px; letter-spacing:0.14em; text-transform:uppercase; color: var(--green-3); transform: translateZ(40px); }

@media (max-width: 920px){ .services-grid { grid-template-columns: 1fr; } .service{ min-height: 300px; } }

/* ============================================================
   CASE STUDIES — museum pieces (wood + glass)
   ============================================================ */
.cases { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
.case {
  position: relative; border-radius: 22px; overflow: hidden; min-height: 380px;
  border: 1px solid var(--line); display:flex; flex-direction:column; justify-content:flex-end;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.case.tall { grid-row: span 2; min-height: 0; }
.case:hover { transform: translateY(-6px); box-shadow: 0 50px 100px -50px rgba(0,0,0,1); }
.case .frost {
  position: relative; z-index:3; margin: 18px; padding: 22px 24px; border-radius: 16px;
  background: rgba(11,14,12,0.42); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.06);
}
.case .cat { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-3); margin-bottom: 10px; }
.case h3 { font-size: 1.5rem; margin-bottom: 8px; }
.case p { font-size: 0.95rem; color: var(--ink-2); }
.case .meta { display:flex; gap:18px; margin-top:16px; font-size:0.85rem; color: var(--ink-3); }
.case .meta b { color: var(--ink); font-weight:600; display:block; font-size:1.1rem; }
.cases-row { display:grid; grid-template-columns: 1fr 1fr; gap:22px; grid-column: 1 / -1; }

@media (max-width: 920px){
  .cases { grid-template-columns: 1fr; }
  .case.tall { grid-row: auto; }
  .cases-row { grid-template-columns: 1fr; }
}

/* single featured case */
.case.feature { grid-column: 1 / -1; min-height: clamp(380px, 44vw, 470px); }
.case.feature .frost { max-width: 600px; }
.case-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  color: #fff; font-size: 0.98rem; border-bottom: 1px solid var(--green-3); padding-bottom: 3px;
  transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.case-link:hover { gap: 14px; border-color: var(--ink); }
.case-link .arrow { transition: transform 0.4s var(--ease); }

/* logo watermark — adds the mark wherever there's room, very subtly */
.logo-watermark {
  position: absolute; right: -1.5%; bottom: -9%; width: clamp(180px, 30%, 400px);
  z-index: 0; pointer-events: none; line-height: 0;
}
.logo-watermark img { width: 100%; height: auto; opacity: 0.07; }

/* ============================================================
   ABOUT — beam sculpture statement
   ============================================================ */
.about { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items:center; }
.about .beams { display:grid; gap:14px; }
.beam {
  position:relative; height: 78px; border-radius: 14px; border:1px solid var(--line);
  display:flex; align-items:center; padding: 0 26px; gap:20px; overflow:hidden;
  transition: transform 0.6s var(--ease);
}
.beam:hover { transform: translateX(10px); }
.beam .k { font-size:12px; letter-spacing:0.2em; color: var(--ink-3); width: 34px; z-index:3; }
.beam .v { color:#fff; font-size:1.2rem; font-weight:600; z-index:3; }
.beam .d { margin-left:auto; color:var(--ink-2); font-size:0.92rem; max-width:30ch; text-align:right; z-index:3; }
.about-copy h2 { margin-bottom: 26px; }
.about-copy p { margin-bottom: 18px; }
.stats { display:flex; gap: 40px; margin-top: 38px; }
.stat b { display:block; font-size: clamp(2rem,3.5vw,2.8rem); color:#fff; letter-spacing:-0.04em; }
.stat span { font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 920px){ .about{ grid-template-columns:1fr; } .beam .d{ display:none; } }

/* ============================================================
   TECH — architectural node diagram
   ============================================================ */
.tech-diagram {
  position: relative; border:1px solid var(--line); border-radius: 24px; padding: clamp(30px,5vw,64px);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(31,42,32,0.5), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}
.tech-diagram svg { width:100%; height:auto; display:block; }
.tech-diagram .link { stroke: rgba(96,122,100,0.35); stroke-width:1.5; fill:none; transition: stroke 0.4s var(--ease); }
.node-g { cursor: default; }
.node-g .node-box { fill: var(--bg-3); stroke: var(--line-strong); transition: stroke 0.4s var(--ease), filter 0.4s var(--ease); }
.node-g .node-label { fill: var(--ink-2); font-size: 13px; font-weight:500; transition: fill 0.4s var(--ease); }
.node-g .node-glow { opacity: 0; transition: opacity 0.5s var(--ease); }
.node-g:hover .node-box { stroke: var(--green-3); filter: drop-shadow(0 0 14px var(--green-glow)); }
.node-g:hover .node-label { fill: #fff; }
.node-g:hover .node-glow { opacity: 1; }
.tech-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:36px; }
.tech-tags span {
  font-size:0.85rem; color:var(--ink-2); padding:8px 16px; border-radius:100px;
  border:1px solid var(--line); background: rgba(255,255,255,0.02);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.price-card {
  position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 38px 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0) 42%), var(--bg-2);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: 0 44px 90px -54px rgba(0,0,0,1); border-color: var(--line-strong); }
.price-card.featured {
  border-color: rgba(96,122,100,0.45);
  background: linear-gradient(180deg, rgba(96,122,100,0.16), rgba(96,122,100,0.02) 46%), var(--bg-2);
  box-shadow: 0 30px 70px -44px var(--green-glow);
}
.price-badge {
  position: absolute; top: 26px; right: 28px; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: var(--green-1);
  padding: 6px 13px; border-radius: 100px; box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
}
.plan { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.amount { display: flex; align-items: baseline; gap: 6px; color: #fff; margin-bottom: 10px; }
.amount b { font-size: clamp(2.1rem, 3.6vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; }
.amount .from { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.amount .cur { font-size: 1.4rem; color: var(--ink-2); font-weight: 500; }
.plan-desc { color: var(--ink-2); font-size: 0.98rem; margin-bottom: 26px; }
.plan-list { list-style: none; display: grid; gap: 13px; margin-bottom: 32px; flex: 1; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 0.96rem; }
.plan-list li::before {
  content: "✓"; color: var(--green-3); font-weight: 700; font-size: 0.9rem;
  line-height: 1.5; flex: none;
}
.price-card .btn { justify-content: center; width: 100%; }

.addon-head { margin: 46px 0 18px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.addon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.addon {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; background: var(--bg-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.addon:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.addon .a-info h4 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.addon .a-info p { color: var(--ink-3); font-size: 0.9rem; max-width: 40ch; }
.addon .a-price { color: #fff; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.addon .a-price span { font-size: 0.85rem; color: var(--ink-3); font-weight: 400; }
.pricing-note { margin-top: 30px; color: var(--ink-3); font-size: 0.92rem; }

@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT — floating wooden desk
   ============================================================ */
.contact-wrap {
  position: relative; border-radius: 28px; overflow: hidden; padding: clamp(40px,6vw,80px);
  border:1px solid var(--line-strong);
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(96,122,100,0.18), transparent 60%),
    var(--bg-2);
}
.desk {
  position:absolute; left:50%; bottom:-6%; transform: translateX(-50%) rotateX(58deg);
  transform-origin: bottom center; width: 120%; height: 60%;
  border-radius: 22px 22px 0 0; opacity: 0.9;
  box-shadow: 0 -40px 120px -30px rgba(0,0,0,0.9);
  filter: brightness(0.9);
}
.contact-grid { position:relative; z-index:3; display:grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items:center; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy .email { display:inline-block; margin-top:24px; font-size:1.25rem; color:#fff; border-bottom:1px solid var(--green-3); padding-bottom:4px; }
.form { display:grid; gap:16px; }
.field { display:grid; gap:8px; }
.field label { font-size:12px; letter-spacing:0.16em; text-transform:uppercase; color:var(--ink-3); }
.field input, .field textarea, .field select {
  background: rgba(11,14,12,0.55); border:1px solid var(--line-strong); border-radius:12px;
  padding:15px 16px; color:#fff; font-family:inherit; font-size:1rem; transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
  backdrop-filter: blur(8px);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--green-3); background: rgba(11,14,12,0.75); }
.form .btn-primary { justify-content:center; margin-top:6px; }
.form-note { font-size:0.85rem; color:var(--ink-3); }
@media (max-width: 920px){ .contact-grid{ grid-template-columns:1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top:1px solid var(--line); padding-block: 60px 40px; position:relative; z-index:3; background: var(--bg); }
.footer-top { display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; margin-bottom: 50px; }
.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--ink-3); margin-top:16px; font-size:0.95rem; }
.footer-cols { display:flex; gap: clamp(40px,7vw,100px); flex-wrap:wrap; }
.footer-col h4 { font-size:12px; letter-spacing:0.2em; text-transform:uppercase; color:var(--ink-3); margin-bottom:18px; font-weight:600; }
.footer-col a { display:block; color:var(--ink-2); padding:6px 0; font-size:0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; padding-top:30px; border-top:1px solid var(--line); }
.footer-bottom .crafted { font-size:0.9rem; color: var(--ink-3); }
.footer-bottom .crafted b { color: var(--ink-2); font-weight:500; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  * { scroll-behavior:auto !important; }
}

/* ---------- Print ---------- */
@media print {
  :root { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #scene-canvas, .loader, .grain, .vignette, .nav { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .solid { box-shadow: none; }
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #28332a; border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--green-1); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 26px;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader .mark { width: 46px; height: auto; opacity: 0.9; animation: breathe 2.6s var(--ease) infinite; }
@keyframes breathe { 0%,100%{ opacity:0.4; transform:scale(0.96);} 50%{ opacity:1; transform:scale(1);} }
.loader .bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.loader .bar i { display:block; height:100%; width:0; background: linear-gradient(90deg, var(--green-1), var(--green-3)); transition: width 0.3s linear; }
.loader .pct { font-size:11px; letter-spacing:0.24em; color: var(--ink-3); }
