/* ============================================
   tauranga.ai — Stylesheet
   Aesthetic: Refined Editorial
   Fonts: DM Serif Display + Poppins
   ============================================ */

/* --- CSS Variables --- */
:root {
  --gold:        #f0b90b;
  --gold-dim:    rgba(240, 185, 11, 0.15);
  --charcoal:    #2c2927;
  --charcoal-2:  #534a45;
  --charcoal-3:  #1e1b19;
  --off-white:   #f2f1e5;
  --warm-mid:    #e8e4d9;
  --white:       #ffffff;
  --gray:        #808285;
  --border:      rgba(44, 41, 39, 0.12);
  --border-dark: rgba(255, 255, 255, 0.09);
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'Poppins', sans-serif;
  --container:   1200px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--charcoal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.05rem; }

p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.85;
}

/* Kicker label */
.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-intro {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--gray);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--white);
}

.btn-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--charcoal);
}

.btn-gold:hover {
  background: var(--charcoal-3);
  border-color: var(--charcoal-3);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--charcoal);
}

/* --- Scroll reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.24s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 32px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 0;
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color var(--transition);
  flex-shrink: 0;
  font-style: italic;
}

.site-header.scrolled .nav-logo { color: var(--charcoal); }
.nav-logo em { color: var(--gold); font-style: normal; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--white); }

.site-header.scrolled .nav-links a { color: var(--charcoal-2); }
.site-header.scrolled .nav-links a:hover { color: var(--charcoal); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

.site-header.scrolled .nav-hamburger span { background: var(--charcoal); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--white);
  padding: 24px 40px;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: block; }

.nav-mobile a {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--charcoal); }
.nav-mobile .btn { display: block; text-align: center; margin-top: 20px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: var(--charcoal-3);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Neural network canvas — sits behind all hero content */
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* mouse events handled on hero element */
}

/* Ghost background word */
.hero-bg-word {
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 20vw, 22rem);
  color: rgba(255,255,255,0.025);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  font-style: italic;
  letter-spacing: -0.05em;
}

/* Vertical aside text */
.hero-aside {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 240px;
}

.hero-aside-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.hero-aside-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* Content */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
}

.hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-scroll-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.hero-scroll-track {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.hero-scroll-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: scrollDrop 1.8s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 200%; opacity: 0; }
}

/* Vertical page hero variant */
.hero-vertical {
  min-height: 72vh;
  padding: 160px 0 80px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* ============================================
   STATS — EDITORIAL HORIZONTAL LIST
   ============================================ */
.stats {
  background: var(--off-white);
  padding: 100px 0;
}

.stats-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.stats-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
}

.stats-header p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.stats-list { border-top: 1px solid var(--border); }

.stat-row {
  display: grid;
  grid-template-columns: 56px 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition), background var(--transition);
  cursor: default;
}

.stat-row:hover { padding-left: 16px; }

.stat-index {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.stat-figure {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  color: var(--charcoal);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-figure small {
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--charcoal-2);
  vertical-align: super;
}

.stat-row p {
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 32px;
  border-left: 1.5px solid var(--gold);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--white);
  padding: 120px 0;
}

.services-header {
  margin-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.service-card {
  padding: 64px 56px;
  position: relative;
  transition: background var(--transition);
}

.service-card:first-child {
  background: var(--charcoal);
}

.service-card:last-child {
  background: var(--off-white);
}

.service-card:first-child:hover { background: var(--charcoal-2); }
.service-card:last-child:hover  { background: var(--warm-mid); }

/* SVG icon */
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  color: var(--gold);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card:first-child h3 { color: var(--white); }
.service-card:last-child h3  { color: var(--charcoal); }

.service-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 16px;
}

.service-card:first-child > p { color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.service-card:last-child  > p { color: var(--gray); margin-bottom: 36px; }

.service-list {
  margin-bottom: 40px;
}

.service-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.service-card:last-child .service-list li {
  border-bottom-color: var(--border);
}

.service-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 400;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.service-card:first-child .service-list li { color: rgba(255,255,255,0.65); }
.service-card:last-child  .service-list li { color: var(--gray); }

/* ============================================
   INDUSTRIES — HORIZONTAL LIST
   ============================================ */
.industries {
  background: var(--charcoal);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Dot texture on dark section */
.industries::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.industries .section-header {
  text-align: left;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.industries .section-header h2 { color: var(--white); }

.industries-list {
  border-top: 1px solid var(--border-dark);
  position: relative;
  z-index: 2;
}

.industry-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-dark);
  text-decoration: none;
  transition: padding-left var(--transition);
}

.industry-row:hover { padding-left: 20px; }

.industry-initial {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
  letter-spacing: -0.04em;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.industry-row:hover .industry-initial { opacity: 1; }

.industry-row-body h3 {
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 6px;
  transition: color var(--transition);
}

.industry-row:hover .industry-row-body h3 { color: var(--gold); }

.industry-row-body p {
  color: rgba(255,255,255,0.42);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.6;
}

.industry-row-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--transition);
}

.industry-row:hover .industry-row-link { gap: 16px; }

.industry-row-link::after {
  content: '→';
  font-weight: 400;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  background: var(--off-white);
  padding: 120px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.why-content .kicker { margin-bottom: 20px; }
.why-content h2 { margin-bottom: 20px; }
.why-content > p { margin-bottom: 48px; font-size: 0.95rem; }

.why-points {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.why-point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.why-point-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--charcoal);
  opacity: 0.18;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.why-point-text h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0;
}

.why-point-text p { font-size: 0.88rem; margin: 0; }

/* Visual panel */
.why-visual {
  background: var(--charcoal);
  padding: 64px 56px;
  position: relative;
}

.why-visual::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold);
  opacity: 0.35;
  z-index: -1;
}

.why-visual-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 40px;
  font-style: italic;
}

.why-visual-quote strong {
  font-style: normal;
  color: var(--gold);
}

.why-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.why-stat strong {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.why-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--white);
  padding: 100px 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-header { position: sticky; top: 100px; }
.faq-header h2 { margin-bottom: 16px; }
.faq-header p { font-size: 0.92rem; }

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 28px 0;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  line-height: 1.5;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--charcoal-3); }

.faq-icon {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition);
  font-weight: 300;
  line-height: 1;
  margin-top: 2px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--gold);
}

.faq-answer {
  display: none;
  padding-bottom: 28px;
}

.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 0.92rem; line-height: 1.85; }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--charcoal-3);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info .kicker { margin-bottom: 20px; }
.contact-info h2 { color: var(--white); margin-bottom: 20px; }
.contact-info > p { color: rgba(255,255,255,0.55); margin-bottom: 16px; font-size: 0.95rem; }
.