/* All In House, /wellness/ (25 Sep 2026). The house on the rest of the site: black end to end, every word #fff,
   Perandory display + Figtree, square outlined buttons, fragments. The header and the faena.com menu come from
   /assets/intro.css + intro.js (the home page's), so the whole site moves the same way. Nothing here is scroll-driven:
   the hero's words rise once on load, like the home carousel's. The formula stays veiled: four numbered parts, names unwritten. */

@font-face { font-family: "W Perandory"; src: url("/fonts/Perandory-SemiCondensed.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "W Figtree"; src: url("/fonts/Figtree-400.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
/* intro.css (header, menu) names these two families directly */
@font-face { font-family: "Perandory"; src: url("/fonts/Perandory-SemiCondensed.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/Figtree-400.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root { --ink: #0a0a0a; --w: #fff; --rule: 1px solid #fff; --display: "W Perandory", Perandory, Georgia, serif; --sans: "W Figtree", Figtree, system-ui, sans-serif; --gutter: 48px; }
@media (max-width: 1024px) { :root { --gutter: 32px; } }
@media (max-width: 767px) { :root { --gutter: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--w); font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--w); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--w); color: var(--ink); padding: 12px 18px; }
.skip:focus { left: 12px; top: 12px; }

.caps { font-family: var(--sans); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: var(--rule); color: var(--w); text-decoration: none; background: none; }
.btn:hover, .btn:focus-visible { background: var(--w); color: var(--ink); }
.link { text-decoration: none; border-bottom: var(--rule); padding-bottom: 6px; }

/* ---------- Hero ---------- */
.w-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.w-hero picture, .w-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-hero img { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.w-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,0) 100%); pointer-events: none; }
.w-hero__body { position: relative; z-index: 1; padding: 0 var(--gutter) 64px; max-width: 1100px; }
.w-hero__eyebrow { margin-bottom: 18px; }
.w-hero__title { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .95; letter-spacing: .01em; text-transform: uppercase; }
.w-hero__lines { margin-top: 22px; font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.15; text-transform: uppercase; }
.w-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
@media (max-width: 767px) { .w-hero__body { padding-bottom: 44px; } .w-hero__ctas .btn { flex: 1; min-width: 0; padding: 0 12px; } }
/* play once on load, like the home carousel's words */
.w-rise { animation: w-rise .8s .2s both; }
.w-rise--1 { animation-duration: .5s; }
.w-rise--3 { animation-delay: .35s; }
.w-rise--4 { animation: w-bounce .8s .45s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes w-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes w-bounce { 0% { opacity: .1; transform: translateY(60px); } 50% { opacity: 1; transform: translateY(-15px); } 100% { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.w-sec { padding: 110px var(--gutter); }
@media (max-width: 767px) { .w-sec { padding: 80px var(--gutter); } }
.w-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 24px; margin-bottom: 44px; }
.w-title { font-family: var(--display); font-size: clamp(2.75rem, 5vw, 4.25rem); line-height: 1; text-transform: uppercase; }

/* Protocols: the free five-minute reads */
.w-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .w-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .w-cards { grid-template-columns: 1fr; } }
.w-card { display: block; text-decoration: none; }
.w-card__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; background: #1a1816; }
.w-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.w-card__meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.w-card__title { font-family: var(--display); font-size: 2rem; line-height: 1.05; text-transform: uppercase; }
.w-card:hover .w-card__title, .w-card:focus-visible .w-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* The Formula (25 Sep, second pass): veiled on purpose (memory: aih-wellness-protocol-stays-veiled). Centred. Three rings say what
   it is for (wellness, productivity, ease); where all three meet sits our mark, because the formula is ours. No parts are named. */
.w-sec--formula { text-align: center; }
.f-head { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 56px; }
.venn { position: relative; width: min(100%, 540px); aspect-ratio: 484 / 460; margin: 0 auto 64px; }
.venn svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.venn__label { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: .75rem; }
.venn__label--1 { left: 50%; top: 15%; }
.venn__label--2 { left: 23.5%; top: 80.5%; }
.venn__label--3 { left: 76.5%; top: 80.5%; }
.venn__mark { position: absolute; left: 50%; top: 55.4%; width: 7.4%; height: auto; transform: translate(-50%, -50%); }
.f-words { display: flex; flex-direction: column; align-items: center; }
.f-line { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; text-transform: uppercase; max-width: 22ch; text-wrap: balance; }
.f-line + .f-line { margin-top: 22px; }
.f-veil { margin: 34px 0 30px; }
@media (max-width: 600px) {
  .f-head { margin-bottom: 40px; }
  .venn { margin-bottom: 48px; }
  .venn__label { font-size: .625rem; letter-spacing: .1em; }
  .w-sec--formula .btn { width: 100%; }
}

/* The close: one hour at your house */
.w-close { position: relative; min-height: 78vh; display: flex; align-items: flex-end; justify-content: center; text-align: center; overflow: hidden; }
.w-close picture, .w-close img { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-close img { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.w-close::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 70%); }
.w-close__body { position: relative; z-index: 1; padding: 0 var(--gutter) 80px; }
.w-close__body .w-title { margin-bottom: 30px; }

/* ---------- Article ---------- */
.a-hero { position: relative; height: 72vh; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; }
.a-hero picture, .a-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-hero img { object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.a-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 100%); }
.a-hero__body { position: relative; z-index: 1; padding: 0 var(--gutter) 48px; }
.a-meta { display: flex; gap: 18px; margin-bottom: 18px; }
.a-title { font-family: var(--display); font-size: clamp(3rem, 8vw, 7rem); line-height: .95; text-transform: uppercase; }
@media (min-width: 768px) { .a-title { max-width: 6.4em; } }
@media (min-width: 768px) { .a-hero--morning-routine .a-title { max-width: 4.6em; } }   /* two lines, so the title ends before the panel on the floor */   /* long titles wrap on the left, clear of the person in the photo */
@media (max-width: 767px) {   /* phones: the photo, then the words below it (type never crosses the subject) */
  .a-hero { height: auto; min-height: 0; display: block; }
  .a-hero picture, .a-hero img { position: static; height: auto; aspect-ratio: 4 / 5; }
  .a-hero::after { display: none; }
  .a-hero__body { padding: 28px var(--gutter) 0; }
}
.a-main { max-width: 860px; margin: 0 auto; padding: 72px var(--gutter) 40px; }
.a-dek { font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; text-transform: uppercase; margin-bottom: 56px; }
.a-steps { counter-reset: s; border-top: var(--rule); }
.a-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 30px 0; border-bottom: var(--rule); counter-increment: s; }
.a-step::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; padding-top: 10px; grid-row: 1 / span 2; }
.a-step__do, .a-step__why { grid-column: 2; }
@media (max-width: 600px) { .a-step { grid-template-columns: 40px 1fr; gap: 0 12px; } }
.a-step__do { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; text-transform: uppercase; margin-bottom: 12px; }
.a-step__why { font-size: 1.0625rem; line-height: 1.55; max-width: 60ch; }
.a-step__why sup a { text-decoration: none; font-weight: 700; margin-left: 2px; }
.a-close { margin: 56px 0 26px; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; text-transform: uppercase; }
.a-sources { margin-top: 72px; padding-top: 28px; border-top: var(--rule); }
.a-sources h2 { margin-bottom: 18px; }
.a-sources li { font-size: .9375rem; line-height: 1.5; margin-bottom: 12px; }
.a-sources a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.a-note { margin-top: 28px; font-size: .9375rem; }
.a-next { padding: 40px var(--gutter) 110px; }
.a-next .w-head { margin-bottom: 28px; }

/* ---------- Footer (the site's own, restated so this page needs no other stylesheet) ---------- */
.w-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: clamp(64px, 11vw, 104px) 24px calc(56px + env(safe-area-inset-bottom)); text-align: center; border-top: var(--rule); }
.w-foot img { width: 148px; height: auto; margin-bottom: 12px; }
.w-foot p { margin: 0; font-size: 1.0625rem; }
.w-foot a { color: var(--w); font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.w-foot__copy { font-size: .9375rem !important; }

/* the header sits over a photo on every page here */
.x-head { position: absolute; }

/* Sleep optimization: cool and warm light drift across the bed, slowly, to show a bed whose temperature follows the night.
   Two fields cross-fade (opacity only, so it stays smooth); multiply tints the white linen and leaves the dark room dark. */
.fx-thermal { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .85; overflow: hidden; }
@media (max-width: 767px) { .a-hero .fx-thermal { bottom: auto; height: auto; aspect-ratio: 4 / 5; } }   /* phones: the photo sits above the words; tint the photo only */
.fx-thermal::before, .fx-thermal::after { content: ""; position: absolute; inset: -12%; }
.fx-thermal::before { background: radial-gradient(ellipse 70% 60% at 45% 28%, #ff7a2e 0%, rgba(255, 122, 46, 0) 75%), radial-gradient(ellipse 80% 65% at 70% 90%, #2f7bff 0%, rgba(47, 123, 255, 0) 78%); animation: fx-drift 14s ease-in-out infinite alternate; }
.fx-thermal::after { background: radial-gradient(ellipse 72% 60% at 45% 30%, #2f7bff 0%, rgba(47, 123, 255, 0) 75%), radial-gradient(ellipse 80% 65% at 68% 88%, #ff7a2e 0%, rgba(255, 122, 46, 0) 78%); opacity: 0; animation: fx-swap 14s ease-in-out infinite alternate; }
@keyframes fx-swap { 0%, 18% { opacity: 0; } 82%, 100% { opacity: 1; } }
@keyframes fx-drift { from { transform: translate3d(-2%, -1%, 0); } to { transform: translate3d(2%, 1.5%, 0); } }

@media (prefers-reduced-motion: reduce) { .w-rise, .w-rise--4, .fx-thermal::before, .fx-thermal::after { animation: none !important; } }
