/* Smith Made cinema: warm materials, steady layouts, restrained motion. */
:root {
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 240ms;
  --motion-slow: 650ms;
}
html { scrollbar-gutter: stable; }
body::after { opacity: .018; }
.review-notice {
  position: relative;
  padding: 8px 20px;
  color: #fff8ed;
  background: #654829;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.6;
}
.skip-link { position: fixed; z-index: 250; }
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,228,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 #96734425;
  padding-block: 16px;
  transition: background 300ms ease, box-shadow 300ms ease;
}
#nav.scrolled, #nav.menu-open { padding-block: 16px; }
.nav-links { gap: clamp(16px, 2vw, 28px); }
.nav-links a { font-size: .875rem; letter-spacing: .08em; }
.nav-links a:not(.btn) { padding-block: 12px; }
.nav-links a[aria-current="location"]:not(.btn) { color: var(--walnut); text-decoration-color: var(--brass); }
.nav-links .nav-cta[aria-current="location"] { text-decoration: none; box-shadow: 0 0 0 3px #c19a6230; }
.nav-toggle { font-size: .875rem; letter-spacing: .09em; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  transition: transform 280ms var(--motion-ease), background 220ms ease;
}
.menu-open .nav-toggle-bar { background: transparent; }
.menu-open .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }
.btn, .btn.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: .875rem;
  line-height: 1.45;
  letter-spacing: .08em;
  text-align: center;
  transition: transform 320ms var(--motion-ease), background 240ms ease,
    color 240ms ease, border-color 240ms ease, box-shadow 320ms ease;
}
.btn { box-shadow: 0 5px 16px -10px #5a3f285c; }
.btn:active { transform: translateY(0); }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; }
section[id], .sm-page { scroll-margin-top: 104px; }

.sm-cinema {
  --scene-lift: 0px;
  --scene-scale: 1;
  --scene-rx: 0deg;
  --scene-ry: 0deg;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(44px, 5vw, 72px) clamp(20px, 6vw, 72px) 0;
  min-height: 0;
  background: #f5efe4;
}
.sm-cinema .sm-hero-grid {
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  min-height: 540px;
}
.sm-cinema h1 {
  font-size: clamp(3.25rem, 5.4vw, 5.2rem);
  line-height: 1.06;
  max-width: 13ch;
  letter-spacing: -.025em;
  margin: 18px 0 26px;
  font-weight: 500;
}
.sm-cinema h1 .script {
  display: block;
  margin-top: 6px;
  font: italic 1em/1.08 var(--font-display);
  color: #875d35;
}
.sm-cinema .kicker { font-size: .8125rem; letter-spacing: .16em; line-height: 1.7; }
.sm-cinema .lede { font-size: 1.0625rem; line-height: 1.8; max-width: 41ch; }
.sm-cinema .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sm-cinema .hero-ctas .btn { min-height: 48px; padding: 14px 20px; }
.sm-cinema .hero-note {
  display: block;
  font-size: .875rem;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  max-width: 44ch;
  margin-top: 20px;
  color: #6c5d4c;
}
.sm-cinema-figure { margin: 0; min-width: 0; position: relative; perspective: 1400px; }
.sm-cinema-portal {
  height: clamp(430px, 42vw, 560px);
  position: relative;
  border-radius: 46% 46% 12px 12px;
  overflow: hidden;
  background: #d3bda0;
  box-shadow: 0 20px 48px #55381617;
  transform: translate3d(0,var(--scene-lift),0) rotateX(var(--scene-rx)) rotateY(var(--scene-ry));
  border: 1px solid #b9946640;
}
.sm-cinema-portal picture { display: contents; }
.sm-cinema-portal img, .sm-cinema-portal video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(var(--scene-scale));
  border-radius: 0;
}
.sm-cinema-portal video { opacity: 0; transition: opacity 1000ms ease; }
.film-playing .sm-cinema-portal video { opacity: 1; }
.sm-cinema-portal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,transparent 65%,#3c26170a);
  border: 1px solid #fff3;
  border-radius: inherit;
}
.sm-cinema-caption { font-size: .8125rem; line-height: 1.65; color: #6f5c47; max-width: 50ch; margin: 16px 0 0; }
.sm-cinema-footer {
  border-top: 1px solid #9673442b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  margin-top: 40px;
  font-size: .875rem;
  color: #755e46;
}
.sm-cinema-scroll { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: inherit; }
.sm-cinema-scroll span { font-size: 1.3rem; }
.motion-toggle {
  font: inherit;
  color: #62462a;
  background: transparent;
  border: 1px solid #ac927360;
  border-radius: 99px;
  min-height: 44px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 240ms ease, border-color 240ms ease;
}
.motion-toggle:disabled { cursor: default; opacity: .75; }
.sm-cinema ~ #collection {
  position: relative;
  border-radius: 28px 28px 0 0;
  background: #fffaf2;
  border-top: 1px solid #e0d1bc;
  padding-top: clamp(48px, 6vw, 80px);
}
.sm-cinema ~ #collection .catalog { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 30px; border-top: 0; margin-top: 40px; }
.sm-cinema ~ #collection .piece { grid-column: auto; padding-top: 0; box-shadow: none; }
.sm-cinema ~ #collection .piece::before { content: none; }
.sm-cinema ~ #collection .piece-media { aspect-ratio: 4 / 3; border-radius: 12px; box-shadow: 0 8px 25px #60411c0b; }
.sm-cinema ~ #collection .piece h3 { font-size: clamp(1.75rem,2.5vw,2.2rem); line-height: 1.16; margin: 8px 0 0; }
.piece h3 a { text-decoration: none; }
.piece h3 a:hover { color: var(--link); }
.sm-cinema ~ #collection .piece-kicker { font-size: .8125rem; letter-spacing: .1em; }
.piece-body { padding: 22px 0 0; }
.sm-piece-summary { margin: 12px 0; }
.sm-piece-detail { margin: 0; }
.piece-stage-cue { font-size: .75rem; line-height: 1.5; letter-spacing: .08em; max-width: calc(100% - 24px); }
.piece-media img { transition: transform 800ms var(--motion-ease); }
.sm-cinema ~ #craft { background: #f0e6d6; }
.sm-cinema ~ #craft .wrap { max-width: 940px; text-align: center; }
.sm-cinema ~ #craft .kicker { justify-content: center; }
.sm-cinema ~ #craft h2 { font-size: clamp(2.5rem,4vw,4rem); line-height: 1.12; margin-bottom: 24px; }
.sm-cinema ~ #craft .lede { margin: 14px auto; }
.sm-cinema ~ #how-it-works .step { padding-top: 12px; padding-bottom: 20px; }
.sm-cinema ~ #how-it-works .step h3 { font-size: 1.9rem; }
.form label, .form legend, .foot-heading { font-size: .875rem; letter-spacing: .1em; }
.form input, .form select, .form textarea { font-size: 1rem; }
.form, .sm-estimate { color-scheme: light; }
.form-checks label, .transport-options label { letter-spacing: .02em; }
.form-checks { grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); }
.transport-options { grid-template-columns: 1fr; }
.transport-options small { font-size: .875rem; }
.sm-detail-grid { min-width: 0; }
.sm-page { padding-inline: clamp(20px,6vw,72px); }
.sm-page .wrap { overflow-wrap: break-word; }
.sm-simple-nav { padding-inline: clamp(20px,6vw,72px); }

/* The image viewer stays above the navigation, with room for phone controls. */
.staged { z-index: 200; padding: 64px 20px 28px; }
.staged-backdrop { opacity: 0; transition: opacity 280ms ease; }
.staged-panel { opacity: 0; transform: translateY(10px); transition: opacity 280ms ease, transform 360ms var(--motion-ease); }
.staged.is-open .staged-backdrop, .staged.is-open .staged-panel { opacity: 1; }
.staged.is-open .staged-panel { transform: translateY(0); }
.staged-frame { height: min(64svh,650px); }
.staged-img { height: 100%; max-height: 100%; object-fit: contain; transition: opacity 220ms ease; }
.staged-img.is-loading { opacity: .65; }
.staged-img.is-failed { opacity: 0; }
.staged-close:hover { transform: none; }
.staged-close, .staged-arrow { min-width: 44px; min-height: 44px; }
.staged-dots { gap: 8px; flex-wrap: wrap; }
.staged-dots button { width: auto; height: auto; min-height: 44px; padding: 10px 16px; border: 1px solid #f6f0e480; border-radius: 6px; background: #271c1259; color: var(--cream); font: inherit; font-size: .875rem; line-height: 1.4; transition: background 200ms ease, color 200ms ease; }
.staged-dots button.is-active { background: var(--cream); color: var(--walnut); }
.staged button:focus-visible { outline-color: var(--cream); }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .piece:hover .piece-media img { transform: scale(1.025); }
  .motion-toggle:not(:disabled):hover { background: #9673440c; border-color: #96734480; }
}
@media (hover:none) { .btn:hover, .piece:hover .piece-media img { transform: none; } }
@media (max-width:1100px) {
  #nav, #nav.scrolled, #nav.menu-open { padding: 12px clamp(20px,5vw,60px); }
  .nav-toggle { display: inline-flex; }
  #nav .nav-links {
    display: flex;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(20px,5vw,60px) 24px;
    background: #f5efe4;
    box-shadow: 0 18px 32px -22px #3b2c1f50;
    max-height: calc(100svh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 240ms ease, transform 300ms var(--motion-ease), visibility 240ms;
  }
  #nav.menu-open .nav-links { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links a { font-size: .9375rem; padding-block: 13px; }
  .nav-links .nav-cta { margin-top: 10px; padding: 14px 20px; align-self: flex-start; }
  .sm-cinema h1 { font-size: clamp(3rem,5.2vw,4rem); }
}
@media (max-width:760px) {
  #nav, #nav.scrolled, #nav.menu-open { padding-block: 12px; }
  section[id], .sm-page { scroll-margin-top: 88px; }
  .sm-cinema { padding: 40px 20px 0; }
  .sm-cinema .sm-hero-grid { grid-template-columns: minmax(0,1fr); gap: 30px; min-height: 0; }
  .sm-cinema h1 { font-size: clamp(2.8rem,11vw,4.2rem); max-width: 15ch; margin: 15px 0 24px; }
  .sm-cinema h1 .script { margin-top: 3px; }
  .sm-cinema .kicker { font-size: .75rem; letter-spacing: .11em; gap: 10px; }
  .sm-cinema .kicker::before { width: 22px; }
  .sm-cinema .lede { font-size: 1rem; line-height: 1.75; }
  .sm-cinema .hero-ctas { gap: 10px; margin-top: 24px; }
  .sm-cinema .hero-ctas .btn { flex: 1 1 150px; padding: 14px 12px; letter-spacing: .04em; }
  .sm-cinema .hero-note { margin-top: 18px; }
  .sm-cinema-figure { width: 100%; max-width: 500px; justify-self: center; }
  .sm-cinema-portal { height: auto; aspect-ratio: 4 / 5; border-radius: 46% 46% 10px 10px; }
  .sm-cinema-caption { margin-top: 14px; }
  .sm-cinema-footer { margin-top: 28px; padding: 16px 0 20px; gap: 10px; }
  .sm-cinema ~ #collection { border-radius: 22px 22px 0 0; }
  .sm-cinema ~ #collection .catalog { grid-template-columns: minmax(0,1fr); gap: 36px; margin-top: 30px; }
  .sm-cinema ~ #collection .piece h3 { font-size: 1.875rem; }
  .sm-cinema ~ #craft h2 { font-size: clamp(2.25rem,8vw,3rem); }
  .action-bar { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  .action-bar .btn { min-height: 46px; }
  .form .btn { min-height: 48px; }
  .sm-page .sm-detail-photo img { max-height: 72svh; object-fit: cover; }
  .sm-simple-nav .btn { min-height: 44px; }
  .staged { padding: max(64px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom)); }
  .staged-panel { max-height: calc(100svh - 100px); overflow-y: auto; padding-top: 50px; }
  .staged-close { top: 0; right: 0; }
  .staged-frame { height: min(60vw,calc(100svh - 290px)); min-height: 120px; }
  .staged-note { font-size: .8125rem; }
}
@media (max-width:380px) {
  .sm-cinema .hero-ctas { flex-direction: column; }
  .sm-cinema .hero-ctas .btn { flex-basis: auto; }
  .sm-cinema-footer { font-size: .8125rem; }
  .motion-toggle { padding-inline: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .sm-cinema-portal, .sm-cinema-portal img { transform: none !important; }
  .sm-cinema-portal video { display: none; }
  .piece:hover .piece-media img { transform: none; }
}
.motion-off .sm-cinema-portal, .motion-off .sm-cinema-portal img { transform: none; }
html.motion-paused { scroll-behavior: auto; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
.motion-paused .piece:hover .piece-media img, .motion-paused .btn:hover { transform: none; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease both page-out; }
::view-transition-new(root) { animation: 340ms ease both page-in; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
html.motion-paused::view-transition-group(*),
html.motion-paused::view-transition-old(*),
html.motion-paused::view-transition-new(*) { animation: none !important; }
@media (prefers-reduced-motion:reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Final details alongside the planner and delivery tools. */
.sm-cinema-caption,.review-notice{font-size:.875rem}
@media(min-width:761px){.sm-cinema h1{font-size:clamp(3.1rem,4.8vw,4.7rem)}}
@media(max-width:760px){.sm-estimate input,.sm-estimate select{font-size:1rem;min-height:48px}}

/* Inquiry review stays readable at phone widths and enlarged text sizes. */
.inquiry-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.inquiry-actions .btn { min-height:48px; max-width:100%; white-space:normal; text-align:center; }
.form .btn:disabled { cursor:wait; opacity:.65; }
.inquiry-review { padding:20px; border:1px solid var(--line); border-radius:12px; background:#fffcf5; }
.inquiry-review h3 { margin:0 0 14px; font-size:1.3rem; }
.inquiry-review textarea { font:inherit; font-size:1rem; line-height:1.65; margin-bottom:14px; }
.inquiry-review .form-help { margin:14px 0 0; letter-spacing:normal; }
.form input, .form select, .form textarea { scroll-margin-top:110px; }
@media(max-width:480px) { .inquiry-actions > .btn { width:100%; } .inquiry-review { padding:16px; } }

/* Product pages keep the title, full piece, and quote details in reading order. */
.sm-page .sm-product-detail { grid-template-areas: "intro photo" "info photo"; column-gap: 48px; row-gap: 0; }
.sm-detail-intro { grid-area: intro; min-width: 0; }
.sm-detail-info { grid-area: info; min-width: 0; }
.sm-product-detail .sm-detail-photo { grid-area: photo; min-width: 0; }
.sm-detail-photo .piece-stage { height: auto; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.sm-detail-photo .piece-stage picture { display: block; width: 100%; height: 100%; }
.sm-page .sm-detail-photo .piece-stage img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 0; }
.sm-detail-photo .piece-stage-cue { opacity: 1; transform: none; font-size: .875rem; letter-spacing: .03em; text-transform: none; }
.sm-finish-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sm-finish-options a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--walnut); font-size: .875rem; line-height: 1.4; text-decoration: none; transition: border-color 200ms ease, background 200ms ease; }
.sm-finish-options a:hover { border-color: var(--walnut); background: var(--cream-2); }
.sm-finish-options a:focus-visible { outline: 3px solid var(--walnut); outline-offset: 3px; }

/* The initial inquiry needs only the essentials; other decisions can wait. */
.form-intro { margin: 0; color: var(--ink-soft); line-height: 1.6; font-size: 1rem; }
.form .form-help { margin: 8px 0 0; font-size: .875rem; letter-spacing: normal; }
.form .inquiry-pieces { padding: 0; min-width: 0; }
.inquiry-pieces .form-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.inquiry-pieces .form-checks label { padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; align-items: flex-start; line-height: 1.5; font-size: .9375rem; letter-spacing: normal; }
.inquiry-pieces .form-checks input { flex: none; margin-top: 4px; }
.inquiry-pieces label:has(input:checked) { border-color: var(--walnut); background: var(--cream-2); }
.inquiry-pieces label:has(input:focus-visible) { outline: 3px solid var(--walnut); outline-offset: 3px; }
.form-options { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; min-width: 0; }
.form-options summary { padding: 18px 2px; cursor: pointer; color: var(--walnut); font-size: 1rem; font-weight: 500; line-height: 1.6; }
.form-options summary span { font-weight: 400; color: var(--ink-soft); }
.form-options summary:focus-visible { outline: 3px solid var(--walnut); outline-offset: 3px; }
.form-options-body { display: grid; gap: 24px; padding: 4px 0 24px; }
.form-options .transport-options small { font-size: .875rem; }
.form-options .transport-fieldset { padding: 0; min-width: 0; }
.form label span, .form legend span { letter-spacing: normal; text-transform: none; }
@media (max-width: 760px) {
  .sm-page .sm-product-detail { grid-template-areas: "intro" "photo" "info"; gap: 24px; }
  .sm-detail-intro .lede { margin-bottom: 0; }
}
@media (max-width: 420px) {
  .inquiry-pieces .form-checks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 620px) and (min-width: 761px) {
  .staged-panel { max-height: calc(100svh - 48px); overflow-y: auto; padding-top: 50px; }
  .staged-close { top: 0; }
  .staged-frame { height: 42svh; }
}

/* Keep every viewer control reachable on short screens and enlarged text. */
.staged { align-items:center; overflow:hidden; padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
.staged-backdrop { position:fixed; }
.staged-panel { margin:0; flex-shrink:0; max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom))); overflow-y:auto; overscroll-behavior:contain; }
.staged-note { font-size:.875rem; line-height:1.6; letter-spacing:.035em; text-transform:none; }
.staged-dots { flex-wrap:wrap; }
@media(max-height:500px) { .staged-frame { height:48svh; } .staged { padding-inline:12px; } }

.staged-dots button { display:inline-flex; align-items:center; justify-content:center; }
.staged-dots button::after { content:none; }
