@charset "utf-8";
/* ==========================================================================
   The Daily Fit — homepage mockup
   Hand-written CSS. No framework, no preprocessor.

   Ideas behind the system
   · Squared corners and hairlines: it should feel drawn, not rounded off.
   · One typeface (Archivo) used across its width axis: expanded caps echo the
     logo wordmark, normal width reads the copy, condensed handles references.
   · Navy from the brand, a warm bone paper, and oak taken from the oak door.
   · Photographs are portrait phone shots, so layouts are built around tall
     frames that stand on a shared ground line.
   ========================================================================== */

:root {
  --navy: #07182c;
  --navy-2: #0b2039;
  --bone: #f0ece4;
  --bone-2: #e8e1d4;
  --ink: #0a1a2e;
  --muted: #56626f;
  --fog: #9ba5b0;
  --oak: #dba362;
  --oak-deep: #9a5d1f;
  --hair-l: rgba(7, 24, 44, .18);
  --hair-d: rgba(240, 236, 228, .2);

  --pad: clamp(20px, 4.2vw, 64px);
  --gap: clamp(14px, 1.9vw, 30px);
  --hh: 68px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--oak); color: var(--navy); }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.on-bone :focus-visible, .bone :focus-visible { outline-color: var(--oak-deep); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--oak); color: var(--navy); padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top .25s var(--ease-out);
}
.skip:focus { top: 12px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.lockup {
  display: flex; align-items: center; gap: 1em;
  margin: 0;
  font-size: .72rem; font-weight: 500; font-stretch: 125%;
  letter-spacing: .34em; text-transform: uppercase;
}
.lockup::before, .lockup::after {
  content: ""; height: 1px; background: currentColor; opacity: .45; flex: 0 0 2.4em;
}
.lockup--rule::before { display: none; }
.lockup--rule::after { flex: 1 1 auto; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }

h2 {
  font-size: clamp(1.7rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.08; font-stretch: 108%;
}
h3 {
  font-size: clamp(1.3rem, 1.05rem + .8vw, 1.75rem);
  line-height: 1.15; font-stretch: 104%;
}

.small { font-size: .875rem; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--oak); --fg: var(--navy); --hover: var(--bone);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 48px; padding: .75em 1.4em;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bg);
  font-size: .8rem; font-weight: 600; font-stretch: 118%;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover); transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { border-color: var(--hover); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--ghost {
  --bg: transparent; --fg: var(--bone); --hover: var(--bone);
  border-color: var(--hair-d);
}
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--navy); }
.btn--ghost small { font: inherit; opacity: .6; letter-spacing: inherit; }

.btn--navy { --bg: var(--navy); --fg: var(--bone); --hover: var(--oak); }
.btn--navy:hover, .btn--navy:focus-visible { color: var(--navy); }

.link {
  position: relative; display: inline-block; text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 0 1px; background-position: right bottom; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--hh);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding-inline: var(--pad);
  background: rgba(7, 24, 44, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--bone);
  border-bottom: 1px solid var(--hair-d);
  transition: transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(-101%); }

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; margin-right: auto;
}
.brand__mark { width: 25px; height: 32px; flex: none; color: var(--bone); }
.brand__text { display: grid; line-height: 1; gap: 7px; }
.brand__name {
  font-size: 1.05rem; font-weight: 600; font-stretch: 125%; letter-spacing: .24em;
  white-space: nowrap;
}
.brand__name small {
  font-size: .5em; letter-spacing: .3em; vertical-align: .38em; margin-right: .5em;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.brand__name em { font-style: normal; color: var(--fog); }
.brand__sub {
  font-size: .56rem; font-weight: 500; font-stretch: 125%; letter-spacing: .5em;
  text-transform: uppercase; color: var(--fog);
}

.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  position: relative; padding: 6px 0;
  font-size: .78rem; font-weight: 500; font-stretch: 112%;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: rgba(240, 236, 228, .78);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--oak); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.is-current { color: var(--bone); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 22px; }
.tel {
  font-size: .9rem; font-weight: 500; font-stretch: 110%; letter-spacing: .06em;
  text-decoration: none; white-space: nowrap;
}
.tel:hover { color: var(--oak); }
.header-cta .btn { min-height: 40px; padding: .5em 1.15em; font-size: .72rem; }

.menu-btn {
  display: none; align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer;
  font-size: .74rem; font-weight: 600; font-stretch: 120%; letter-spacing: .18em; text-transform: uppercase;
}
.menu-btn i { position: relative; width: 24px; height: 9px; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 8px; }
.menu-btn[aria-expanded="true"] i::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 4px; transform: rotate(-45deg); }

/* Mobile menu sheet */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hh) + 28px) var(--pad) 28px;
  background: var(--navy); color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu__links { display: grid; }
.menu__links a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--hair-d);
  font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; font-stretch: 108%; letter-spacing: -.02em;
  text-decoration: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.menu__links a span { font-size: .7rem; font-weight: 500; font-stretch: 125%; letter-spacing: .2em; color: var(--fog); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .18s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .24s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .30s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .36s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .42s; }
.menu__foot { display: grid; gap: 14px; }
.menu__foot p { font-size: .8rem; color: var(--fog); }
.menu__foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  --frame-h: clamp(440px, calc(100svh - var(--hh) - 196px), 790px);
  --frame-w: calc(var(--frame-h) * 1440 / 1911);
  position: relative; overflow: clip;
  padding-top: var(--hh);
  background: var(--navy); color: var(--bone);
}
.hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) var(--frame-w) minmax(0, 3fr);
  grid-template-areas: "top doors note" "bottom doors note";
  grid-template-rows: 1fr auto;
  column-gap: clamp(28px, 4.4vw, 76px);
  max-width: 1560px; margin-inline: auto;
  padding: clamp(28px, 5vh, 60px) var(--pad) 0;
  position: relative;
}
.hero__stage::after { /* the ground line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair-d);
}
.hero__top { grid-area: top; align-self: start; display: grid; gap: clamp(20px, 3.4vh, 38px); padding-bottom: 32px; }
.hero__bottom { grid-area: bottom; align-self: end; display: grid; gap: 26px; padding-bottom: 36px; max-width: 430px; }
.hero__top .lockup { color: var(--oak); }

h1 {
  font-size: clamp(2rem, 1.15rem + 2.1vw, 3.05rem);
  line-height: 1.04; font-stretch: 110%; letter-spacing: -.028em;
  max-width: 13ch;
}
.hero__lede { font-size: 1.05rem; line-height: 1.55; color: rgba(240, 236, 228, .82); max-width: 34ch; }
.hero__actions { display: grid; gap: 12px; width: fit-content; }

.hero__note {
  grid-area: note; align-self: end; padding-bottom: 36px; display: grid; gap: 18px; max-width: 320px;
}
.hero__note .label {
  font-size: .68rem; font-weight: 500; font-stretch: 125%; letter-spacing: .3em; text-transform: uppercase; color: var(--oak);
}
.hero__note blockquote { font-size: 1.02rem; line-height: 1.55; color: rgba(240, 236, 228, .88); }
.hero__note blockquote em { font-style: normal; color: var(--fog); display: block; margin-bottom: .35em; }
.hero__note cite {
  font-style: normal; font-size: .78rem; color: var(--fog); padding-top: 14px; border-top: 1px solid var(--hair-d);
}

/* Doors that open */
.doors { --p: 0; grid-area: doors; position: relative; width: var(--frame-w); align-self: end; }
.doors__stage {
  position: relative; aspect-ratio: 1440 / 1911; overflow: hidden;
  background: #22170c url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAdABYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwC3banrkzFYYkcKFJKhQOVB7n3qT+0daZ2jWJDIudy/KNvP61UtNQsrFV+1yFS8UZUBmyQFIPA+laNoUee6nFu8yhdyqHIbBP60JCbdynJrOroZBJ5UbIV+8A2c59PpRVfWTzIywtDvdPkJ3EYU/wCNFS9GawV1qULtWLWrKSoMAHBx0ZqdJG3kRZJ6Nznr81W47iCH5WtQ7d2MjCpUv4ckfZSPpM1TzEujdt3M2Pf9kCh3BMrHhj2C0VdneOdsxxmMjrly386KTdzWK5VY/9k=) center / cover;
  perspective: 1500px; perspective-origin: 50% 42%;
  touch-action: pan-y; cursor: ew-resize;
  box-shadow: 0 0 0 1px rgba(240, 236, 228, .16);
  user-select: none; -webkit-user-select: none;
}
.doors__after {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.09 - var(--p) * .09)); transform-origin: 50% 55%;
}
.doors__leaf {
  --mx: 48.3%;
  position: absolute; inset: 0; backface-visibility: hidden; will-change: transform;
  filter: brightness(calc(1 - var(--p) * .5));
}
.doors__leaf img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.doors__leaf--l {
  clip-path: inset(0 calc(100% - var(--mx)) 0 0);
  transform-origin: 0 50%;
  transform: rotateY(calc(var(--p) * 86deg));
}
.doors__leaf--r {
  clip-path: inset(0 0 0 var(--mx));
  transform-origin: 100% 50%;
  transform: rotateY(calc(var(--p) * -86deg));
}
.doors__bar {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px;
  padding-top: 20px;
  font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog);
}
.doors__replay {
  display: grid; place-items: center; width: 34px; height: 34px; margin-right: -8px;
  background: none; border: 0; color: var(--fog); cursor: pointer; transition: color .3s, transform .6s var(--ease);
}
.doors__replay:hover { color: var(--oak); transform: rotate(-200deg); }
.doors__replay svg { width: 17px; height: 17px; }

.doors__range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer;
}
.doors__range::-webkit-slider-runnable-track {
  height: 1px; background: linear-gradient(90deg, var(--oak) calc(var(--p) * 100%), var(--hair-d) calc(var(--p) * 100%));
}
.doors__range::-moz-range-track { height: 1px; background: var(--hair-d); }
.doors__range::-moz-range-progress { height: 1px; background: var(--oak); }
.doors__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 9px; height: 22px; margin-top: -10.5px;
  background: var(--oak); border: 0; border-radius: 0;
}
.doors__range::-moz-range-thumb { width: 9px; height: 22px; background: var(--oak); border: 0; border-radius: 0; }
.doors__range:focus-visible { outline-offset: 4px; }

.hero__base {
  max-width: 1560px; margin-inline: auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 5fr) var(--frame-w) minmax(0, 3fr);
  column-gap: clamp(28px, 4.4vw, 76px); align-items: start;
  min-height: 78px; padding-top: 20px; padding-bottom: 20px;
}
.tagline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1.1em;
  font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog);
}
.tagline i { width: 1px; height: 1em; background: var(--hair-d); }
.hero__cue { grid-column: 3; justify-self: start; font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog); text-decoration: none; display: inline-flex; gap: .8em; align-items: center; }
.hero__cue svg { width: 12px; height: 12px; transition: transform .5s var(--ease); }
.hero__cue:hover { color: var(--bone); }
.hero__cue:hover svg { transform: translateY(4px); }

/* Entrance */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections (shared) ---------- */
.sec { padding-block: clamp(80px, 10vw, 160px); position: relative; }
.wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.sec-head { margin-bottom: clamp(44px, 6vw, 96px); row-gap: 22px; align-items: end; }
.sec-head .lockup { grid-column: 1 / -1; }
.sec-head h2 { grid-column: 1 / 8; }
.sec-head p { grid-column: 9 / 13; color: var(--muted); max-width: 36ch; }

/* Door-open reveal: the image splits from the middle, like the hero doors */
.js .reveal { clip-path: inset(0 50% 0 50%); transition: clip-path 1.25s var(--ease); }
.js .reveal img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.js .reveal.in { clip-path: inset(0 0 0 0); }
.js .reveal.in img { transform: none; }
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .fade.in { opacity: 1; transform: none; }

.frame { position: relative; overflow: hidden; background: var(--bone-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

figcaption {
  display: flex; gap: .7em; align-items: baseline;
  margin-top: 12px; font-size: .78rem; line-height: 1.4; color: var(--muted);
}
figcaption::before { content: ""; flex: none; width: 14px; height: 1px; background: currentColor; transform: translateY(-.28em); opacity: .7; }

/* ---------- Work ---------- */
.work { background: var(--bone); }

.spread { margin-top: clamp(72px, 10vw, 168px); row-gap: 0; }
.spread:first-of-type { margin-top: 0; }

/* Spread: bi-folds */
.sp-bifold .a { grid-column: 1 / 6; grid-row: 1 / 4; }
.sp-bifold .t { grid-column: 7 / 12; grid-row: 1; padding-top: clamp(0px, 3vw, 48px); }
.sp-bifold .b { grid-column: 7 / 10; grid-row: 2 / 4; align-self: end; margin-top: clamp(32px, 5vw, 72px); }
.sp-bifold .c { grid-column: 10 / 13; grid-row: 3; align-self: end; }
.sp-bifold .a .frame { aspect-ratio: 3 / 4; }
.sp-bifold .b .frame { aspect-ratio: 3 / 4; }
.sp-bifold .c .frame { aspect-ratio: 3 / 4; }

.t h3 { margin-bottom: 18px; }
.t p { color: var(--muted); max-width: 42ch; }
.facts { margin-top: 28px; border-top: 1px solid var(--hair-l); max-width: 42ch; }
.facts li {
  display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--hair-l);
  font-size: .82rem;
}
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 500; text-align: right; }

/* Spread: door line-up */
.sp-doors { margin-top: clamp(80px, 11vw, 180px); }
.lineup {
  --cap: 58px;
  display: flex; align-items: flex-end; gap: var(--gap);
  padding-bottom: var(--cap);
  /* the ground line the doors stand on */
  background: linear-gradient(var(--ink), var(--ink)) no-repeat left bottom var(--cap) / 100% 1px;
  background-attachment: local;
}
.lineup__intro { flex: 0 0 clamp(220px, 24%, 340px); align-self: flex-start; padding-right: 10px; }
.lineup__intro p { color: var(--muted); }
.lineup__intro h3 { margin-bottom: 16px; }
.lineup__intro blockquote {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair-l);
  font-size: .98rem; line-height: 1.5; font-weight: 500;
}
.lineup__intro blockquote span { display: block; margin-top: 8px; font-size: .78rem; font-weight: 400; color: var(--muted); }
.lineup__door { position: relative; flex: var(--ar) 1 0; min-width: 0; }
.lineup__door .frame { aspect-ratio: var(--ar); }
.lineup__door figcaption { position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding-top: 13px; }

/* Spread: conservatory roof */
.sp-roof .a { grid-column: 1 / 7; grid-row: 1 / 3; }
.sp-roof .t { grid-column: 8 / 13; grid-row: 1; align-self: start; padding-top: clamp(0px, 2vw, 32px); }
.sp-roof .c { grid-column: 9 / 13; grid-row: 2; align-self: end; margin-top: 40px; }
.sp-roof .a .frame, .sp-roof .c .frame { aspect-ratio: 3 / 4; }

.seg { display: inline-flex; margin-top: 28px; border: 1px solid var(--ink); }
.seg button {
  position: relative; min-width: 108px; min-height: 44px; padding: .55em 1.2em;
  background: none; border: 0; cursor: pointer;
  font-size: .72rem; font-weight: 600; font-stretch: 120%; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); transition: color .4s var(--ease), background-color .4s var(--ease);
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bone); }
.seg button:not([aria-pressed="true"]):hover { background: rgba(7, 24, 44, .07); }

.compare { position: relative; }
.compare .frame { position: relative; }
.compare .after {
  position: absolute; inset: 0; clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}
.compare[data-state="after"] .after { clip-path: inset(0); }
.compare .tag {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: .35em .7em; background: var(--bone); color: var(--ink);
  font-size: .64rem; font-weight: 600; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase;
}
.compare .tag--after { opacity: 0; transition: opacity .5s .5s; }
.compare[data-state="after"] .tag--before { opacity: 0; }
.compare .tag--before { transition: opacity .4s; }
.compare[data-state="after"] .tag--after { opacity: 1; }

/* ---------- Services: the schedule ---------- */
.services {
  background: var(--navy); color: var(--bone); overflow: clip;
  padding-top: clamp(110px, 13vw, 200px);
}
.services::before { /* drawing-paper grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 236, 228, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 236, 228, .05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}
.services .wrap { position: relative; }
.services .sec-head p { color: var(--fog); }
.services .lockup { color: var(--oak); }

.schedule { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 110px); align-items: start; }
.schedule__head, .svc__btn {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px; align-items: center; column-gap: 12px;
}
.schedule__head {
  padding: 0 0 12px; border-bottom: 1px solid var(--hair-d);
  font-size: .64rem; font-weight: 500; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog);
}
.schedule__head span:last-child { text-align: right; }
.svc { border-bottom: 1px solid var(--hair-d); }
.svc__btn {
  width: 100%; padding: 18px 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--bone);
  transition: padding-left .5s var(--ease);
}
.svc__ref {
  font-size: .78rem; font-weight: 500; font-stretch: 75%; letter-spacing: .14em; color: var(--fog);
  transition: color .4s;
}
.svc__name {
  font-size: clamp(1.15rem, .95rem + .8vw, 1.6rem); font-weight: 500; font-stretch: 104%; letter-spacing: -.015em; line-height: 1.15;
  transition: color .4s, transform .5s var(--ease);
}
.svc__ico { width: 40px; height: 40px; color: var(--fog); justify-self: end; transition: color .4s; }
.svc__ico * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.ico-ready .svc__ico * { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.ico-ready .svc:not(.is-active) .svc__ico * { stroke-dashoffset: .0; }
.ico-ready .svc.is-active .svc__ico * { animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .65s var(--ease); }
.svc__more > div { overflow: hidden; min-height: 0; padding-left: 68px; padding-right: 56px; }
.svc.is-active .svc__more { grid-template-rows: 1fr; }
.svc__more p { color: rgba(240, 236, 228, .78); max-width: 44ch; padding-bottom: 6px; }
.svc__more .ask { display: inline-block; margin: 14px 0 22px; font-size: .74rem; font-weight: 600; font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--oak); }
.svc__media { display: none; margin: 0 0 22px; }
.svc__media .frame { aspect-ratio: 4 / 5; background: var(--navy-2); }

.svc.is-active .svc__ref, .svc.is-active .svc__ico { color: var(--oak); }
.svc.is-active .svc__name { color: var(--bone); }
.svc:not(.is-active) .svc__btn:hover .svc__name { color: var(--oak); }

/* The viewer */
.viewer { position: sticky; top: calc(var(--hh) + 34px); }
.viewer__box { position: relative; aspect-ratio: 4 / 5; background: var(--navy-2); overflow: hidden; }
.viewer__layer { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.4s var(--ease-out); }
.viewer__layer.is-active { opacity: 1; transform: none; }
.viewer__layer img { width: 100%; height: 100%; object-fit: cover; }
.viewer__layer--brand { display: grid; place-items: center; background: var(--navy-2); color: var(--bone); }
.viewer__layer--brand svg { width: 34%; height: auto; opacity: .9; }
.viewer__layer--brand p { position: absolute; left: 22px; right: 22px; bottom: 20px; font-size: .9rem; color: var(--fog); }
.viewer__corner { position: absolute; width: 22px; height: 22px; z-index: 3; pointer-events: none; border: 0 solid var(--oak); }
.viewer__corner--tl { left: -1px; top: -1px; border-width: 2px 0 0 2px; }
.viewer__corner--br { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }
.viewer__cap { margin-top: 14px; display: flex; gap: .8em; align-items: baseline; font-size: .8rem; color: var(--fog); min-height: 2.6em; }
.viewer__cap::before { content: "Fig."; font-weight: 500; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--oak); }

/* ---------- Alex ---------- */
.alex { background: var(--bone); }
.alex__figs { grid-column: 1 / 8; position: relative; padding-bottom: clamp(60px, 9vw, 140px); }
.alex__big { width: 78%; }
.alex__big .frame { aspect-ratio: 1; }
.alex__small { position: absolute; right: 0; bottom: 0; width: 42%; }
.alex__small .frame { aspect-ratio: 1; box-shadow: 0 0 0 clamp(8px, 1vw, 14px) var(--bone); }
.alex__copy { grid-column: 9 / 13; align-self: center; }
.alex__copy .lockup { color: var(--oak-deep); margin-bottom: 24px; }
.alex__copy h2 { margin-bottom: 22px; }
.alex__copy p { color: var(--muted); }
.alex__copy p + p { margin-top: 14px; }
.contact-lines { margin-top: 30px; border-top: 1px solid var(--hair-l); }
.contact-lines a, .contact-lines div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--hair-l); text-decoration: none;
  font-size: .95rem; font-weight: 500;
  transition: padding-left .5s var(--ease), color .3s;
}
.contact-lines a:hover { padding-left: 10px; color: var(--oak-deep); }
.contact-lines span { font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.apprentice {
  grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  margin-top: clamp(20px, 3vw, 40px); align-items: end;
}
.apprentice figure { grid-column: 9 / 13; }
.apprentice .frame { aspect-ratio: 3 / 4; }
.apprentice__txt { grid-column: 1 / 8; grid-row: 1; padding-bottom: 4px; }
.apprentice__txt p { font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); font-weight: 500; font-stretch: 104%; letter-spacing: -.02em; line-height: 1.2; max-width: 22ch; }
.apprentice__txt small { display: block; margin-top: 18px; font-size: .78rem; color: var(--muted); }

/* ---------- Review ---------- */
.review { background: var(--bone-2); }
.review__quote { grid-column: 1 / 9; align-self: center; }
.review .lockup { color: var(--oak-deep); margin-bottom: 30px; }
.stars { display: flex; gap: 6px; color: var(--ink); margin-bottom: 26px; }
.stars svg { width: 22px; height: 22px; }
.review blockquote p:first-child {
  font-size: clamp(1.65rem, 1.1rem + 2.1vw, 3rem); line-height: 1.1; font-weight: 500; font-stretch: 106%; letter-spacing: -.03em; max-width: 19ch; text-wrap: balance;
}
.review blockquote p + p { margin-top: 28px; max-width: 54ch; color: var(--muted); font-size: 1.02rem; }
.review cite { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-style: normal; font-size: .74rem; font-weight: 600; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; }
.review cite::before { content: ""; width: 40px; height: 1px; background: var(--ink); }
.review cite span { font-weight: 400; color: var(--muted); letter-spacing: .02em; text-transform: none; font-stretch: 100%; font-size: .82rem; }
.review__photo { grid-column: 10 / 13; align-self: stretch; display: flex; align-items: flex-end; }
.review__photo .frame { width: 100%; aspect-ratio: 3 / 4.6; }
.review__photo img { object-position: 20% 50%; }

/* ---------- Contact + footer ---------- */
.contact { background: var(--navy); color: var(--bone); padding-bottom: 0; overflow: clip; }
.contact__copy { grid-column: 1 / 6; }
.contact .lockup { color: var(--oak); margin-bottom: 26px; }
.contact h2 { margin-bottom: 20px; }
.contact__copy > p { color: var(--fog); max-width: 38ch; }
.contact .contact-lines { border-color: var(--hair-d); margin-top: 36px; }
.contact .contact-lines a, .contact .contact-lines div { border-color: var(--hair-d); }
.contact .contact-lines a:hover { color: var(--oak); }
.contact .contact-lines span { color: var(--fog); }
.contact__fig { margin-top: 56px; width: min(46%, 230px); }
.contact__fig .frame { aspect-ratio: 3 / 4; background: var(--navy-2); }
.contact__fig figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .78rem; color: var(--fog); }
.contact__fig figcaption::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .6; }
@media (max-width: 900px) { .contact__fig { display: none; } }

.form { grid-column: 7 / 13; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label, .field legend {
  font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--fog); padding: 0;
}
.field label b { color: var(--oak); font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--hair-d); border-radius: 0;
  color: var(--bone); font: inherit; font-size: 1.12rem; font-stretch: 100%;
  transition: border-color .35s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(155, 165, 176, .6); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--oak); }
.field.is-bad input { border-bottom-color: #ff8a73; }
.field .err { display: none; font-size: .8rem; color: #ffa391; }
.field.is-bad .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .6em; padding: .55em .95em; min-height: 40px;
  border: 1px solid var(--hair-d); font-size: .86rem; color: rgba(240, 236, 228, .86);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip span::before { content: ""; width: 7px; height: 7px; border: 1px solid currentColor; transition: background-color .3s; }
.chip input:hover + span { border-color: var(--fog); }
.chip input:checked + span { background: var(--oak); border-color: var(--oak); color: var(--navy); font-weight: 500; }
.chip input:checked + span::before { background: var(--navy); border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--oak); outline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.form__foot p { font-size: .82rem; color: var(--fog); max-width: 30ch; }
.form__ok { display: none; padding: 18px 20px; border: 1px solid var(--oak); color: var(--bone); font-size: .95rem; }
.form__ok.is-on { display: block; }

.footer { margin-top: clamp(80px, 11vw, 170px); border-top: 1px solid var(--hair-d); padding-block: clamp(36px, 5vw, 60px) 30px; }
.footer__top { align-items: end; row-gap: 40px; }
.footer__logo { grid-column: 1 / 5; }
.footer__logo i {
  display: block; width: clamp(170px, 18vw, 240px); aspect-ratio: 694 / 344; background: var(--bone);
  -webkit-mask: url("../images/logo-lockup.png") center / contain no-repeat; mask: url("../images/logo-lockup.png") center / contain no-repeat;
}
.footer__cols { grid-column: 6 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer__cols h3 { font-size: .64rem; font-weight: 500; font-stretch: 125%; letter-spacing: .26em; text-transform: uppercase; color: var(--fog); margin-bottom: 14px; }
.footer__cols li + li { margin-top: 6px; }
.footer__cols a { text-decoration: none; font-size: .95rem; }
.footer__cols a:hover { color: var(--oak); }
.footer__cols p { font-size: .95rem; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; margin-top: clamp(40px, 5vw, 70px);
  padding-top: 20px; border-top: 1px solid var(--hair-d);
  font-size: .66rem; font-weight: 500; font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--fog);
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--oak); }

/* Mobile dock */
.dock { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta .tel { display: none; }
  .header-cta { margin-left: auto; gap: 8px; }
  .brand { margin-right: 0; }

  .hero { --frame-h: clamp(420px, calc(100svh - var(--hh) - 190px), 700px); }
  .hero__stage, .hero__base { grid-template-columns: minmax(0, 1fr) var(--frame-w); }
  .hero__stage { grid-template-areas: "top doors" "bottom doors" "note doors"; grid-template-rows: auto 1fr auto; }
  .hero__note { grid-area: note; align-self: end; max-width: none; padding-bottom: 0; display: none; }
  .hero__cue { grid-column: 1; display: none; }
  .hero__base { grid-template-columns: minmax(0, 1fr) var(--frame-w); }

  .sec-head h2 { grid-column: 1 / 10; }
  .sec-head p { grid-column: 1 / 9; }

  .schedule { grid-template-columns: minmax(0, 1fr); }
  .viewer { display: none; }
  .svc__media { display: block; max-width: 560px; }
  .svc__more > div { padding-right: 0; }
  .svc__media .frame { aspect-ratio: 4 / 3; }
  .svc__media img { object-position: 50% 40%; }
}

@media (max-width: 900px) {
  .sp-bifold .a { grid-column: 1 / 8; grid-row: 1; }
  .sp-bifold .t { grid-column: 1 / 13; grid-row: 2; padding-top: 36px; }
  .sp-bifold .b { grid-column: 1 / 7; grid-row: 3; margin-top: 36px; }
  .sp-bifold .c { grid-column: 8 / 13; grid-row: 3; }

  .sp-roof .a { grid-column: 1 / 13; grid-row: 2; margin-top: 28px; }
  .sp-roof .t { grid-column: 1 / 13; grid-row: 1; }
  .sp-roof .c { grid-column: 5 / 13; grid-row: 3; margin-top: 28px; }

  .alex__figs { grid-column: 1 / 13; grid-row: 2; margin-top: 40px; }
  .alex__copy { grid-column: 1 / 13; grid-row: 1; }
  .apprentice__txt { grid-column: 1 / 8; }
  .apprentice figure { grid-column: 8 / 13; }

  .review__quote { grid-column: 1 / 13; }
  .review__photo { display: none; }

  .contact__copy { grid-column: 1 / 13; }
  .form { grid-column: 1 / 13; margin-top: 52px; }
  .footer__logo { grid-column: 1 / 13; }
  .footer__cols { grid-column: 1 / 13; }
}

@media (max-width: 820px) {
  :root { --hh: 62px; }
  .brand__sub { display: none; }
  .brand__name { font-size: .92rem; }
  .header-cta .btn { display: none; }

  .hero { --frame-w: 100%; }
  .hero__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "top" "doors" "bottom" "note";
    grid-template-rows: auto;
    padding-top: 28px;
  }
  .hero__stage::after { display: none; }
  .hero__top { padding-bottom: 26px; }
  h1 { max-width: 12ch; font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .doors { width: 100%; max-width: 560px; justify-self: center; }
  .doors__stage { aspect-ratio: 1440 / 1700; }
  .doors__after { object-position: 50% 55%; }
  .doors__bar { position: static; padding-top: 18px; }
  .hero__bottom { padding: 34px 0 0; max-width: none; }
  .hero__actions { width: 100%; }
  .hero__note { display: grid; padding: 44px 0 6px; max-width: 460px; }
  .hero__base { display: block; padding-top: 22px; padding-bottom: 96px; border-top: 1px solid var(--hair-d); margin-top: 8px; }
  .hero__base .tagline { gap: .5em .9em; }

  .sec { padding-block: clamp(64px, 16vw, 96px); }
  .sec-head h2, .sec-head p { grid-column: 1 / -1; }

  .lineup { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .lineup::-webkit-scrollbar { display: none; }
  .lineup__intro { flex: 0 0 72%; scroll-snap-align: start; align-self: stretch; }
  .lineup__door { flex: 0 0 66%; scroll-snap-align: center; }

  .alex__big { width: 82%; }
  .alex__small { width: 46%; }
  .apprentice { margin-top: 12px; }
  .apprentice__txt { grid-column: 1 / 13; grid-row: 2; margin-top: 24px; }
  .apprentice figure { grid-column: 1 / 9; grid-row: 1; }
  .row2 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__cols > :last-child { grid-column: 1 / -1; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair-d);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(101%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: .7em; min-height: 56px;
    background: var(--navy); color: var(--bone); text-decoration: none;
    font-size: .76rem; font-weight: 600; font-stretch: 118%; letter-spacing: .15em; text-transform: uppercase;
  }
  .dock a:last-child { background: var(--oak); color: var(--navy); }
  .dock svg { width: 16px; height: 16px; }
}

@media (max-width: 520px) {
  .sp-bifold .a { grid-column: 1 / 11; }
  .sp-bifold .b { grid-column: 1 / 8; }
  .sp-bifold .c { grid-column: 8 / 13; }
  .sp-roof .c { grid-column: 4 / 13; }
  .facts li { font-size: .8rem; }
  .svc__btn, .schedule__head { grid-template-columns: 44px minmax(0, 1fr) 36px; }
  .svc__more > div { padding-left: 56px; }
  .svc__ico { width: 34px; height: 34px; }
  .apprentice figure { grid-column: 1 / 12; }
  .footer__logo i { width: 190px; }
}

/* ---------- Reduced motion & no-JS ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise, .js .fade { opacity: 1; transform: none; }
  .js .reveal { clip-path: none; }
  .js .reveal img { transform: none; }
}
