/* Aevos Fitness: quiet luxury */
:root {
  --bone: #eef0ef;
  --paper: #f8f8f6;
  --stone: #c7bdb3;
  --stone-deep: #9c9086;
  --graphite: #1f2326;
  --graphite-2: #4a5054;
  --mineral: #7f8c87;
  --mineral-deep: #3e4a46;
  --line: rgba(31, 35, 38, 0.14);
  --f: "Jost", "Futura", "Century Gothic", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--graphite);
  font: 400 17px/1.65 var(--f);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 14px; }

/* type */
.h2 {
  font-weight: 200;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: 400 15px/1 var(--f); letter-spacing: 0.04em;
  text-decoration: none; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--solid { background: var(--graphite); color: var(--paper); }
.btn--solid:hover { background: #000; }
.btn--line { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn--line:hover { background: var(--graphite); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--mineral-deep); }
.btn--light:hover { background: #fff; }
.btn--text { padding: 0 4px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* header */
.top {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  transition: background 0.3s, box-shadow 0.3s;
}
.top.is-scrolled { background: rgba(238, 240, 239, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top__logo img { width: 132px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; }
.top__nav a { text-decoration: none; font-size: 15px; color: var(--graphite-2); }
.top__nav a:hover { color: var(--graphite); }
.top__cta { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* hero */
.hero {
  min-height: min(100svh, 980px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end; gap: clamp(24px, 4vw, 64px);
  padding: 120px var(--gutter) clamp(40px, 7vh, 80px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
}
.hero__status { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--graphite-2); margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-deep); box-shadow: 0 0 0 4px rgba(156, 144, 134, 0.22); }
.hero__title {
  margin: 0 0 32px;
  font-weight: 200;
  font-size: clamp(54px, 8.6vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--stone-deep); padding-left: clamp(24px, 6vw, 110px); }
.hero__lede { max-width: 52ch; margin: 0 0 36px; color: var(--graphite-2); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero__media { margin: 0; align-self: stretch; position: relative; }
.hero__media img { width: 100%; height: 100%; min-height: 420px; max-height: 78vh; object-fit: cover; border-radius: 2px; }

/* pillars: the positioning, fitness + recovery + wellness */
.pillars { padding: clamp(72px, 11vh, 128px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.pillars__title { font-weight: 200; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 clamp(36px, 6vh, 64px); max-width: 16ch; }
.pillars__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--graphite); }
.pillar { padding: 28px clamp(16px, 2.4vw, 36px) 8px 0; }
.pillar + .pillar { padding-left: clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.pillar h3 { font-weight: 300; font-size: 30px; margin: 0 0 12px; letter-spacing: -0.005em; }
.pillar:nth-child(2) h3 { color: var(--mineral-deep); }
.pillar:nth-child(3) h3 { color: var(--stone-deep); }
.pillar p { margin: 0; color: var(--graphite-2); max-width: 40ch; }
.parking { margin-top: clamp(48px, 8vh, 88px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px 48px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parking__title { font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin: 0; }
.parking p:last-child { margin: 0; color: var(--graphite-2); max-width: 54ch; }

/* floors */
.floors { background: var(--paper); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.floors__intro, .floors__body { max-width: var(--max); margin: 0 auto; }
.floors__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 8vh, 96px); }
.floors__intro p { margin: 0 0 20px; color: var(--graphite-2); max-width: 52ch; }
.floors__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }

.lift { position: sticky; top: 110px; align-self: start; }
.building { width: 100%; max-width: 220px; overflow: visible; }
.building rect { fill: transparent; stroke: var(--stone); stroke-width: 1; transition: fill 0.45s ease, stroke 0.45s ease; }
.building text { font: 300 13px var(--f); fill: var(--graphite-2); text-anchor: middle; letter-spacing: 0.04em; transition: fill 0.45s; }
.building__ground { stroke: var(--graphite); stroke-width: 1; stroke-dasharray: 3 4; }
.building__floor.is-active rect { fill: var(--graphite); stroke: var(--graphite); }
.building__floor.is-active text { fill: var(--paper); }
.building__floor.is-active .building__note { fill: #cfc8c0; }
.building__floor--future rect { stroke-dasharray: 4 4; }
.building .building__note { font-size: 11px; fill: var(--stone-deep); }
.building__floor[data-floor="2"].is-active rect { fill: var(--mineral); stroke: var(--mineral); }
.building__floor[data-floor="2"].is-active .building__note { fill: #e7ece9; }

.lift__buttons { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 6px; }
.lift__buttons a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--graphite-2); font-size: 15px; padding: 4px 0; }
.lift__buttons span {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--stone); border-radius: 50%; font-size: 14px; color: var(--graphite);
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.lift__buttons a.is-active { color: var(--graphite); }
.lift__buttons a.is-active span { background: var(--graphite); color: var(--paper); border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(31, 35, 38, 0.08); }
.lift__buttons a[data-floor="2"].is-active span { background: var(--mineral); border-color: var(--mineral); }

.floors__list { display: grid; gap: clamp(72px, 14vh, 160px); }
.floor { max-width: 760px; scroll-margin-top: 110px; }
.floor__level { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--graphite-2); font-size: 15px; }
.floor__level span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--stone); border-radius: 50%; font-size: 13px; color: var(--graphite); }
.floor__name { font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 24px; }
.floor img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; margin-bottom: 26px; background: var(--bone); }
.floor > p { max-width: 58ch; margin: 0 0 18px; }
.floor__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.floor__facts li { font-size: 14px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--graphite-2); }
.floor--recovery .floor__facts li { border-color: rgba(127, 140, 135, 0.45); }

/* classes */
.classes { padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); }
.classes__head p { color: var(--graphite-2); max-width: 40ch; margin: 0; }
.classes__list { margin: 0; }
.classes__list > div { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.classes__list > div:last-child { border-bottom: 1px solid var(--line); }
.classes__list dt { font-weight: 300; font-size: 24px; line-height: 1.25; }
.classes__list dd { margin: 0; color: var(--graphite-2); }

/* recovery */
.recovery { background: var(--mineral-deep); color: #e7ece9; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.recovery__media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.recovery__copy { padding: clamp(56px, 10vh, 120px) var(--gutter); align-self: center; max-width: 620px; }
.recovery__copy p { color: #c9d3cf; margin: 0 0 18px; }
.recovery__copy .btn { margin-top: 18px; }

/* founding */
.founding { padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); }
.founding__copy p { color: var(--graphite-2); max-width: 46ch; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 15px; color: var(--graphite-2); }
.form input, .form select {
  font: 400 17px var(--f); color: var(--graphite);
  min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
}
.form input:focus, .form select:focus { outline: 2px solid var(--graphite); outline-offset: 0; border-color: var(--graphite); }
.form .btn { justify-self: start; margin-top: 6px; }
.form__error { color: #8a2c22; margin: 0; font-size: 15px; }
.form__done { align-self: center; padding: 32px; border: 1px solid var(--stone); }
.form__done h3 { font-weight: 300; font-size: 28px; margin: 0 0 8px; }
.form__done p { margin: 0; color: var(--graphite-2); }
.form__done:focus { outline: none; }
[hidden] { display: none !important; }

/* visit */
.visit { padding: 0 var(--gutter) clamp(80px, 12vh, 140px); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
.visit__notes { margin: 0; border-top: 1px solid var(--graphite); }
.visit__notes > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.visit__notes dt { font-weight: 400; }
.visit__notes dd { margin: 0; color: var(--graphite-2); }
.visit__notes > div:first-child dt, .visit__notes > div:first-child dd { color: var(--graphite); }
.visit address { font-style: normal; font-size: 22px; font-weight: 300; line-height: 1.5; margin-bottom: 14px; }
.visit p { color: var(--graphite-2); max-width: 52ch; margin: 0 0 26px; }

/* footer */
.foot { background: var(--graphite); color: #9aa0a3; padding: 56px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot img { width: 160px; }
.foot p { margin: 0; font-size: 14px; }

/* page-load: the headline is the one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero__title span { opacity: 0; transform: translateY(18px); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__title span:last-child { animation-delay: 0.35s; }
  .hero__media img { opacity: 0; animation: fade 1.6s ease 0.2s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes fade { to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* responsive */
@media (max-width: 1000px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 104px; }
  .hero__media img { max-height: 56vh; min-height: 300px; }
  .floors__intro, .classes, .founding, .recovery, .parking, .visit { grid-template-columns: minmax(0, 1fr); }
  .pillars__list { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .floors__body { grid-template-columns: minmax(0, 1fr); }
  .lift { position: sticky; top: 64px; z-index: 5; background: var(--paper); padding: 10px 0; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); box-shadow: 0 1px 0 var(--line); }
  .building { display: none; }
  .lift__buttons { margin: 0; grid-auto-flow: column; justify-content: start; gap: 8px; overflow-x: auto; }
  .lift__buttons a { gap: 8px; font-size: 14px; white-space: nowrap; padding-right: 8px; }
  .floor { scroll-margin-top: 130px; }
  .recovery__media img { min-height: 320px; max-height: 60vh; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top { gap: 12px; }
  .top__logo img { width: 104px; }
  .top__cta { padding: 0 14px; font-size: 13px; }
  .classes__list > div { grid-template-columns: minmax(0, 1fr); }
  .lift__buttons a { font-size: 0; gap: 0; padding: 0; }
  .lift__buttons span { font-size: 14px; }
}
