/* Halo studio. Tokens override the page kit. Hero chrome is local. */

:root {
  --brand-primary: #e4c56a;
  --brand-ink: #eceae6;
  --brand-paper: #0c0d10;
  --font-display: Syne, Avenir Next, sans-serif;
  --font-body: Figtree, system-ui, sans-serif;
  --kit-bg: #0c0d10;
  --kit-ink: #eceae6;
  --kit-mute: #8b8f96;
  --kit-line: rgba(236, 234, 230, 0.14);
  --kit-glass: rgba(236, 234, 230, 0.06);
  --kit-accent: #e4c56a;
  --kit-display: var(--font-display);
  --kit-body: var(--font-body);
}

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

body {
  margin: 0;
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-family: var(--font-body);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 80;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--brand-ink);
  color: var(--brand-paper);
  text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.shell { position: relative; }

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--kit-pad, 1.5rem);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.topbar__mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 12px var(--brand-primary);
}

.topbar__nav { display: none; }
@media (min-width: 880px) {
  .topbar__nav { display: block; }
  .topbar__nav ul {
    display: flex;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .topbar__nav a {
    color: rgb(255 255 255 / 0.72);
    text-decoration: none;
    font-size: 0.88rem;
  }
  .topbar__nav a:hover { color: #fff; }
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.topbar__cta {
  display: none;
  min-height: 40px;
  align-items: center;
  padding: 0 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
}
@media (min-width: 640px) { .topbar__cta { display: inline-flex; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  color: #fff;
  font-size: 0.86rem;
}

.menu-btn__icon,
.menu-btn__icon--close {
  width: 1rem;
  height: 1px;
  background: #fff;
  box-shadow: 0 4px 0 #fff, 0 -4px 0 #fff;
}
.menu-btn__icon--close {
  box-shadow: none;
  transform: rotate(45deg);
}
.menu-btn__icon--close::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1px;
  background: #fff;
  transform: rotate(-90deg);
}

/* Exactly one small viewport, never more: the hero is pinned while it plays,
   so anything below the fold stays below it for the whole sequence. Short
   screens tighten and drop the subheading (see the end of this file). */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: var(--brand-paper);
}

.hero__media,
.hero__poster,
.hero__canvas {
  position: absolute;
  inset: 0;
}

.hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

.hero__canvas {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero__canvas.is-ready { opacity: 1; }
.hero[data-motion="static"] .hero__canvas { display: none; }
.hero[data-motion="ready"] .hero__poster {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero__beam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 32% 78% at 66% 12%, rgb(255 236 186 / 0.2), transparent 64%),
    linear-gradient(180deg, rgb(255 230 170 / 0.08) 0%, transparent 46%);
  mix-blend-mode: screen;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(12 13 16 / 0.78) 0%, rgb(12 13 16 / 0.22) 40%, transparent 70%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .hero__scrim {
    background: linear-gradient(180deg, rgb(12 13 16 / 0.55) 0%, rgb(12 13 16 / 0.12) 38%, rgb(12 13 16 / 0.82) 100%);
  }
  .hero__poster { object-position: 50% 40%; }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18vw 4vw rgb(12 13 16 / 0.55);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 4;
  max-width: 24rem;
  padding: 7.5rem var(--kit-pad, 1.5rem) 6rem;
}

.hero__headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero__sub {
  margin: 0 0 1.4rem;
  color: var(--kit-mute);
  max-width: 32ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero__status {
  position: absolute;
  left: var(--kit-pad, 1.5rem);
  right: var(--kit-pad, 1.5rem);
  bottom: 1.1rem;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kit-mute);
}

.intro {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 0.7rem;
  background: var(--brand-paper);
}
.intro.is-leaving {
  animation: intro-out 0.7s ease forwards;
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}
.hero[data-motion="static"] .intro { display: none; }

.intro__brand {
  margin: 0;
  text-align: center;
  font-weight: 600;
}
.intro__track {
  width: min(16rem, 70vw);
  height: 2px;
  background: rgb(255 255 255 / 0.12);
}
.intro__fill {
  height: 100%;
  width: calc(var(--progress, 0) * 100%);
  background: var(--brand-primary);
}
.intro__meta {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 0.75rem;
  color: var(--kit-mute);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem var(--kit-pad, 1.5rem) 2rem;
  color: var(--kit-mute);
  font-size: 0.82rem;
}

.nav-menu {
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.4rem, 3vw, 2rem);
  background:
    radial-gradient(90% 70% at 88% 12%, rgb(228 197 106 / 0.16), transparent 55%),
    radial-gradient(70% 55% at 8% 88%, rgb(228 197 106 / 0.07), transparent 50%),
    var(--brand-paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.42s var(--nav-ease),
    transform 0.5s var(--nav-ease),
    visibility 0s linear 0.42s;
}
.nav-menu[hidden] { display: none !important; }
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.42s var(--nav-ease),
    transform 0.5s var(--nav-ease),
    visibility 0s;
}
.nav-menu.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.988);
  transition:
    opacity 0.32s ease,
    transform 0.36s ease,
    visibility 0s linear 0.32s;
}

.nav-menu__wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}

.nav-menu__top,
.nav-menu__body,
.nav-menu__foot {
  position: relative;
  z-index: 1;
}

.nav-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 1.05rem;
  background: rgb(12 13 16 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.nav-menu__top .menu-btn {
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(255 255 255 / 0.12);
  border-radius: 999px;
  padding: 0 0.85rem;
}

.nav-menu__body {
  display: grid;
  align-content: center;
  min-height: 0;
}

.nav-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu__list a {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--kit-line);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 7vw, 3.4rem);
  letter-spacing: -0.03em;
}
.nav-menu__list a:hover,
.nav-menu__list a:focus-visible {
  color: var(--brand-primary);
  outline: none;
}
.nav-menu__idx {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--kit-mute);
}

.nav-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  color: var(--kit-mute);
  font-size: 0.82rem;
}
.nav-menu__foot a {
  color: inherit;
  text-decoration: none;
}
.nav-menu__foot a:hover,
.nav-menu__foot a:focus-visible {
  color: var(--brand-primary);
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu,
  .nav-menu.is-open,
  .nav-menu.is-leaving {
    transform: none;
    transition: opacity 0.01ms linear;
  }
}

[data-theme="halo"] [data-kit] ol,
[data-theme="halo"] [data-kit] ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

[data-theme="halo"] [data-kit] img {
  display: block;
  max-width: 100%;
  height: auto;
}

[data-theme="halo"] .sec-featured {
  min-height: unset;
  grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: 5.5rem var(--kit-pad, 1.5rem) 5rem;
  border-top: 1px solid var(--kit-line);
}

[data-theme="halo"] .featured__headline {
  align-self: center;
  max-width: 8ch;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
}

[data-theme="halo"] .featured-card {
  max-width: 36rem;
  margin-left: auto;
}

[data-theme="halo"] .featured-card__media img {
  aspect-ratio: 3 / 4;
  min-height: 22rem;
}

[data-theme="halo"] .sec-process {
  border-top: 1px solid var(--kit-line);
}

[data-theme="halo"] .sec-board {
  border-top: 1px solid var(--kit-line);
}

[data-theme="halo"] .sec-ascent {
  display: grid;
  grid-template-columns: minmax(14rem, 26rem) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: start;
  padding: 5.5rem var(--kit-pad, 1.5rem) 5rem;
  border-top: 1px solid var(--kit-line);
}

[data-theme="halo"] .ascent__headline {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 0.95;
}

[data-theme="halo"] .ascent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
  border-left: 1px solid rgb(228 197 106 / 0.35);
}

[data-theme="halo"] .ascent__step {
  list-style: none;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.2rem 1.2rem;
  padding: 0 0 2.4rem 1.5rem;
}

[data-theme="halo"] .ascent__step::marker { content: none; }

[data-theme="halo"] .ascent__num {
  margin: 0.45rem 0 0;
  color: var(--brand-primary);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

[data-theme="halo"] .ascent__copy h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

[data-theme="halo"] .sec-rail {
  padding: 5rem 0 5.5rem;
  border-top: 1px solid var(--kit-line);
  overflow: hidden;
}

[data-theme="halo"] .rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--kit-pad, 1.5rem) 1.2rem;
  scrollbar-width: thin;
}

[data-theme="halo"] .rail__cell {
  flex: 0 0 min(62vw, 24rem);
  width: min(62vw, 24rem);
  max-width: min(62vw, 24rem);
  scroll-snap-align: start;
}

[data-theme="halo"] .rail__media img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

[data-theme="halo"] .rail__meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
}

[data-theme="halo"] .sec-faq,
[data-theme="halo"] .sec-statement {
  border-top: 1px solid var(--kit-line);
}

@media (max-width: 767px) {
  .hero__copy {
    padding-top: 6rem;
    max-width: none;
  }
  .hero__ctas .kit-pill { min-height: 44px; }

  [data-theme="halo"] .sec-featured {
    grid-template-columns: 1fr;
  }
  [data-theme="halo"] .featured-card {
    margin-left: 0;
    max-width: none;
  }
  [data-theme="halo"] .sec-ascent {
    grid-template-columns: 1fr;
  }
  [data-theme="halo"] .ascent__step {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }
}

/* Studio direction: sculptural type and an editorial rhythm around the stone. */
.hero__headline{
  font-family:Georgia,serif;
  font-weight:400;
  font-size:clamp(3.8rem,7vw,7rem);
  line-height:.96;
  letter-spacing:-.055em;
  max-width:7.5ch
}
.hero__copy{
  max-width:43rem;
  padding-top:8.2rem
}
.hero__sub{
  max-width:31ch;
  font-size:.95rem;
  margin-top:1.8rem;
  color:#bcbdb9
}
.hero__ctas{
  margin-top:1.7rem
}
.hero__status{
  color:#b6b5aa
}
[data-theme=halo] .featured__headline{
  font-family:Georgia,serif;
  font-size:clamp(5rem,10vw,10rem);
  font-weight:400;
  letter-spacing:-.06em
}
[data-theme=halo] .sec-featured{
  padding-top:7rem;
  padding-bottom:7rem;
  align-items:center;
  background:#e9e5db;
  color:#292b23;
  --kit-muted:#5b5d54
}
[data-theme=halo] .featured-card{
  border:0;
  background:transparent;
  border-radius:0;
  max-width:42rem
}
[data-theme=halo] .featured-card__media img{
  border-radius:3px;
  aspect-ratio:4/5;
  object-fit:cover
}
[data-theme=halo] .featured-card__meta{
  padding:1.5rem 0 0
}
.featured-card__body{
  color:inherit
}
[data-theme=halo] .ascent__headline,[data-theme=halo] .rail__headline,[data-theme=halo] .faq__headline{
  font-family:Georgia,serif;
  font-weight:400;
  font-size:clamp(3rem,5vw,5rem);
  letter-spacing:-.035em;
  line-height:1.04
}
[data-theme=halo] .sec-ascent{
  padding-top:7rem;
  padding-bottom:7rem
}
.ascent__step{
  padding-bottom:2.8rem
}
.ascent__copy p{
  max-width:38ch
}
[data-theme=halo] .sec-rail{
  background:#181a18;
  padding-top:6rem;
  padding-bottom:6rem
}
[data-theme=halo] .rail{
  gap:2.5rem
}
.rail__cell:nth-child(even){
  padding-top:5rem
}
[data-theme=halo] .rail__cell{
  flex-basis:min(65vw,30rem);
  width:min(65vw,30rem);
  max-width:min(65vw,30rem)
}
[data-theme=halo] .rail__media img{
  border-radius:2px
}
.rail__meta h3{
  font-size:1.5rem!important
}
.rail__meta p{
  max-width:28ch
}
[data-theme=halo] .sec-statement{
  background:#e4c56a;
  color:#24271e;
  padding-top:6rem;
  padding-bottom:6rem;
  --kit-muted:#434738;
  --kit-ink:#24271e;
  --kit-line:#6d693c
}
.sec-statement .statement__line{
  font-family:Georgia,serif;
  font-weight:400;
  letter-spacing:-.04em
}
.site-footer{
  padding-top:3rem;
  padding-bottom:3rem
}
.site-footer>p:first-child{
  font-family:Georgia,serif;
  font-size:4rem;
  letter-spacing:-.05em
}
@media(max-width:767px){
  .hero__copy{
    padding-top:7rem
  }
  .hero__headline{
    font-size:clamp(3.5rem,15vw,5rem);
    max-width:8ch
  }
  .hero__sub{
    font-size:.85rem;
    max-width:27ch
  }
  .hero__ctas{
    margin-top:1.2rem
  }
  [data-theme=halo] .sec-featured,[data-theme=halo] .sec-ascent{
    padding-top:4rem;
    padding-bottom:4rem
  }
  .rail__cell:nth-child(even){
    padding-top:2rem
  }
  [data-theme=halo] .rail{
    gap:1.2rem
  }
}
@media(max-width:767px){
  .hero__ctas .kit-pill:not(.kit-pill--solid){
    background:#161813;
    color:#eceae6
  }
  .hero__scrim{
    background:linear-gradient(180deg,#0c0d10d9,transparent 65%)
  }
}
[data-theme="halo"] .sec-statement .kit-pill--solid {
  color: #eceae6;
}
.kit-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 12px var(--font-body);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Portfolio edition: shared story families carry the lower page. */
.hero__copy h1 { max-width: 7ch; }
[data-kit] .project-index { background: #e9e6dc; --kit-ink: #262821; --kit-mute: #616457; --kit-line: #bec0b4; color: var(--kit-ink); }
[data-kit] .story-title { font-family: Georgia, serif; }
[data-kit] .project-preview img { background: #dad9cd; }
[data-kit] .visual-chapters { background: #171a18; --kit-mute: #b3b8aa; }
[data-kit] .expanding-image { background: #e9e6dc; --kit-ink: #262821; color: var(--kit-ink); }
[data-kit] .chapter h3 { font-family: Georgia, serif; }

/* Short viewports: a landscape phone, a small laptop window, an iPhone SE.
   The headline is capped by height and the spacing tightens, so the actions
   and status line stay inside the fixed-height hero. Each cap wraps the size
   its width already uses, so nothing changes where the cap does not bind. */
@media (max-height: 640px) {
  .hero__headline { font-size: min(clamp(3.8rem, 7vw, 7rem), 13svh); }
}
@media (max-height: 640px) and (max-width: 767px) {
  .hero__headline { font-size: min(clamp(3.5rem, 15vw, 5rem), 13svh); }
}
@media (max-height: 640px) {
  .hero__copy { padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero__sub { margin-top: 1rem; }
  .hero__ctas { margin-top: 1.1rem; }
}
@media (max-height: 460px) {
  .hero__sub { display: none; }
  .hero__copy { padding-top: 4.5rem; }
}
