/* =============================================
   i3D.hr — Complete Stylesheet
   Theme: Dark Forge / Industrial Precision
   ============================================= */

/* ===== LOCAL FONTS ===== */

/* Barlow — italic 300 */
@font-face {
  font-family: 'Barlow'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('fonts/barlow-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: italic; font-weight: 300; font-display: swap;
  src: url('fonts/barlow-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow — normal 300 */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/barlow-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/barlow-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow — normal 400 */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/barlow-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/barlow-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow — normal 500 */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/barlow-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/barlow-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow — normal 600 */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — 600 */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow-condensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow-condensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — 700 */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/barlow-condensed-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/barlow-condensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — 800 */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/barlow-condensed-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/barlow-condensed-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — 900 */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/barlow-condensed-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 900; font-display: swap;
  src: url('fonts/barlow-condensed-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — 400 */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — 500 */
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== TOKENS ===== */
:root {
  --bg:            #080808;
  --bg-1:          #0d0d10;
  --bg-2:          #15151a;
  --bg-3:          #1e1e25;
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,140,0,0.35);
  --accent:        #ff8c00;
  --accent-hi:     #ffad33;
  --accent-dim:    rgba(255,140,0,0.10);
  --accent-glow:   rgba(255,140,0,0.06);
  --text:          #f0ede8;
  --text-2:        #9a9aa4;
  --text-3:        #4e4e58;
  --font-d:        'Barlow Condensed', sans-serif;
  --font-b:        'Barlow', sans-serif;
  --font-m:        'JetBrains Mono', monospace;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --t:             0.25s;
  --r:             3px;
  --nav-height:    136px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
}

.label {
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-header { margin-bottom: 72px; }
.section-header .label { margin-bottom: 18px; }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1;   transform: scaleY(1);   }
  50%       { opacity: 0.4; transform: scaleY(0.4); }
}
@keyframes marquee {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-d);
  line-height: 1;
}
.nav-logo-mark {
  display: block;
  height: 128px;
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-links a {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 9px 22px !important;
  border-radius: var(--r) !important;
  font-weight: 700 !important;
  transition: background var(--t) !important;
}
.nav-cta:hover { background: var(--accent-hi) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--t);
}

/* Mobile nav open */
body.nav-open nav { background: var(--bg); border-bottom-color: var(--border); }
body.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 28px 28px 32px;
  gap: 28px;
}
body.nav-open .nav-links a { font-size: 1rem; }
body.nav-open .nav-cta { width: 100%; text-align: center; display: block; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Dot grid bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow */
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(ellipse 70% 70% at 70% 50%,
    rgba(255,140,0,0.07) 0%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 100px 48px;
  position: relative;
  z-index: 1;
}

.hero-content .label {
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.15s;
}

.hero-heading {
  font-family: var(--font-d);
  font-size: clamp(68px, 7.5vw, 148px);
  font-weight: 900;
  line-height: 0.91;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.hero-heading .line       { display: block; overflow: hidden; }
.hero-heading .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: slideUp 0.75s var(--ease-out) forwards;
}
.hero-heading .line:nth-child(1) .line-inner { animation-delay: 0.25s; }
.hero-heading .line:nth-child(2) .line-inner { animation-delay: 0.40s; }
.hero-heading .line:nth-child(3) .line-inner { animation-delay: 0.55s; }
.hero-heading .hl { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.75s;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 0.95s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #000;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: var(--r);
  transition: background var(--t), transform var(--t);
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--t);
}
.btn-ghost:hover { color: var(--text-2); }
.btn-ghost::after { content: '↓'; font-size: 1rem; color: var(--accent); }

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px 80px 24px;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-2);
  opacity: 0;
  animation: fadeIn 1.1s var(--ease) forwards 0.5s;
}
/* no frame border — hero image has natural black bg that blends into page */
.hero-img-frame img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  filter: brightness(0.95);
  transition: transform 0.9s var(--ease-out);
}
.hero-img-frame:hover img { transform: scale(1.04); }

/* floating badge */
.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--r);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 1.1s;
}
.hero-badge-label {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.hero-badge-value {
  font-family: var(--font-d);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-badge-2 {
  position: absolute;
  top: 24px;
  right: -18px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-right: 2px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--r);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards 1.25s;
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease) forwards 1.4s;
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top center;
  animation: scrollPulse 2.5s var(--ease) infinite 1.4s;
}
.hero-scroll span {
  font-family: var(--font-m);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  writing-mode: vertical-rl;
}

/* ===== MARQUEE BAND ===== */
.marquee-band {
  background: var(--accent);
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.marquee-inner {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  font-family: var(--font-d);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.75);
  padding: 0 28px;
}
.marquee-dot {
  font-size: 0.5rem;
  color: rgba(0,0,0,0.35);
  align-self: center;
}

/* ===== SERVICES ===== */
.services {
  padding: 120px 0 128px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 40px;
}
.services-quote {
  font-family: var(--font-b);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-3);
  font-weight: 300;
  max-width: 300px;
  text-align: right;
  line-height: 1.65;
  border-right: 2px solid var(--accent-dim);
  padding-right: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  height: 560px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--t);
}
.service-card:hover { border-color: var(--border-hover); }

.service-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) brightness(0.45);
  transition: filter 0.7s var(--ease), transform 0.7s var(--ease-out);
}
.service-card:hover .service-card-img {
  filter: grayscale(20%) brightness(0.38);
  transform: scale(1.06);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.97)  0%,
    rgba(8,8,8,0.55)  50%,
    rgba(8,8,8,0.08) 100%
  );
}

.service-card-content {
  position: absolute;
  inset: 0;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.service-card-num {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-card-title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 1.4vw + 1rem, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.service-card-body {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 360px;
}

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-m);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--t), transform var(--t);
}
.service-card:hover .service-card-cta { opacity: 1; transform: translateY(0); }
.service-card-cta::after { content: '→'; font-size: 0.9rem; }

/* ===== WHY US ===== */
.why {
  padding: 120px 0 128px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.why-item {
  padding: 56px 48px 56px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--t);
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--bg-1); }

.why-num {
  font-family: var(--font-d);
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,140,0,0.08);
  position: absolute;
  top: 32px;
  right: 36px;
  transition: color var(--t);
  pointer-events: none;
  letter-spacing: -0.02em;
}
.why-item:hover .why-num { color: rgba(255,140,0,0.14); }

.why-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 28px;
  stroke-width: 1.25;
}

.why-title {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  line-height: 1.05;
}

.why-body {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ===== PARTNERS ===== */
.partners {
  padding: 120px 0 128px;
  background:
    radial-gradient(circle at top left, rgba(255,140,0,0.08) 0%, transparent 34%),
    linear-gradient(180deg, rgba(13,13,16,0.7) 0%, rgba(8,8,8,1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-copy {
  max-width: 620px;
  margin: -28px 0 44px;
  font-size: 1rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.8;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.partner-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: span 3;
  min-height: 152px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.partner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,140,0,0.08), transparent 45%);
  opacity: 0;
  transition: opacity var(--t);
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}
.partner-card:hover::before { opacity: 1; }

.partner-card:nth-child(n+5) { grid-column: span 4; }

.partner-logo {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: 54px;
}

.partner-logo-montana { max-height: 40px; }
.partner-logo-zagrebdox { max-height: 50px; }
.partner-logo-primecut { max-height: 72px; }
.partner-logo-starkelj { max-height: 56px; }
.partner-logo-volare { max-height: 62px; }
.partner-logo-pitburger { max-height: 84px; }
.partner-logo-elbrus { max-height: 74px; }
.partner-logo-on-light {
  background: #fff;
  padding: 14px 18px;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* ===== CONTACT ===== */
.contact {
  padding: 120px 0 128px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}
.contact-info .label     { margin-bottom: 20px; }
.contact-info .section-title { margin-bottom: 28px; }

.contact-intro {
  font-size: 1rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 44px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  stroke-width: 1.5;
}
.contact-item-label {
  font-family: var(--font-m);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}
.contact-item-value { font-size: 0.9rem; color: var(--text); }
.contact-item-value a { color: var(--accent); transition: color var(--t); }
.contact-item-value a:hover { color: var(--accent-hi); }

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-label {
  font-family: var(--font-m);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t);
}
.form-group:focus-within .form-label { color: var(--accent); }

.form-opt {
  color: var(--text-3);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.form-req { color: var(--accent); margin-left: 2px; }

.form-input,
.form-textarea {
  background: #222228;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r);
  padding: 14px 18px;
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--t), background var(--t);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #2a2a32;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #6b6b78;
  font-weight: 300;
}
.form-input.error { border-color: rgba(239,68,68,0.5); }

.form-textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.65;
}

.form-submit {
  background: var(--accent);
  color: #000;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 18px;
  border-radius: var(--r);
  width: 100%;
  transition: background var(--t), transform var(--t);
}
.form-submit:hover:not(:disabled) {
  background: var(--accent-hi);
  transform: translateY(-2px);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.form-msg.success {
  display: flex;
  background: rgba(52,211,153,0.09);
  border: 1px solid rgba(52,211,153,0.28);
  color: #34d399;
}
.form-msg.error {
  display: flex;
  background: rgba(239,68,68,0.09);
  border: 1px solid rgba(239,68,68,0.28);
  color: #f87171;
}

/* ===== FILE UPLOAD ===== */
.form-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #222228;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: var(--r);
  padding: 28px 18px;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  text-align: center;
  min-height: 110px;
  width: 100%;
}
.form-upload:hover,
.form-upload.drag-over {
  border-color: var(--accent);
  background: #2a2a32;
}
.form-upload.has-file {
  border-style: solid;
  border-color: rgba(255,140,0,0.5);
  background: #2a2a32;
}
.form-upload-icon {
  width: 26px;
  height: 26px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color var(--t);
}
.form-upload.has-file .form-upload-icon { color: var(--accent); }
.form-upload-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.4;
}
.form-upload-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-upload-hint {
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  color: var(--text-3);
  text-transform: uppercase;
}
.form-upload-name {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  padding: 0 12px;
}
.form-upload.has-file .form-upload-name  { display: block; }
.form-upload.has-file .form-upload-text  { display: none; }
.form-upload.has-file .form-upload-hint  { display: none; }

/* ===== FOOTER ===== */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-family: var(--font-m);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 1101px) and (max-width: 1300px) {
  .service-card-title {
    font-size: clamp(1.75rem, 2.5vw, 2.2rem);
  }
  .service-card-content {
    padding: 40px 32px;
  }
}

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

  .hero-visual {
    padding: 0;
    height: 44vh;
    align-items: stretch;
    justify-content: stretch;
  }
  .hero-img-wrap  { max-width: none; width: 100%; height: 100%; }
  .hero-img-frame { height: 100%; border-radius: 0; }
  .hero-img-frame::before { border-radius: 0; }
  .hero-img-frame img { height: 100%; }
  .hero-badge, .hero-badge-2 { display: none; }
  .hero-scroll { display: none; }

  .hero-content {
    padding: 100px 48px 60px;
    min-height: 70vh;
    justify-content: flex-end;
  }

  .services-meta { flex-direction: column; align-items: flex-start; }
  .services-quote { text-align: left; padding-right: 0; border-right: none; border-left: 2px solid var(--accent-dim); padding-left: 20px; max-width: 440px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card  { height: 440px; }

  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid var(--border); }
  .why-item:last-child { border-bottom: none; }

  .partner-card { grid-column: span 6; }
  .partner-card:nth-child(n+5) { grid-column: span 6; }

  .contact-layout { grid-template-columns: 1fr; gap: 52px; }
  .contact-info { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-height: 88px; }
  .container { padding: 0 24px; }
  nav { padding: 0 24px; }

  .nav-logo-mark { height: 72px; }

  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { padding: 100px 24px 52px; }
  .hero-heading { font-size: clamp(58px, 14vw, 90px); }

  .services, .why, .partners, .contact { padding: 80px 0 88px; }

  .why-item  { padding: 44px 32px; }
  .why-num   { font-size: 4rem; }

  .partners-copy { margin-top: -18px; }
  .partner-card { grid-column: span 12; min-height: 132px; padding: 26px; }
  .partner-card:nth-child(n+5) { grid-column: span 12; }

  .form-row  { grid-template-columns: 1fr; gap: 22px; }

  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-heading { font-size: clamp(52px, 16vw, 80px); }
  .service-card { height: 380px; }
  .service-card-title { font-size: 2.2rem; }
}

/* =============================================
   INSTANT QUOTE PAGE
   ============================================= */

.quote-hero {
  padding: calc(var(--nav-height) + 72px) 0 64px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
}

.quote-hero-inner { max-width: 640px; }

.quote-hero .section-title { margin-top: 16px; margin-bottom: 0; }

.quote-hero-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.65;
}

.quote-section { padding: 72px 0 120px; }

.quote-calc {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ---- form groups ---- */
.calc-group { margin-bottom: 40px; }

.calc-group-label {
  font-family: var(--font-m);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ---- material grid ---- */
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.material-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.material-card:hover { border-color: var(--border-hover); }

.material-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.material-card-name {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.material-card.active .material-card-name { color: var(--accent); }

.material-card-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.4;
}

/* ---- dimensions ---- */
.dims-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dim-field { flex: 1; min-width: 80px; }

.dim-input-wrap { position: relative; }

.dim-input { padding-right: 38px !important; }

.dim-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-m);
  font-size: 0.75rem;
  color: var(--text-3);
  pointer-events: none;
}

.dim-sep {
  font-family: var(--font-d);
  font-size: 1.5rem;
  color: var(--text-3);
  padding-bottom: 10px;
  flex-shrink: 0;
}

/* ---- infill ---- */
.infill-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.infill-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-3);
  outline: none;
  cursor: pointer;
}

.infill-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.infill-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.infill-label-lo,
.infill-label-hi {
  font-size: 0.72rem;
  color: var(--text-3);
  white-space: nowrap;
  font-family: var(--font-m);
}

.infill-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.5;
}

/* ---- quantity ---- */
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 42px;
  height: 42px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}

.qty-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.qty-input {
  width: 90px;
  text-align: center;
}

/* ---- calculate button ---- */
.calc-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
}

/* ---- right column wrapper ---- */
.calc-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

/* ---- 3D viewer ---- */
.viewer-card {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.viewer-card.visible { display: block; }

#viewerCanvas {
  display: block;
  width: 100%;
  height: 320px;
  touch-action: none;
}

.viewer-info {
  padding: 10px 16px;
  font-family: var(--font-m);
  font-size: 0.75rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dims-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: var(--font-m);
}

/* ---- result card ---- */
.result-card {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 36px 32px;
}

.result-card.visible { display: block; }

.result-label {
  font-family: var(--font-m);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.result-price {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 10px;
}

.result-meta {
  font-family: var(--font-m);
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.result-detail {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 20px;
  min-height: 1.2em;
}

.result-disclaimer {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 24px;
}

.result-cta {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s;
}

.result-cta:hover { color: var(--accent-hi); }

@media (max-width: 1024px) {
  .quote-calc { grid-template-columns: 1fr; }
  .calc-right  { position: static; }
}

@media (max-width: 600px) {
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .dims-row { gap: 8px; }
  .dim-sep { display: none; }
}
