/* ============================================================
   GENTECH AUTOMATIONS — SHARED STYLESHEET
   ============================================================ */

@font-face {
  font-family: 'Sagace';
  src: url('fonts/Sagace-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Sagace';
  src: url('fonts/Sagace-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Sagace';
  src: url('fonts/Sagace-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Sagace';
  src: url('fonts/Sagace-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Sagace';
  src: url('fonts/Sagace-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Avant Garde';
  src: url('fonts/AvantGarde-Book.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Avant Garde';
  src: url('fonts/AvantGarde-Demi.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Avant Garde';
  src: url('fonts/AvantGarde-DemiOblique.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root{
  /* ---- brand colors ---- */
  --ink:        #0d0d0f;   /* near-black bg, cooler than brand #1a1a1a for screen depth */
  --ink-soft:   #15151a;   /* elevated panels */
  --ink-line:   #26262c;   /* hairline dividers on dark */
  --paper:      #f2f0eb;   /* brand off-white */
  --paper-dim:  #c9c6bd;   /* muted text on paper */
  --violet:     #7c64c4;   /* brand mid purple — primary accent */
  --violet-deep:#6450a3;   /* pressed / shadow step of violet */
  --violet-soft:#9b85d4;   /* hover step, lighter than primary */
  --lilac:      #d6c6f7;   /* brand light lavender */
  --line-on-dark: rgba(242,240,235,0.12);
  --line-on-dark-strong: rgba(242,240,235,0.22);
  --text-dim:   rgba(242,240,235,0.56);
  --text-dimmer:rgba(242,240,235,0.36);

  /* ---- type ---- */
  --f-display: 'Sagace', 'Avant Garde', sans-serif;
  --f-body: 'Avant Garde', 'Helvetica Neue', Arial, sans-serif;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.16,.8,.24,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-s: .4s;
  --dur-m: .7s;
  --dur-l: 1.1s;

  --nav-h: 84px;
  --edge: clamp(24px, 5vw, 64px);
  --max: 1320px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:auto; }
html, body{ background:var(--ink); }

body{
  font-family: var(--f-body);
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; border:none; background:none; color:inherit; cursor:pointer; }
ul{ list-style:none; }

::selection{ background:var(--violet); color:var(--paper); }

/* focus visibility (kept even though we style nav focus separately) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--lilac);
  outline-offset: 4px;
  border-radius: 2px;
}

.wrap{ max-width:var(--max); margin:0 auto; padding-left:var(--edge); padding-right:var(--edge); }

/* ============================================================
   TYPE SCALE
   ============================================================ */
.h-display{
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-size: clamp(44px, 8vw, 104px);
}
.h-1{
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-size: clamp(34px, 5vw, 64px);
}
.h-2{
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-size: clamp(26px, 3.2vw, 40px);
}
.h-3{
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.2;
  font-size: clamp(19px, 1.8vw, 24px);
}
.eyebrow{
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:'';
  width: 14px; height: 1px;
  background: var(--violet-soft);
  display:inline-block;
}
.body-l{ font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--text-dim); font-weight:400; }
.body-m{ font-size: 16px; line-height: 1.65; color: var(--text-dim); }
.mono-tag{
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--nav-h);
  z-index: 999;
  display:flex;
  align-items:center;
  background: rgba(13,13,15,0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out), backdrop-filter var(--dur-m) var(--ease-out);
}
.site-nav.is-scrolled{
  background: rgba(13,13,15,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ink-line);
}
.site-nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: var(--f-display);
  font-weight:700;
  font-size:18px;
  letter-spacing:-0.01em;
  z-index: 1001;
}
.brand .mark{ width:28px; height:28px; position:relative; }
.brand .mark svg{ width:100%; height:100%; }
.brand .mark path{ fill: var(--violet); }
.brand .word b{ font-weight:700; color:var(--paper); }
.brand .word span{ font-weight:400; color: var(--text-dim); }

.nav-links{
  display:flex;
  align-items:center;
  gap:40px;
}
.nav-links a{
  position:relative;
  font-size:14.5px;
  font-weight:700;
  letter-spacing:0.01em;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color var(--dur-s) var(--ease-out);
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:100%; height:1px;
  background: var(--violet-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover{ color: var(--paper); }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links a.is-active{ color: var(--paper); }
.nav-links a.is-active::after{ transform: scaleX(1); background: var(--violet); }

.nav-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:0.02em;
  color: var(--ink);
  background: var(--paper);
  padding: 11px 20px;
  border-radius: 100px;
  transition: background var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.nav-cta:hover{ background: var(--violet); color: var(--paper); transform: translateY(-1px); }
.nav-cta svg{ width:13px; height:13px; transition: transform .35s var(--ease-out); }
.nav-cta:hover svg{ transform: translate(2px,-2px); }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  align-items:center;
  justify-content:center;
  z-index:1001;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:'';
  position:absolute;
  width:22px; height:1.5px;
  background: var(--paper);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-toggle span::before{ transform: translateY(-7px); }
.nav-toggle span::after{ transform: translateY(7px); }
.nav-toggle.is-open span{ background: transparent; }
.nav-toggle.is-open span::before{ transform: rotate(45deg); }
.nav-toggle.is-open span::after{ transform: rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset:0;
  background: var(--ink);
  z-index: 998;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 0 var(--edge);
  transform: translateY(-100%);
  transition: transform .55s var(--ease-in-out);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--f-display);
  font-size: clamp(32px,9vw,52px);
  font-weight:700;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-line);
  color: var(--paper);
  display:block;
}
.mobile-menu .mm-cta{
  margin-top: 28px;
  display:inline-flex;
  width:fit-content;
  background: var(--violet);
  color: var(--paper);
  padding: 16px 26px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-weight:700;
  font-size:15px;
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ============================================================
   GEOMETRIC ARC MOTIF — signature device derived from the logomark's
   construction grid. Used instead of glow/blur for ambient motion.
   ============================================================ */
.arc-field{
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}
.arc-field svg{ position:absolute; }
.arc-field .arc{
  fill:none;
  stroke: var(--ink-line);
  stroke-width:1;
}
.arc-field .arc.accent{ stroke: var(--violet-deep); opacity:.5; }
.arc-field .tick{ stroke: var(--ink-line); stroke-width:1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--f-body);
  font-weight:700;
  font-size:14.5px;
  letter-spacing:0.01em;
  padding: 15px 26px;
  border-radius: 100px;
  transition: background var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
  white-space: nowrap;
}
.btn svg{ width:13px; height:13px; transition: transform .35s var(--ease-out); }
.btn-primary{ background: var(--paper); color: var(--ink); }
.btn-primary:hover{ background: var(--violet); color:var(--paper); transform: translateY(-2px); }
.btn-primary:hover svg{ transform: translate(3px,-3px); }
.btn-outline{
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-on-dark-strong);
}
.btn-outline:hover{ border-color: var(--violet-soft); color: var(--violet-soft); transform: translateY(-2px); }
.btn-outline:hover svg{ transform: translate(3px,-3px); }

/* ============================================================
   SCROLL REVEAL UTILITIES (driven by IO + GSAP)
   ============================================================ */
.rv{ opacity:0; animation: fallbackReveal 0.01s linear 3.4s forwards; }
.rv-up{ opacity:0; transform: translateY(28px); animation: fallbackRevealUp 0.01s linear 3.4s forwards; }
.rv-line > *{ opacity:0; transform: translateY(100%); animation: fallbackRevealLine 0.01s linear 3.4s forwards; }
@keyframes fallbackReveal{ to{ opacity:1; } }
@keyframes fallbackRevealUp{ to{ opacity:1; transform:none; } }
@keyframes fallbackRevealLine{ to{ opacity:1; transform:none; } }
/* Once main.js successfully runs, it adds .js-ready to <body> and takes over
   these elements with GSAP — so we cancel the CSS fallback animation to
   avoid it fighting with JS-driven tweens. If JS fails or never loads,
   .js-ready never gets added, and the animations above are the only thing
   that makes this content visible at all — preventing a permanently blank
   page when a CDN script (GSAP) fails to load. */
body.js-ready .rv,
body.js-ready .rv-up,
body.js-ready .rv-line > *{
  animation: none;
}

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
section{ position: relative; }
.pad-section{ padding: clamp(90px,12vw,160px) 0; }
.pad-section-sm{ padding: clamp(60px,8vw,100px) 0; }

.divider{
  height:1px;
  background: var(--ink-line);
  width:100%;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  position:relative;
  border-top:1px solid var(--ink-line);
  padding: 90px 0 36px;
  background: var(--ink);
  overflow:hidden;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:60px;
  flex-wrap:wrap;
  padding-bottom: 64px;
}
.footer-cta-block .h-1{ max-width: 620px; }
.footer-cta-block .body-l{ max-width: 460px; margin-top:18px; margin-bottom:32px; }
.footer-cols{
  display:flex;
  gap:64px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-family: var(--f-body);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color: var(--text-dimmer);
  margin-bottom:18px;
  font-weight:700;
}
.footer-col a{
  display:block;
  font-size:15px;
  color: var(--text-dim);
  padding: 7px 0;
  transition: color .3s var(--ease-out), padding-left .3s var(--ease-out);
}
.footer-col a:hover{ color: var(--paper); padding-left:4px; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
  padding-top: 30px;
  border-top:1px solid var(--ink-line);
}
.footer-bottom-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-bottom-brand .mark{ width:18px; height:18px; }
.footer-bottom-brand .mark path{ fill: var(--violet); }
.footer-legal{
  font-size:13px;
  color: var(--text-dimmer);
}
.footer-time{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color: var(--text-dimmer);
  letter-spacing:0.02em;
}
.footer-time .dot{
  width:6px;height:6px;border-radius:50%;
  background:#5fd17a;
  display:inline-block;
}

@media (max-width: 760px){
  .footer-top{ flex-direction:column; gap:48px; }
  .footer-cols{ gap:40px; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader{
  position:fixed; inset:0;
  background: var(--ink);
  z-index: 2000;
  display:flex;
  align-items:center;
  justify-content:center;
  /* CSS-only safety net: if JS fails to load or errors before removing this
     element, it self-hides after a fixed delay so the site is never stuck
     permanently black. JS still drives the normal animated removal when it
     works — this only matters as a fallback. */
  animation: preloaderFallback 0.01s linear 3.2s forwards;
}
@keyframes preloaderFallback{
  to{ opacity:0; visibility:hidden; pointer-events:none; }
}
.preloader .mark{ width:56px; height:56px; }
.preloader .mark path{ fill:var(--violet); }
.preloader-bar{
  position:absolute;
  bottom:48px; left:50%;
  transform: translateX(-50%);
  width:140px; height:1px;
  background: var(--ink-line);
}
.preloader-bar i{
  position:absolute; left:0; top:0;
  height:100%; width:0%;
  background: var(--violet);
}

/* generic page transition curtain */
.curtain{
  position:fixed; inset:0;
  background: var(--ink);
  z-index: 1500;
  transform: translateY(0);
  pointer-events:none;
}

/* cursor */
.cursor-dot, .cursor-ring{
  position: fixed;
  top:0; left:0;
  pointer-events:none;
  z-index: 9999;
  border-radius:50%;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{ width:6px; height:6px; background:var(--paper); }
.cursor-ring{ width:32px; height:32px; border:1px solid var(--line-on-dark-strong); transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s var(--ease-out); }
.cursor-ring.is-active{ width:54px; height:54px; border-color: var(--violet-soft); }
@media (max-width: 860px){
  .cursor-dot, .cursor-ring{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}
