/* ============================================================
   Anicio, anicio.ca
   Direction C "Warm Advisory" · deep aubergine leads, forest green accents
   ============================================================ */

:root {
  /* --- Brand --------------------------------------------- */
  --aubergine:       #36013f;   /* lead brand colour */
  --aubergine-deep:  #250029;   /* hero gradient end */
  --green:           #263d27;   /* accent (matches Carleton Prime) */
  --green-hover:     #315033;

  /* --- Surfaces ------------------------------------------ */
  --paper:      #f5f2f6;
  --paper-line: #e3dce6;

  /* --- Ink ----------------------------------------------- */
  --ink:       #2b1330;
  --ink-soft:  #4a3d50;
  --muted:     #6b5f6e;

  /* --- On the dark block --------------------------------- */
  --on-dark:      #f6eff8;
  --on-dark-mut:  rgba(246, 239, 248, 0.74);
  --on-green:     #f4f1e9;

  /* --- Type ---------------------------------------------- */
  --font-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Rhythm -------------------------------------------- */
  --pad:    clamp(1.15rem, 4vw, 3.5rem);
  --maxw:   1180px;
  --radius: 20px;

  /* Optical correction that lifts the green dots onto the cap-height centre of
     the text beside them. Measured at -0.07em, consistent across type sizes. */
  --dot-nudge: -0.07em;

  /* --- Motion -------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* --- Layers -------------------------------------------- */
  --z-nav: 50;
  --z-menu: 45;
  --z-skip: 100;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--aubergine); color: var(--on-dark); }

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

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: var(--z-skip);
  background: var(--aubergine); color: var(--on-dark);
  padding: .7rem 1.2rem; border-radius: 0 0 10px 10px; font-weight: 600;
}
.skip:focus { transform: translate(-50%, 0); }

/* ============================================================
   Shared pieces
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px;
  padding: .8em 1.7em;
  border-radius: 100px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--green { background: var(--green); color: var(--on-green); }
.btn--green:hover { background: var(--green-hover); transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(38, 61, 39, 0.75); }
.btn--green:active { transform: translateY(0); }

.btn--quiet {
  background: transparent; color: var(--on-dark);
  border-color: rgba(246, 239, 248, 0.32);
}
.btn--quiet:hover { background: rgba(246, 239, 248, 0.10); border-color: rgba(246, 239, 248, 0.5); }

.btn--sm { min-height: 40px; padding: .55em 1.25em; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: .95em 2.1em; font-size: 1.08rem; }

/* Small green marks. Both sit in a flex row beside a text span and are centred
   against the text's cap height, not the full line box, so they read level with
   the capital letters. --dot-nudge is the measured optical correction. */
.dot {
  flex: none; display: block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  margin-right: .7rem;
  transform: translateY(var(--dot-nudge, 0));
}

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 600; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow--on-dark { color: var(--on-dark-mut); }
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: .7rem; flex: none;
  transform: translateY(var(--dot-nudge, 0));
}

.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
  color: var(--ink);
}
.section-sub {
  color: var(--muted); font-size: 1.06rem;
  margin-top: .9rem; max-width: 40ch;
}

/* the big aubergine colour blocks (hero + contact) */
.block {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--aubergine) 0%, var(--aubergine-deep) 100%);
  color: var(--on-dark);
  border-radius: var(--radius);
}
.block__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 82% 4%, rgba(255, 255, 255, 0.10), transparent 60%);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(245, 242, 246, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--paper-line); }

.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .9rem var(--pad);
  display: flex; align-items: center; gap: 1.25rem;
}

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: -0.01em; color: var(--aubergine);
}
.brand__mark {
  width: 13px; height: 13px; border-radius: 4px; flex: none;
  background: var(--aubergine);
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 2px var(--green);
}
.brand--sm { font-size: 1.2rem; }

.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a {
  position: relative; color: var(--ink-soft);
  font-size: .97rem; font-weight: 600; padding: .25rem 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--green);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--paper-line);
  border-radius: 10px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--aubergine);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero { padding: clamp(.6rem, 2vw, 1.1rem) var(--pad) 0; }
.hero__block {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.6rem, 7vw, 5.6rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.8rem, 7vw, 5.6rem);
}
.hero__content { position: relative; }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 1.5rem 0 0; max-width: 15ch; text-wrap: balance;
}
.hero__lede {
  color: var(--on-dark-mut);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 48ch; margin-top: 1.5rem; text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .85rem;
  margin-top: clamp(1.9rem, 4vw, 2.6rem);
}

/* ============================================================
   Proof strip
   ============================================================ */

.proof {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.5rem) var(--pad);
}
.proof__list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.proof__list h2 {
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: .45rem;
}
.proof__list p { color: var(--muted); font-size: .98rem; max-width: 32ch; }

/* ============================================================
   Capabilities
   ============================================================ */

.caps {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.caps__intro { position: sticky; top: 6.5rem; }

.cap {
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-top: 1px solid var(--paper-line);
  transition: padding-left .4s var(--ease);
}
.cap:last-child { border-bottom: 1px solid var(--paper-line); }
.cap:hover { padding-left: .7rem; }
.cap h3 {
  display: flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3;
  letter-spacing: -0.015em; color: var(--ink); margin-bottom: .55rem;
}
.cap p { color: var(--muted); font-size: 1.04rem; max-width: 50ch; }

/* ============================================================
   Approach statement
   ============================================================ */

.approach {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.approach__statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.6rem);
  line-height: 1.28; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
}
.approach__statement .accent { color: var(--green); }

/* ============================================================
   Contact
   ============================================================ */

.contact { padding: clamp(3rem, 7vw, 5.5rem) var(--pad) clamp(1rem, 3vw, 1.5rem); }
.contact__block {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}
.contact__content { position: relative; }
.contact__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.12; letter-spacing: -0.025em;
  max-width: 18ch; margin: 0 auto; text-wrap: balance;
}
.contact__sub {
  color: var(--on-dark-mut); font-size: 1.1rem;
  max-width: 42ch; margin: 1.1rem auto clamp(1.8rem, 4vw, 2.4rem);
}

/* ============================================================
   Footer
   ============================================================ */

.foot { padding: clamp(2rem, 5vw, 3rem) var(--pad) clamp(2.5rem, 5vw, 3.5rem); }
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 1.8rem; border-top: 1px solid var(--paper-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem;
  color: var(--muted); font-size: .93rem;
}
.foot__meta { margin-right: auto; }

/* ============================================================
   Motion
   ============================================================ */

/* Hero: a self-running load-in. Never gated on an observer, so the first
   paint above the fold always resolves to visible content. */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.anim-ready .hero__content > * {
  animation: rise .75s var(--ease) both;
}
.anim-ready .hero__content > *:nth-child(1) { animation-delay: .05s; }
.anim-ready .hero__content > *:nth-child(2) { animation-delay: .14s; }
.anim-ready .hero__content > *:nth-child(3) { animation-delay: .23s; }
.anim-ready .hero__content > *:nth-child(4) { animation-delay: .32s; }

/* Below-the-fold reveals (opt-in via JS; content visible without JS) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; gap: 1.5rem; }
  .caps__intro { position: static; }
  .proof__list { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 760px) {
  .js .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    z-index: var(--z-menu);
    flex-direction: column; gap: 0; margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
    padding: .5rem var(--pad) 1.1rem;
    display: none;
  }
  .js .nav__links.is-open { display: flex; }
  .js .nav__links a { padding: .85rem 0; font-size: 1.05rem; }
  .js .nav__links a::after { display: none; }

  .js .burger { display: flex; }
  .nav__cta { display: none; }
  .nav__inner { position: relative; }

  .hero__actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .hero__title { font-size: clamp(1.95rem, 9vw, 2.5rem); }
  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__meta { margin-right: 0; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .hero__content > * { animation: none; opacity: 1; transform: none; }
  .cap:hover { padding-left: 0; }
}
