/*
   axoi. studio — shared design system
   Light, typographic, tonal. SF system stack.
   House rules: 0.5px self-coloured hairlines, tight directional shadows,
   one quiet accent, no gradients, no hover-lift.
*/

:root {
  --bg:          #F7F4F5;   /* warm paper with a whisper of the brand pink */
  --surface:     #FFFFFF;
  --ink:         #1D1D1F;
  --dark:        #1D1D1F;   /* legacy alias */
  --mid:         #48484D;
  --muted:       #86868B;
  --pink:        #E8527A;   /* marks and larger elements only */
  --pink-deep:   #B93A5E;   /* text-size accent, contrast-safe */
  --pink-mid:    #B93A5E;   /* legacy alias */
  --hairline:    rgba(29,29,31,0.15);
  --hairline-soft: rgba(29,29,31,0.08);
  --border:      rgba(29,29,31,0.12);  /* legacy alias */
  --border-dark: rgba(29,29,31,0.2);   /* legacy alias */
  --shadow-tight: 0 1px 2px rgba(29,29,31,0.05);
  --shadow-raise: 0 8px 24px -16px rgba(29,29,31,0.25);
  --font: -apple-system,'SF Pro Display','SF Pro Text',BlinkMacSystemFont,'Helvetica Neue',sans-serif;
  --radius-sm:  12px;
  --radius-md:  18px;
  --radius-lg:  24px;
  --max-w:      1100px;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.5;
}
/* height:auto neutralises the height="" attribute so CSS aspect-ratio can size images. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Quiet inline links in body copy (client names, product names). */
p a.ext,
.svc-shot-caption a.ext,
.testimonial-author a.ext,
.twall-author a.ext,
.tl-content a.ext,
.about-body a.ext {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29,29,31,0.22);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s var(--ease-out), color .2s var(--ease-out);
}
p a.ext:hover,
.svc-shot-caption a.ext:hover,
.testimonial-author a.ext:hover,
.twall-author a.ext:hover,
.tl-content a.ext:hover,
.about-body a.ext:hover {
  color: var(--pink-deep);
  text-decoration-color: var(--pink-deep);
}
a, button, input, select, textarea, label { touch-action: manipulation; }

/* Page-to-page fade: content only. Nav stays put (never transform body).
   html.nav-pending (set in <head> when arriving from in-site nav) keeps
   content invisible until this script attaches the enter animation — that
   avoids a full-page flash of the new document before the transition. */
.page-shell {
  min-height: 100%;
}
@keyframes page-enter-fwd {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-enter-back {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}
.page-shell.page-enter {
  animation: page-enter-fwd .32s var(--ease-out) both;
}
.page-shell.page-enter-back {
  animation: page-enter-back .32s var(--ease-out) both;
}
/* During the page fade-in, don't also hide scroll-reveal children. */
.page-shell.page-enter .reveal,
.page-shell.page-enter-back .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.page-shell.page-leave,
.page-shell.page-leave-back {
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.page-shell.page-leave { opacity: 0; transform: translateX(-12px); }
.page-shell.page-leave-back { opacity: 0; transform: translateX(12px); }
body.is-paging { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  .page-shell.page-enter,
  .page-shell.page-enter-back { animation: none; }
  .page-shell.page-leave,
  .page-shell.page-leave-back { transition: none; opacity: 1; transform: none; }
  html.nav-pending body > *:not(.nav) { opacity: 1; }
}
/* Visible keyboard focus without rings on mouse click. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/*  UTILITY  */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.section { padding: 88px 0; }
.section-sm { padding: 48px 0; }

/* Small section label: quiet, sentence case, single accent. No tick, no tracking. */
.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pink-deep);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
  color: var(--ink); margin-bottom: 16px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px; line-height: 1.65; color: var(--mid);
  max-width: 580px;
}
/* Tonal emphasis inside headings (legacy class name kept). */
.text-pink { color: var(--muted); }

/*  BUTTONS — no lift, no glow. Hover is a clear tonal step with a soft
    directional shadow bloom; press is a quick scale. Apple-style. */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  text-decoration: none; cursor: pointer; border: none;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              box-shadow .3s var(--ease-out), transform .16s ease-out;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-dark,
.btn-pink { background: var(--ink); color: #fff; }
/* Secondary: quiet tonal wash, not an outline. */
.btn-outline {
  background: rgba(29,29,31,0.06);
  color: var(--ink);
  border: none;
}
.btn-white { background: #fff; color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  /* Dark buttons lighten, the way Apple's do; the step is unmissable. */
  .btn-dark:hover,
  .btn-pink:hover {
    background: #3C3C41;
    box-shadow: 0 6px 16px -10px rgba(29,29,31,0.55);
  }
  .btn-outline:hover { background: rgba(29,29,31,0.13); }
  .btn-white:hover { background: rgba(255,255,255,0.85); }
}

/*  NAV — glass over real content  */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 40px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  background: rgba(247,244,245,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--hairline);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--mid);
  padding: 7px 14px; border-radius: 100px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(29,29,31,0.05); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; background: none; }
.nav-cta {
  padding: 9px 20px; border-radius: 100px;
  background: var(--ink); color: #fff; border: none;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  transition: background .3s var(--ease-out), transform .16s ease-out;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { background: #3C3C41; color: #fff; }
.nav-cta:active { transform: scale(0.97); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; margin: 4px 0;
  transition: transform .25s, opacity .25s;
}
.nav-logo-img {
  height: clamp(26px, 4.2vw, 34px);
  width: auto;
  display: block;
  filter: brightness(0);
}

/*  PAGE HERO (inner pages)  */
.page-hero { padding: 148px 0 72px; background: var(--bg); }
.page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(38px,5.4vw,64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.03;
  margin-bottom: 20px;
  text-wrap: balance;
}
.page-hero p:not(.section-label) {
  font-size: 18px; line-height: 1.65; color: var(--mid);
  max-width: 560px;
}

/*  CARDS — hairline edge, tonal depth, no hover-lift  */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--hairline);
  box-shadow: var(--shadow-tight);
}

/*  FOOTER  */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.55);
  padding: 72px 0 0;
  overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}
.footer-brand-col .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-col p { font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer .footer-logo-img {
  height: clamp(22px, 4vw, 30px);
  width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer-col-title {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.55);
  margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: rgba(255,255,255,0.95); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 12px; flex-wrap: wrap; gap: 12px;
}
.footer-creds {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45);
}
.footer-creds img { width: 15px; height: 15px; object-fit: contain; }
/* Signature: oversized wordmark anchored to the bottom edge, bleeding slightly. */
.footer-wordmark-wrap {
  height: clamp(78px, 15.8vw, 214px);
  overflow: hidden;
  margin-top: 56px;
}
.footer-wordmark {
  font-size: clamp(110px, 22vw, 298px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  text-align: center;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/*  TESTIMONIALS  */
.testimonial-strip {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 0.5px solid var(--hairline); padding: 36px 40px;
  box-shadow: var(--shadow-tight);
  display: grid; grid-template-columns: repeat(3,1fr); gap: 36px;
}
.testimonial-item { display: flex; flex-direction: column; gap: 12px; }
.testimonial-stars { color: var(--pink); font-size: 13px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14px; line-height: 1.7; color: var(--mid); }
.testimonial-author { font-size: 13px; font-weight: 600; color: var(--ink); }
.testimonial-company { font-size: 12px; color: var(--muted); }

/*  PROCESS STEPS — typographic numerals, no tiles  */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.process-step {
  background: var(--surface); border-radius: var(--radius-md);
  border: 0.5px solid var(--hairline); padding: 28px 24px;
  box-shadow: var(--shadow-tight);
}
.step-num {
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  color: rgba(29,29,31,0.16); line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: 13px; line-height: 1.65; color: var(--mid); }

/*  FAQ  */
.faq-item {
  background: var(--surface); border-radius: var(--radius-md);
  border: 0.5px solid var(--hairline); overflow: hidden; margin-bottom: 6px;
}
.faq-q {
  width: 100%; padding: 20px 24px;
  font-size: 15px; font-weight: 500;
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  text-align: left; font-family: var(--font); color: var(--ink);
  user-select: none;
}
.faq-q .faq-icon { font-size: 20px; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 14px; line-height: 1.7; color: var(--mid);
  padding: 0 24px;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 2000px; padding: 0 24px 22px; }

/*  CLIENT TICKER  */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-wrap {
  overflow: hidden;
  border-top: 0.5px solid var(--hairline-soft);
  border-bottom: 0.5px solid var(--hairline-soft);
  padding: 16px 0;
  background: transparent;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 28px;
}
.ticker-fav {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  flex-shrink: 0;
}
.ticker-dup { display: contents; }
a.ticker-item { transition: color .25s var(--ease-out); }
a.ticker-item:hover { color: var(--ink); }
.ticker-sep { font-size: 13px; color: rgba(29,29,31,0.2); align-self: center; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
}

/*  TYPOGRAPHIC CLOSER (replaces gradient CTA bands)  */
.closing { text-align: center; padding: 40px 0 96px; }
.closing h2 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 14px;
  text-wrap: balance;
}
.closing p { font-size: 17px; color: var(--mid); margin-bottom: 30px; }

/*  RESPONSIVE  */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav { padding: 0 16px; gap: 8px; }
  .nav-logo { flex-shrink: 1; min-width: 0; max-width: min(200px, 44vw); }
  .nav-logo-img { max-width: 100%; width: auto; object-fit: contain; }
  .nav-cta {
    padding: 8px 14px; font-size: 12px;
    min-width: 0; max-width: 140px;
    overflow: hidden; text-overflow: ellipsis;
  }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/*  MOBILE NAV OPEN  */
.nav.mobile-open .nav-links {
  display: flex; flex-direction: column;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  z-index: 199;
  background: var(--bg);
  border-top: 0.5px solid var(--hairline);
  padding: 20px 24px 32px;
  gap: 6px;
  align-items: stretch;
  min-height: calc(100dvh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav.mobile-open .nav-links { animation: nav-sheet .28s var(--ease-out); }
@keyframes nav-sheet {
  from { opacity: 0; transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .nav.mobile-open .nav-links { animation: none; }
}
.nav.mobile-open .nav-links a {
  font-size: 18px;
  padding: 14px 18px;
  width: 100%;
  border-radius: 14px;
}
.nav.mobile-open .nav-links a.active { background: rgba(29,29,31,0.06); }

/*  SCROLL REVEAL — quiet fade + slight rise. JS adds .js to <html>;
    without JS (or with reduced motion) content is simply visible. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}
/* Sticky parents: opacity only (transform breaks sticky). */
.js .reveal.reveal--fade {
  transform: none;
  transition: opacity .5s var(--ease-out);
}
.js .reveal.reveal--fade.visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stagger > * { transition: none; }
}
