/* ================================================================
   Planéta Centrum Kft.  ·  style.css
   Clay.global + Baunfire inspired — with GSAP image-tiles,
   GPU-adaptive hero, gravity floating button
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

:root {
  --white:     #ffffff;
  --cream:     #f6f4ef;
  --black:     #0a0a0a;
  --ink:       #1a1a1a;
  --muted:     #6b6b6b;
  --border:    #e2e0db;
  --gold:      #b8945a;
  --gold-lt:   rgba(184,148,90,.12);
  --nav-h:     76px;
  --r:         14px;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}


/* ── FLUID CANVAS (WebGL simulation layer) ── */
#fluidCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  /* Clip to hero area only via clip-path — updated dynamically by JS */
}

/* Ensure all sections sit above the fluid canvas */
nav, .hero, .marquee-band, .services, .image-tiles,
.work, .about, .safety, .contact, footer,
#loader, .gravity-wrap {
  position: relative;
  z-index: 1;
}

/* Hero specifically needs solid bg so fluid only shows on .hero bg */
.hero {
  background: transparent;
}

/* Sections AFTER hero get solid backgrounds to hide fluid behind them */
.marquee-band { background: var(--cream); }
.services     { background: var(--white); }
.image-tiles  { background: var(--white); }
.work         { background: var(--cream); }
.about        { background: var(--white); }
.safety       { background: var(--ink);   }
.contact      { background: var(--cream); }
footer        { background: var(--ink);   }


/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.loader-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; color: var(--white); letter-spacing: .02em;
}
.loader-logo em { font-style: italic; color: var(--gold); }
.loader-bar {
  width: 200px; height: 1px;
  background: rgba(255,255,255,.1); border-radius: 1px; overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0; background: var(--gold);
  animation: loaderFill 1.6s ease forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ── CURSOR ── */
#cur-dot {
  position: fixed; z-index: 9999;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink); pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s, opacity .2s;
}
#cur-ring {
  position: fixed; z-index: 9998;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(26,26,26,.25); pointer-events: none;
  transform: translate(-50%,-50%);
  transition: all .18s ease .04s;
}
.c-expand #cur-ring { transform: translate(-50%,-50%) scale(2.2); border-color: rgba(26,26,26,.5); }
.c-dark #cur-dot    { background: var(--white); }
.c-dark #cur-ring   { border-color: rgba(255,255,255,.3); }
.c-hide #cur-dot,
.c-hide #cur-ring   { opacity: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: var(--nav-h); padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s, box-shadow .4s;
}
nav.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}
.logo {
  font-family: 'Instrument Serif', serif;
  font-size: 19px; letter-spacing: .01em; text-decoration: none; color: var(--ink);
}
.logo em { font-style: italic; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 400; letter-spacing: .01em;
  color: var(--muted); text-decoration: none;
  padding: 8px 16px; border-radius: 100px; transition: all .2s; cursor: none;
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--cream); }
.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--white);
  background: var(--ink); padding: 10px 24px; border-radius: 100px;
  text-decoration: none; border: 1.5px solid var(--ink);
  transition: all .25s; cursor: none; margin-left: 10px;
}
.nav-cta:hover { background: transparent; color: var(--ink); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 72px) 52px 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: center;
}
/* Left */
.hero-left {}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 36px;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.hero-tag-dot { width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }
.hero-h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: clamp(52px, 6.5vw, 100px);
  line-height: .95; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp .85s .3s forwards;
}
.hero-h1 em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 16px; font-weight: 300; color: var(--muted);
  line-height: 1.75; max-width: 440px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp .8s .45s forwards;
}
.hero-ctas {
  display: flex; gap: 14px; align-items: center;
  opacity: 0; animation: fadeUp .8s .58s forwards;
}
.btn-primary {
  font-size: 13px; font-weight: 500; color: var(--white); background: var(--ink);
  padding: 14px 30px; border-radius: 100px; text-decoration: none;
  border: 1.5px solid var(--ink); transition: all .25s; cursor: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-primary .arr { transition: transform .25s; }
.btn-primary:hover .arr { transform: translateX(4px); }
.btn-ghost {
  font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: all .2s; cursor: none;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 40px; border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp .8s .72s forwards;
}
.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: 42px; font-weight: 400; color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Right — video panel */
.hero-right {
  opacity: 0; animation: fadeIn .9s .5s forwards;
}
.hero-video-card {
  position: relative; border-radius: 22px; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--cream);
  box-shadow: 0 28px 70px rgba(0,0,0,.11), 0 6px 18px rgba(0,0,0,.07);
}
.hero-video-card video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-video-pill {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; color: var(--ink);
  pointer-events: none;
}
.pill-dot {
  width: 6px; height: 6px; background: #22c55e;
  border-radius: 50%; animation: blink 2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ── MARQUEE ── */
.marquee-band {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; overflow: hidden;
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.m-item {
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 0 40px;
}
.m-sep { color: var(--gold); opacity: .55; margin: 0 -16px; }

/* ── SERVICES ── */
.services { background: var(--white); padding: 120px 52px; }
.services-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px;
}
.section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: clamp(38px, 5vw, 68px);
  line-height: .96; letter-spacing: -.02em; color: var(--ink);
}
.section-title em { font-style: italic; color: var(--gold); }
.services-note { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 300px; text-align: right; }
.svc-list { border-top: 1px solid var(--border); }
.svc-row {
  display: grid; grid-template-columns: 60px 1fr auto 140px;
  gap: 32px; align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 28px 12px; cursor: none; transition: all .3s;
  border-radius: 0;
}
.svc-row:hover {
  background: var(--cream); border-bottom-color: transparent;
  border-radius: 12px; padding: 28px 20px;
}
.svc-row-num { font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.svc-row-body {}
.svc-row-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.8vw, 40px); font-weight: 400;
  letter-spacing: -.01em; color: var(--ink); transition: letter-spacing .3s;
}
.svc-row:hover .svc-row-title { letter-spacing: .01em; }
.svc-row-desc {
  font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 480px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .4s ease, opacity .35s ease, margin .3s;
}
.svc-row:hover .svc-row-desc { max-height: 80px; opacity: 1; margin-top: 12px; }
.svc-row-img {
  width: 140px; height: 96px; border-radius: 10px; object-fit: cover;
  filter: grayscale(1) brightness(.8);
  transform: scale(.9); opacity: 0;
  transition: all .4s ease;
}
.svc-row:hover .svc-row-img { filter: grayscale(.2); transform: scale(1); opacity: 1; }
.svc-row-arrow { font-size: 16px; color: var(--muted); transition: transform .3s, color .25s; }
.svc-row:hover .svc-row-arrow { transform: rotate(-45deg); color: var(--ink); }

/* ── IMAGE TILES (GSAP horizontal parallax) ── */
.image-tiles {
  overflow: hidden; padding: 80px 0; background: var(--white);
}
.tiles-line {
  display: flex; gap: 20px; margin-bottom: 20px;
  padding: 0 40px; will-change: transform;
}
.tiles-line:first-child { padding-left: 100px; }
.tiles-line:nth-child(2) { padding-left: 0; }
.tile-item {
  flex-shrink: 0; border-radius: 14px; overflow: hidden;
  width: clamp(240px, 22vw, 360px); height: clamp(160px, 15vw, 240px);
}
.tile-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.75) saturate(.7);
  transition: filter .4s;
}
.tile-item:hover img { filter: brightness(.95) saturate(1); }

/* ── WORK ── */
.work { background: var(--cream); padding: 120px 52px; }
.work-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 60px;
}
.link-arr {
  font-size: 13px; font-weight: 400; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: 6px; transition: all .2s; cursor: none;
}
.link-arr .a { transition: transform .25s; }
.link-arr:hover { color: var(--ink); border-color: var(--ink); }
.link-arr:hover .a { transform: translateX(4px); }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.work-card {
  border-radius: 14px; overflow: hidden; text-decoration: none;
  color: var(--ink); background: var(--white); cursor: none; display: block;
  transition: transform .4s ease, box-shadow .4s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.09); }
.work-card-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  filter: brightness(.82) saturate(.8); transition: all .55s ease;
}
.work-card:hover .work-card-img { filter: brightness(.95) saturate(1); transform: scale(1.03); }
.work-card-body { padding: 22px 24px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--cream);
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px;
}
.work-card-title {
  font-family: 'Instrument Serif', serif;
  font-size: 21px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 6px;
}
.work-card-sub { font-size: 13px; color: var(--muted); }

/* ── ABOUT ── */
.about {
  background: var(--white); padding: 120px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: 16px; aspect-ratio: 4/5;
  object-fit: cover; display: block;
  filter: brightness(.82) saturate(.7);
}
.about-badge {
  position: absolute; bottom: -18px; right: -18px;
  background: var(--ink); color: var(--white);
  border-radius: 14px; padding: 22px 26px; max-width: 190px;
}
.about-badge strong {
  display: block; font-family: 'Instrument Serif', serif;
  font-size: 46px; font-weight: 400; color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.about-badge span { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.4; }
.about-content .section-label { margin-bottom: 16px; }
.about-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 4.5vw, 60px); font-weight: 400;
  letter-spacing: -.02em; line-height: .96;
  margin-bottom: 28px; margin-top: 16px;
}
.about-title em { font-style: italic; color: var(--gold); }
.about-body {
  font-size: 15px; color: var(--muted); line-height: 1.85; margin-bottom: 32px;
}
.about-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 40px; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--ink); line-height: 1.5;
}
.about-list li::before {
  content: ''; flex-shrink: 0;
  width: 5px; height: 5px; background: var(--gold);
  border-radius: 50%; margin-top: 7px;
}

/* ── SAFETY ── */
.safety {
  background: var(--ink); color: var(--white); padding: 120px 52px;
}
.safety .section-label { color: rgba(255,255,255,.35); }
.safety .section-title { color: var(--white); }
.safety-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden; margin-top: 72px;
}
.safety-card {
  background: rgba(255,255,255,.025); padding: 44px 30px;
  transition: background .3s;
}
.safety-card:hover { background: rgba(255,255,255,.065); }
.sc-num {
  font-family: 'Instrument Serif', serif;
  font-size: 56px; font-weight: 400; color: rgba(255,255,255,.06);
  line-height: 1; margin-bottom: 20px; letter-spacing: -.02em;
}
.sc-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; font-weight: 400; margin-bottom: 14px;
  color: rgba(255,255,255,.9);
}
.sc-text { font-size: 13px; color: rgba(255,255,255,.42); line-height: 1.75; }

/* ── CONTACT ── */
.contact { background: var(--cream); padding: 120px 52px; }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start;
}
.contact-h {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 5.5vw, 76px); font-weight: 400;
  letter-spacing: -.02em; line-height: .95; margin-bottom: 40px;
}
.contact-h em { font-style: italic; color: var(--gold); }
.ci-label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ci-val { font-size: 15px; color: var(--ink); margin-bottom: 28px; line-height: 1.6; }
.form-g { margin-bottom: 24px; }
.form-lbl { display: block; font-size: 11px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.form-ctrl {
  width: 100%; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 14px 18px; color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  outline: none; transition: border-color .25s, box-shadow .25s; -webkit-appearance: none;
}
.form-ctrl:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,.06); }
.form-ctrl::placeholder { color: rgba(107,107,107,.45); }
textarea.form-ctrl { resize: none; min-height: 110px; }
select.form-ctrl { background: var(--white); color: var(--ink); }
select.form-ctrl option { background: var(--white); }
.form-check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 26px; }
.form-check input { accent-color: var(--ink); width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; cursor: none; }
.form-check label { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-check a { color: var(--ink); }
.btn-form {
  width: 100%; background: var(--ink); color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 17px; border-radius: 100px; border: 1.5px solid var(--ink);
  cursor: none; transition: all .3s;
}
.btn-form:hover { background: transparent; color: var(--ink); }

/* ── FOOTER ── */
footer { background: var(--ink); color: var(--white); padding: 72px 52px 44px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 64px; }
.footer-logo { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 14px; }
.footer-logo em { font-style: italic; color: var(--gold); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.38); line-height: 1.7; max-width: 230px; }
.footer-col-h { font-size: 10px; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; cursor: none; }
.footer-links a:hover { color: var(--white); }
.nl-row { display: flex; border-bottom: 1px solid rgba(255,255,255,.1); margin-top: 14px; }
.nl-inp { flex: 1; background: transparent; border: none; padding: 12px 0; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; }
.nl-inp::placeholder { color: rgba(255,255,255,.22); }
.nl-btn { background: transparent; border: none; color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: none; transition: color .2s; }
.nl-btn:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.06); padding-top: 28px; padding-bottom: 8px; padding-right: 72px; font-size: 12px; color: rgba(255,255,255,.22); }
.footer-bottom a { color: var(--gold); text-decoration: none; font-weight: 500; letter-spacing: .04em; }
.footer-bottom a:hover { color: var(--gold); }

/* ── GRAVITY FLOATING BUTTON ── */
.gravity-wrap {
  position: fixed; bottom: 36px; right: 36px; z-index: 500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.gravity-option {
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(12px) scale(.85);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.gravity-option.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.gravity-option:nth-child(1) { transition-delay: .05s; }
.gravity-option:nth-child(2) { transition-delay: .1s; }
.gravity-label {
  font-size: 12px; font-weight: 500; color: var(--white);
  background: var(--ink); padding: 7px 14px; border-radius: 100px;
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.gravity-icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .25s, box-shadow .25s;
}
.gravity-icon-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.gravity-icon-btn svg { width: 18px; height: 18px; }
.gravity-main {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: none;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: all .3s; position: relative;
}
.gravity-main:hover { transform: scale(1.08); }
.gravity-main svg { width: 20px; height: 20px; transition: transform .3s; }
.gravity-main.active svg { transform: rotate(45deg); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; } .d4 { transition-delay: .48s; }

/* ── KEYFRAMES ── */
@keyframes fadeUp  { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes ticker  { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── SELECTION ── */
::selection { background: var(--ink); color: var(--white); }


/* ── Hide mobile-only elements on desktop ── */
.nav-menu-toggle { display: none; }
.nav-drawer      { display: none; }

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

/* ================================================================
   RESPONSIVE — MOBILE FIRST
   768px  = tablet
   480px  = mobile
   ================================================================ */

/* ── Hide custom cursor on touch devices ── */
@media (hover: none) {
  #cur-dot, #cur-ring { display: none; }
  body { cursor: auto; }
  a, button, input, select, textarea { cursor: pointer; }
}

/* ═══════════════════════════════════════════
   TABLET  ≤ 1024px
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --nav-h: 68px; }

  nav { padding: 0 32px; }
  .nav-links { gap: 2px; }
  .nav-link  { padding: 7px 12px; font-size: 12px; }
  .nav-cta   { padding: 9px 18px; font-size: 12px; margin-left: 6px; }

  .hero { padding: calc(var(--nav-h) + 56px) 32px 64px; gap: 36px; }

  .services, .work, .about, .safety, .contact { padding: 88px 32px; }
  footer { padding: 60px 32px 36px; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card:nth-child(3) { grid-column: 1 / -1; }

  .safety-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }

  .svc-row { grid-template-columns: 52px 1fr auto; }
  .svc-row-img { display: none; }
}

/* ═══════════════════════════════════════════
   MOBILE  ≤ 768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* ── NAV ── */
  nav { padding: 0 24px; }

  /* Hide nav links, show only logo + CTA */
  .nav-links .nav-link { display: none; }
  .nav-cta {
    font-size: 12px; padding: 9px 18px; margin-left: 0;
  }

  /* ── HAMBURGER (pure CSS) ── */
  .nav-menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; cursor: pointer; padding: 4px 0;
    background: none; border: none; margin-left: 16px;
  }
  .nav-menu-toggle span {
    display: block; height: 1.5px; background: var(--ink);
    border-radius: 2px; transition: all .3s;
  }
  nav.scrolled .nav-menu-toggle span { background: var(--ink); }

  /* Mobile nav drawer */
  .nav-drawer {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    padding: 24px; display: flex; flex-direction: column; gap: 4px;
    border-bottom: 1px solid var(--border); z-index: 350;
    transform: translateY(-110%); transition: transform .35s ease;
    pointer-events: none;
  }
  .nav-drawer.open { transform: translateY(0); pointer-events: auto; }
  .nav-drawer a {
    font-size: 18px; font-weight: 400; color: var(--ink);
    text-decoration: none; padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-family: 'Instrument Serif', serif; letter-spacing: -.01em;
  }
  .nav-drawer a:last-child { border-bottom: none; }
  .nav-drawer a em { font-style: italic; color: var(--gold); }

  /* ── HERO ── */
  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--nav-h) + 44px) 24px 56px;
    gap: 40px; min-height: auto;
  }
  .hero-h1 { font-size: clamp(44px, 11vw, 72px); }
  .hero-desc { font-size: 15px; max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-stats { gap: 28px; }
  .stat-num   { font-size: 34px; }

  .hero-video-card { border-radius: 16px; }

  /* ── MARQUEE ── */
  .m-item { padding: 0 24px; font-size: 11px; }

  /* ── SERVICES ── */
  .services, .work, .about, .safety, .contact { padding: 72px 24px; }
  .services-top { flex-direction: column; gap: 16px; align-items: flex-start; }
  .services-note { text-align: left; max-width: 100%; }

  .svc-row {
    grid-template-columns: 44px 1fr;
    gap: 16px; padding: 24px 12px;
  }
  .svc-row:hover { padding: 24px 14px; }
  .svc-row-arrow { display: none; }
  .svc-row-title { font-size: clamp(22px, 5.5vw, 32px); }
  .svc-row-desc  { max-height: none; opacity: 1; margin-top: 10px; }

  /* ── IMAGE TILES ── */
  .image-tiles { padding: 48px 0; }
  .tile-item {
    width: clamp(160px, 44vw, 240px);
    height: clamp(110px, 28vw, 160px);
  }

  /* ── WORK ── */
  .work-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(3) { grid-column: auto; }

  /* ── ABOUT ── */
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { bottom: -14px; right: -8px; padding: 18px 20px; }
  .about-badge strong { font-size: 38px; }
  .about-img { aspect-ratio: 3/2; }

  /* ── SAFETY ── */
  .safety-grid { grid-template-columns: 1fr; gap: 1px; }
  .safety-card { padding: 36px 24px; }

  /* ── CONTACT ── */
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-h { font-size: clamp(40px, 10vw, 64px); }

  /* ── FOOTER ── */
  footer { padding: 56px 24px 32px; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-top > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding-bottom: 72px; }

  /* ── GRAVITY BUTTON ── */
  .gravity-wrap { bottom: 24px; right: 24px; }

  /* ── SECTION TITLES ── */
  .section-title { font-size: clamp(34px, 9vw, 56px); }
}

/* ═══════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-tag { font-size: 10px; padding: 6px 13px; }
  .hero-stats { gap: 20px; }
  .stat-num   { font-size: 30px; }

  .btn-primary { padding: 13px 24px; font-size: 12px; }
  .btn-ghost   { font-size: 12px; }

  .footer-top { grid-template-columns: 1fr; }

  .safety-grid { border-radius: 10px; }

  .svc-row-title { font-size: clamp(20px, 6vw, 28px); }

  .contact-h { font-size: clamp(36px, 11vw, 52px); }

  .about-img  { aspect-ratio: 4/3; }
  .about-badge { display: none; }
}

/* ── iPhone notch / safe area ── */
@supports (padding: max(0px)) {
  nav {
    padding-left:  max(52px, env(safe-area-inset-left));
    padding-right: max(52px, env(safe-area-inset-right));
  }
  @media (max-width: 768px) {
    nav { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
    .hero, .services, .work, .about, .safety, .contact, footer {
      padding-left:  max(24px, env(safe-area-inset-left));
      padding-right: max(24px, env(safe-area-inset-right));
    }
    footer {
      padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
    .gravity-wrap {
      bottom: max(24px, env(safe-area-inset-bottom));
      right:  max(24px, env(safe-area-inset-right));
    }
  }
}

/* ================================================================
   CRM TOP BAR + LOGO
   ================================================================ */

/* ================================================================
   CRM TOP BAR — expanded with inline login form
   ================================================================ */
:root { --crm-h: 72px; }

#crmBar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--crm-h);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Left label */
.crm-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.crm-label-title {
  font-family: 'Instrument Serif', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .04em;
  white-space: nowrap;
}
.crm-label-sub {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.3);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Divider */
.crm-divider {
  width: 1px; height: 32px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

/* Inline login form */
#crmLoginForm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.crm-input {
  height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 170px;
}
.crm-input::placeholder { color: rgba(255,255,255,.3); }
.crm-input:focus {
  border-color: rgba(184,148,90,.5);
  background: rgba(184,148,90,.06);
}
.crm-input[type="password"] { letter-spacing: .1em; }

/* Login button */
#crmLoginBtn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #111;
  background: var(--gold);
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  cursor: none;
  transition: all .25s;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
#crmLoginBtn:hover { background: #d4a96a; transform: translateY(-1px); }
#crmLoginBtn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Forgot password */
.crm-forgot {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .2s;
  flex-shrink: 0;
}
.crm-forgot:hover { color: var(--gold); }

/* Push everything down */
nav     { top: var(--crm-h); }
#loader { padding-top: var(--crm-h); }
.hero   { padding-top: calc(var(--nav-h) + var(--crm-h) + 72px); }

/* Nav logo — 2.5x larger */
.logo-img {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 72px;  /* was 38px → 2.5× larger */
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Loader logo */
.loader-logo-img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 10px;
}

/* Footer logo */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.footer-logo-img {
  height: 40px; width: auto;
  filter: brightness(0) invert(.7) sepia(1) saturate(2) hue-rotate(5deg);
}

/* Nav needs more height for big logo */
nav { height: 88px; }
:root { --nav-h: 88px; }

/* ── MOBILE CRM BAR ── */
@media (max-width: 900px) {
  #crmBar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 20px;
    gap: 10px;
    justify-content: center;
  }
  :root { --crm-h: 110px; }
  .crm-divider { display: none; }
  .crm-label { align-items: center; text-align: center; }
  .crm-input { width: 140px; }
}

@media (max-width: 600px) {
  #crmBar { padding: 10px 16px; }
  :root { --crm-h: 130px; }
  #crmLoginForm { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .crm-input { width: 100%; max-width: 280px; }
  #crmLoginBtn { width: 100%; max-width: 280px; justify-content: center; }
  .nav-logo-img { height: 48px; }
  .hero { padding-top: calc(var(--nav-h) + var(--crm-h) + 32px); }
}

/* ── VIDEO TEXT OVERLAY ── */
.hero-video-overlay {
  position: absolute;
  /* covers the centre-right area where NATO text appears */
  top: 28%; left: 48%;
  right: 0; bottom: 22%;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,.82) 0%,
    rgba(15,15,20,.75) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  pointer-events: none;
}
.hvo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  opacity: .85;
}
.hvo-main {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
}
