/* Phoenix TMS: tokens, type, nav, footer, buttons.
   Shared by all four pages. Page-specific layout lives in pages.css.

   The whole site is built from hairlines: the hero animation resolves a tangle
   into clean parallel rules, and every section below is hung on those rules. */

:root{
  /* base palette */
  --cream:#F5EFE6;
  --cream-deep:#EFE7DA;
  --cream-edge:#E4DACA;
  --charcoal:#2A2A2E;
  --charcoal-soft:rgba(42,42,46,.70);
  --charcoal-faint:rgba(42,42,46,.52);
  --ox:#6E0405;
  --ox-lift:#93100F;

  /* accent, swapped per page by [data-accent] */
  --accent:var(--ox);
  --accent-lift:var(--ox-lift);
  --accent-ink:var(--ox);
  --accent-rule:rgba(110,4,5,.22);
  --accent-hair:rgba(110,4,5,.14);
  --accent-wash:rgba(110,4,5,.05);
  --btn-bg:var(--ox);
  --btn-ink:#F5EFE6;
  --btn-bg-hover:var(--ox-lift);

  --display:"Jost","Futura","Century Gothic","Avenir Next",sans-serif;
  --body:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --shell:1240px;
  --gutter:clamp(1.25rem,5vw,4.5rem);
  --band:clamp(4.25rem,7.5vw,7.5rem);
  --ease:cubic-bezier(.22,.61,.36,1);
  --line:#6E0405;
  color-scheme:light dark;
}

/* Phoenix Studio and the two product pages run on sage. Oxblood stays in the
   logo and nav, so the two businesses read as one roof. */
[data-accent="sage"]{
  --sage:#9CAF88;
  --accent:#9CAF88;
  --accent-lift:#8AA073;
  --accent-ink:var(--charcoal);  /* text stays charcoal (light in dark mode); sage is fill only */
  --accent-rule:rgba(124,145,104,.55);
  --accent-hair:rgba(124,145,104,.32);
  --accent-wash:#DCE4D2;
  --btn-bg:#6E0405;
  --btn-ink:#F5EFE6;
  --btn-bg-hover:#93100F;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--cream);
  color:var(--charcoal);
  font-family:var(--body);
  font-size:clamp(1rem,.97rem + .14vw,1.075rem);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}

.shell{width:100%;max-width:var(--shell);margin-inline:auto;padding-inline:var(--gutter)}
.band{padding-block:var(--band)}
.band--tint{background:var(--cream-deep)}

/* --- type ------------------------------------------------------------- */
h1,h2,h3,h4{font-family:var(--display);font-weight:300;margin:0;text-wrap:balance}
h1{
  font-weight:200;
  font-size:clamp(2.45rem,1.3rem + 4.5vw,5.1rem);
  line-height:1.03;letter-spacing:-.022em;color:var(--ox);
}
h2{
  font-size:clamp(1.85rem,1.15rem + 2.5vw,3.05rem);
  line-height:1.1;letter-spacing:-.016em;color:var(--ox);
}
h3{font-size:clamp(1.18rem,1.08rem + .35vw,1.38rem);line-height:1.28;letter-spacing:-.008em}
/* on Studio pages the headings follow the sage accent; oxblood stays in the
   logo and nav, which read off --ox directly */
[data-accent="sage"] h1,[data-accent="sage"] h2{color:var(--accent-ink)}
p{margin:0}

.eyebrow{
  font-family:var(--mono);font-size:.69rem;font-weight:400;
  letter-spacing:.2em;text-transform:uppercase;color:var(--accent-ink);margin:0;
}
.lede{
  font-family:var(--display);font-weight:200;
  font-size:clamp(1.25rem,1.06rem + .95vw,1.85rem);
  line-height:1.4;letter-spacing:-.012em;color:var(--charcoal);
}
.note{font-family:var(--mono);font-size:.78rem;line-height:1.6;color:var(--charcoal-faint)}

/* section head: label left, heading right, hung on a hairline */
.bandhead{
  display:grid;grid-template-columns:minmax(7rem,11rem) minmax(0,1fr);
  gap:clamp(1.1rem,3vw,3.5rem);
  border-top:1px solid var(--accent-rule);
  padding-top:clamp(1.15rem,2vw,1.7rem);
  margin-bottom:clamp(2.4rem,4.5vw,4rem);
}
.bandhead .eyebrow{padding-top:.5em}
.bandhead h2{max-width:26ch}
.bandhead--last{margin-bottom:0}
/* the brief labels Home's sections with eyebrows and Studio's with headings
   alone; this keeps the heading on the same indent either way */
.bandhead--noeye{grid-template-columns:minmax(7rem,11rem) minmax(0,1fr)}
.bandhead--noeye > :first-child{grid-column:2}
.bandhead-body{display:grid;gap:clamp(1.2rem,2.2vw,1.9rem)}

/* --- buttons ---------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6em;
  font-family:var(--body);font-weight:500;font-size:.95rem;letter-spacing:.012em;
  text-decoration:none;cursor:pointer;border:1px solid transparent;border-radius:2px;
  padding:.95rem 1.7rem;background:var(--btn-bg);color:var(--btn-ink);
  transition:background-color 220ms var(--ease),color 220ms var(--ease);
}
.btn:hover{background:var(--btn-bg-hover)}
.btn-ghost{
  display:inline-flex;align-items:center;gap:.5em;border-radius:2px;
  font-family:var(--body);font-weight:400;font-size:.9rem;
  text-decoration:none;padding:.62rem 1.2rem;background:transparent;
  border:1px solid var(--accent-rule);color:var(--ox);
  transition:background-color 220ms var(--ease),color 220ms var(--ease),border-color 220ms var(--ease);
}
.btn-ghost:hover{background:var(--ox);border-color:var(--ox);color:var(--cream)}
/* secondary buttons that belong to the page accent rather than the nav */
.btn-ghost--accent{color:var(--accent-ink);padding:.95rem 1.6rem;font-size:.95rem}
.btn-ghost--accent:hover{background:var(--accent-ink);border-color:var(--accent-ink);color:var(--cream)}
/* a text link that underlines on hover */
.inline{
  display:inline-flex;align-items:center;gap:.55em;text-decoration:none;
  font-weight:500;font-size:.95rem;color:var(--accent-ink);
}
.inline span{position:relative}
.inline span::after{
  content:"";position:absolute;left:0;right:0;bottom:-.18em;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:left;
  transition:transform 300ms var(--ease);
}
.inline:hover span::after{transform:scaleX(1)}
.inline svg{width:1rem;height:1rem;flex:none;transition:transform 300ms var(--ease)}
.inline:hover svg{transform:translateX(5px)}

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

/* --- header ----------------------------------------------------------- */
.topbar{
  position:sticky;top:0;z-index:40;background:var(--cream);
  border-bottom:1px solid var(--accent-hair);
}
.topbar .shell{display:flex;align-items:center;gap:clamp(.9rem,3vw,2.5rem);min-height:5rem}

/* the lockup is the delivered SVG itself, so the site and the brand files can
   never drift apart */
.lockup{display:flex;align-items:center;text-decoration:none;flex:none}
.lockup img{height:3.6rem;width:auto}
.nav{display:flex;align-items:center;gap:clamp(.9rem,2.2vw,2rem);margin-left:auto}
.navlink{
  position:relative;font-size:.9rem;text-decoration:none;color:var(--charcoal-soft);
  transition:color 200ms var(--ease);
}
.navlink::after{
  content:"";position:absolute;left:0;right:0;bottom:-.42em;height:1px;
  background:var(--ox);transform:scaleX(0);transform-origin:left;
  transition:transform 280ms var(--ease);
}
.navlink:hover{color:var(--ox)}
.navlink:hover::after,.navlink[aria-current="page"]::after{transform:scaleX(1)}
.navlink[aria-current="page"]{color:var(--ox)}
.navsep{color:var(--accent-rule);user-select:none;font-size:.8rem}
.navcta{margin-left:clamp(.6rem,1.6vw,1.4rem)}

/* --- footer ----------------------------------------------------------- */
.foot{background:var(--cream-deep);border-top:1px solid var(--accent-hair)}
.foot .shell{
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2.2rem;
  padding-block:clamp(2rem,3.5vw,3rem);
}
.foot img{height:1.9rem;width:auto;flex:none}
.foot p{font-family:var(--mono);font-size:.76rem;color:var(--charcoal-faint);letter-spacing:.02em}
.foot .copy{margin-left:auto}

/* --- reveals ---------------------------------------------------------- */
.rise{opacity:0;transform:translateY(14px)}
.is-ready .rise{
  opacity:1;transform:none;
  transition:opacity 700ms var(--ease),transform 700ms var(--ease);
}
.reveal{opacity:0;transform:translateY(18px)}
.reveal.seen{
  opacity:1;transform:none;
  transition:opacity 760ms var(--ease),transform 760ms var(--ease);
}
.d1{transition-delay:.06s}.d2{transition-delay:.14s}
.d3{transition-delay:.22s}.d4{transition-delay:.3s}

/* --- mobile header: two rows, every link stays reachable -------------- */
@media (max-width:780px){
  .topbar .shell{flex-wrap:wrap;min-height:0;padding-top:.85rem}
  .lockup{order:1}
  .navcta{order:2;margin-left:auto}
  .nav{
    order:3;width:100%;margin:.85rem 0 0;gap:.45rem;justify-content:space-between;
    border-top:1px solid var(--accent-hair);padding-block:.65rem;
  }
  .navsep{display:none}
  .navlink{font-size:.84rem}
  .bandhead{grid-template-columns:1fr;gap:.8rem}
  .bandhead--noeye > :first-child{grid-column:1}
  .foot .shell{gap:.8rem}
  .foot .copy{margin-left:0}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  .rise,.reveal{opacity:1 !important;transform:none !important}
}

/* --- dark mode ---------------------------------------------------------- */
@media (prefers-color-scheme:dark){
  :root{
    --cream:#1B1A1D;
    --cream-deep:#222125;
    --cream-edge:#34323A;
    --charcoal:#EDE6DA;
    --charcoal-soft:rgba(237,230,218,.76);
    --charcoal-faint:rgba(237,230,218,.56);
    --ox:#E35D52;
    --ox-lift:#EC7B70;
    --accent-rule:rgba(227,93,82,.30);
    --accent-hair:rgba(227,93,82,.18);
    --accent-wash:rgba(227,93,82,.06);
    --btn-bg:#9B1B17;
    --btn-bg-hover:#B32620;
    --line:#E35D52;
  }
  [data-accent="sage"]{
    --accent-rule:rgba(156,175,136,.45);
    --accent-hair:rgba(156,175,136,.26);
    --accent-wash:#2A3326;
    --btn-bg:#9B1B17;
    --btn-bg-hover:#B32620;
  }
  .btn-ghost:hover{color:#1B1A1D}
}
