@import url('https://api.fontshare.com/css?f[]=gambetta@400,500,600,700&f[]=general-sans@400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Noto+Serif+KR:wght@400;500;700&display=swap');
:root {
  /* Color Palette */
  --bg: #fcfaf7; /* raw silk cream */
  --surface: #ffffff;
  --soft: #f5f1ea; /* warm linen gray */
  --ink: #1a1a1a; /* deep charcoal */
  --muted: #726f67;
  --line: rgba(26, 26, 26, 0.08); /* fine thread line */
  --primary: #1a1a1a;
  --accent: #c8102e; /* lacquer red seam */
  --accent-soft: rgba(200, 16, 46, 0.06);
  --sage: #b7d6cf;
  
  /* Dark Mode Contrasts */
  --dark-bg: #151515;
  --dark-surface: #222222;
  --dark-line: rgba(255, 255, 255, 0.08);
  --dark-text: #fcfaf7;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Apple SD Gothic Neo', 'Pretendard', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;

  /* Spacing */
  --max-width: 1280px;
  --side-padding: clamp(24px, 6vw, 68px); /* desktop >= 48px, mobile >= 20px */
  --section-gap: clamp(80px, 10vw, 160px); /* section gap >= 64px */
  --grid-gap: clamp(28px, 4vw, 48px); /* card grid gap >= 28px */
  
  /* Shapes & Borders */
  --r-sm: 2px; /* sharp, minimal atelier feel */
  --r-md: 6px;
  --r-lg: 12px;
  
  /* Shadows */
  --shadow-soft: 0 10px 30px -10px rgba(26, 26, 26, 0.04);
  --shadow-card: 0 20px 50px -15px rgba(26, 26, 26, 0.08);
  --shadow-hover: 0 30px 60px -12px rgba(26, 26, 26, 0.12);
  
  /* Motion */
  --transition-ease: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Universal Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Base Headings - Premium Typography Gate */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  line-height: 1.15; /* Korean headline height >= 1.05 */
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 6.5vw, 84px);
}

h2 {
  font-size: clamp(28px, 4.5vw, 54px);
}

h3 {
  font-size: clamp(22px, 3vw, 36px);
}

p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
}

.kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 16px;
}

/* Premium Buttons & Interactive Links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: var(--transition-fast);
  z-index: -1;
}

.button.primary:hover {
  border-color: var(--accent);
  color: #fff;
}

.button.primary:hover::before {
  transform: scaleY(1);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost:hover {
  background: var(--soft);
  border-color: var(--ink);
}

/* 1. Scrolling Marquee Notice Bar */
.notice {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 10;
}

.notice-marquee {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.notice-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.notice-text::after {
  content: '★';
  margin-left: 80px;
  color: var(--accent);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translate(-50%); }
}

/* 2. Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--side-padding);
  background: rgba(252, 250, 247, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition-fast);
}

.brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition-fast);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  z-index: 101;
}

/* 3. Selvage Hero Section */
.selvage-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: clamp(56px, 5vw, 84px);
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 40px var(--side-padding) 0;
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(245, 241, 234, 0.3) 0%, transparent 80%);
}

.rail-copy {
  padding-right: 12px;
  z-index: 2;
}

.rail-copy h1 {
  margin-bottom: 24px;
}

.rail-copy p:not(.kicker) {
  max-width: 520px;
  margin-bottom: 40px;
}

.rail-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
  min-height: 20px;
}

/* Hero Image Asymmetric Border Frame */
.hero-image {
  position: relative;
  justify-self: end;
  padding: clamp(10px, 1.1vw, 16px);
  width: 100%;
  max-width: min(760px, 52vw);
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 28px;
  bottom: 28px;
  border: 1px solid var(--accent);
  z-index: 0;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  max-height: min(760px, calc(100vh - 170px));
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
  transition: var(--transition-ease);
}

.hero-image:hover img {
  transform: translate(10px, 10px);
  box-shadow: var(--shadow-hover);
}

/* Selvage Technical Rail */
.selvage-rail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 60px;
  background: var(--surface);
}

.selvage-rail span {
  padding: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.selvage-rail span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.selvage-rail span:hover::before {
  background: var(--accent);
}

.selvage-rail span:last-child {
  border-right: none;
}

/* 4. Material Panels (Asymmetric Staggered Collage) */
.material-panels {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: var(--grid-gap);
  padding: var(--section-gap) var(--side-padding);
  background: #fdfbf7;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

/* Add grid pattern overlay */
.material-panels::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 8.333% 100px;
  opacity: 0.3;
  pointer-events: none;
}

.panel {
  position: relative;
  z-index: 2;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-ease);
}

/* Text panel (Intro) */
.material-panels .text-panel:first-of-type {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  padding: 56px;
  align-self: center;
}

/* Tall Image Panel */
.material-panels .image-panel.tall {
  grid-column: 7 / 13;
  grid-row: 1 / 4;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.material-panels .image-panel.tall img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: var(--transition-ease);
}

.material-panels .image-panel.tall:hover img {
  transform: scale(1.05);
}

/* Wide Image Panel */
.material-panels .image-panel.wide {
  grid-column: 1 / 7;
  grid-row: 3 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: -40px; /* Overlap effect */
}

.material-panels .image-panel.wide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: var(--transition-ease);
}

.material-panels .image-panel.wide:hover img {
  transform: scale(1.05);
}

/* Compact Accent Text Panel */
.material-panels .text-panel.compact {
  grid-column: 8 / 12;
  grid-row: 4 / 5;
  padding: 40px;
  background: var(--soft);
  border-left: 2px solid var(--accent);
  align-self: flex-start;
  margin-top: -20px;
}

.material-panels .text-panel.compact span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.material-panels .text-panel.compact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.material-panels .text-panel.compact p {
  margin: 0;
  font-size: 14px;
}

/* 5. Thread Reader Section (Interactive Dashboard Card) */
.thread-reader {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--grid-gap);
  padding: var(--section-gap) var(--side-padding);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.thread-reader h2 {
  margin-top: 12px;
}

.reader-board {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 40px;
  position: relative;
}

.reader-board::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed var(--line); /* Sewing stitch border */
  pointer-events: none;
}

.reader-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.reader-controls button {
  text-align: left;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.reader-controls button:hover {
  border-color: var(--accent);
}

.reader-controls button.is-active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

.reader-controls button.is-active::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.reader-output {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 38px);
  line-height: 1.3;
  color: var(--ink);
  min-height: 110px;
  border-top: 1px dashed var(--line);
  padding-top: 32px;
  z-index: 2;
}

/* Needle and Thread Gauge Scale */
.thread-scale {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  justify-content: center;
  border-left: 1px solid var(--line);
  height: 220px;
  margin-top: 10px;
  z-index: 2;
}

.thread-scale::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  border-left: 1px dashed var(--accent);
  opacity: 0.35;
}

.thread-scale span {
  position: absolute;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  top: 0;
}

/* Styled as a needle tip */
.thread-scale span::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 5px;
  width: 2px;
  height: 30px;
  background: var(--accent);
}

/* 6. Atelier Overlapping Strip */
.atelier-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--grid-gap);
  align-items: center;
  padding: var(--section-gap) var(--side-padding);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.atelier-strip img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  transition: var(--transition-ease);
}

.atelier-strip img:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.atelier-strip > div {
  padding: 56px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-soft);
  margin-left: -80px; /* Overlapping card */
  z-index: 2;
  position: relative;
}

/* 7. Stitched Ledger Section */
.finish-ledger {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--grid-gap);
  padding: var(--section-gap) var(--side-padding);
  border-bottom: 1px solid var(--line);
  background: #fefdfb;
}

.finish-ledger h2 {
  margin-top: 12px;
}

.finish-ledger img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: var(--r-sm);
  transition: var(--transition-ease);
}

.finish-ledger img:hover {
  transform: rotate(-1deg) scale(1.02);
}

.finish-ledger dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 0;
  border: 1px dashed var(--line);
  background: var(--surface);
}

.finish-ledger dl div {
  padding: 32px;
  border-right: 1px dashed var(--line);
}

.finish-ledger dl div:last-child {
  border-right: none;
}

.finish-ledger dt {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.finish-ledger dd {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 12px 0 0;
}

/* 8. Contact Section (Premium Dark Contrast Flow) */
.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--grid-gap);
  padding: var(--section-gap) var(--side-padding);
  background: var(--dark-bg);
  color: var(--dark-text);
  border-bottom: 1px solid var(--dark-line);
}

.contact h2 {
  color: var(--dark-text);
  margin-top: 12px;
}

.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}

.contact label:nth-child(3) {
  grid-column: 1 / -1;
}

.contact input, .contact textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--dark-line);
  padding: 14px 0;
  color: var(--dark-text);
  font-size: 15px;
  border-radius: 0;
  transition: var(--transition-fast);
}

.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact button {
  grid-column: 1 / -1;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  margin-top: 16px;
}

.contact button:hover {
  background: #a00d23;
  border-color: #a00d23;
}

.contact .status {
  grid-column: 1 / -1;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

/* 9. Site Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--side-padding);
  background: var(--dark-bg);
  color: rgba(252, 250, 247, 0.5);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.05em;
  border-top: 1px solid var(--dark-line);
}

.site-footer a {
  font-weight: 600;
  color: var(--dark-text);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==========================================================================
   PRODUCT PAGE SPECIFIC STYLES
   ========================================================================== */

/* 1. Technical Spec Sheet Main Area */
.spec-sheet {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px var(--side-padding) var(--section-gap);
}

/* Vertical Measuring Tape Index Navigation */
.thread-index {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.thread-index::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--accent);
  opacity: 0.35;
}

.thread-index a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: relative;
  padding-left: 4px;
}

.thread-index a::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--line);
  transition: var(--transition-fast);
}

.thread-index a:hover {
  color: var(--ink);
}

.thread-index a:hover::before {
  width: 14px;
  background: var(--accent);
}

.thread-index a.active {
  color: var(--accent);
  font-weight: 900;
}

.thread-index a.active::before {
  width: 18px;
  background: var(--accent);
  border-top: 1px solid var(--accent);
}

/* 2. Gallery Component */
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery [data-gallery-main] {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery figure:hover [data-gallery-main] {
  transform: scale(1.03);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.thumbs button {
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
  border-radius: var(--r-sm);
}

.thumbs button:hover {
  border-color: var(--accent);
}

.thumbs button[aria-selected="true"] {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  background: var(--accent-soft);
}

.thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* 3. Sticky Buy Panel */
.buy-panel {
  position: sticky;
  top: 120px;
  align-self: start;
  padding-left: 24px;
  border-left: 1px dashed var(--line);
}

.buy-panel .kicker {
  margin-bottom: 12px;
}

.buy-panel h1 {
  font-size: clamp(34px, 4vw, 54px);
  margin-bottom: 8px;
}

.edition {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.buy-panel p:not(.kicker):not(.edition) {
  font-size: 15px;
  color: var(--muted);
  margin-top: 20px;
}

.price {
  display: block;
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 28px 0;
}

.options {
  border: none;
  padding: 0;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options legend {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 8px;
}

.options-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.options button {
  padding: 10px 18px;
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: var(--transition-fast);
}

.options button:hover {
  border-color: var(--ink);
}

.options button[aria-pressed="true"],
.options button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Quantity Counter Component */
.quantity {
  display: grid;
  grid-template-columns: 1fr auto 48px auto;
  align-items: center;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 16px 0;
  margin: 28px 0;
}

.quantity span {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quantity button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--surface);
}

.quantity button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quantity output {
  font-family: var(--font-sans);
  font-weight: 700;
  text-align: center;
}

.buy-panel .button.primary {
  width: 100%;
}

/* 4. Specification Rows (Alternating Layout Grid) */
.sheet-row {
  padding: var(--section-gap) var(--side-padding);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.sheet-row h2 {
  max-width: 840px;
  margin-bottom: 24px;
}

.sheet-row span, .sheet-row p:not(.kicker) {
  display: block;
  max-width: 680px;
  font-size: 16px;
  color: var(--muted);
}

.fact-row {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: var(--grid-gap);
}

/* Fabric/Seam grids */
.band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-grid article {
  padding: 48px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.band-grid article:last-child {
  border-right: none;
}

.band-grid article h2 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

/* Image Spec rows */
.image-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: center;
  padding: var(--section-gap) var(--side-padding);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.image-spec.reverse {
  grid-template-columns: 1fr 1fr;
}

.image-spec img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
  transition: var(--transition-ease);
}

.image-spec img:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.01);
}

.image-spec > div {
  padding: 40px;
}

.sheet-row.narrow {
  padding-left: 20%;
  background: var(--bg);
}

.sheet-row.service {
  background: var(--soft);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.sheet-row.service p {
  margin: 0 auto;
  max-width: 600px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  line-height: 1.4;
}

/* 5. FAQ Section */
.faq-section {
  padding: var(--section-gap) var(--side-padding);
  max-width: 800px;
  margin: 0 auto;
}

.faq-section .kicker {
  text-align: center;
  display: block;
}

details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  transition: var(--transition-fast);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: var(--accent);
}

details[open] summary::after {
  content: '−';
  transform: translateY(-50%) rotate(180deg);
}

details p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Final Call To Action */
.final-panel {
  text-align: center;
  padding: var(--section-gap) var(--side-padding);
  background: #fdfbf7;
}

.final-panel h2 {
  margin-bottom: 32px;
}

/* Sticky Buy Button for Mobile */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--side-padding);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.sticky-buy span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
}

.sticky-buy button {
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive Refinements Gate)
   ========================================================================== */

@media (max-width: 1024px) {
  .selvage-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  
  .rail-copy {
    padding-right: 0;
    order: 2;
  }
  
  .rail-actions {
    justify-content: center;
  }
  
  .hero-image {
    order: 1;
    max-width: min(720px, 88vw);
    margin: 0 auto;
  }
  
  .material-panels .text-panel:first-of-type {
    grid-column: 1 / 13;
    grid-row: auto;
    padding: 40px;
  }
  
  .material-panels .image-panel.tall {
    grid-column: 1 / 7;
    grid-row: auto;
  }
  
  .material-panels .image-panel.wide {
    grid-column: 7 / 13;
    grid-row: auto;
    margin-top: 0;
  }
  
  .material-panels .text-panel.compact {
    grid-column: 1 / 13;
    grid-row: auto;
    margin-top: 0;
  }
  
  .spec-sheet {
    grid-template-columns: 1fr;
  }
  
  .thread-index {
    display: none;
  }
  
  .buy-panel {
    border-left: none;
    padding-left: 0;
    margin-top: 40px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    top: 96px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    display: none;
    z-index: 99;
  }
  
  body.nav-open .site-nav {
    display: flex;
  }
  
  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }
  
  .site-nav a:last-child {
    border-bottom: none;
  }
  
  .thread-reader, .atelier-strip, .finish-ledger, .contact, .image-spec, .image-spec.reverse {
    grid-template-columns: 1fr;
  }
  
  .atelier-strip > div {
    margin-left: 0;
    margin-top: -40px;
    padding: 32px;
  }
  
  .fact-row {
    grid-template-columns: 1fr;
  }
  
  .band-grid {
    grid-template-columns: 1fr;
  }
  
  .band-grid article {
    border-right: none;
    border-bottom: 1px solid var(--line);
    min-height: 200px;
    gap: 20px;
  }
  
  .band-grid article:last-child {
    border-bottom: none;
  }
  
  body[data-page="product"] {
    padding-bottom: 80px;
  }
  
  .sticky-buy {
    display: flex;
  }
  
  .finish-ledger dl {
    grid-template-columns: 1fr;
  }
  
  .finish-ledger dl div {
    border-right: none;
    border-bottom: 1px dashed var(--line);
  }
  
  .finish-ledger dl div:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .contact form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .button {
    width: 100%;
  }
  
  .rail-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .selvage-rail {
    grid-template-columns: 1fr 1fr;
  }
  
  .selvage-rail span {
    border-bottom: 1px solid var(--line);
  }
  
  .selvage-rail span:nth-child(even) {
    border-right: none;
  }
  
  .selvage-rail span:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .reader-board {
    padding: 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .thread-scale {
    grid-column: 1;
    grid-row: auto;
    height: 12px;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 0;
    margin: 10px 0;
    display: flex;
    align-items: center;
  }
  
  .thread-scale::after {
    border-left: none;
    border-top: 1px dashed var(--accent);
    width: 100%;
    height: 1px;
    top: 5px;
    left: 0;
  }
  
  .thread-scale span {
    top: -6px;
    left: 0;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .thread-scale span::before {
    display: none;
  }
  
  .sheet-row.narrow {
    padding-left: var(--side-padding);
  }
}

/* Fontshare typography differentiation */
:root {
  --font-heading: "Gambetta", "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", serif;
  --font-body: "General Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-accent: "General Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
body {
  font-family: var(--font-body);
}
h1,
h2,
h3,
.hero-title,
.product-title,
.section-title,
.brand-mark,
.mark,
.logo,
.site-logo {
  font-family: var(--font-heading);
  font-weight: 500;
}
.eyebrow,
.section-kicker,
.notice,
.announce,
.nav,
.primary-nav,
.button,
.text-link,
.manual-link,
.price,
figcaption,
[data-option],
.gallery-controls button {
  font-family: var(--font-accent);
}
.brand-mark,
.mark,
.logo,
.site-logo {
  letter-spacing: 0.08em;
}
/* silk-lipid skincare: high-contrast editorial heading with neutral body */
