/* ============================================================
   UT — Design System (Light Theme)
   Display: Bricolage Grotesque · Body: Inter · Mono: JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --bg: #ffffff;
  --bg-raised: #f5f6f8;
  --bg-glass: rgba(15,17,25,0.035);
  --border-glass: rgba(15,17,25,0.10);
  --ink: #14151a;
  --white: #ffffff;
  --grey: #5c5e68;
  --grey-dim: #9799a3;
  --accent: #3b82f6;
  --accent-soft: #2563eb;
  --accent-glow: rgba(59,130,246,0.25);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --nav-h: 84px;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; background:var(--bg); }

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

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

img{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

ul{ list-style:none; }

button{ font-family:inherit; border:none; background:none; cursor:pointer; color:inherit; }

input, textarea, select{ font-family:inherit; color:inherit; }

::selection{ background:var(--accent); color:#fff; }

/* ---------- Custom 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(--accent); transition:opacity .2s; }
.cursor-ring{
  width:34px; height:34px; border:1px solid rgba(20,21,26,0.22);
  transition:width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s, opacity .2s;
}
.cursor-ring.is-hover{
  width:56px; height:56px;
  border-color:var(--accent);
  background:rgba(59,130,246,0.06);
}
@media (hover:none), (pointer:coarse){
  .cursor-dot, .cursor-ring{ display:none; }
}

/* ---------- Layout helpers ---------- */
.wrap{
  max-width:1320px;
  margin:0 auto;
  padding:0 6vw;
}
section{ position:relative; }

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent-soft);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:22px; height:1px;
  background:var(--accent);
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.015em;
  line-height:1.15;
  color:var(--ink);
}

.text-grey{ color:var(--grey); }
.section-title{ font-size:clamp(22px,2.6vw,32px); }

/* ---------- Navigation ---------- */
.site-nav{
  position:fixed;
  top:20px; right:24px;
  z-index:500;
  display:flex; justify-content:flex-end; align-items:center;
  gap:18px;
  padding:12px 18px;
  border-radius:100px;
  transition:background .5s var(--ease-out), border-color .5s var(--ease-out), backdrop-filter .5s, box-shadow .5s;
  background:rgba(255,255,255,0.55);
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border:1px solid rgba(15,17,25,0.07);
  box-shadow:0 4px 18px rgba(15,17,25,0.05);
  max-width:calc(100vw - 48px);
}
.site-nav.is-glass{
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-color:var(--border-glass);
  box-shadow:0 10px 30px rgba(15,17,25,0.08);
}
.nav-logo{
  display:flex;
  align-items:center;
  opacity:0;
}
.nav-logo img{
  height:28px;
  width:auto;
  display:block;
}

/* Burger toggle — always visible, sits beside the logo */
.nav-toggle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  gap:5px;
  width:22px; height:16px;
  opacity:0;
}
.nav-toggle .bar{
  display:block;
  height:2px;
  width:100%;
  background:var(--ink);
  border-radius:2px;
  transition:transform .4s var(--ease-in-out), width .4s var(--ease-in-out), opacity .3s;
}
.nav-toggle .bar:nth-child(2){ width:68%; }
.nav-toggle:hover .bar{ width:100%; }
.nav-toggle.is-open .bar:nth-child(1){
  transform:translateY(7px) rotate(45deg);
  width:100%;
}
.nav-toggle.is-open .bar:nth-child(2){
  opacity:0;
  transform:translateX(8px);
}
.nav-toggle.is-open .bar:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
  width:100%;
}

/* ---------- Simple dropdown menu ---------- */
.menu-overlay{
  position:fixed;
  top:74px; right:24px;
  z-index:400;
  width:236px;
  background:#ffffff;
  border:1px solid var(--border-glass);
  border-radius:16px;
  box-shadow:0 20px 50px rgba(15,17,25,0.14);
  padding:10px;
  opacity:0; visibility:hidden;
  transform:translateY(-6px) scale(.98);
  transform-origin:top right;
  transition:opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
}
.menu-overlay.is-open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
.menu-overlay-inner{
  display:flex; flex-direction:column; gap:12px;
}
.menu-links{ display:flex; flex-direction:column; gap:2px; }
.menu-links a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:9px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink);
  transition:background .2s, color .2s;
}
.menu-links a .menu-link-index{ display:none; }
.menu-links a span:last-child{ display:inline-block; transform:none; }
.menu-links a:hover{ background:rgba(59,130,246,0.08); color:var(--accent-soft); }
.menu-links a.active{ background:rgba(59,130,246,0.08); color:var(--accent-soft); }

.menu-overlay-footer{
  display:flex; flex-direction:column; align-items:stretch; gap:14px;
  padding:10px 10px 4px;
  border-top:1px solid var(--border-glass);
}
.menu-overlay-footer .btn{ justify-content:center; padding:11px 20px; font-size:13px; }
.menu-social{ display:flex; gap:10px; justify-content:center; }
.menu-social a{
  width:34px; height:34px; border-radius:50%;
  border:1px solid var(--border-glass);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .3s, background .3s, transform .3s;
  color:var(--grey);
}
.menu-social a:hover{ border-color:var(--accent); background:rgba(59,130,246,0.08); color:var(--accent); transform:translateY(-2px); }
.menu-social svg{ width:14px; height:14px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 26px;
  border-radius:100px;
  font-size:14px; font-weight:600;
  letter-spacing:.01em;
  position:relative;
  overflow:hidden;
  transition:transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-primary{
  background:var(--accent);
  color:#fff;
}
.btn-primary:hover{
  box-shadow:0 0 0 8px rgba(59,130,246,0.12), 0 12px 26px rgba(59,130,246,0.28);
  transform:translateY(-2px);
}
.btn-ghost{
  border:1px solid var(--border-glass);
  color:var(--ink);
  background:rgba(15,17,25,0.02);
}
.btn-ghost:hover{
  border-color:rgba(15,17,25,0.25);
  transform:translateY(-2px);
  background:rgba(15,17,25,0.04);
}
.btn svg{ width:13px; height:13px; transition:transform .35s var(--ease-out); }
.btn:hover svg{ transform:translate(3px,-3px); }

/* ---------- Glass card ---------- */
.glass{
  background:#ffffff;
  border:1px solid var(--border-glass);
  box-shadow:0 4px 24px rgba(15,17,25,0.05);
  border-radius:20px;
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{
  opacity:0;
  transform:translateY(30px);
  transition:opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}
[data-reveal-delay="1"]{ transition-delay:.08s; }
[data-reveal-delay="2"]{ transition-delay:.16s; }
[data-reveal-delay="3"]{ transition-delay:.24s; }
[data-reveal-delay="4"]{ transition-delay:.32s; }
[data-reveal-delay="5"]{ transition-delay:.4s; }
[data-reveal-delay="6"]{ transition-delay:.48s; }

/* ---------- Section spacing ---------- */
.section{ padding:120px 0; }
.section-tight{ padding:80px 0; }

/* ---------- Footer ---------- */
.site-footer{
  padding:60px 0 34px;
  border-top:1px solid var(--border-glass);
}
.footer-top{
  display:flex; justify-content:space-between; align-items:flex-end;
  flex-wrap:wrap; gap:26px;
  margin-bottom:40px;
}
.footer-logo{
  font-family:var(--font-display);
  font-size:clamp(48px, 9vw, 120px);
  line-height:.85;
  font-weight:800;
  letter-spacing:-.03em;
  color:transparent;
  -webkit-text-stroke:1px rgba(15,17,25,0.14);
}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px;
  font-size:13px;
  color:var(--grey-dim);
  font-family:var(--font-mono);
}
.footer-links{ display:flex; gap:24px; }
.footer-links a{ color:var(--grey); transition:color .3s; }
.footer-links a:hover{ color:var(--accent-soft); }
.footer-social{ display:flex; gap:16px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--border-glass);
  display:flex; align-items:center; justify-content:center;
  transition:border-color .3s, background .3s, transform .3s;
  color:var(--grey);
}
.footer-social a:hover{ border-color:var(--accent); background:rgba(59,130,246,0.08); color:var(--accent); transform:translateY(-3px); }
.footer-social svg{ width:14px; height:14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  min-height:56vh;
  display:flex; flex-direction:column; justify-content:center;
  padding-top:calc(var(--nav-h) + 30px);
}
.page-hero h1{
  font-size:clamp(28px, 3.8vw, 48px);
}

/* Banner variant — photo or gradient background with dark overlay for contrast */
.page-hero-banner{
  min-height:64vh;
  position:relative;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  background-color:#0d0f14;
  padding-bottom:60px;
}
.page-hero-banner::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,9,13,0.42) 0%, rgba(8,9,13,0.68) 100%);
  z-index:0;
}
.page-hero-banner .wrap{ position:relative; z-index:1; }
.page-hero-banner .eyebrow{ color:#9ec4ff; }
.page-hero-banner .eyebrow::before{ background:#9ec4ff; }
.page-hero-banner h1{ color:#fff; }

/* Homepage hero — real photo banner variant */
.hero-banner{
  background-size:cover;
  background-position:center;
  background-color:#0d0f14;
}
.hero-banner::before{
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,9,13,0.45) 0%, rgba(8,9,13,0.72) 100%);
  z-index:0;
}
.hero-banner .hero-content{ position:relative; z-index:1; }
.hero-banner .hero-content h1{ color:#fff; }
.hero-banner .hero-sub{ color:rgba(255,255,255,0.78); }
.hero-banner .hero-scroll-cue{ color:rgba(255,255,255,0.65); }
.hero-banner .hero-scroll-cue .stick{ background:linear-gradient(#fff, transparent); }

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position:fixed; top:0; left:0; height:2px;
  background:linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index:600; width:0%;
}

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