/* Thera — website styles, version 4. One calm system: ivory ground, charcoal type, terracotta only for small accents. */

:root {
  --ivory: #FBF7F2;
  --stone: #F3ECE3;
  --charcoal: #1F2326;
  --terracotta: #B04D29;
  --umber: #6B5246;
  --line: rgba(31, 35, 38, .12);
  --logo-bg: var(--ivory);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --max: 1360px;
  --pad: clamp(16px, 3.2vw, 44px);
  --section: clamp(64px, 7vw, 112px);
  --gap: clamp(12px, 1.4vw, 20px);
  --radius: 4px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font-family: var(--font-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }

h1, h2 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; font-variation-settings: 'opsz' 72, 'SOFT' 0, 'WONK' 0; font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'dlig' 0; letter-spacing: -0.015em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.875rem); }
h3 { font-family: var(--font-text); font-size: 17px; font-weight: 500; line-height: 1.35; margin: 0; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--umber); }
.muted { color: var(--umber); }
.small { font-size: 14px; }
.link { font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .2s; }
.link:hover { opacity: .6; }
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head--center { flex-direction: column; align-items: center; text-align: center; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--charcoal); background: transparent; color: var(--charcoal); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn:hover { background: var(--charcoal); color: var(--ivory); }
.btn--dark { background: var(--charcoal); color: var(--ivory); }
.btn--dark:hover { background: #000; border-color: #000; }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--charcoal); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btn--ghost { border-color: rgba(251,247,242,.7); color: var(--ivory); }
.btn--ghost:hover { background: var(--ivory); color: var(--charcoal); border-color: var(--ivory); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.mono { width: auto; height: 100%; fill: currentColor; }
.mono .mono-h { stroke: var(--logo-bg); stroke-width: 14; paint-order: stroke; }
.logo { display: inline-flex; align-items: center; gap: 12px; height: 30px; }
.logo-word { font-family: var(--font-display); font-variation-settings: 'opsz' 72, 'SOFT' 0, 'WONK' 0; font-weight: 400; font-size: 19px; letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; line-height: 1; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ivory); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav a { transition: opacity .2s; }
.nav a:hover, .nav a[aria-current] { opacity: .6; }
.nav--right { justify-content: flex-end; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 14px; }
.mobile-nav { display: grid; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .hide-m { display: none; }
  .menu-toggle { display: block; }
  .header-row { height: 60px; }
  .logo { height: 26px; gap: 10px; }
  .logo-word { font-size: 16px; }
}

.photo { position: relative; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }

.hero { position: relative; padding: 0 var(--gap) 0; }
.hero-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: min(84vh, 820px); min-height: 520px; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--charcoal); }
.hero-frames .photo { height: 100%; border-radius: 0; }
.hero-frames::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,.55) 100%); }
.hero-copy { position: absolute; inset: auto 0 clamp(36px, 6vh, 72px); display: grid; justify-items: center; gap: 16px; text-align: center; color: var(--ivory); padding-inline: var(--pad); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy .label { color: rgba(251,247,242,.85); }
.hero-copy h1 { max-width: 14ch; }
.hero-copy p { max-width: 44ch; font-size: 16.5px; color: rgba(251,247,242,.92); margin-bottom: 8px; }
@media (max-width: 900px) {
  .hero-frames { grid-template-columns: 1fr; height: 78vh; min-height: 480px; }
  .hero-frames .photo:not(:nth-child(2)) { display: none; }
  .btn-row .btn { min-width: 220px; }
}

.trust { border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 26px; height: 26px; flex: none; color: var(--terracotta); }
.trust-item div { display: grid; line-height: 1.4; }
.trust-item strong { font-weight: 500; font-size: 14.5px; }
.trust-item span { font-size: 13.5px; color: var(--umber); }
@media (max-width: 900px) {
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item { padding: 18px 10px; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .trust-item span { display: none; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.grid-4, .grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-products { row-gap: clamp(28px, 3vw, 44px); }
@media (max-width: 900px) { .grid-4, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.piece { display: grid; gap: 14px; }
.piece .photo { aspect-ratio: 4 / 5; }
.piece-name { font-size: 15.5px; font-weight: 500; }
.card { display: grid; gap: 4px; }
.card .photo { aspect-ratio: 4 / 5; margin-bottom: 10px; }
.card-name { font-size: 15px; font-weight: 500; }
.card-tier { font-size: 13.5px; color: var(--umber); }
.piece:hover img, .card:hover img, .tier:hover img { transform: scale(1.04); }

.on-stone { background: var(--stone); }
.on-stone .photo { background: #E9DFD3; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.step { display: grid; align-content: start; gap: 8px; }
.step .photo { aspect-ratio: 4 / 3; margin-bottom: 14px; }
.step-num { font-size: 13px; font-weight: 500; color: var(--terracotta); letter-spacing: .08em; }
.step p { color: var(--umber); font-size: 15px; max-width: 38ch; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tier { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .3s; }
.tier:hover { border-color: rgba(31,35,38,.3); }
.tier .photo { aspect-ratio: 4 / 3; border-radius: 0; }
.tier-copy { display: grid; align-content: start; gap: 10px; padding: 24px 24px 28px; }
.tier-copy h3 { font-family: var(--font-display); font-variation-settings: 'opsz' 72, 'SOFT' 0, 'WONK' 0; font-variant-ligatures: none; font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.tier-copy p { color: var(--umber); font-size: 15px; }
.tier-copy .link { justify-self: start; margin-top: 8px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); }
.faq-intro { display: grid; align-content: start; gap: 12px; }
.faq-intro p { max-width: 32ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--line); }
.faq-list details:last-child, .specs details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 6px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
.answer { padding-bottom: 22px; color: var(--umber); font-size: 15px; display: grid; gap: 8px; max-width: 62ch; }

.site-footer { background: var(--charcoal); color: var(--ivory); --logo-bg: var(--charcoal); padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 32px; padding-bottom: 44px; border-bottom: 1px solid rgba(251,247,242,.14); }
.subscribe { display: grid; gap: 10px; width: min(100%, 420px); font-size: 14px; }
.subscribe-row { display: flex; border-bottom: 1px solid rgba(251,247,242,.5); }
.subscribe input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 0; color: var(--ivory); }
.subscribe input::placeholder { color: rgba(251,247,242,.55); }
.subscribe input:focus { outline: none; }
.subscribe-row:focus-within { border-bottom-color: var(--ivory); }
.subscribe button { background: none; border: 0; cursor: pointer; font-weight: 500; padding: 12px 0 12px 16px; }
.form-note { min-height: 1.4em; color: rgba(251,247,242,.75); font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 40px; }
.footer-cols h3 { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,247,242,.6); margin-bottom: 14px; }
.footer-cols a, .footer-cols span { display: block; font-size: 14.5px; padding-block: 4px; color: rgba(251,247,242,.92); }
.footer-cols a:hover { opacity: .6; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(251,247,242,.14); font-size: 13px; color: rgba(251,247,242,.6); }
@media (max-width: 900px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-block: clamp(36px, 4.5vw, 64px) 28px; }
.page-head > div { display: grid; gap: 10px; }
.page-head p { max-width: 42ch; }
@media (max-width: 900px) { .page-head { grid-template-columns: 1fr; } }
.filters { border-block: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; background: var(--ivory); }
@media (max-width: 900px) { .filters { top: 60px; } }
.filters-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 28px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-block: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; cursor: pointer; font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--charcoal); }
.tab[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.filter-tools { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.filter-tools select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 12px 16px 12px 0; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 4px center, right 0 center; background-size: 4px 4px; background-repeat: no-repeat; }
.result-count { color: var(--umber); }
.section--grid { padding-top: clamp(32px, 4vw, 56px); }
.empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 16px; padding-block: 72px; text-align: center; }

.crumbs { display: flex; gap: 10px; padding-block: 20px; color: var(--umber); flex-wrap: wrap; font-size: 13.5px; }
.crumbs a:hover { color: var(--charcoal); }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.gallery .photo { aspect-ratio: 4 / 5; }
.gallery .photo.lead { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
.gallery .photo.crop img { transform: scale(2.1); transform-origin: var(--fx, 50%) var(--fy, 50%); }
.info { position: sticky; top: 96px; display: grid; gap: 24px; }
.info-head { display: grid; gap: 10px; }
.info h1 { font-size: clamp(2.125rem, 1.6rem + 1.6vw, 3.25rem); }
.price-block { display: grid; gap: 2px; padding-block: 18px; border-block: 1px solid var(--line); }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.amount { font-size: 22px; font-weight: 500; }
.reserve { display: grid; gap: 20px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
legend { padding: 0; margin-bottom: 10px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background-color .2s; }
.option strong { font-weight: 500; }
.option em { font-style: normal; color: var(--umber); font-size: 14px; }
.option input:checked + span { border-color: var(--charcoal); background: #fff; box-shadow: inset 0 0 0 1px var(--charcoal); }
.option input:focus-visible + span { outline: 1px solid var(--charcoal); outline-offset: 3px; }
.field { display: grid; gap: 10px; }
.date-input { width: 100%; min-height: 50px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.date-input:focus { outline: none; border-color: var(--charcoal); }
.field-error { color: var(--terracotta); font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }
.actions { display: grid; gap: 10px; }
.confirm { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; animation: fadeIn .5s var(--ease) both; }
.confirm strong { font-weight: 500; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .info { position: static; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero-frames .photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .hero-frames .photo:nth-child(2) { transition-delay: .08s; }
.js .hero-frames .photo:nth-child(3) { transition-delay: .16s; }
.js .hero-frames .photo img { transform: scale(1.08); transition: transform 2s var(--ease); }
.js .hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js body.loaded .hero-frames .photo { clip-path: inset(0 0 0 0); }
.js body.loaded .hero-frames .photo img { transform: none; }
.js body.loaded .hero-copy > * { opacity: 1; transform: none; transition-delay: calc(.45s + var(--hd, 0s)); }
.js body.loaded .hero-copy > :nth-child(2) { --hd: .1s; }
.js body.loaded .hero-copy > :nth-child(3) { --hd: .18s; }
.js body.loaded .hero-copy > :nth-child(4) { --hd: .26s; }

.intro { position: fixed; inset: 0; z-index: 300; background: var(--ivory); display: grid; place-items: center; transition: transform 1s var(--ease); }
.intro.done { transform: translateY(-100%); }
.intro-inner { display: grid; justify-items: center; gap: 28px; transition: opacity .4s; }
.intro.done .intro-inner { opacity: 0; }
.intro .logo { height: 54px; gap: 18px; animation: fadeIn 1s var(--ease) both; }
.intro .logo-word { font-size: 30px; }
.intro .mono path:first-child { animation: introT 1.1s var(--ease) both; }
.intro .mono .mono-h { animation: introH 1.1s var(--ease) .15s both; }
@keyframes introT { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes introH { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.intro-count { font-size: 13px; letter-spacing: .14em; color: var(--umber); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .hero-copy > * { opacity: 1; transform: none; }
  .js .hero-frames .photo { clip-path: none; }
  .js .hero-frames .photo img { transform: none; }
  html { scroll-behavior: auto; }
}
