/* Sangho Studio site. One stylesheet for index, privacy, terms and /for pages.
   Contrast (WCAG AA 4.5:1) checked for every text/background pair below; see 00_홈페이지 컨셉과 방향.md. */

@font-face { font-family: "Crimson Text"; src: url("fonts/CrimsonText-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/CrimsonText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("fonts/CrimsonText-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/FiraSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/FiraSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #1D2B2F;      /* body text: 14.6:1 on white, 12.7:1 on stone */
  --muted: #4F5D60;    /* secondary text: 6.85:1 on white, 5.97:1 on stone */
  --paper: #FFFFFF;
  --stone: #EEF0EC;    /* alternate section ground */
  --line: #CBD2CE;     /* borders only, never text */
  --dusk: #123A44;     /* dark sections: white 12.25:1 */
  --dusk-2: #0E2F37;
  --on-dusk-muted: #C9D6D3; /* 8.19:1 on dusk */
  --amber: #9A5A0E;    /* small accents & numbers: 5.46:1 on white, 4.76:1 on stone */
  --amber-light: #E8B45A; /* on dusk only: 6.48:1 */
  --wa: #0F7A3E;       /* WhatsApp button: white text 5.42:1 */
  --wa-hover: #0B6B37;
  /* hero (storyboard v2, 8-2) */
  --cream: #EFE6D2;
  --brown: #2E2019;    /* hero text: 6.11:1 even on a black frame under a 70% cream band */
  --band: rgba(239, 230, 210, .7);

  --serif: "Crimson Text", "Iowan Old Style", Georgia, serif;
  --sans: "Fira Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --sticky-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h3 { font-size: 1.5rem; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 38em; }
.fineprint { font-size: .9375rem; color: var(--muted); margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 500 1.0625rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.wa-icon { width: 22px; height: 22px; flex: none; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 56px; font-size: 1.1875rem; padding: 14px 28px; }

/* ───────── HERO ───────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #8a6a4c; color: var(--brown); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { display: none; }

/* cream band behind every hero text: solid 70% under the glyphs, feathered outside */
.topline, .price-line, .credit-main, .credit-sub {
  background: var(--band);
  box-shadow: 0 0 22px 10px var(--band);
  border-radius: 6px;
  width: fit-content;
}
.hero-top { position: absolute; top: 4%; left: 4%; right: 4%; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; z-index: 2; }
.topline { margin: 0; padding: 4px 10px; font-size: 1.0625rem; line-height: 1.35; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.375rem; letter-spacing: .01em; }
/* storyboard v2.1 #3: desktop top line in two lines, inside x 4–27% */
.topline { max-width: 23vw; }
.topline .wordmark { display: block; }
.topline-sep { display: none; }
.topline-desc { font-size: .9375rem; }
.hero-nav { display: flex; gap: 6px; background: var(--band); box-shadow: 0 0 22px 10px var(--band); border-radius: 6px; padding: 2px 4px; }
.hero-nav a { padding: 6px 10px; text-decoration: none; font-size: 1rem; font-weight: 500; }
.hero-nav a:hover { text-decoration: underline; }
.hero :focus-visible { outline-color: var(--brown); }

.credit { position: absolute; left: 50%; top: 72%; transform: translateX(-50%); width: min(36%, 560px); text-align: center; z-index: 2; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.credit-main { margin: 0; padding: 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.1vw, 3.6rem); line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.credit-sub { margin: 14px 0 0; padding: 2px 10px; font-size: clamp(1rem, 1.3vw, 1.375rem); font-weight: 500; }
.credit-main, .credit-sub { transition: opacity .3s ease; }
.credit .is-off { opacity: 0; }

.hero-bottom { position: absolute; left: 4%; bottom: 8%; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.price-line { margin: 0; padding: 2px 10px; font-family: var(--serif); font-size: 1.625rem; font-weight: 600; line-height: 1.2; }
.hero-wa { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.hero-wa.glow { animation: glow .6s ease-out 1; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(15,122,62,.0); } 40% { box-shadow: 0 0 0 10px rgba(15,122,62,.35); } 100% { box-shadow: 0 0 0 18px rgba(15,122,62,0); } }

.hero-toggle { position: absolute; right: 2.5%; bottom: 4%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brown); color: var(--cream); cursor: pointer; }
.hero-toggle svg { width: 20px; height: 20px; }
.hero-toggle .i-play { display: none; }
.hero[data-state="poster"] .hero-toggle .i-pause, .hero[data-state="paused"] .hero-toggle .i-pause { display: none; }
.hero[data-state="poster"] .hero-toggle .i-play, .hero[data-state="paused"] .hero-toggle .i-play { display: block; }
.hero-toggle:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; box-shadow: 0 0 0 6px var(--brown); }

/* sticky WhatsApp (phones only) */
.wa-sticky { display: none; }

/* ───────── SECTIONS ───────── */
section { padding: clamp(64px, 9vw, 112px) 0; }
.shops { padding-top: 0; }
.first-line { margin: 0 0 clamp(48px, 7vw, 80px); padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--ink); max-width: none; }
.first-line p { margin: 0 0 .35em; max-width: 52em; }
.first-line p:last-child { margin: 0; }
.first-line strong { font-weight: 600; }
.first-line a { color: var(--amber); font-weight: 500; white-space: nowrap; }

.shop-row { list-style: none; margin: 28px auto 0; padding: 0 var(--gutter); max-width: calc(var(--wrap) + 2 * 40px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.shop { margin: 0; }
.ph { position: relative; background: linear-gradient(165deg, var(--tone, #9aa) 0%, color-mix(in srgb, var(--tone, #9aa) 55%, #1D2B2F) 100%); border-radius: 3px; overflow: hidden; }
.ph-45 { aspect-ratio: 4 / 5; }
.ph span { position: absolute; left: 10px; bottom: 10px; right: 10px; width: fit-content; padding: 4px 8px; border-radius: 3px; background: rgba(29,43,47,.88); color: #fff; font-size: .8125rem; line-height: 1.35; }
.shop-cap { margin: 12px 0 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }

.how { background: var(--stone); }
.steps { list-style: none; margin: 40px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.step { margin: 0; border-top: 2px solid var(--ink); padding-top: 18px; }
.step-n { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--amber); margin-bottom: 10px; }
.step p { color: var(--ink); }
.btn-inline { margin-top: 4px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.plan { border: 1px solid var(--line); border-radius: 4px; padding: 28px 26px 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.625rem; }
.plan-price { margin: 6px 0 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.aed { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; line-height: 1.05; }
.kwd { font-family: var(--serif); font-size: 1.5rem; color: var(--muted); }
.plan-usd { color: var(--amber); font-weight: 500; margin-bottom: 18px; }
.plan-list { margin: 0 0 24px; padding-left: 1.1em; flex: 1; }
.plan-list li { margin-bottom: .35em; }
.plan .btn { align-self: flex-start; }
.plan-notes { margin-top: 28px; max-width: 46em; color: var(--muted); }

.work { background: var(--stone); }
.concept-flag { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border: 1.5px solid var(--amber); border-radius: 3px; color: var(--amber); font-weight: 500; }
.gallery { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g-item { margin: 0; }
.g-cap { margin: 10px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; }
.g-kind { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p { max-width: 36em; }
.ai-line { border-left: 3px solid var(--amber); padding-left: 16px; color: var(--ink); font-family: var(--serif); font-size: 1.3125rem; line-height: 1.45; }
.clocks { background: var(--dusk); color: #fff; border-radius: 4px; padding: 26px 28px; }
.clocks-title { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 14px; }
.clocks dl { margin: 0; }
.clock { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.22); }
.clock dt { color: var(--on-dusk-muted); }
.clock dd { margin: 0; font-family: var(--serif); font-size: 1.75rem; font-variant-numeric: tabular-nums lining-nums; }
.clocks-note { margin: 14px 0 0; color: var(--on-dusk-muted); font-size: .9375rem; }

.faq-list { margin-top: 32px; max-width: 48em; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; max-width: 40em; }
.faq details a { color: var(--amber); }

.contact { background: var(--dusk); color: #fff; }
.contact .lede { color: var(--on-dusk-muted); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 32px 0 18px; }
.mail { font-size: 1.25rem; color: #fff; }
.contact-meta { color: var(--on-dusk-muted); margin: 0; }
.contact :focus-visible, .site-footer :focus-visible, .clocks :focus-visible { outline-color: var(--amber-light); }

.site-footer { background: var(--dusk-2); color: var(--on-dusk-muted); padding: 32px 0; font-size: .9375rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; justify-content: space-between; }
.footer-grid p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #fff; }

/* ───────── PHONES ───────── */
@media (max-width: 767px), (orientation: portrait) and (max-width: 1024px) {
  body:not(.proposal) { padding-bottom: calc(var(--sticky-h) + 28px + env(safe-area-inset-bottom)); }
  .hero { min-height: 520px; }
  .hero-top { top: calc(env(safe-area-inset-top) + 5%); left: 5%; right: 5%; }
  .topline { font-size: .9375rem; max-width: none; }
  .topline .wordmark { display: block; font-size: 1.25rem; }
  .topline-sep { display: none; }
  .hero-nav { display: none; }
  .hero-toggle { top: calc(env(safe-area-inset-top) + 5%); bottom: auto; right: 5%; }
  .credit { top: 70%; width: 90%; }
  .credit-main { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .credit-sub { margin-top: 10px; font-size: 1rem; }
  /* price line always sits directly above the sticky button (VP decision 4) */
  .hero-bottom { left: 5%; right: 5%; bottom: calc(var(--sticky-h) + 16px + 28px + env(safe-area-inset-bottom)); align-items: center; } /* storyboard v2.1 #4: price line y 85.5–88.5% at 390×844 (was 14px gap → 86.7–90.3%) */
  .hero-wa { display: none; }
  .price-line { font-size: 1.375rem; }
  .wa-sticky { display: flex; position: fixed; z-index: 50; left: 5%; right: 5%; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: var(--sticky-h); box-shadow: 0 4px 16px rgba(0,0,0,.25); }

  .shop-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); padding-bottom: 8px; }
  .shop { scroll-snap-align: start; }
  .steps, .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .g-cap { flex-direction: column; gap: 0; font-size: .9375rem; }
  .about-grid { grid-template-columns: 1fr; }
  .first-line { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ───────── LEGAL PAGES ───────── */
.legal-head { background: var(--dusk); color: #fff; padding: 22px 0; }
.legal-head a { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; }
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal li { margin-bottom: .4em; }
.draft-note { background: #FFF4DC; border: 1px solid var(--amber); color: var(--ink); padding: 12px 16px; border-radius: 4px; }

/* ───────── PROPOSAL PAGES (/for/...) ───────── */
.p-head { background: var(--dusk); color: #fff; padding: 18px 0; }
.p-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.p-head p { margin: 0; }
.p-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.p-for { color: var(--on-dusk-muted); }
.p-intro { padding-bottom: 32px; }
.p-intro h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); max-width: 18em; }
.p-intro h1 em, .p-second em { font-style: italic; font-weight: 400; }
.p-hero { padding-top: 0; }
.p-hero-grid { display: grid; grid-template-columns: 1fr 0.75fr; max-width: 900px; gap: 24px; align-items: start; }
.p-fig { margin: 0; }
.p-fig figcaption { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.p-film { width: 100%; aspect-ratio: 9 / 16; background: #1a120c; border-radius: 3px; object-fit: cover; }
.p-picks, .p-terms { background: var(--stone); }
.p-grid { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 18px; }
.p-grid li { margin: 0; }
.p-grid-4 { grid-template-columns: repeat(4, 1fr); align-items: start; }
.p-grid-2 { grid-template-columns: repeat(3, 1fr); align-items: start; }
.ph-916 { aspect-ratio: 9 / 16; }
.ph-169 { aspect-ratio: 16 / 9; }
.p-terms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.p-steps { padding-left: 1.3em; margin: 20px 0 28px; }
.p-steps li { margin-bottom: .45em; }
.p-steps li::marker { color: var(--amber); font-weight: 600; }
.p-price { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.p-price-big { font-family: var(--serif); font-size: 2.75rem; font-weight: 600; line-height: 1.1; margin: 6px 0 14px; }
.p-price-big span { font-size: 1.5rem; color: var(--muted); font-weight: 400; }
.p-ramadan { border-top: 1px solid var(--line); padding-top: 14px; margin: 18px 0 0; color: var(--ink); }
.proposal .site-footer p { margin: 0; }
@media (max-width: 767px) {
  .p-hero-grid, .p-terms-grid { grid-template-columns: 1fr; }
  .p-grid-4 { grid-template-columns: 1fr 1fr; }
  .p-grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* short phones (e.g. 375×667): lift the credit so it keeps clear of the price line */
@media (max-width: 767px) and (max-height: 720px) {
  .credit { top: 64%; }
}

/* 12/3 실제 컨셉 이미지 */
.shop img, .g-item img { display:block; width:100%; height:auto; aspect-ratio:4/5; object-fit:cover; border-radius:inherit; background:var(--tone,#7A5A3E); }

@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr) !important; } }
