/* Layout: a bolt of fabric — full-width bands, the cut angle of tape as the recurring motif */
@property --cut { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
:root {
  --bg: #f3f4f1;          /* unbleached linen */
  --surface: #ffffff;
  --ink: #16213a;         /* indigo thread */
  --muted: #5b6475;
  --line: #d9dce0;
  --accent: #c8202f;      /* NS logo red */
  --navy-band: #16213a;
  --on-band: #eef0f4;
  --tape-y: #e8b80c; --tape-g: #2f9a5c; --tape-r: #d4283a;
  --weave: rgba(22,33,58,.06);
  --tape-bg: #fbfaf6;     /* fabric face of the tape */
  --thread: rgba(22,33,58,.42);
  --thread-2: rgba(22,33,58,.20);
  --logo-chip: transparent; --logo-pad: 0;
  --bg-alt: #e8eae5;      /* alternate band so sections read as separate pages */
  --f-display: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --s-hero: clamp(2.2rem, 6vw, 4.4rem);
  --s-h2: clamp(1.6rem, 3.4vw, 2.4rem);
  --s-h3: 1.15rem;
  --s-body: 1.02rem;
  --s-small: .82rem;
  color-scheme: only light;  /* brand look is always light, even when the visitor uses dark mode */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; -webkit-text-size-adjust: 100%; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--s-body); line-height: 1.7; word-break: keep-all; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-mono); font-size: var(--s-small); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mono { font-family: var(--f-mono); }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { display: block; height: 40px; width: auto; max-width: 100%; }
.logo-chip { display: inline-flex; background: var(--logo-chip); padding: var(--logo-pad); border-radius: 3px; }
.brand small { color: var(--muted); font-size: var(--s-small); line-height: 1.3; border-left: 1px solid var(--line); padding-left: 12px; }
.brand small b { display: block; color: var(--ink); font-size: .9rem; font-family: var(--f-display); }
nav { display: flex; gap: 22px; font-size: .92rem; }
nav a { position: relative; text-decoration: none; color: var(--muted); padding-block: 4px; transition: color .25s ease; }
nav a:not(.store)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.3,.7,.2,1); }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(.4); }
nav a.active { color: var(--ink); font-weight: 600; }
nav a.active::after { transform: scaleX(1); }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
section[id] { scroll-margin-top: 70px; }
.arrive .sec-head > * { animation: arrive .7s cubic-bezier(.2,.8,.2,1) both; }
.arrive .sec-head > :nth-child(2) { animation-delay: .08s; }
.arrive .sec-head > :nth-child(3) { animation-delay: .16s; }
@keyframes arrive { from { transform: translateY(14px); opacity: .25; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: .55; }
nav .store { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; font-family: var(--f-body); font-size: .88rem; font-weight: 600; cursor: pointer; }
.menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
.menu-btn .bars { position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
.menu-btn .bars::before { top: -5px; } .menu-btn .bars::after { top: 5px; }
header.open .menu-btn .bars { background: transparent; }
header.open .menu-btn .bars::before { transform: translateY(5px) rotate(45deg); }
header.open .menu-btn .bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 760px) {
  .brand small { display: none; }
  .menu-btn { display: inline-flex; }
  nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -14px rgba(0,0,0,.35);
    padding: 6px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s; }
  html:not(.js) nav { position: static; width: 100%; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) header .wrap { flex-wrap: wrap; }
  header.open nav { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .22s ease; }
  nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  nav a:last-child { border-bottom: 0; }
  nav a:not(.store)::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%) scale(0); }
  nav a.active::after { transform: translateY(-50%) scale(1); }
  nav a:hover::after { transform: translateY(-50%) scale(.6); }
}

/* hero */
.hero { padding-block: clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(0deg, var(--weave) 0 1px, transparent 1px 7px), repeating-linear-gradient(90deg, var(--weave) 0 1px, transparent 1px 7px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: calc(var(--s-hero) * .93); font-weight: 900; letter-spacing: -.03em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: 1.08rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 2px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--ink); font-size: .95rem; cursor: pointer; background: transparent; color: var(--ink); font-family: var(--f-body); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn:hover { transform: translateY(-1px); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* tape strip component */
.strips { display: grid; gap: 18px; min-width: 0; }
.strip { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.tape { --pitch: 7px; position: relative; height: 52px; border-radius: 1px; overflow: hidden; background-color: var(--tape-bg); border: 1px solid var(--thread-2); box-shadow: 0 8px 22px -12px rgba(0,0,0,.45);
  background-image: repeating-linear-gradient(var(--cut), var(--thread) 0 2px, transparent 2px var(--pitch)), repeating-linear-gradient(calc(var(--cut) + 90deg), var(--thread-2) 0 2px, transparent 2px var(--pitch));
  transition: --cut .7s cubic-bezier(.3,.7,.2,1); }
.tape::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--mark); }
.tape .deg { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: .78rem; color: var(--ink); background: var(--tape-bg); padding: 2px 7px; border: 1px solid var(--thread-2); }
.strip .name { font-weight: 600; font-size: .95rem; width: 8.6em; }
.strip .name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--s-small); }
.figcap { font-size: var(--s-small); color: var(--muted); margin-top: 6px; }

/* sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.faq { border-top: 1px solid var(--line); }
.faq-list { max-width: 48em; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 1.3rem; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 20px; color: var(--muted); }
.sec-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: var(--s-h2); font-weight: 900; letter-spacing: -.02em; }
.sec-head p { color: var(--muted); }

/* about band */
.band { background: var(--navy-band); color: var(--on-band); }
.band .sec-head p { color: color-mix(in srgb, var(--on-band) 70%, transparent); }
.band .eyebrow { color: var(--tape-y); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.years { font-family: var(--f-display); font-weight: 900; font-size: clamp(6rem, 16vw, 11rem); line-height: .85; letter-spacing: -.05em; }
.years sup { font-size: .25em; letter-spacing: 0; vertical-align: top; margin-left: 6px; color: var(--tape-y); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent); }
.value { padding: 22px 22px 0 0; display: grid; gap: 8px; min-width: 0; }
.value + .value { padding-left: 22px; border-left: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent); }
.value .eyebrow { color: var(--on-band); opacity: .6; }
.value h3 { font-size: var(--s-h3); }
.value p { font-size: .94rem; color: color-mix(in srgb, var(--on-band) 72%, transparent); }
@media (max-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .values { grid-template-columns: 1fr; } .value, .value + .value { padding: 20px 0 0; border-left: 0; } .value + .value { border-top: 1px solid color-mix(in srgb, var(--on-band) 20%, transparent); margin-top: 20px; } }

/* history: the tape itself is the timeline axis */
.history { border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 14px; background-color: var(--tape-bg); border: 1px solid var(--thread-2);
  background-image: repeating-linear-gradient(45deg, var(--thread) 0 1.5px, transparent 1.5px 6px), repeating-linear-gradient(135deg, var(--thread-2) 0 1.5px, transparent 1.5px 6px); }
.timeline li { position: relative; padding: 0 14px 0 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.timeline .yr { font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; letter-spacing: -.01em; height: 20px; }
.timeline .dot { width: 14px; height: 14px; margin-top: 2px; background: var(--ink); border: 3px solid var(--bg); box-sizing: content-box; border-radius: 50%; position: relative; z-index: 1; margin-left: -2px; }
.timeline li.key .dot { background: var(--accent); }
.timeline li.key .yr { color: var(--accent); }
.timeline p { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.timeline p b { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .timeline::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 14px; height: auto; }
  .timeline li { grid-template-columns: 4.2em 1fr; gap: 14px; padding: 0; align-items: baseline; }
  .timeline .dot { position: absolute; left: -29px; top: 2px; margin: 0; }
  .timeline p { padding-top: 0; }
}

/* cut-angle explainer */
.cut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.picker-hint { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.picker-hint svg { flex: none; }
.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.picker button { position: relative; font-family: var(--f-body); text-align: left; padding: 14px 14px 14px 16px; border: 1.5px solid var(--line); border-left: 6px solid var(--mark); background: var(--surface); color: var(--ink); border-radius: 3px; cursor: pointer; display: grid; gap: 2px; min-width: 0; box-shadow: 0 2px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; }
.picker button b { font-size: .98rem; }
.picker button span { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.picker button::before { content: "선택"; justify-self: start; margin-bottom: 6px; font-size: .68rem; font-weight: 600; line-height: 1.5; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.picker button:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 6px 14px -8px rgba(0,0,0,.35); }
.picker button:active { transform: translateY(0); box-shadow: none; }
.picker button[aria-pressed="true"] { border-color: var(--ink); border-left-color: var(--mark); background: color-mix(in srgb, var(--mark) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--ink); }
.picker button[aria-pressed="true"]::before { content: "보는 중"; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.picker.untouched button[aria-pressed="false"] { animation: nudge 2.4s ease-in-out infinite; }
.picker.untouched button[data-i="2"] { animation-delay: .3s; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } 90% { transform: translateY(0); } }
@media (max-width: 520px) { .picker { grid-template-columns: 1fr; } }
.stage { cursor: pointer; }
.stage-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stage-cap .cur { display: inline-flex; align-items: center; gap: 9px; font-size: 1.02rem; color: var(--ink); white-space: nowrap; min-width: 0; }
.cur-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 25%, transparent); transition: background .4s ease; }
.next-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 999px; font-family: var(--f-body); font-size: .85rem; font-weight: 600; cursor: pointer; transition: transform .15s ease; }
.next-btn span { font-size: 1.1rem; line-height: 1; }
.next-btn:hover { transform: translateX(2px); }
.picker button b, .strip .name { white-space: nowrap; }
.stage { background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); display: grid; gap: 22px; min-width: 0; }
.stage .tape { --pitch: 10px; height: 110px; background-image: repeating-linear-gradient(var(--cut), var(--thread) 0 3px, transparent 3px var(--pitch)), repeating-linear-gradient(calc(var(--cut) + 90deg), var(--thread-2) 0 3px, transparent 3px var(--pitch)); }
.stage .tape::after { content: "← 원단 결 방향 →"; position: absolute; left: 20px; bottom: 6px; font-family: var(--f-mono); font-size: .7rem; color: var(--ink); background: var(--tape-bg); padding: 1px 6px; }
.readout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.readout div { display: grid; gap: 2px; min-width: 0; }
.readout dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.readout dd { margin: 0; font-weight: 600; }
.meter { display: flex; gap: 4px; margin-top: 4px; }
.meter span { flex: 1; height: 6px; background: var(--line); transition: background .4s; }
.meter span.on { background: var(--mark); }
.note { margin-top: 18px; font-size: .9rem; color: var(--muted); max-width: 36em; }
@media (max-width: 820px) { .cut-grid { grid-template-columns: 1fr; } }

/* products */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 0 22px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); min-width: 0; }
.product > :not(.photo) { margin-inline: 20px; }
.photo { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: #f6f6f4; overflow: hidden; margin-bottom: 6px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product:hover .photo img { transform: scale(1.04); }
.photo { cursor: zoom-in; }
.photo .zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; background: rgba(255,255,255,.92); color: #16213a; padding: 4px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10,14,22,.88); display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); cursor: zoom-out; animation: lb-in .2s ease; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1000px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #fff; border-radius: 2px; animation: lb-zoom .25s cubic-bezier(.2,.8,.2,1); }
.lightbox .stage-wrap { position: relative; display: grid; place-items: center; max-width: 100%; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #16213a; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.lb-nav:hover { background: #fff; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { font-family: var(--f-mono); font-size: .8rem; color: #eef0f4; background: rgba(255,255,255,.14); padding: 2px 10px; border-radius: 999px; }
.lb-dots { display: flex; gap: 8px; }
.lb-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.lb-dots button[aria-current="true"] { background: #fff; }
.lightbox figcaption { color: #eef0f4; font-size: .95rem; text-align: center; }
.lightbox figcaption small { display: block; color: rgba(238,240,244,.6); font-size: .8rem; margin-top: 2px; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-zoom { from { transform: scale(.92); opacity: .4; } }
.photo .tag { position: absolute; left: 10px; top: 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; background: rgba(22,33,58,.85); color: #fff; padding: 3px 7px; }
.thumbs { display: flex; gap: 6px; }
.thumbs button { width: 46px; height: 34px; padding: 0; border: 1.5px solid var(--line); background: #f6f6f4; cursor: pointer; overflow: hidden; border-radius: 1px; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.product h3 { font-size: 1.05rem; }
.product h3 small { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: 4px; }
.product p { font-size: .9rem; color: var(--muted); }
.spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.spec span { font-family: var(--f-mono); font-size: .72rem; border: 1px solid var(--line); padding: 2px 7px; color: var(--ink); }
@media (max-width: 920px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .products { grid-template-columns: minmax(0, 1fr); } }
/* phones: long lists become swipeable rows so each section fits roughly one screen */
.swipe-hint, .swipe-dots { display: none; }
@media (max-width: 640px) {
  section { padding-block: 52px; }
  .sec-head { margin-bottom: 24px; }
  .swipe-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
  .swipe-hint .count { font-family: var(--f-mono); color: var(--ink); }
  .swipe-hint .arrow { display: inline-block; animation: swipe-nudge 1.8s ease-in-out infinite; }
  @keyframes swipe-nudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(6px); } }
  .swipe { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px;
    margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .products.swipe { border: 0; }
  .products.swipe .product { border: 1px solid var(--line); }
  .values.swipe { border-top: 0; margin-top: 28px; }
  .values.swipe .value, .values.swipe .value + .value { margin: 0; padding: 20px; border: 1px solid color-mix(in srgb, var(--on-band) 22%, transparent); border-top: 3px solid var(--tape-y); }
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .25s ease; }
  .swipe-dots i.on { width: 18px; border-radius: 3px; background: var(--accent); }
  .band .swipe-dots i { background: color-mix(in srgb, var(--on-band) 25%, transparent); }
  .band .swipe-dots i.on { background: var(--tape-y); }
  .band .swipe-hint, .band .swipe-hint .count { color: color-mix(in srgb, var(--on-band) 75%, transparent); }
  .years { font-size: 5.5rem; }
  .about-grid { gap: 20px; grid-template-columns: minmax(0, 1fr); }
  .about-grid > * { min-width: 0; }
  .hero { padding-block: 40px 44px; }
  .hero .strips { padding: 18px; background: var(--surface); border: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .swipe-hint .arrow { animation: none; } }
.store-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.store-row p { color: var(--muted); font-size: .95rem; }

/* contact */
.contact { border-top: 1px solid var(--line); }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.alt .stage, .alt .picker button { background: var(--surface); }
.sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.site { display: flex; flex-direction: column; gap: 14px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 18px; }
.site.factory { border-top-color: var(--accent); }
.site .eyebrow { color: var(--muted); }
.site.factory .eyebrow { color: var(--accent); }
.site h3 { font-size: 1.2rem; }
.site .addr { min-height: 3.2em; }
.site .links { margin-top: auto; padding-top: 4px; }
@media (max-width: 720px) { .sites { grid-template-columns: 1fr; } }
.contact-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.contact-bottom .info-row { border: 0; padding: 0; }
.info { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 12px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); }
.info-row dt { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-row dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.copy { font-family: var(--f-mono); font-size: .74rem; padding: 5px 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 2px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink); }
a.copy { text-decoration: none; display: inline-block; }
.site .addr { font-weight: 500; line-height: 1.6; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

footer { background: var(--navy-band); color: color-mix(in srgb, var(--on-band) 65%, transparent); font-size: .8rem; }
footer .wrap { padding-block: 32px; display: grid; gap: 8px; }
footer b { color: var(--on-band); font-family: var(--f-display); }
.footer-logo { justify-self: start; background: #fff; padding: 8px 12px; border-radius: 3px; margin-bottom: 8px; }
.footer-logo .logo { height: 34px; }

.chat-fabs { position: fixed; z-index: 20; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
/* the free host plan pins its own badge to the bottom-right corner; lift our buttons above it */
.has-host-badge .chat-fabs { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.talk-fab { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 12px; background: #037a3a; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(3,120,60,.55); transition: transform .2s ease; }
.talk-fab:hover { transform: translateY(-2px); }
.talk-fab .bubble { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #037a3a; font-family: var(--f-display); font-weight: 900; font-size: .72rem; letter-spacing: -.04em; }
.talk-fab.kakao { background: #fee500; color: #191919; box-shadow: 0 10px 24px -8px rgba(120,100,0,.5); }
.talk-fab.kakao .bubble { background: #191919; color: #fee500; }
.talk-fab.kakao .bubble svg { display: block; }
@media (max-width: 480px) { .chat-fabs { align-items: flex-end; } .talk-fab .label { display: none; } .talk-fab { padding: 10px; } .talk-fab .bubble { width: 34px; height: 34px; } }
.btn.kakao { border-color: #e6cf00; color: var(--ink); }
.btn.kakao::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fee500; box-shadow: 0 0 0 1px #c9b400; }
.btn.talk { border-color: #03c75a; color: var(--ink); }
.btn.talk::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #03c75a; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; font-size: .88rem; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .arrive .sec-head > * { animation: none !important; } .tape, .meter span { transition: none; } .picker.untouched button, .lightbox, .lightbox img { animation: none !important; } .btn:hover { transform: none; } }

/* ---- product detail pages ---- */
.crumbs { font-size: var(--s-small); color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }
.pd-hero { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.pd-hero .wrap > .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 18px; }
.pd-hero h1 { font-family: var(--f-display); font-size: var(--s-h2); font-weight: 900; letter-spacing: -.02em; line-height: 1.25; margin: 10px 0 0; }
.pd-hero .lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.pd-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pd-photo { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.pd-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.aka { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0; list-style: none; }
.aka li { font-size: var(--s-small); border: 1px solid var(--line); background: var(--surface); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.pd-section + .pd-section { border-top: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 9em; color: var(--muted); font-weight: 600; background: var(--bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-note { font-size: var(--s-small); color: var(--muted); margin-top: 10px; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kind { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--mark); padding: 18px; }
.kind h3 { font-size: var(--s-h3); margin: 0; }
.kind .deg { font-family: var(--f-mono); color: var(--muted); font-size: var(--s-small); }
.kind p { margin: 8px 0 0; color: var(--muted); font-size: .94rem; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; margin: 0; }
.uses li { background: var(--surface); border: 1px solid var(--line); padding: 16px; }
.uses b { display: block; }
.uses span { color: var(--muted); font-size: .92rem; }
.steps { counter-reset: s; display: grid; gap: 10px; padding: 0; list-style: none; margin: 0; max-width: 48em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); color: var(--accent); font-weight: 600; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.product .more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) {
  .pd-hero .wrap > .grid { grid-template-columns: minmax(0, 1fr); }
  .pd-photo { order: -1; }
  .kinds, .uses { grid-template-columns: minmax(0, 1fr); }
  .spec-table th { width: 6.5em; }
}

/* ---- product dropdown in the top menu ---- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a .caret { font-size: .7em; margin-left: 3px; opacity: .6; }
.drop { position: absolute; top: 100%; left: -14px; padding-top: 12px; display: none; z-index: 20; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
.drop-box { display: grid; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); box-shadow: 0 14px 28px -14px rgba(0,0,0,.35); padding: 6px; }
.drop a { padding: 10px 12px; color: var(--ink); border-radius: 2px; }
.drop a::after { display: none; }
.drop a:hover, .drop a:focus-visible { background: var(--bg); }
.drop a small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.drop a.all { border-top: 1px solid var(--line); margin-top: 4px; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop > a .caret { display: none; }
  .drop { display: block; position: static; padding: 0; }
  .drop-box { min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 6px 14px; border-bottom: 1px solid var(--line); }
  .drop a { padding: 10px 4px; font-size: .95rem; border-bottom: 0; }
  .drop a small { display: none; }
  .drop a.all { border-top: 0; margin-top: 0; font-size: .95rem; }
}
/* ---- armhole page: fraction = result ---- */
.formula { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); align-items: center; }
.fraction { display: grid; }
.fraction .bar { height: 3px; background: var(--ink); margin: 14px 8px; border-radius: 2px; }
.formula .op { font-family: var(--f-mono); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 500; color: var(--accent); line-height: 1; text-align: center; }
.formula .result { border-top-width: 4px; box-shadow: 0 10px 24px -16px rgba(0,0,0,.4); }
.formula .result h3 { font-size: 1.3rem; }
@media (max-width: 760px) {
  .formula { grid-template-columns: minmax(0, 1fr); }
  .formula .op { padding-block: 4px; transform: rotate(90deg); }
}
/* ---- line breaks: PC-only breaks, no orphan last words ---- */
p, li, td, dd, summary, figcaption { text-wrap: pretty; }
@media (max-width: 1100px) { br.pc { display: none; } }

/* ---- top menu: keep one line on narrow PCs and tablets ---- */
nav a { white-space: nowrap; }
@media (max-width: 1000px) { nav { gap: 14px; font-size: .86rem; } }
.store-row .cta { margin-top: 0; gap: 10px; }

/* ---- tap-to-call phone numbers ---- */
a.tel { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- phone menu: scroll inside the menu when it is taller than the screen ---- */
@media (max-width: 760px) {
  nav { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html:not(.js) nav { max-height: none; overflow: visible; }
}

/* ---- floating call button: phones only ---- */
.talk-fab.call { display: none; background: var(--ink); color: #fff; box-shadow: 0 10px 24px -8px rgba(22,33,58,.5); }
.talk-fab.call .bubble { background: #fff; color: var(--ink); }
.talk-fab.call .bubble svg { display: block; }
@media (max-width: 760px) { .talk-fab.call { display: inline-flex; } }
