/* =========================================================
   ASWE corporate website — layout + components on top of
   the design system tokens in colors_and_type.css
   ========================================================= */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg1);
  /* NOTE: overflow-x:hidden here would break position:sticky on the header.
     We prevent horizontal drag via max-width clamps on layout containers
     below instead. */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Hard guarantee: no descendant can push past viewport width on mobile */
#root, .shell, main, section, .page { max-width: 100vw; }

/* ----- LAYOUT ----- */
.shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}

main { flex: 1; }

section {
  padding: var(--space-24) 0;       /* 96px — matches brand "generous" rhythm */
  position: relative;
}
section.section-tight { padding: var(--space-20) 0; }   /* 80px */
section.section-loose { padding: 128px 0; }              /* full brand-max */

.bg-subtle  { background: var(--gray-50); }
.bg-azure   { background: var(--azure-50); }
.bg-moss    { background: var(--moss-50); }
.bg-orange  { background: var(--orange-50); }
.bg-inverse { background: var(--gray-900); color: var(--fg-inverse); }
.bg-inverse h1, .bg-inverse h2, .bg-inverse h3 { color: var(--fg-inverse); }
.bg-inverse p { color: rgba(255,255,255,0.78); }

/* ----- HEADER ----- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out);
}
/* Border line appears only after scrolling away from the top */
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.nav-logo svg {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  background: none;
  border: 0;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg2);
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-link:hover { color: var(--fg1); background: var(--gray-50); }
.nav-link.is-active { color: var(--aswe-azure-blue); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--aswe-azure-blue);
  border-radius: 2px;
}
.nav-shop {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: 0;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-shop:hover { background: var(--primary-hover); color: white; text-decoration: none; }
.nav-shop svg { width: 14px; height: 14px; }

/* ============================================================
   BUTTONS — three tiers, brand-aligned
   - btn-primary  : filled Azure, white text  (primary action)
   - btn-secondary: outlined, fg text         (secondary action)
   - btn-link     : inline text + arrow       (in-flow nav cue)
   All share size, radius (10px per brand spec), and motion.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover svg { transform: translateX(3px); }

/* Primary — Azure filled */
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; }
.btn-primary:active { background: var(--primary-press); border-color: var(--primary-press); }

/* Secondary — outlined */
.btn-secondary {
  background: white;
  color: var(--fg1);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--gray-50); color: var(--fg1); border-color: var(--gray-400); }
.btn-secondary:active { background: var(--gray-100); }

/* Ghost — quiet alt for tight rows */
.btn-ghost {
  background: transparent;
  color: var(--fg1);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-50); color: var(--fg1); }

/* Inline link with arrow — used inside cards, eyebrows, prose */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.btn-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-link:hover { color: var(--primary-hover); text-decoration: none; }
.btn-link:hover svg { transform: translateX(3px); }
.btn-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 137, 221, 0.18);
  border-radius: var(--radius-xs);
}

/* ----- TYPOGRAPHY HELPERS ----- */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.eyebrow-quiet { color: var(--fg3); }
.eyebrow.eyebrow-quiet::before { background: var(--gray-300); }

.display-1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  /* Scales further on ultra-wide screens (27" monitors hit the cap) */
  font-size: clamp(36px, 6vw, 104px);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg1);
  text-wrap: balance;
}
.display-2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 4.2vw, 72px);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg1);
  text-wrap: balance;
}
.display-3 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(24px, 2.8vw, 52px);
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg1);
  text-wrap: balance;
}
.bg-inverse .display-1, .bg-inverse .display-2, .bg-inverse .display-3 { color: white; }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: var(--lh-relaxed);
  color: var(--fg2);
  font-weight: var(--fw-regular);
  max-width: 60ch;
  text-wrap: pretty;
}
.signature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--fg3);
  letter-spacing: 0.01em;
  font-style: italic;
}
.signature .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ----- HERO ----- */
.hero {
  position: relative;
  padding: var(--space-24) 0 128px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--azure-50) 100%);
}
.hero-bgmark {
  position: absolute;
  right: -160px; bottom: -200px;
  width: 720px; height: 720px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  animation: bgmarkSpin 90s linear infinite;
}
@keyframes bgmarkSpin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .hero-bgmark { width: 460px; height: 460px; right: -120px; bottom: -160px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.hero-sig { margin-top: 28px; }

.hero-mark {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 620px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { max-width: 420px; margin: 0 auto; }
}

/* watermark mark in background of certain sections */
.watermark {
  position: absolute;
  inset: auto -10% -25% auto;
  width: 60vw;
  max-width: 800px;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.watermark svg { width: 100%; height: auto; }

/* ----- SECTION HEADS ----- */
.section-head {
  max-width: 880px;
  margin-bottom: var(--space-16);   /* 64px — was 72px */
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lede { margin-top: var(--space-6); }

/* ----- TWO-COLUMN ARTICLE ----- */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-16);            /* 64px — was 96, too generous */
  align-items: start;
}
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-art { order: 1; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-copy, .split.reverse .split-art { order: initial; }
}
.split-copy h2 { margin-bottom: var(--space-6); }
.split-copy p { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--fg2); margin: 0; }
.split-copy p + p { margin-top: var(--space-5); }

.split-quote {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: var(--lh-snug);
  letter-spacing: -0.015em;
  color: var(--fg1);
  margin: 0;
  text-wrap: balance;
}
.split-quote em {
  font-style: italic;
  color: var(--aswe-azure-blue);
  font-weight: var(--fw-light);
}

/* ----- FEATURE CARDS (tinted icon, kit-style) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.feature-card h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
  color: var(--fg1);
  margin: 0;
}
.feature-card p {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--fg2);
  margin: 0;
}

/* ----- ELEMENT CARDS (Meaning of ASWE) ----- */
.elements-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 800px) {
  .elements-row { grid-template-columns: repeat(2, 1fr); }
}
.element-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 28px;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.element-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.element-card .el-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: currentColor;
  position: relative;
  z-index: 1;
}
.element-card .el-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}
.element-card h4 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.element-card p {
  font-size: var(--fs-sm);
  color: var(--fg3);
  margin: 0;
  line-height: 1.55;
  text-wrap: nowrap;
}
.element-card .letter {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  z-index: 0;
  font-weight: var(--fw-bold);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: currentColor;
  opacity: 0.08;
}

/* ----- BUSINESS CARD ----- */
.business-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 40px;
  align-items: center;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.business-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.business-card .bc-eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--aswe-azure-blue);
  font-weight: var(--fw-bold);
  margin-bottom: 14px;
}
.business-card h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.business-card p {
  font-size: var(--fs-md);
  color: var(--fg2);
  margin: 0 0 28px;
  max-width: 56ch;
}
.business-card .bc-art {
  width: 180px;
  height: 180px;
  position: relative;
}
@media (max-width: 800px) {
  .business-card { grid-template-columns: 1fr; padding: 32px; }
  .business-card .bc-art { width: 140px; height: 140px; }
}

/* ----- CLOSING LINE ----- */
.closing {
  text-align: center;
  padding: var(--space-24) 0;        /* was 120px */
  position: relative;
}
.closing-line {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);  /* was up to 64 — felt shouty */
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  color: var(--fg1);
  margin: 0;
  text-wrap: balance;
}
.bg-inverse .closing-line { color: white; }
.closing-rule {
  width: 32px;
  height: 2px;
  background: var(--aswe-bright-orange);
  margin: 0 auto 36px;
  border-radius: 2px;
}

/* ----- FOOTER (light, kit-style) ----- */
.footer {
  background: white;
  color: var(--fg2);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 320px;
}
.footer-brand-mark {
  display: flex; align-items: center; gap: 12px;
}
.footer-brand-mark svg { height: 30px; width: auto; }
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--fg2);
  line-height: 1.6;
  margin: 0;
}
.footer-brand .footer-sig-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--fg3);
  font-style: italic;
  margin-top: 4px;
}
.footer-brand .footer-sig-inline::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

.footer-col h6 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  font-weight: var(--fw-bold);
  color: var(--fg3);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col a, .footer-col button {
  color: var(--fg2);
  font-size: var(--fs-sm);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover, .footer-col button:hover {
  color: var(--fg1);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--fg3);
}
.footer-legal { flex: 0 0 auto; }

.made-in-india {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--fg2);
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}
.made-in-india em {
  font-style: italic;
  font-weight: var(--fw-regular);
  color: var(--fg3);
}
.made-in-india .india-flag {
  width: 32px;
  height: auto;
  border-radius: 2px;
  display: block;
  flex: 0 0 auto;
}
.footer-petals {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.footer-petals .dot {
  width: 8px; height: 8px; border-radius: 50%;
}

/* Social media icons (footer) — circle, gray default, brand on hover */
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--fg2);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover {
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}
/* Per-platform brand colors on hover */
.footer-social li:nth-child(1) a:hover { background: #0A66C2; }                /* LinkedIn — official blue */
.footer-social li:nth-child(2) a:hover {                                       /* Instagram — official gradient */
  background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
}
.footer-social li:nth-child(3) a:hover { background: var(--aswe-ink); }        /* X → ink */
.footer-social li:nth-child(4) a:hover { background: #FF0000; }                /* YouTube — official red */
.footer-social a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* ----- CONTACT ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-of-type { border-top: 1px solid var(--border); }
.contact-row .label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--fg3);
  font-weight: var(--fw-bold);
}
.contact-row .value {
  font-size: var(--fs-md);
  color: var(--fg1);
  font-weight: var(--fw-medium);
}
.contact-row .value.placeholder {
  color: var(--fg3);
  font-style: italic;
  font-weight: var(--fw-regular);
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.contact-form h4 {
  margin-bottom: 28px;
  font-size: var(--fs-xl);
  letter-spacing: -0.015em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.field label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--fg3);
  font-weight: var(--fw-bold);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--fg1);
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  outline: none;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  background: white;
  border-color: var(--aswe-azure-blue);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.contact-form .btn { margin-top: 12px; }

.form-success {
  background: var(--moss-50);
  color: var(--moss-700);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-top: 16px;
  border: 1px solid var(--moss-200);
}

/* ----- PAGE ENTRY ANIMATION ----- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page { animation: pageIn 420ms var(--ease-out) both; }

/* ----- SCROLL REVEAL (disabled — content always visible) ----- */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----- HERO PINWHEEL ----- */
.pinwheel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.pinwheel-stage .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--gray-200);
  animation: ringRotate 60s linear infinite;
}
.pinwheel-stage .ring.r2 {
  inset: 8%;
  animation-duration: 90s;
  animation-direction: reverse;
}
.pinwheel-stage .ring.r3 {
  inset: 16%;
  animation-duration: 120s;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.pinwheel-svg {
  width: 78%;
  height: 78%;
  filter: drop-shadow(0 30px 60px rgba(0, 137, 221, 0.12));
}
.pinwheel-svg .petal {
  transform-origin: 540px 420px;
  transform-box: fill-box;
  transition: transform 700ms var(--ease-out);
}

.element-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-cap);
  color: var(--fg1);
  box-shadow: var(--shadow-sm);
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  transition: transform 600ms var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.element-tag .swatch {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 auto;
}
.element-tag.water {
  top: 4%; left: 18%;
}
.element-tag.sun {
  top: 14%; right: -2%;
}
.element-tag.air {
  bottom: 14%; left: -2%;
}
.element-tag.earth {
  bottom: 4%; right: 18%;
}

/* ----- SUB CTA ROW ----- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ----- INLINE LIST ----- */
.inline-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.inline-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: var(--fs-md);
  color: var(--fg2);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.inline-list li:last-child { border-bottom: 0; }
.inline-list .num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: var(--tracking-cap);
  min-width: 28px;
}

/* small visual flourish for the brand name */
.aswe-letters {
  display: inline-flex;
  gap: 0.02em;
}
.aswe-letters span {
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  transition: color 600ms var(--ease-out), transform 600ms var(--ease-out);
}
/* A=Air=gray, S=Sun=orange, W=Water=azure, E=Earth=moss */
.aswe-letters.colored span:nth-child(1) { color: var(--aswe-cool-gray); }
.aswe-letters.colored span:nth-child(2) { color: var(--aswe-bright-orange); }
.aswe-letters.colored span:nth-child(3) { color: var(--aswe-azure-blue); }
.aswe-letters.colored span:nth-child(4) { color: var(--aswe-forest-moss-green); }

/* ============================================================
   RESPONSIVE — mobile + tablet refinements
   ============================================================ */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  section.section-tight { padding: 56px 0; }
  section.section-loose { padding: 96px 0; }
  .container, .container-wide { padding: 0 24px; }
  .section-head { margin-bottom: 48px; }
  .hero { padding: 64px 0 80px; }
  .closing { padding: 80px 0; }
  .business-card { padding: 32px; gap: 24px; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  section.section-tight { padding: 48px 0; }
  section.section-loose { padding: 80px 0; }
  .container, .container-wide { padding: 0 20px; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 40px 0 56px; }
  .hero-grid { gap: 40px; }
  .closing { padding: 64px 0; }
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 36px; margin-bottom: 40px; }
  .business-card { padding: 24px; border-radius: var(--radius-lg); }
  .business-card .bc-art { width: 100px; height: 100px; }
  .contact-form { padding: 28px 24px; }
  .nav-inner { height: 64px; }
  .nav-logo svg { height: 26px; }
  .hero-bgmark { width: 360px; height: 360px; right: -100px; bottom: -120px; opacity: 0.08; }
  .btn { padding: 12px 22px; font-size: var(--fs-sm); }
  .hero-actions { gap: 8px; }
  .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .split, .split.reverse { gap: 36px; }
  .elements-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .element-card { padding: 20px 18px; }
  .element-card .letter { font-size: 40px; top: 12px; right: 14px; }
  .feature-grid { gap: 14px; margin-top: 36px; }
  .feature-card { padding: 24px; }
  .closing-line { font-size: clamp(24px, 7.5vw, 36px); }
  .footer-bottom { font-size: 11px; gap: 12px; }
  .inline-list li { font-size: var(--fs-base); gap: 14px; padding-bottom: 12px; }
  .contact-row { padding: 16px 0; }
  .lede { font-size: 16px; line-height: 1.55; }
  /* Hero mark and element labels — shrink for phone */
  .hero-mark { max-width: 320px; }
  .element-tag {
    font-size: 10px;
    padding: 6px 10px;
    gap: 6px;
  }
  .element-tag .swatch { width: 8px; height: 8px; }
  .ticker { padding: 16px 0; }
  .ticker-item { font-size: 16px; padding: 0 20px; gap: 16px; }
  .ticker-item .dot { width: 7px; height: 7px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .business-card { grid-template-columns: 1fr; }
  .business-card .bc-art { display: none; }
  .hero-mark { max-width: 280px; }
  .hero { padding: 32px 0 48px; }
  /* Tighten element-tag positions so they don't fall off-screen */
  .element-tag.sun   { right: 0; }
  .element-tag.air   { left: 0; }
  .element-tag.water { top: 0; left: 12%; }
  .element-tag.earth { bottom: 0; right: 12%; }
}

/* ----- MOBILE NAV ----- */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--fg1);
}
.nav-burger:hover { background: var(--gray-50); }
.nav-burger svg { width: 24px; height: 24px; }
.nav-mobile {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 51;
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  animation: navMobileIn 220ms var(--ease-out);
}
@keyframes navMobileIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav-mobile.is-open { display: flex; }
.nav-mobile .nav-link {
  padding: 16px 12px;
  font-size: var(--fs-md);
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  border-radius: 0;
}
.nav-mobile .nav-link.is-active::after { display: none; }
.nav-mobile .nav-link.is-active { color: var(--aswe-azure-blue); }
.nav-mobile .nav-shop {
  margin: 16px 12px 0;
  align-self: flex-start;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .nav-mobile { top: 64px; }
}

/* ----- READABILITY ----- */
@media (max-width: 640px) {
  /* keep oversized display headings from breaking the layout */
  h1, .display-1 { word-break: break-word; }
  /* allow horizontal scroll guard */
  body { overflow-x: hidden; }
}


/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
  overflow: hidden;
  padding: 22px 0;
  position: relative;
}
.ticker.ticker-inverse {
  background: var(--gray-900);
  border-color: rgba(255,255,255,0.08);
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: tickerSlide 38s linear infinite;
  width: max-content;
}
/* No hover pause — the marquee runs continuously even when the cursor
   is over it. */
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  color: var(--fg1);
}
.ticker.ticker-inverse .ticker-item { color: rgba(255,255,255,0.92); }
.ticker-item .dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex: 0 0 auto;
}
.ticker-item.azure  { color: var(--aswe-azure-blue);        }
.ticker-item.orange { color: var(--aswe-bright-orange);     }
.ticker-item.moss   { color: var(--aswe-forest-moss-green); }
.ticker-item.gray   { color: var(--aswe-cool-gray);         }
.ticker-item .em {
  font-style: italic;
  font-weight: var(--fw-light);
}

/* ============================================================
   TEXT ACCENTS — selective color highlights on key words
   ============================================================ */
.accent-azure  { color: var(--aswe-azure-blue);        }
.accent-orange { color: var(--aswe-bright-orange);     }
.accent-moss   { color: var(--aswe-forest-moss-green); }
.accent-gray   { color: var(--aswe-cool-gray);         }
.accent-italic {
  font-style: italic;
  font-weight: var(--fw-light);
  letter-spacing: -0.005em;
}
/* thin underline beneath an emphasised word, in current color */
.accent-uline {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 100% 8%;
  background-position: 0 95%;
  padding-bottom: 0.06em;
}

/* ============================================================
   LEGAL PAGES — long-form prose (Privacy / Terms)
   ============================================================ */
.legal-meta {
  color: var(--fg3);
  font-size: var(--fs-sm);
  margin: 16px 0 0;
}
.legal-note {
  max-width: 760px;
  margin: 20px 0 0;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  color: var(--fg3);
  font-size: var(--fs-sm);
  line-height: var(--lh-normal);
}
.legal-prose {
  max-width: 760px;
}
.legal-prose > p:first-child {
  font-size: var(--fs-md);
  color: var(--fg2);
}
.legal-prose h2 {
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  margin: 48px 0 12px;
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p {
  color: var(--fg2);
  line-height: var(--lh-relaxed);
  margin: 0 0 16px;
}
.legal-prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-prose li {
  color: var(--fg2);
  line-height: var(--lh-relaxed);
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ============================================================
   FIRST-VISIT SPLASH SCREEN — v5 (orbiting elements)
   Pinwheel center stage, properly sized. Four colored dots
   orbit around it (Air · Sun · Water · Earth). Bottom: a thin
   gradient progress bar.
   Phases: intro → spin → out
   ============================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 0 24px;
  touch-action: none;
  animation: splashIn 360ms var(--ease-out);
}
@media (max-width: 640px) {
  .splash { padding: 0 20px; }
}
@keyframes splashIn { from { opacity: 0; } to { opacity: 1; } }

/* Stage — perfectly square, holds the orbit + the pinwheel */
.splash-stage {
  position: relative;
  width: clamp(160px, 30vmin, 280px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .splash-stage { width: clamp(140px, 40vmin, 220px); }
}

/* Soft brand-color halo behind the pinwheel — gently pulses */
.splash-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 160%; height: 160%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side,
      rgba(0, 137, 221, 0.16) 0%,
      rgba(255, 103, 0, 0.10) 35%,
      rgba(81, 115, 28, 0.06) 60%,
      transparent 78%);
  filter: blur(28px);
  pointer-events: none;
  opacity: 0;
  animation: glowIn 1200ms var(--ease-out) 200ms forwards,
             glowPulse 5s ease-in-out 1400ms infinite alternate;
}
@keyframes glowIn   { to   { opacity: 1; } }
@keyframes glowPulse {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* Pinwheel container fills the stage */
.splash-pinwheel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Override the default 78% sizing — fill the splash stage */
.splash-pinwheel .pinwheel-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 22px 50px rgba(0, 137, 221, 0.08));
}

/* Bottom edge — gradient progress bar */
.splash-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gray-100);
}
@media (max-width: 640px) {
  .splash-progress { height: 2px; }
}
.splash-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    var(--aswe-azure-blue) 0%,
    var(--aswe-bright-orange) 33%,
    var(--aswe-cool-gray) 66%,
    var(--aswe-forest-moss-green) 100%);
  transition: width 2400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.splash.phase-spin .splash-progress > span,
.splash.phase-out  .splash-progress > span { width: 100%; }

/* Phase: out — whole splash fades + scales up + blurs */
.splash.phase-out {
  pointer-events: none;
  animation: splashOut 600ms var(--ease-out) forwards;
}
@keyframes splashOut {
  0%   { opacity: 1; transform: scale(1)    translateY(0); filter: blur(0px); }
  100% { opacity: 0; transform: scale(1.04) translateY(-14px); filter: blur(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash, .splash-glow, .splash-progress > span, .splash.phase-out {
    animation: none !important;
    transition: none !important;
  }
  .splash-glow { opacity: 0.8; }
  .splash-progress > span { width: 100%; }
  .splash.phase-out { display: none; }
}

/* Petal assembly — each petal pops in from a smaller scale */
@keyframes petalAssemble {
  0%   { opacity: 0; transform: scale(0.5) translate(0, 8px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translate(0, 0); }
}
.pinwheel-stage.is-assembling .pinwheel-svg .petal {
  transform-origin: 540px 420px;
  transform-box: fill-box;
  opacity: 0;
  animation: petalAssemble 750ms var(--ease-out) forwards;
}
.pinwheel-stage.is-assembling .pinwheel-svg path.petal:nth-of-type(1) { animation-delay:  80ms; } /* Air */
.pinwheel-stage.is-assembling .pinwheel-svg path.petal:nth-of-type(2) { animation-delay: 230ms; } /* Sun */
.pinwheel-stage.is-assembling .pinwheel-svg path.petal:nth-of-type(3) { animation-delay: 380ms; } /* Water */
.pinwheel-stage.is-assembling .pinwheel-svg path.petal:nth-of-type(4) { animation-delay: 530ms; } /* Earth */

/* Rings & element tags hold off during assembly so the petals own the moment */
.pinwheel-stage.is-assembling .ring   { opacity: 0; animation: fadeIn 600ms var(--ease-out) 900ms forwards; }
.pinwheel-stage.is-assembling .element-tag { opacity: 0; animation: tagPopIn 500ms var(--ease-out) forwards; }
.pinwheel-stage.is-assembling .element-tag.air   { animation-delay:  300ms; }
.pinwheel-stage.is-assembling .element-tag.sun   { animation-delay:  450ms; }
.pinwheel-stage.is-assembling .element-tag.water { animation-delay:  600ms; }
.pinwheel-stage.is-assembling .element-tag.earth { animation-delay:  750ms; }

@keyframes fadeIn   { to { opacity: 1; } }
@keyframes tagPopIn {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Hero copy — cascading entrance, after the pinwheel completes */
.hero-copy.first-visit > * {
  opacity: 0;
  transform: translateY(14px);
  animation: heroCopyIn 700ms var(--ease-out) forwards;
}
.hero-copy.first-visit > *:nth-child(1) { animation-delay: 900ms; }
.hero-copy.first-visit > *:nth-child(2) { animation-delay: 1080ms; }
.hero-copy.first-visit > *:nth-child(3) { animation-delay: 1240ms; }
.hero-copy.first-visit > *:nth-child(4) { animation-delay: 1400ms; }
@keyframes heroCopyIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pinwheel-stage.is-assembling .pinwheel-svg .petal,
  .pinwheel-stage.is-assembling .ring,
  .pinwheel-stage.is-assembling .element-tag,
  .hero-copy.first-visit > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   ULTRA-WIDE — 27" monitors and wider (≥1440px)
   Expands containers, bumps section padding, scales display
   typography further so content doesn't drown in white space.
   ============================================================ */
@media (min-width: 1440px) {
  .container       { max-width: 1320px; }
  .container-wide  { max-width: 1480px; }
  section          { padding: 128px 0; }
  section.section-loose { padding: 160px 0; }
  .hero            { padding: 128px 0 144px; }
  .hero-grid       { gap: 96px; }
}

@media (min-width: 1720px) {
  .container       { max-width: 1440px; }
  .container-wide  { max-width: 1600px; }
  section          { padding: 144px 0; }
  .hero            { padding: 144px 0 160px; }
  .lede            { font-size: 22px; }
}

@media (min-width: 2000px) {
  .container       { max-width: 1560px; }
  .container-wide  { max-width: 1760px; }
}

/* ============================================================
   ULTRA-NARROW (≤360px) — small Android safety net
   ============================================================ */
@media (max-width: 360px) {
  .container, .container-wide { padding: 0 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
