/* ==========================================================================
   Axomis Labs — Thoughtful Solutions
   Palette, type, and spacing follow the Axomis Labs Brand Identity Guide.
   ========================================================================== */

:root {
  /* Brand palette (verbatim from the identity guide) */
  --charcoal: #2E3133;
  --copper:   #B66A3C;
  --olive:    #68724D;
  --stone:    #D7CFC3;
  --ivory:    #F7F5F0;

  /* Semantic tokens — light */
  --bg:          var(--ivory);
  --bg-sunk:     #F1EDE6;
  --text:        var(--charcoal);
  --text-muted:  #676B6D;
  --rule:        var(--stone);
  --accent:      var(--copper);
  /* Copper at full strength is 3.7:1 on ivory — fine for display type and rules,
     short of AA for small text. This darker step carries the small labels. */
  --accent-ink:  #8F4F28;
  --secondary:   var(--olive);

  --wrap:   1120px;
  --narrow: 760px;

  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #212426;
    --bg-sunk:    #1A1D1E;
    --text:       var(--ivory);
    --text-muted: #A5A099;
    --rule:       #3B3F41;
    --accent:     #D08A5C;
    --accent-ink: #D08A5C;
    --secondary:  #97A473;
  }
}

/* ── Base ──────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 6.4vw, 4.75rem); letter-spacing: -0.032em; line-height: 1.03; }

/* Typographic line breaks: they shape the desktop rag, but the forced lines are
   wider than a phone's content box, so they only apply once there is room. */
.brk { display: none; }
@media (min-width: 46rem) { .brk { display: inline; } }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.012em; }

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

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: var(--ivory); }

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

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 100; background: var(--charcoal); color: var(--ivory);
  padding: 0.7rem 1.25rem; border-radius: 0 0 4px 4px; text-decoration: none;
  font-size: 0.9rem; transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: translate(-50%, 0); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.wrap.narrow { max-width: var(--narrow); }

/* ── Shared type ───────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lead {
  font-size: clamp(1.075rem, 1.55vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34em;
}

.closing {
  color: var(--text-muted);
  max-width: 40em;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom-color: var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand picture { display: flex; }
.brand img { height: 30px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-name em { font-style: normal; font-weight: 500; color: var(--accent); }

.site-head nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.site-head nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}
.site-head nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.site-head nav a:hover { color: var(--text); }
.site-head nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.45rem 1.15rem !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  color: inherit;
}
.nav-toggle-bars { display: block; width: 18px; }
.nav-toggle-bars i {
  display: block; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars i + i { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 13vw, 9rem) clamp(5rem, 12vw, 8.5rem);
}

.hero-mark {
  position: absolute;
  top: 46%;
  right: -6%;
  width: min(46vw, 620px);
  height: auto;
  transform: translateY(-50%);
  color: var(--stone);
  opacity: 0.5;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero-mark { color: #33383A; opacity: 0.85; }
}

.hero-inner { position: relative; }
.hero h1 { margin-bottom: 1.6rem; max-width: 15ch; }
.hero .lead { margin-bottom: 2.5rem; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--ivory);
  transition: transform 0.2s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.button.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.button.ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent-ink); }

@media (prefers-color-scheme: dark) {
  .button { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
  .button:hover { background: var(--accent); border-color: var(--accent); color: var(--charcoal); }
  .button.ghost { background: transparent; color: var(--text); border-color: var(--rule); }
}

/* ── Bands ─────────────────────────────────────────────────────────────── */

.band { padding-block: var(--step); }

.band-head { max-width: var(--narrow); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.band-head h2 { margin-bottom: 1.35rem; }
.band-intro { color: var(--text-muted); max-width: 46ch; margin: 0; }

.belief { border-top: 1px solid var(--rule); }

.statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.024em;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  color: var(--text-muted);
}
.two-col p { margin: 0; }

/* ── What we do ────────────────────────────────────────────────────────── */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: clamp(2rem, 4.5vw, 3.5rem) clamp(2rem, 5vw, 4rem);
  counter-reset: none;
}

.card {
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
  position: relative;
}
.card::after {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover::after { transform: scaleX(1); }

.card-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  margin-bottom: 0.9rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); margin: 0; }

/* ── Philosophy (inverted) ─────────────────────────────────────────────── */

.philosophy {
  background: var(--charcoal);
  color: var(--ivory);
}
.philosophy .eyebrow { color: #D9955F; }
.philosophy .eyebrow::before { background: #D9955F; }
.philosophy .closing { color: #A8A9A2; }

.pull {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.028em;
  margin: 0 0 clamp(3rem, 6vw, 4.25rem);
  text-wrap: balance;
}
.pull-accent { color: #D9955F; }

.steps {
  list-style: none;
  margin: 0 0 clamp(2.75rem, 5vw, 3.75rem);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  counter-reset: step;
}
@media (min-width: 42rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.steps li { counter-increment: step; }
.steps li span {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.55rem;
}
.steps li span::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #D9955F;
  margin-bottom: 0.7rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(215, 207, 195, 0.22);
}
.steps li p { margin: 0; color: #A8A9A2; font-size: 0.9688rem; }

/* ── Values ────────────────────────────────────────────────────────────── */

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4.5vw, 3.5rem);
}
.values li { position: relative; padding-left: 1.85rem; }
/* Leaf mark — echoes the organic form in the logo's counter. */
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--secondary);
  border-radius: 100% 0 100% 0;
}
.values h3 { margin-bottom: 0.5rem; }
.values p { color: var(--text-muted); margin: 0; font-size: 0.9688rem; }

/* ── Commitment ────────────────────────────────────────────────────────── */

.commitment { background: var(--bg-sunk); }
.commitment h2 { margin-bottom: clamp(2.25rem, 4.5vw, 3rem); max-width: 20ch; }

.questions {
  list-style: none;
  margin: 0 0 clamp(2.25rem, 4.5vw, 3rem);
  padding: 0;
  border-top: 1px solid var(--rule);
}
.questions li {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.018em;
  padding: 1.15rem 0 1.15rem 2.25rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.questions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.72em;
  width: 0.85rem;
  height: 1px;
  background: var(--accent);
}

/* ── Contact ───────────────────────────────────────────────────────────── */

.contact h2 { margin-bottom: 1.5rem; }
.contact .lead { margin-bottom: 2.75rem; }

.mail {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--accent-ink);
  text-decoration: none;
  padding-bottom: 0.2rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.mail:hover { background-size: 0% 1px; color: var(--text); }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--charcoal);
  color: var(--stone);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}
.foot-brand img { width: clamp(150px, 22vw, 210px); height: auto; }

/* The footer is charcoal in both themes, so these tones are fixed rather than
   token-driven — the light-theme olive would sit at 2.6:1 here. */
.foot-meta { font-size: 0.875rem; text-align: right; color: #A5A099; }
.foot-meta p { margin: 0; }
.foot-tag {
  font-family: var(--font-head);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 0.7188rem;
  color: #97A473;
  margin-top: 0.5rem !important;
}

/* ── Reveal on scroll ──────────────────────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.shown { opacity: 1; transform: none; }

.cards .reveal:nth-child(2),
.values .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3),
.values .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4),
.values .reveal:nth-child(4) { transition-delay: 0.24s; }
.values .reveal:nth-child(5) { transition-delay: 0.32s; }
.values .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 46rem) {
  .nav-toggle { display: block; }

  .site-head nav ul {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .site-head nav ul.open { display: flex; }
  .site-head nav ul li { border-top: 1px solid var(--rule); }
  .site-head nav a { display: block; padding-block: 0.95rem; font-size: 1rem; }
  .site-head nav a::after { display: none; }
  .nav-cta {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0.95rem 0 !important;
    color: var(--accent-ink) !important;
  }

  .hero-mark { width: 88vw; top: 34%; right: -36%; opacity: 0.24; }
  .foot-inner { align-items: flex-start; }
  .foot-meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
