/* =========================================================================
   ACube International — design tokens, reset, typography, chrome
   Palette is sampled from the printed brand artwork:
   leaf greens #1F5B2B → #82C746, orbit blues #1B72A3 → #2798C2.
   ========================================================================= */

:root {
  /* Leaf greens */
  --forest-950: #06150B;
  --forest-900: #0A2112;
  --forest-850: #0E2C18;
  --forest-800: #14401F;
  --forest-700: #1F5B2B;
  --forest-600: #2C7735;
  --green-500:  #3E9B41;
  --green-400:  #58B344;
  --green-300:  #78C546;
  --lime-300:   #9BD44D;
  --lime-200:   #BCE36A;

  /* Orbit blues */
  --ocean-800: #0E4A6E;
  --ocean-700: #15587F;
  --ocean-600: #1B72A3;
  --ocean-500: #2288B6;
  --ocean-400: #2798C2;
  --ocean-300: #4FB8DA;

  /* Neutrals */
  --paper:     #FFFFFF;
  --cream:     #F8F6EF;
  --cream-2:   #EFEDE2;
  --cream-3:   #E3E1D4;
  --ink:       #0B1F12;
  --ink-soft:  #3C4B41;
  --muted:     #6C7B71;
  --line:      rgba(11, 31, 18, 0.10);

  /* Brand gradients */
  --grad-brand: linear-gradient(118deg, var(--lime-300) 0%, var(--green-400) 34%, var(--forest-600) 62%, var(--ocean-500) 100%);
  --grad-leaf:  linear-gradient(158deg, var(--lime-200) 0%, var(--green-400) 38%, var(--forest-700) 100%);
  --grad-orbit: linear-gradient(135deg, var(--ocean-300) 0%, var(--ocean-600) 70%, var(--ocean-800) 100%);

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(11, 31, 18, .06), 0 2px 8px rgba(11, 31, 18, .05);
  --sh-md: 0 10px 24px -12px rgba(11, 31, 18, .22), 0 2px 8px rgba(11, 31, 18, .05);
  --sh-lg: 0 32px 64px -28px rgba(11, 31, 18, .32), 0 8px 24px -12px rgba(11, 31, 18, .14);
  --sh-glow: 0 0 0 1px rgba(155, 212, 77, .22), 0 24px 60px -24px rgba(62, 155, 65, .5);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.8rem, .76rem + .18vw, .9rem);
  --step-0:  clamp(.95rem, .9rem + .22vw, 1.0625rem);
  --step-1:  clamp(1.1rem, 1.02rem + .36vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.18rem + .72vw, 1.85rem);
  --step-3:  clamp(1.7rem, 1.38rem + 1.35vw, 2.6rem);
  --step-4:  clamp(2.1rem, 1.56rem + 2.3vw, 3.7rem);
  --step-5:  clamp(2.6rem, 1.6rem + 4.1vw, 5.6rem);

  /* Layout */
  --gutter: clamp(1rem, .5rem + 2.4vw, 2.75rem);
  --maxw: 1240px;
  --maxw-narrow: 820px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --header-h: 120px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--lime-200); color: var(--forest-900); }

/* ----------------------------------------------------------- typography */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 450;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.04;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.serif-italic { font-style: italic; font-variation-settings: "SOFT" 40, "WONK" 1; }

/* -------------------------------------------------------------- layout */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.shell-narrow { width: min(100% - (var(--gutter) * 2), var(--maxw-narrow)); margin-inline: auto; }

.section { position: relative; padding: clamp(4.5rem, 2.5rem + 8vw, 9rem) 0; }
.section-sm { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1rem, .6rem + 1.3vw, 1.75rem); }
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--forest-800);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  padding: .95em 1.7em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), color .3s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-brand);
  opacity: 0;
  transform: scale(.4);
  border-radius: inherit;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-glow); }
.btn:hover::before { opacity: 1; transform: scale(1.08); }
.btn:active { transform: translateY(-1px); }
.btn .btn-ico { transition: transform .45s var(--ease-out); }
.btn:hover .btn-ico { transform: translateX(4px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { --btn-fg: #fff; }

.btn-lg { padding: 1.12em 2.1em; font-size: var(--step-0); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest-600);
}
.link-arrow svg { transition: transform .45s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------------------------------------------------------------- pills */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .45em 1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); flex: none; }

/* -------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease-out), background .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 246, 239, .78);
  backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck { height: 88px; }
.site-header.is-stuck::before { opacity: 1; border-bottom-color: var(--line); }

.header-inner {
  position: relative;
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* The printed lockup in full — wordmark and tagline — sized so all three
   lines actually read. The header is taller to give it room. */
.brand { display: flex; align-items: center; flex: none; }
.brand-logo {
  height: clamp(54px, 3.6vw + 40px, 86px);
  width: auto;
  max-width: none;
  transition: height .4s var(--ease-out);
}
.site-header.is-stuck .brand-logo { height: clamp(44px, 2.4vw + 33px, 62px); }

.primary-nav { display: none; }
@media (min-width: 1020px) {
  .primary-nav { display: flex; align-items: center; gap: clamp(.4rem, .9vw, 1.1rem); }
}

.nav-link {
  position: relative;
  padding: .55em .9em;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .9em;
  right: .9em;
  bottom: .34em;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--forest-700); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: none; }
@media (min-width: 1020px) { .header-cta { display: inline-flex; } }

/* Mobile menu */
.burger {
  --bar: var(--ink);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 0;
  border-radius: 14px;
  background: rgba(11, 31, 18, .05);
  cursor: pointer;
}
@media (min-width: 1020px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--bar);
  transition: transform .4s var(--ease-out), opacity .25s;
}
.burger span:nth-child(2) { width: 70%; margin-left: auto; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 3rem;
  background: linear-gradient(168deg, #FFFFFF 0%, #F3FAE7 58%, #E6F3D2 100%);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 46px) 42px);
  transition: clip-path .72s var(--ease-out), opacity .35s, visibility .35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 46px) 42px); }
.mobile-nav a {
  display: block;
  padding: .42em 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1rem + 5.5vw, 3rem);
  line-height: 1.16;
  color: var(--ink);
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), color .3s;
}
.mobile-nav.is-open a { opacity: 1; transform: none; transition-delay: calc(.16s + var(--i, 0) * .06s); }
.mobile-nav a:hover { color: var(--forest-600); }
.mobile-nav .mobile-foot {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: .04em;
}
.mobile-nav .mobile-foot a { font-size: inherit; font-family: inherit; color: var(--forest-600); display: inline; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 3px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: var(--grad-brand);
  pointer-events: none;
}

/* -------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, #F4FAEA 0%, #E8F4D6 100%);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0 2rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 70%;
  background: radial-gradient(60% 100% at 30% 0%, rgba(120, 197, 70, .24), transparent 70%),
              radial-gradient(50% 100% at 80% 10%, rgba(34, 136, 182, .12), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr .8fr .8fr 1.1fr; } }

.footer-logo { height: 62px; width: auto; max-width: none; margin-bottom: 1.5rem; }
.footer-title {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.25rem;
}
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-list a { color: var(--ink-soft); transition: color .3s, transform .3s var(--ease-out); display: inline-block; }
.footer-list a:hover { color: var(--forest-600); transform: translateX(4px); }

.footer-bottom {
  position: relative;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: clamp(1rem, 2vw, 2rem);
  bottom: clamp(1rem, 2vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--forest-800);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  box-shadow: var(--sh-md);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), background .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-500); }

/* ------------------------------------------------------ reveal engine */

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--ease-out) calc(var(--i, 0) * 85ms),
    transform 1.05s var(--ease-out) calc(var(--i, 0) * 85ms),
    filter .9s var(--ease-out) calc(var(--i, 0) * 85ms);
  filter: blur(6px);
}
[data-reveal="left"]  { transform: translate3d(-34px, 0, 0); }
[data-reveal="right"] { transform: translate3d(34px, 0, 0); }
[data-reveal="zoom"]  { transform: scale(.94); }
[data-reveal="clip"]  { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out) calc(var(--i, 0) * 85ms); }

/* On phones the side-entry reveals would sit outside the viewport before
   they fire, so they come up from below instead. */
@media (max-width: 760px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translate3d(0, 26px, 0); }
}

.is-revealed[data-reveal] { opacity: 1; transform: none; filter: none; }
.is-revealed[data-reveal="clip"] { clip-path: inset(0 0 0 0); }

/* Word-by-word headline mask */
.reveal-words { display: block; }
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.reveal-words .w > span {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  transition: transform 1.15s var(--ease-out) calc(var(--i, 0) * 62ms);
}
.is-revealed .reveal-words .w > span,
.reveal-words.is-revealed .w > span { transform: none; }

/* ------------------------------------------------------------ a11y */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: .75em 1.4em;
  background: var(--forest-800);
  color: #fff;
  border-radius: 0 0 12px 12px;
  font-size: var(--step--1);
  font-weight: 600;
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .reveal-words .w > span { transform: none !important; }
  .globe-ship { display: none !important; }
  .hero-photo img { animation: none !important; transform: none !important; }
}

/* The taller header is for the full lockup on desktop; phones need the
   hero space back. */
@media (max-width: 700px) {
  :root { --header-h: 98px; }
  .site-header.is-stuck { height: 78px; }
}
