/* Cross Digital site template. Every colour and font comes from the client's tokens (set in the page head from
   site.json), so this file is the same for every client. Frame shape: data-frame on the .site wrapper = arch | soft | square. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); text-wrap: balance; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; background: var(--surface); padding: 10px 14px; }
.skip:focus { left: 16px; }
.draft { background: var(--alt); color: var(--ink); font-size: 14px; text-align: center; padding: 8px 16px; }

/* ---- header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.top.scrolled { border-bottom-color: var(--line); }
.word { font-family: var(--font-display); font-weight: 400; font-size: var(--word-size, 19px); letter-spacing: var(--word-tracking); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .25s; }
.top nav a:hover { color: var(--ink); }
.top .btn { margin-left: 8px; }
@media (max-width: 820px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, background-color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.light { background: var(--on-deep); color: var(--deep); border-color: var(--on-deep); }
.btn.light:hover { box-shadow: 0 10px 24px -14px #000; }

/* ---- frames (the client's photo shape) */
.frame { position: relative; overflow: hidden; background: var(--alt); aspect-ratio: 4 / 5; isolation: isolate; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
[data-frame="arch"] .frame { border-radius: 999px 999px 0 0; }
[data-frame="soft"] .frame, .frame.soft { border-radius: 22px; }
[data-frame="square"] .frame { border-radius: 0; }
.mono { position: absolute; inset: 0; display: grid; place-items: center; font: var(--names-style) 500 clamp(64px, 9vw, 120px)/1 var(--font-names); color: var(--brand, var(--accent)); }

/* ---- hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  min-height: calc(100svh - 70px); max-width: 1320px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(42px, 5.8vw, 86px); line-height: 1.03; letter-spacing: -.01em; max-width: 15ch; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 44ch; margin: 28px 0 34px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 26px; font-size: 15px; color: var(--brand, var(--accent)); }
.hero-media { justify-self: end; width: min(100%, 520px); }
.hero-frame { aspect-ratio: 3 / 4; max-height: calc(100svh - 150px); width: 100%; margin-left: auto; }
.hero-frame.plain { display: grid; place-items: center; background: var(--alt); }
.plain-word { font: var(--display-weight) clamp(40px, 6vw, 80px)/1 var(--font-display); letter-spacing: .08em; color: var(--accent); writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 28px; padding-top: 16px; }
  .hero-media { order: -1; justify-self: stretch; width: 100%; }
  .hero-frame { aspect-ratio: auto; height: min(50svh, 460px); max-height: none; }
  .hero-frame.plain { height: 140px; }
  .plain-word { writing-mode: horizontal-tb; transform: none; font-size: 40px; }
  .frame.no-photo { aspect-ratio: 1; width: 120px; }
  .frame.no-photo .mono { font-size: 56px; }
  .hero .lede { margin: 20px 0 28px; font-size: 18px; }
}

/* ---- sections */
.block { max-width: 1180px; margin: 0 auto; padding: clamp(72px, 10vw, 136px) clamp(16px, 4vw, 48px) 0; scroll-margin-top: 64px; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; }
.head p { color: var(--muted); max-width: 52ch; }

/* treatments: one row per category */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { border-top: 1px solid var(--line); }
.rows a, .row-static { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(150px, auto); gap: 12px 40px; align-items: baseline;
  padding: 26px 0; text-decoration: none; color: inherit; }
.r-name { font: var(--display-weight) clamp(25px, 2.5vw, 34px)/1.15 var(--font-display); transition: color .3s, transform .45s cubic-bezier(.2,.7,.2,1); }
.rows a:hover .r-name { color: var(--accent); transform: translateX(6px); }
.r-about { color: var(--muted); }
.r-meta { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.r-who { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
@media (max-width: 760px) {
  .rows a, .row-static { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 22px 0; }
  .r-meta { text-align: left; }
}

/* team */
.people { display: grid; gap: clamp(80px, 11vw, 140px); }
.person { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.person-media { position: sticky; top: 96px; }
.person .frame img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.person:hover .frame img { transform: scale(1.03); }
.person h3 { font: var(--names-style) 500 clamp(48px, 5.4vw, 72px)/1 var(--font-names); letter-spacing: 0; }
.role { color: var(--brand, var(--accent)); margin-top: 10px; font-size: 16px; }
.bio { color: var(--muted); max-width: 60ch; margin: 18px 0 30px; }
.menu { border-bottom: 1px solid var(--line); }
details.cat { border-top: 1px solid var(--line); }
details.cat summary { list-style: none; display: flex; align-items: baseline; gap: 14px; padding: 18px 0; cursor: pointer; min-height: 48px; }
details.cat summary::-webkit-details-marker { display: none; }
.c-name { font: 400 21px/1.3 var(--font-display); }
.c-count { color: var(--muted); font-size: 14px; }
.chev { margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-4px);
  transition: transform .35s; flex: none; align-self: center; }
details.cat[open] .chev { transform: rotate(-135deg) translateY(-1px); }
.c-body { overflow: hidden; }
.c-body ul { list-style: none; margin: 0; padding: 0 0 12px; }
.c-body li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 14px 0; border-top: 1px dashed var(--line); }
.s-name { font-weight: 600; }
.s-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.s-about { grid-column: 1 / -1; color: var(--muted); font-size: 15px; max-width: 58ch; }
.s-time { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.person-book { margin-top: 28px; }
@media (max-width: 900px) {
  .person { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .person-media { position: static; max-width: 400px; }
}

/* gallery */
.g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.g-item { margin: 0; }
.g-item:nth-child(2n) { margin-top: clamp(40px, 12vw, 160px); }
.gallery.n1 .g-grid { grid-template-columns: minmax(0, 560px); }
.drift { position: absolute; inset: -6% 0; }
.drift img { height: 100%; }
.g-item figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* reviews */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 4vw, 56px); }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font: italic 500 clamp(22px, 2.2vw, 28px)/1.35 var(--font-names); }
.quote figcaption { color: var(--muted); font-size: 15px; }

/* book band */
.band { background: var(--deep); color: var(--on-deep); margin-top: clamp(72px, 10vw, 136px); scroll-margin-top: 64px; }
.band-in { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px); }
.band h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.band-in > p { color: color-mix(in srgb, var(--on-deep) 82%, var(--deep)); margin-top: 14px; max-width: 48ch; }
.book-list { margin-top: clamp(32px, 4vw, 48px); border-bottom: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); }
.book-row { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 22px 0;
  border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); }
.b-name { font: var(--names-style) 500 clamp(32px, 3.4vw, 44px)/1 var(--font-names); }
.b-role { color: color-mix(in srgb, var(--on-deep) 78%, var(--deep)); }
.book-row .btn { align-self: center; }
.b-phone { margin-top: 28px; color: color-mix(in srgb, var(--on-deep) 85%, var(--deep)); }
.b-phone a { color: var(--on-deep); }
.b-big { font: var(--display-weight) clamp(34px, 4.4vw, 56px)/1.1 var(--font-display); margin: clamp(28px, 4vw, 44px) 0 28px; font-variant-numeric: tabular-nums; }
.b-big a { color: var(--on-deep); text-decoration: none; }
.btn.ghost-light { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 40%, transparent); }
.btn.ghost-light:hover { border-color: var(--on-deep); box-shadow: none; }
@media (max-width: 640px) { .book-row { grid-template-columns: minmax(0, 1fr); } .book-row .btn { justify-self: start; margin-top: 8px; } }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.visit h2 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.04; margin-bottom: 18px; }
.visit h3 { font: 400 22px/1.3 var(--font-display); margin: 12px 0 16px; }
.visit p + p { margin-top: 8px; }
.visit ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 10px; }
@media (max-width: 760px) { .visit { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; padding: 32px clamp(16px, 4vw, 48px) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .word { color: var(--ink); font-size: 16px; }
.foot a { margin-left: auto; color: var(--muted); }
@media (max-width: 640px) { .foot a { margin-left: 0; } }

/* ---- motion: hidden only until motion.js takes over (never hidden without it, never with reduced motion) */
/* content waits faintly visible (never fully hidden) for its reveal; the hero photo opens on load */
.js-motion [data-rise], .js-motion [data-reveal] { opacity: .12; }
.js-motion .hero-frame { clip-path: inset(100% 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
