/* =========================================================
   Elevate Consulting — landing page
   Palette and type tokens live in :root. Change them there.
   ========================================================= */

:root{
  /* --- brand palette: warm stone and ink --- */
  --ground:      #F7F5F1;   /* page ground */
  --ground-sink: #F1EEE8;   /* faint alternate surface */
  --ink:         #16181A;   /* primary text, dark bands */
  --ink-soft:    #3E403F;   /* secondary text on light */
  --muted:       #6E6B66;   /* tertiary text, meets contrast at body size */
  --accent:      #A8794E;   /* warm bronze. Large text, rules and states only */
  --accent-lift: #C08F5F;   /* accent on dark grounds */
  --on-dark:     #F4F1EC;
  --on-dark-mut: #A9A49B;
  --hair:        rgba(22,24,26,.13);
  --hair-dark:   rgba(244,241,236,.16);

  /* --- type --- */
  --sans: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* --- motion --- */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* --- metrics --- */
  --gutter: 20px;
  --maxw: 1140px;
  --header-h: 68px;
}

@media (min-width: 720px){
  :root{ --gutter: 40px; --header-h: 84px; }
}

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

html{
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}

body{
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3{ margin: 0; font-weight: 300; }
p{ margin: 0; }
ol, ul{ margin: 0; padding: 0; list-style: none; }

a{ color: inherit; text-decoration: none; }

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

.wrap{
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* anchored sections must clear the fixed header */
#top, #what-we-do, #who, #how, #contact{
  scroll-margin-top: calc(var(--header-h) + 8px);
}
#top, #what-we-do, #who, #how, #contact{ outline: none; }

.skip{
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--on-dark);
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: .08em;
}
.skip:focus{ left: 12px; top: 12px; }

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

/* =========================================================
   shared type utilities
   ========================================================= */

.eyebrow{
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-light{ color: var(--on-dark-mut); }

@media (min-width: 720px){
  .eyebrow{ font-size: 11px; letter-spacing: .3em; }
}

/* =========================================================
   header
   ========================================================= */

.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247,245,241,0);
  border-bottom: 1px solid transparent;
  transition:
    background .5s var(--ease),
    border-color .5s var(--ease),
    height .5s var(--ease),
    backdrop-filter .5s var(--ease);
}

.site-header.is-scrolled{
  height: 60px;
  background: rgba(247,245,241,.86);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark{
  display: inline-flex;
  align-items: baseline;
  gap: .42em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-name{
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.005em;
  color: var(--ink);
}
.wordmark-sub{
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  transform: translateY(-1px);
}

@media (min-width: 720px){
  .wordmark-name{ font-size: 23px; }
  .wordmark-sub{ font-size: 10px; letter-spacing: .3em; }
}

.header-cta{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid var(--hair);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.header-cta svg{
  width: 14px; height: 14px;
  transition: transform .45s var(--ease-out);
}
.header-cta:hover{ color: var(--accent); border-bottom-color: var(--accent); }
.header-cta:hover svg{ transform: translateX(4px); }

/* the header CTA is noise on a small screen next to the wordmark */
@media (max-width: 559px){
  .header-cta{ display: none; }
}

/* =========================================================
   hero
   ========================================================= */

.hero{
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 42px;
}

@media (min-width: 720px){
  .hero{
    padding-top: calc(var(--header-h) + 110px);
    padding-bottom: 68px;
  }
  .hero-rule{ margin-top: 76px; }
}

.hero .eyebrow{ margin-bottom: 26px; }

.hero-title{
  font-size: clamp(38px, 10.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -.028em;
  font-weight: 200;
  margin-bottom: 30px;
  max-width: 15em;
}

.hero-title .line{
  display: block;
  overflow: hidden;
}

.hero-title em{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.01em;
  /* the serif sits optically small next to Jost at 200 */
  font-size: 1.06em;
}

.hero-lede{
  max-width: 30em;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.66;
  color: var(--ink-soft);
  margin-bottom: 38px;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* forced break keeps the hero to four clean lines on narrow screens */
.brk-sm{ display: inline; }
@media (min-width: 560px){ .brk-sm{ display: none; } }

.hero-rule{
  margin: 52px auto 0;
  max-width: var(--maxw);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--hair) 34%, transparent 100%);
  transform-origin: left center;
}

/* =========================================================
   buttons
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  gap: .75em;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease);
  box-shadow: 0 1px 2px rgba(22,24,26,.10);
}
.btn span, .btn svg{ position: relative; z-index: 1; }
.btn svg{ width: 15px; height: 15px; transition: transform .45s var(--ease-out); }

/* bronze wipe from the left on hover */
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s var(--ease-out);
  z-index: 0;
}
.btn:hover::before{ transform: scaleX(1); }
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(22,24,26,.5); }
.btn:hover svg{ transform: translateX(4px); }
.btn:active{ transform: translateY(0); }

.btn-quiet{
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size .45s var(--ease-out), color .4s var(--ease);
}
.btn-quiet:hover{ color: var(--ink); background-size: 100% 1px; }

/* =========================================================
   dark band
   ========================================================= */

.band{
  background: var(--ink);
  color: var(--on-dark);
  padding: 78px 0;
}

@media (min-width: 720px){
  .band{ padding: 124px 0; }
}

.band-inner{ max-width: 960px; }
.band .eyebrow{ margin-bottom: 30px; }

.band-statement{
  font-size: clamp(24px, 4.6vw, 42px);
  line-height: 1.26;
  letter-spacing: -.018em;
  font-weight: 200;
  max-width: 24em;
  margin-bottom: 30px;
}

.band-body{
  max-width: 40em;
  color: var(--on-dark-mut);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
}

/* =========================================================
   sections
   ========================================================= */

.section{ padding: 78px 0; }
.section-tight{ padding: 60px 0; }

@media (min-width: 720px){
  .section{ padding: 128px 0; }
  .section-tight{ padding: 96px 0; }
}

.section-head{ margin-bottom: 52px; }
.section-head .eyebrow{ margin-bottom: 22px; }

.section-title{
  font-size: clamp(27px, 5.2vw, 46px);
  line-height: 1.16;
  letter-spacing: -.024em;
  font-weight: 200;
  max-width: 22em;
}

/* --- services --- */

.services{
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}

.service{
  position: relative;
  padding: 34px 0 32px;
  border-bottom: 1px solid var(--hair);
  transition: background-color .5s var(--ease);
}

.service-num{
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--accent);
  margin-bottom: 14px;
}

.service h3{
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.24;
  letter-spacing: -.015em;
  font-weight: 300;
  margin-bottom: 12px;
}

.service p{
  color: var(--muted);
  max-width: 38em;
  font-size: 15.5px;
}

@media (min-width: 860px){
  .services{ border-top: none; }
  .service{
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0 40px;
    align-items: start;
    padding: 40px 0 38px;
  }
  .service-num{ margin-bottom: 0; padding-top: .55em; }
  .service h3{ margin-bottom: 0; }
  .service::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .6s var(--ease-out);
  }
  .service:hover::after{ transform: scaleX(1); }
  .service:first-child{ border-top: 1px solid var(--hair); }
}

/* --- split layout --- */

.split{ display: grid; gap: 26px; }

@media (min-width: 860px){
  .split{
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 0 56px;
  }
  .split-side .eyebrow{ padding-top: .7em; }
}

.prose-lead{
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.36;
  letter-spacing: -.018em;
  font-weight: 200;
  max-width: 26em;
  margin-bottom: 22px;
}

.prose{
  color: var(--muted);
  max-width: 38em;
  font-size: 15.5px;
}

/* --- principles --- */

.principles{ display: grid; gap: 34px; }

@media (min-width: 640px){
  .principles{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 44px 48px; }
}

.principles h3{
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.005em;
  margin-bottom: 9px;
  padding-top: 15px;
  border-top: 1px solid var(--hair);
  position: relative;
}
.principles h3::before{
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 34px; height: 1px;
  background: var(--accent);
}
.principles p{
  color: var(--muted);
  font-size: 15px;
  max-width: 34em;
}

/* =========================================================
   contact
   ========================================================= */

.contact{
  background: var(--ink);
  color: var(--on-dark);
  padding: 84px 0 88px;
}

@media (min-width: 720px){
  .contact{ padding: 132px 0 136px; }
}

.contact-inner{ max-width: 880px; }
.contact .eyebrow{ margin-bottom: 28px; }

.contact-title{
  font-size: clamp(30px, 6.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.028em;
  font-weight: 200;
  margin-bottom: 24px;
}
.contact-title em{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-lift);
  font-size: 1.06em;
}

.contact-body{
  color: var(--on-dark-mut);
  max-width: 36em;
  font-size: clamp(15px, 2vw, 17px);
  margin-bottom: 44px;
}

.contact-mail{
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: clamp(17px, 3.4vw, 27px);
  font-weight: 300;
  letter-spacing: -.012em;
  color: var(--on-dark);
  padding-bottom: 10px;
  background-image: linear-gradient(var(--accent-lift), var(--accent-lift));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color .4s var(--ease), background-size .55s var(--ease-out);
  word-break: break-word;
}
.contact-mail svg{
  width: .8em; height: .8em;
  flex: 0 0 auto;
  transition: transform .5s var(--ease-out);
}
.contact-mail:hover{ color: var(--accent-lift); }
.contact-mail:hover svg{ transform: translateX(6px); }

/* =========================================================
   footer
   ========================================================= */

.site-footer{
  background: var(--ground-sink);
  padding: 34px 0 40px;
  border-top: 1px solid var(--hair);
}

.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 640px){
  .footer-inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.wordmark-sm .wordmark-name{ font-size: 17px; }
.wordmark-sm .wordmark-sub{ font-size: 8.5px; }

.footer-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.footer-meta .dot{ opacity: .5; }

/* =========================================================
   reveal on scroll
   ========================================================= */

.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity .85s var(--ease-out),
    transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.is-in{
  opacity: 1;
  transform: none;
}

/* hero lines rise out of their own overflow mask */
.hero-title .line.reveal{ transform: translateY(105%); }
.hero-title .line.reveal.is-in{ transform: translateY(0); }

.hero-rule.reveal{ transform: scaleX(0); opacity: 1; }
.hero-rule.reveal.is-in{ transform: scaleX(1); transition-duration: 1.4s; }

/* no JS, or motion turned down: everything is simply visible */
.no-js .reveal,
.no-js .hero-title .line.reveal,
.no-js .hero-rule.reveal{
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce){
  .reveal,
  .hero-title .line.reveal,
  .hero-rule.reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn::before{ transition: none; }
  .service::after{ transition: none; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================
   print
   ========================================================= */

@media print{
  .site-header, .hero-actions, .skip{ display: none; }
  .band, .contact{ background: #fff; color: #000; }
  .band-body, .contact-body, .eyebrow-light{ color: #333; }
  .reveal{ opacity: 1 !important; transform: none !important; }
}
