/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-copy.reveal { transform: translateX(-24px); }
.hero-copy.reveal.is-visible { transform: translateX(0); }
.hero-visual.reveal { transform: translateX(24px); }
.hero-visual.reveal.is-visible { transform: translateX(0); }
.founder-photo.reveal { transform: translateX(-24px); }
.founder-photo.reveal.is-visible { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Foundations ---------- */
:root {
  --navy:        #0B1F3A;
  --navy-deep:   #061224;
  --navy-soft:   #14304F;
  --gold:        #C8A24B;
  --gold-soft:   #E6CC85;
  --cream:       #F6F1E6;
  --paper:       #FFFFFF;
  --ink:         #0F1B2D;
  --ink-soft:    #4A5468;
  --line:        #E3E1DA;
  --shadow:      0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg:   0 30px 80px rgba(11, 31, 58, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
h4 {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  margin: 0 0 12px;
}

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow-dark { color: var(--navy); }
.eyebrow-gold { color: var(--gold-soft); }

.accent { color: var(--gold); font-style: italic; font-weight: 700; }

.section-lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 48px;
}

.muted { color: var(--ink-soft); }
.muted-small { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.h2-light { color: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--paper);
  padding: 14px 28px;
  border: 1px solid var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-sm { padding: 10px 20px; font-size: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-scrolled {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(11, 31, 58, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { height: 48px; width: auto; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav nav a:not(.btn):hover { color: var(--gold); }
.nav nav a.btn { color: var(--paper); }
.nav nav a.btn:hover { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(200,162,75,0.15), transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-soft) 100%);
  color: var(--paper);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero h1 { color: var(--paper); }
.hero .eyebrow { color: var(--gold-soft); }
.hero .lede {
  font-size: 20px;
  color: rgba(246,241,230,0.82);
  max-width: 580px;
  margin-top: 10px;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero .btn:hover { background: var(--paper); border-color: var(--paper); }
.hero .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.aukus-mark {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.5));
}
.aukus-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Slow rotation of the dashed outer ring */
.aukus-ring {
  transform-origin: 180px 180px;
  animation: aukusRotate 80s linear infinite;
}
@keyframes aukusRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Animated signal lines — the two diagonals flow in OPPOSITE directions
   (left diagonal forward, right diagonal backward) creating a continuous,
   balanced circulation between the three partners. */
.signal-line {
  stroke-dasharray: 6 10;
  stroke-dashoffset: 0;
}
.line-1 { animation: signalFlowForward 2.2s linear infinite; }
.line-2 { animation: signalFlowReverse 2.2s linear infinite; }
.line-3 { animation: signalFlowForward 4s linear infinite; opacity: 0.6; }

@keyframes signalFlowForward {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -48; }
}
@keyframes signalFlowReverse {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: 48; }
}

/* Pulsing glow behind each flag node, staggered */
.node-glow {
  transform-origin: center;
  animation: nodePulse 4s ease-in-out infinite;
}
.node-au .node-glow { animation-delay: 0s; }
.node-uk .node-glow { animation-delay: 1.3s; }
.node-us .node-glow { animation-delay: 2.6s; }
@keyframes nodePulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.1); }
}
.node-au .node-glow { transform-origin: 180px 78px; }
.node-uk .node-glow { transform-origin: 80px 252px; }
.node-us .node-glow { transform-origin: 280px 252px; }

/* Subtle floating on each flag node */
.aukus-node {
  animation: aukusFloat 7s ease-in-out infinite;
}
.node-au { animation-delay: 0s; }
.node-uk { animation-delay: 2s; }
.node-us { animation-delay: 4s; }
@keyframes aukusFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Gently breathing center crest */
.center-glow {
  transform-origin: 180px 180px;
  animation: centerBreathe 5s ease-in-out infinite;
}
@keyframes centerBreathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .aukus-ring, .signal-line, .aukus-node,
  .node-glow, .center-glow { animation: none; }
}

/* ---------- Section base ---------- */
.section { padding: 100px 0; }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--paper);
}
.section-dark p { color: rgba(246,241,230,0.78); }
.section-dark .section-lede { color: rgba(246,241,230,0.78); }
.section-dark h3 { color: var(--paper); }
.section-dark h4 { color: var(--gold-soft); }

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.card p { font-size: 15px; color: var(--ink-soft); }

.eco-card {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
  padding: 36px 32px;
}
.eco-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold-soft);
}

/* ---------- Services ---------- */
.services-list {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { color: var(--ink-soft); }

.benefits {
  margin-top: 60px;
  background: var(--cream);
  padding: 40px 44px;
  border-left: 4px solid var(--gold);
}
.benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 32px;
}
.benefits li {
  position: relative;
  padding-left: 22px;
  font-weight: 500;
}
.benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Founder ---------- */
.founder-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}
.founder-photo img {
  width: 100%;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}
.founder-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 18px;
}
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 28px 0;
}
.cred-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cred-grid li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(11,31,58,0.08);
  font-size: 15px;
}
.cred-grid li:last-child { border-bottom: none; }

/* ---------- Insights ---------- */
.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.insight-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.insight-card.placeholder { background: var(--cream); border-style: dashed; }
.insight-card h3 { font-size: 20px; }
.insight-card p { font-size: 15px; color: var(--ink-soft); }
.insight-card .card-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color 0.2s;
}
.insight-card:hover .card-link { color: var(--gold); }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}
.testimonial {
  margin: 0;
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
}
.testimonial p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--paper);
}
.testimonial footer {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.placeholder-dark { border-left-style: dashed; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-direct {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
}
.contact-direct a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-direct a:hover { color: var(--gold); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--navy); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,162,75,0.18);
}
.contact-form button { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(246,241,230,0.7);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo { height: 44px; width: auto; margin-bottom: 8px; filter: brightness(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner,
  .founder-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.btn) { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 90px; }
}

@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .grid-4 { grid-template-columns: 1fr; }
  .benefits { padding: 28px 24px; }
}
