/* Hallmark · built: the project · theme: brand · genre: editorial · redesign: polish · signature: PR032-01 wall and wallpaper */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · kept the existing calculator; the photo now opens its exact material */
@import url('/tokens.css?v=material7');
@font-face {
  font-family: Pretendard;
  src: url('/assets/pretendard.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
html,body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--font-body);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
body :where(h1,h2,h3,h4,p) { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button,select,summary { cursor: pointer; }
button { color: inherit; }
:where(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid var(--action-blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap,.top-inner { width: var(--page-width); margin-inline: auto; }
.ui-icon {
  display: inline-block; width: 20px; height: 20px; flex: none;
  vertical-align: middle; background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.skip { position: fixed; top: -80px; left: 12px; padding: 8px 20px; z-index: 20; background: var(--paper); }
.skip:focus { top: 8px; }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { display: flex; align-items: center; min-height: 78px; gap: clamp(16px, 3vw, 44px); }
.brand-lock { display: inline-flex; align-items: center; flex: none; gap: .32em; color: #191f28; font-size: 25px; font-weight: 790; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.brand-lock img { display: block; width: 1.16em; height: 1.16em; flex: none; }
.service-nav { display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; }
.service-nav a { display: flex; min-height: 44px; align-items: center; white-space: nowrap; font-size: 16px; font-weight: 620; color: var(--ink); }
.service-nav a:hover,.service-nav a[aria-current] { color: var(--blue-text); }
.service-nav a[aria-current] { text-decoration: underline; text-underline-offset: 8px; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mobile-search { display: none; }
.nav-search { border: 1px solid var(--line-strong); display: flex; align-items: center; background: var(--wash); border-radius: 9px; padding-left: 16px; }
.nav-search:focus-within { outline: 2px solid var(--action-blue); }
.nav-search input { border: 0; background: transparent; color: var(--ink); font-size: 14px; width: clamp(90px, 9vw, 126px); min-width: 0; }
.nav-search button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); }
.nav-search .ui-icon { width: 17px; height: 17px; }
.consult-pill,.receipt-action { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--action-blue); color: var(--accent-ink); font-weight: 620; white-space: nowrap; }
.consult-pill { padding: 8px 16px; font-size: 14px; }
.consult-pill { color: var(--ink); background: var(--field); }
.consult-pill:hover { color: var(--blue-text); }
.receipt-action:hover { background: var(--accent-hover); }
button:active:not(:disabled),.receipt-action:active { transform: translateY(1px); }
button:disabled { background: var(--field); color: var(--muted); cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.home-estimator {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  align-items: start;
  gap: clamp(40px,7vw,96px);
  padding-block: clamp(36px,4vw,60px) var(--section-space);
  border-bottom: 1px solid var(--line);
}
.estimate-main h1 {
  font-size: clamp(33px,3.4vw,46px);
  font-weight: 640; line-height: 1.22; letter-spacing: -.035em;
}
.home-intro { color: var(--muted); font-size: 17px; margin-top: 12px; }
.quick-form { margin-top: 28px; display: grid; gap: 24px; }
.home-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.home-selects label,.quick-form legend { font-size: 16px; font-weight: 640; }
.home-selects select {
  display: block; width: 100%; min-height: 48px; margin-top: 8px;
  appearance: none; padding: 8px 36px 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--ink); font-size: 17px; font-weight: 500;
  background: var(--paper) url('/assets/lucide/chevron-down.svg') right 12px center / 17px no-repeat;
}
.quick-form fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.quick-form legend { margin-bottom: 8px; padding: 0; }
.quick-form legend small { margin-left: 8px; color: var(--muted); font-size: 15px; font-weight: 450; }
.area-options { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pick { cursor: pointer; position: relative; }
.area-pick input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.area-pick:has(:focus-visible) { outline: 2px solid var(--blue-text); outline-offset: 3px; }
.area-pick span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong);
  border-radius: 6px; font-size: 16px;
}
.area-pick input:checked+span { color: var(--blue-text); background: var(--skywash); border-color: var(--blue-text); font-weight: 670; }
.receipt-body { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.receipt-total h2 { font-size: 19px; font-weight: 650; }
.receipt-amount { color: var(--ink); font-size: 18px; font-weight: 570; }
.receipt-amount strong { font-size: clamp(30px,3vw,40px); margin-right: 4px; line-height: 1.2; letter-spacing: -.025em; font-weight: 640; font-variant-numeric: tabular-nums; }
.receipt-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 8px; color: var(--muted); font-size: 15px; }
.home-next { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.receipt-action { gap: 8px; padding: 12px 20px; min-height: 48px; font-size: 16px; }
.receipt-action .ui-icon,.text-link .ui-icon,.guide-item .ui-icon { width: 17px; height: 17px; }
.receipt-table { color: var(--blue-text); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.feature-case { margin: 0; min-width: 0; }
.material-views { position: relative; border: 0; min-width: 0; margin: 0; padding: 0; }
.material-choices {
  position: absolute; top: 16px; left: 16px; z-index: 1; display: inline-flex;
  padding: 4px; border-radius: 8px; background: var(--paper);
}
.material-choices label { cursor: pointer; position: relative; }
.material-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.material-choices span { display: block; padding: 8px 12px; font-size: 14px; color: var(--muted); }
.material-choices :checked + span { background: var(--ink); color: var(--accent-ink); border-radius: 4px; }
.material-choices label:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.material-room,.material-sample { display: block; }
.material-sample,.material-views:has([value="sample"]:checked) .material-room { display: none; }
.material-views:has([value="sample"]:checked) .material-sample { display: block; }
.material-views img { display: block; width: 100%; aspect-ratio: 1.26; object-fit: cover; object-position: 50% 57%; border-radius: 4px; }
.feature-case figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; }
.case-location { display: inline-block; font-size: 21px; font-weight: 640; }
.feature-case figcaption div>span { display: block; color: var(--muted); font-size: 15px; }
.material-code { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-text); font-size: 15px; font-variant-numeric: tabular-nums; }
.material-code img { object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.material-code:hover span,.case-location:hover { text-decoration: underline; text-underline-offset: 4px; }
.review-card small>span { margin-inline-start: 12px; }
.section-line .ui-icon { width: 15px; height: 15px; }
.home-section,.guide-layout { padding-block: var(--section-space); }
.section-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-line h2,.guide-layout h2,.common-q h2 { font-size: clamp(26px,2.8vw,36px); font-weight: 650; line-height: 1.3; letter-spacing: -.035em; }
.section-line>a,.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-text); font-weight: 620; font-size: 14px; white-space: nowrap; }
.case-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--column-gap); }
.case-photo { aspect-ratio: 1.48; border-radius: 4px; overflow: hidden; background: var(--wash); }
.case-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.case-copy { margin-top: 16px; }
.case-copy small,.guide-item small,.review-card small { display: block; color: var(--muted); font-size: 15px; }
.case-copy h3,.guide-item h3,.review-card h3 { margin-top: 4px; font-size: 20px; font-weight: 620; letter-spacing: -.035em; line-height: 1.4; }
.case-copy h3,.guide-item h3 { margin: 0 0 4px; }
.case-tile:hover h3,.guide-item:hover h3 { color: var(--blue-text); }
.case-credit { margin-top: 16px; font-size: 14px; color: var(--muted); }
.guide-strip,.site-footer { background: var(--wash); }
.guide-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--column-gap); }
.guide-layout .text-link { margin-top: 16px; }
.guide-item { border-bottom: 1px solid var(--line); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.guide-item:first-child { padding-top: 0; }
.guide-item h3 { font-size: 18px; }
.guide-item .ui-icon { color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--column-gap); }
.review-card { border-top: 1px solid var(--line); padding-top: 24px; }
.review-card p { margin: 8px 0 12px; max-width: 48ch; color: var(--ink); }
.common-q { border-top: 1px solid var(--line); padding-block: var(--section-space); }
.common-q h2 { margin-bottom: 24px; }
.common-q details { border-bottom: 1px solid var(--line); }
.common-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 620; list-style: none; }
.common-q summary::-webkit-details-marker { display: none; }
.common-q summary::after { content: ''; flex: none; width: 18px; height: 18px; background: var(--muted); mask: url('/assets/lucide/chevron-down.svg') center / contain no-repeat; }
.common-q details[open] summary::after { transform: rotate(180deg); }
.common-q p { max-width: 700px; padding-bottom: 24px; color: var(--muted); line-height: 1.75; }
.common-q a { display: inline-block; color: var(--blue-text); text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); }
.footrow { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 40px; }
.site-footer .brand-lock { font-size: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
@media(max-width: 920px) {
  .top-inner { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 0; padding-top: 16px; }
  .head-actions { grid-column: 2; grid-row: 1; }
  .service-nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; margin-top: 8px; gap: 24px; }
  .service-nav a { min-height: 44px; }
}
@media(max-width: 700px) {
  .home-estimator { grid-template-columns: minmax(0,1fr); gap: 36px; }
  .material-views img { aspect-ratio: 1.4; }
  .guide-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .case-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .case-tile { flex: 0 0 min(80%,320px); scroll-snap-align: start; }
  .footrow { display: grid; }
}
@media(max-width: 480px) {
  .material-code img { width: 32px; height: 32px; }
  .material-code { gap: 4px; font-size: 14px; }
  .feature-case figcaption { align-items: start; gap: 8px; }
  .brand-lock { font-size: 22px; }
  .head-actions { gap: 8px; }
  .nav-search { display: none; }
  .mobile-search { display: grid; place-items: center; width: 44px; height: 44px; }
  .consult-pill { padding: 8px 12px; font-size: 13px; }
  .service-nav { gap: 20px; }
  .service-nav a { font-size: 15px; }
  .review-grid { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
