/* ============================================================
   Universal Services — shared design system
   UNI Tech Ltd · Aotearoa New Zealand
   ============================================================ */

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

:root {
  /* palette */
  --ink:        #100d0c;   /* near-black, warm */
  --ink-2:      #17130f;
  --ink-3:      #201a15;
  --paper:      #f4efe6;   /* warm off-white */
  --paper-2:    #ece4d6;
  --text:       #ece5d8;   /* on dark */
  --text-dim:   rgba(236,229,216,0.58);
  --text-faint: rgba(236,229,216,0.34);
  --ink-text:   #211c17;   /* on paper */
  --ink-dim:    #6a6055;
  --line-dk:    rgba(236,229,216,0.13);
  --line-lt:    rgba(33,28,23,0.14);
  --gold:       #c6a24e;   /* umbrella accent */
  --accent:     var(--gold);
  --accent-ink: #1a1712;

  --font-display: "Fraunces", Georgia, 'Times New Roman', serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* per-division accent overrides */
body.division-ai     { --accent: #6f9dff; --accent-ink: #0c1020; }
body.division-models { --accent: #dd8a6b; --accent-ink: #241410; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* subtle grain + glow atmosphere on dark bg */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 75% -10%, rgba(198,162,78,0.10), transparent 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(198,162,78,0.05), transparent 60%),
    var(--ink);
}
body.division-ai::before {
  background:
    radial-gradient(120% 80% at 75% -10%, rgba(111,157,255,0.12), transparent 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(111,157,255,0.06), transparent 60%),
    var(--ink);
}
body.division-models::before {
  background:
    radial-gradient(120% 80% at 75% -10%, rgba(221,138,107,0.13), transparent 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(221,138,107,0.06), transparent 60%),
    var(--ink);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- shared type utilities ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 6vw; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent); opacity: 0.6;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-optical-sizing: auto;
}
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 6vw; height: 68px;
  background: rgba(16,13,12,0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-dk);
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text);
}
.brand-mark b { color: var(--accent); font-weight: 600; }
.brand-sub {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-dim);
  transition: color 0.25s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px; border: 1px solid var(--accent);
  border-radius: 100px; color: var(--accent) !important; font-size: 13px; font-weight: 600;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 100px; font-size: 14.5px; font-weight: 600;
  transition: all 0.28s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(198,162,78,0.28); }
body.division-ai     .btn-solid:hover { box-shadow: 0 12px 34px rgba(111,157,255,0.30); }
body.division-models .btn-solid:hover { box-shadow: 0 12px 34px rgba(221,138,107,0.30); }
.btn-ghost { border-color: var(--line-dk); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-dim); background: rgba(236,229,216,0.05); }
.btn .arr { transition: transform 0.28s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---- sections ---- */
section { padding: 120px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.02em; margin: 18px 0 0;
}
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin-top: 20px; max-width: 520px; }

.paper { background: var(--paper); color: var(--ink-text); }
.paper .eyebrow { color: var(--ink-text); }
.paper .eyebrow::before { background: var(--ink-text); }
.paper .section-head p { color: var(--ink-dim); }

/* ---- footer ---- */
.footer {
  background: var(--ink-2); border-top: 1px solid var(--line-dk);
  padding: 72px 6vw 40px;
}
.footer-top {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line-dk);
}
.footer-brand .brand-mark { font-size: 24px; }
.footer-brand p { color: var(--text-dim); font-size: 0.95rem; margin-top: 16px; max-width: 320px; }
.foot-logo { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.foot-logo img { height: 24px; width: auto; opacity: 0.78; }
.foot-logo span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px; font-weight: 600;
}
.footer-col a { display: block; color: var(--text-dim); font-size: 0.95rem; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  max-width: var(--maxw); margin: 28px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 12.5px;
}

/* ---- reveal on load ---- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}
.d4{animation-delay:.35s}.d5{animation-delay:.45s}.d6{animation-delay:.55s}

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 84px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
