/* KUROLINE — base */
:root {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --row: #141414;
  --row-hover: #1a1a1a;
  --text: #FFFFFF;
  --text-dim: #C8C8C8;
  --text-mute: #6b6b6b;
  --cyan: #00C8FF;
  --cyan-dim: #007a9c;
  --line: #1f1f1f;
  --line-bright: rgba(0, 200, 255, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: #000; }

.display { font-family: 'Barlow Condensed', 'Helvetica Neue', Impact, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); }
.label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* layout */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.section { padding: 120px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.hairline { height: 1px; background: var(--line); width: 100%; }
.hairline--cyan { background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent); opacity: 0.5; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 48px; max-width: 1440px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-brand .wordmark { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 0.04em; font-style: italic; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); transition: color 0.2s; position: relative; padding: 4px 0; }
.nav-link:hover { color: var(--cyan); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--cyan); }

.nav-cta {
  border: 1px solid var(--cyan); color: var(--cyan);
  padding: 8px 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--cyan); color: #000; }

/* hero */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: 80px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.12), transparent 60%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-size: clamp(60px, 8vw, 128px); margin-bottom: 24px; }
.hero h1 .accent { color: var(--cyan); }
.hero .tagline { font-size: 18px; color: var(--text-dim); max-width: 480px; margin-bottom: 48px; line-height: 1.5; }
.hero-stats { display: flex; gap: 48px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stat .num { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 36px; color: var(--text); }
.hero-stat .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-top: 4px; }

.hero-cta-row { display: flex; gap: 16px; }
.btn-primary {
  background: var(--cyan); color: #000;
  padding: 16px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
  border: 1px solid var(--cyan);
}
.btn-primary:hover { background: #34d6ff; box-shadow: 0 0 24px rgba(0, 200, 255, 0.4); }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 16px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid #2a2a2a;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-logo-frame {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-frame img { width: 75%; height: auto; filter: drop-shadow(0 0 60px rgba(255, 60, 180, 0.25)) drop-shadow(0 0 20px rgba(0, 200, 255, 0.3)); }
.hero-logo-frame::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 200, 255, 0.02), transparent 50%);
}

/* hero photo (track shot) */
.hero-photo {
  position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; margin-left: auto;
  background: linear-gradient(180deg, #0c0c0c, #050505);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 25% 50%;
  filter: contrast(1.05) saturate(1.05);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.0) 50%, rgba(10,10,10,0.4) 100%),
    radial-gradient(circle at center, transparent 40%, rgba(10,10,10,0.25));
  pointer-events: none;
}
.hero-photo-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  color: var(--text); background: rgba(10,10,10,0.7); backdrop-filter: blur(8px);
  padding: 8px 12px; border: 1px solid var(--line-bright);
  text-transform: uppercase;
}
.hero-photo-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2s ease-in-out infinite; }
.corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--cyan); }
.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.frame-coords { position: absolute; top: -22px; left: 0; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--text-mute); }
.frame-coords-r { position: absolute; top: -22px; right: 0; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--cyan); }

/* section header */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 48px; }
.section-head h2 { font-size: clamp(40px, 5vw, 72px); max-width: 800px; }
.section-head .meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); text-align: right; flex-shrink: 0; }

/* products grid */
.products-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.product-card {
  position: relative; background: var(--row);
  border: 1px solid var(--line);
  transition: all 0.3s; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--line-bright); }
.product-card:hover .product-arrow { color: var(--cyan); transform: translate(4px, -4px); }
.product-card:hover .product-photo img { transform: scale(1.04); }
.product-card.col-6 { grid-column: span 6; }
.product-card.col-4 { grid-column: span 4; }
.product-card.col-8 { grid-column: span 8; }

.product-photo {
  position: relative; aspect-ratio: 16 / 10;
  overflow: hidden; background: #0e0e0e;
  border-bottom: 1px solid var(--line);
}
.product-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
  filter: contrast(1.05);
}
.product-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.55));
  pointer-events: none;
}
.product-photo .corner { z-index: 2; width: 12px; height: 12px; border-color: rgba(0, 200, 255, 0.6); }

.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.product-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.product-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--text-mute); }
.product-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; margin-top: 8px; }
.product-desc { color: var(--text-dim); font-size: 13px; max-width: 380px; }
.product-arrow { font-size: 20px; color: var(--text-mute); transition: all 0.3s; flex-shrink: 0; }
.product-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.product-from { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--cyan); letter-spacing: 0.12em; }
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.product-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: var(--text-mute); border: 1px solid var(--line); padding: 3px 7px; }

/* price table */
.price-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.price-tab {
  padding: 18px 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 12px;
}
.price-tab:hover { color: var(--text-dim); }
.price-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.price-tab .count { font-size: 9px; color: var(--text-mute); }
.price-tab.active .count { color: var(--cyan); opacity: 0.7; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  text-align: left; padding: 20px 16px; padding-left: 0;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.price-table thead th:last-child { text-align: right; padding-right: 0; }
.price-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.15s; }
.price-table tbody tr:hover { background: var(--row); }
.price-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.price-table tbody tr:nth-child(even):hover { background: var(--row); }
.price-table td { padding: 22px 16px; padding-left: 0; vertical-align: middle; font-size: 14px; }
.price-table td.product { color: var(--text); font-weight: 500; }
.price-table td.variant { color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.price-table td.price { text-align: right; padding-right: 0; font-family: 'JetBrains Mono', monospace; font-size: 16px; color: var(--cyan); font-weight: 500; letter-spacing: 0.02em; }
.price-table td.price .ccy { color: var(--text-mute); font-size: 11px; margin-right: 4px; font-weight: 400; }

.addon { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(0, 200, 255, 0.08); border: 1px solid rgba(0, 200, 255, 0.2); font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase; }

/* configurator */
.config { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.config-form .row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.config-form .row:first-child { padding-top: 0; }
.config-form .row-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.config-form .row-label .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.config-form .row-label .step { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 10px 16px;
  background: transparent; border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.opt:hover { border-color: #3a3a3a; color: var(--text); }
.opt.active { border-color: var(--cyan); color: var(--cyan); background: rgba(0,200,255,0.05); }
.opt .swatch-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); }
.opt .px { font-size: 10px; color: var(--text-mute); margin-left: 6px; }

.qty-row { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 36px; height: 36px; border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace; font-size: 16px; color: var(--text-dim);
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.qty-val {
  font-family: 'JetBrains Mono', monospace; font-size: 18px;
  min-width: 48px; text-align: center;
}

.config-preview {
  position: sticky; top: 100px; align-self: start;
  background: var(--row); border: 1px solid var(--line); padding: 40px;
  min-height: 600px;
  display: flex; flex-direction: column;
}
.config-preview-vis {
  flex: 1; min-height: 280px;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,0.02) 12px 13px),
    linear-gradient(180deg, #0e0e0e, #050505);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.sticker-substrate {
  width: 80%; max-width: 360px; aspect-ratio: 1.4 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 60px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}
.sticker-preview {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 48px; text-transform: uppercase; font-style: italic;
  letter-spacing: -0.02em;
  transition: all 0.3s;
  line-height: 1;
}
.sticker-preview-stack {
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.sticker-layered {
  position: relative;
  width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.sticker-layered > span {
  font-family: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* print-reality note (white = substrate) */
.print-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid rgba(0, 200, 255, 0.25);
  background: rgba(0, 200, 255, 0.06);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); line-height: 1.5;
}
.print-note-icon {
  width: 16px; height: 16px; min-width: 16px;
  border: 1px solid var(--cyan); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600;
  margin-top: 1px;
}

.custom-color-input {
  width: 100%; margin-top: 12px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--text); letter-spacing: 0.04em;
  transition: border-color 0.15s;
}
.custom-color-input:focus { outline: none; border-color: var(--cyan); }
.custom-color-input::placeholder { color: var(--text-mute); }

/* brand input */
.brand-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
  resize: vertical;
  min-height: 64px;
  transition: border-color 0.15s;
  line-height: 1.5;
}
.brand-input::placeholder { color: var(--text-mute); letter-spacing: 0.04em; }
.brand-input:focus { outline: none; border-color: var(--cyan); }
.brand-hint {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.brand-hint span:last-child { text-transform: none; letter-spacing: 0.02em; max-width: 280px; text-align: right; }

.config-summary { display: flex; flex-direction: column; gap: 12px; }
.config-summary .line { display: flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); }
.config-summary .line .val { color: var(--text); }
.config-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; margin-top: 12px; border-top: 1px solid var(--line); }
.config-summary .total .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.config-summary .total .price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 48px; color: var(--cyan); line-height: 1; }
.config-summary .total .price .ccy { font-size: 16px; color: var(--text-mute); margin-right: 8px; vertical-align: 6px; }

/* shipping calc */
.ship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ship-card { background: var(--row); border: 1px solid var(--line); padding: 40px; position: relative; }
.ship-card h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 28px; text-transform: uppercase; margin-bottom: 4px; }
.ship-card .sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--text-mute); margin-bottom: 32px; text-transform: uppercase; }

.ship-input { display: flex; gap: 12px; margin-bottom: 24px; }
.region-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--line); }
.region-tab {
  flex: 1; padding: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-mute);
  transition: all 0.15s;
}
.region-tab.active { background: var(--cyan); color: #000; }
.region-tab:not(.active):hover { color: var(--text); background: rgba(255,255,255,0.03); }

.amount-input { flex: 1; position: relative; }
.amount-input input {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  padding: 16px; padding-left: 48px;
  font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--text);
  transition: border-color 0.15s;
}
.amount-input input:focus { outline: none; border-color: var(--cyan); }
.amount-input .ccy {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  color: var(--text-mute);
}

.ship-breakdown { display: flex; flex-direction: column; gap: 0; }
.ship-line { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ship-line:last-child { border-bottom: none; }
.ship-line .lbl { color: var(--text-dim); }
.ship-line .val { color: var(--text); }
.ship-line.discount .val { color: var(--cyan); }
.ship-line.muted .lbl, .ship-line.muted .val { color: var(--text-mute); }
.ship-total { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--cyan); display: flex; justify-content: space-between; align-items: baseline; }
.ship-total .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.ship-total .val { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 40px; color: var(--cyan); line-height: 1; }
.ship-total .val .ccy { font-size: 14px; color: var(--text-mute); margin-right: 6px; vertical-align: 4px; }

/* spec checklist */
.spec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.spec-card { background: var(--row); border: 1px solid var(--line); padding: 36px; position: relative; display: flex; flex-direction: column; }
.spec-card--primary { background: linear-gradient(180deg, #161616, var(--row)); border-color: rgba(0, 200, 255, 0.18); }
.spec-card--primary::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent 70%); }
.spec-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.spec-card h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: -0.005em; display: flex; align-items: center; gap: 14px; }
.spec-card h4 .ic { width: 8px; height: 8px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.spec-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--text-mute); text-transform: uppercase; }
.spec-list { list-style: none; flex: 1; }
.spec-list li {
  padding: 16px 0; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: baseline;
  font-size: 13px; color: var(--text-dim);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list li .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--cyan); letter-spacing: 0.1em; }
.spec-list li strong { color: var(--text); font-weight: 500; font-size: 15px; display: block; }
.spec-list li .hint { display: block; margin-top: 4px; color: var(--text-dim); font-size: 13px; }
.spec-aside { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

/* about strip */
.philosophy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.philosophy .pillar { padding: 64px 40px; border-right: 1px solid var(--line); position: relative; }
.philosophy .pillar:last-child { border-right: none; }
.philosophy .pillar .num { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--cyan); margin-bottom: 24px; }
.philosophy .pillar h3 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 40px; text-transform: uppercase; line-height: 0.95; margin-bottom: 16px; }
.philosophy .pillar p { color: var(--text-dim); font-size: 14px; max-width: 320px; }

/* mark study */
.mark-study { padding: 120px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.mark-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.mark-meta .mark-specs { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.mark-spec { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; }
.mark-spec .lbl { color: var(--text-mute); text-transform: uppercase; }
.mark-spec .val { color: var(--cyan); }

.mark-vis {
  position: relative; aspect-ratio: 1.3 / 1; width: 100%;
  background: linear-gradient(180deg, #0c0c0c, #050505);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mark-vis--photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.08); }
.mark-vis--photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10,10,10,0.4));
  pointer-events: none;
}
.mark-tag { position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--cyan); z-index: 2; background: rgba(10,10,10,0.6); padding: 4px 8px; backdrop-filter: blur(8px); }
.mark-tag--tl { top: 14px; left: 16px; }
.mark-tag--br { bottom: 14px; right: 16px; color: var(--text-dim); }

/* gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  grid-auto-rows: 220px;
}
.gallery-cell { position: relative; overflow: hidden; border: 1px solid var(--line); background: #0e0e0e; }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.4s ease; filter: grayscale(0.15) contrast(1.05); }
.gallery-cell:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.1) saturate(1.1); }
.gallery-cell:hover { border-color: var(--line-bright); }
.gallery-cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.7));
  pointer-events: none;
}
.gallery-cell figcaption {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
}
.gallery-tag { font-size: 10px; letter-spacing: 0.18em; color: var(--cyan); }
.gallery-label { font-size: 11px; letter-spacing: 0.12em; color: var(--text); }
.gallery-cell .corner { z-index: 3; width: 10px; height: 10px; border-color: var(--cyan); opacity: 0.6; }

/* mosaic spans */
.gallery-cell--0 { grid-column: span 3; grid-row: span 2; }
.gallery-cell--1 { grid-column: span 3; grid-row: span 1; }
.gallery-cell--2 { grid-column: span 2; grid-row: span 1; }
.gallery-cell--3 { grid-column: span 1; grid-row: span 1; }
.gallery-cell--4 { grid-column: span 3; grid-row: span 1; }
.gallery-cell--5 { grid-column: span 3; grid-row: span 1; }

/* configurator preview gets a logo watermark */
.config-preview-vis::after {
  content: ''; position: absolute; inset: 0;
  background-image: url('assets/kuroline-logo.png');
  background-repeat: no-repeat; background-position: center;
  background-size: 45%;
  opacity: 0.06; filter: grayscale(1) brightness(2);
  pointer-events: none;
}

@media (max-width: 980px) {
  .mark-grid { grid-template-columns: 1fr; gap: 48px; }
}
.footer { padding: 80px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-col h5 { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 13px; transition: color 0.15s; }
.footer-col a:hover { color: var(--cyan); }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; object-fit: contain; }
.footer-brand .blurb { color: var(--text-dim); font-size: 13px; max-width: 320px; margin-top: 8px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--text-mute); text-transform: uppercase; }

/* order modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-bright);
  width: 100%; max-width: 640px;
  max-height: 92vh; overflow-y: auto;
  padding: 48px;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal::before, .modal::after {
  content: ''; position: absolute; width: 16px; height: 16px; border: 1px solid var(--cyan);
}
.modal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  font-size: 24px; color: var(--text-mute);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { color: var(--cyan); border-color: var(--cyan); }

.modal-head { margin-bottom: 32px; }
.modal-head .eyebrow { margin-bottom: 12px; display: inline-block; }
.modal-head h3 { font-size: clamp(28px, 4vw, 40px); line-height: 0.95; }

.modal-summary {
  background: var(--row); border: 1px solid var(--line);
  padding: 24px; margin-bottom: 32px;
}
.modal-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.modal-summary-grid > div { display: flex; flex-direction: column; gap: 4px; }
.modal-summary-grid span { color: var(--text-mute); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.modal-summary-grid strong { color: var(--text); font-weight: 500; font-size: 13px; }
.modal-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
}
.modal-summary-total span { color: var(--text-mute); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.modal-summary-total strong { color: var(--cyan); font-size: 22px; font-weight: 600; }

.modal-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 32px;
}
.field--full { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
}
.field-input {
  background: var(--row); border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  transition: border-color 0.15s;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.field-input:focus { outline: none; border-color: var(--cyan); }
.field-input::placeholder { color: var(--text-mute); }
textarea.field-input { resize: vertical; min-height: 100px; line-height: 1.5; }

.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.modal-foot .btn-primary[disabled] { opacity: 0.4; cursor: not-allowed; }
.modal-foot-note {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute);
  text-align: right; max-width: 280px;
}
.modal-success { padding: 32px 0; text-align: center; }
.modal-success p { margin: 0 auto 32px; }

/* file dropzone */
.dropzone {
  border: 1px dashed var(--line);
  background: var(--row);
  padding: 24px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
}
.dropzone:hover, .dropzone--over { border-color: var(--cyan); background: rgba(0, 200, 255, 0.04); }
.dropzone--error { border-color: #ff5a5a; }
.dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.dropzone-icon {
  width: 28px; height: 28px; border: 1px solid var(--cyan); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  margin-bottom: 4px;
}
.dropzone-text { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-dim); letter-spacing: 0.04em; }
.dropzone-text strong { color: var(--text); font-weight: 500; }
.dropzone-hint { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-mute); letter-spacing: 0.14em; text-transform: uppercase; }

.filelist { list-style: none; margin-top: 12px; padding: 0; }
.filelist-item {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--row);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.filelist-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist-size { color: var(--text-mute); font-size: 10px; letter-spacing: 0.14em; }
.filelist-remove {
  width: 22px; height: 22px; border: 1px solid var(--line); color: var(--text-mute);
  font-size: 16px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.filelist-remove:hover { color: var(--cyan); border-color: var(--cyan); }
.filelist-total {
  display: flex; justify-content: space-between;
  padding: 8px 12px; margin-top: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute);
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .modal { padding: 32px 24px; }
  .modal-fields { grid-template-columns: 1fr; }
  .field--full { grid-column: span 1; }
  .modal-summary-grid { grid-template-columns: 1fr; }
}
.fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; transform: translateY(20px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* scroll-triggered reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal .eyebrow { position: relative; display: inline-block; }
.reveal .eyebrow::after {
  content: ''; position: absolute; left: 0; bottom: -8px; height: 1px; width: 0;
  background: var(--cyan);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.reveal.is-visible .eyebrow::after { width: 48px; }

.stagger { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease var(--stagger-delay, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--stagger-delay, 0ms); }
.stagger.is-visible { opacity: 1; transform: translateY(0); }

/* hero photo gets a baseline transform so JS parallax can layer */
.hero-photo img { will-change: transform; transition: filter 0.4s ease; }

/* hairline cyan section divider that draws in on view */
.hairline-draw { position: relative; height: 1px; background: var(--line); overflow: hidden; }
.hairline-draw::after {
  content: ''; position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hairline-draw.is-visible::after { width: 100%; }

@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .nav-inner { padding: 12px 24px; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-logo-frame, .hero-photo { max-width: 460px; margin: 0 auto; }
  .product-card.col-6, .product-card.col-4, .product-card.col-8 { grid-column: span 12; }
  .config, .ship-grid, .spec-grid { grid-template-columns: 1fr; gap: 32px; }
  .philosophy { grid-template-columns: 1fr; }
  .philosophy .pillar { border-right: none; border-bottom: 1px solid var(--line); padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .meta { text-align: left; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-cell--0, .gallery-cell--1, .gallery-cell--2, .gallery-cell--3, .gallery-cell--4, .gallery-cell--5 { grid-column: span 1; grid-row: span 1; }
  .gallery-cell--0 { grid-column: span 2; }
  .mark-grid { grid-template-columns: 1fr; gap: 32px; }
  .mark-study { padding: 80px 0; }
  .config-preview { position: static; padding: 24px; }
}

/* PHONE — < 640px */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  body { font-size: 14px; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 12px 18px; }
  .nav-brand .wordmark { font-size: 16px; }
  .nav-cta { padding: 6px 12px; font-size: 10px; }

  .section { padding: 64px 0; }

  /* Hero */
  .hero { padding-top: 80px; min-height: auto; }
  .hero h1 { font-size: clamp(44px, 12vw, 72px); }
  .hero .tagline { font-size: 15px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { justify-content: center; padding: 14px 20px; font-size: 11px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; padding-top: 24px; }
  .hero-stat .num { font-size: 28px; }
  .hero-photo { max-width: 100%; aspect-ratio: 16 / 11; }

  /* Section heads */
  .section-head { margin-bottom: 40px; gap: 12px; }
  .section-head h2 { font-size: clamp(32px, 8vw, 48px); }
  .section-head .meta { font-size: 10px; }

  /* Philosophy */
  .philosophy .pillar { padding: 40px 20px; }
  .philosophy .pillar h3 { font-size: 32px; }

  /* Mark study */
  .mark-meta h2 { font-size: clamp(30px, 8vw, 44px) !important; }

  /* Product cards */
  .product-body { padding: 20px; }
  .product-title { font-size: 26px; }
  .product-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-tags { justify-content: flex-start; }

  /* Pricing — make tabs horizontal-scrollable rather than wrapping ugly */
  .price-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 0 18px;
  }
  .price-tabs::-webkit-scrollbar { display: none; }
  .price-tab { padding: 14px 16px; font-size: 10px; flex-shrink: 0; white-space: nowrap; }
  .price-tab .count { font-size: 8px; }
  /* Price table → card list on mobile */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:nth-child(even) { background: transparent; }
  .price-table tbody tr:nth-child(even):hover { background: transparent; }
  .price-table td { padding: 4px 0; text-align: left !important; }
  .price-table td.product { font-size: 16px; padding-bottom: 4px; }
  .price-table td.variant { font-size: 12px; color: var(--text-mute); }
  .price-table td.price { font-size: 18px; padding-top: 8px; }

  /* Configurator */
  .config-preview-vis { min-height: 220px; }
  .sticker-substrate { width: 90%; padding: 16px; }
  .opts { gap: 6px; }
  .opt { padding: 8px 12px; font-size: 10px; }
  .opt .px { font-size: 9px; }
  .row { padding: 18px 0; }
  .config-summary .total .price { font-size: 36px; }
  .qty-row { flex-wrap: wrap; }

  /* Shipping */
  .ship-card { padding: 24px; }
  .ship-card h3 { font-size: 22px; }
  .region-tab { padding: 12px 8px; font-size: 10px; }
  .ship-total .val { font-size: 32px; }
  .amount-input input { font-size: 16px; padding: 14px; padding-left: 56px; }

  /* Custom spec rules — stack from grid */
  .spec-card { padding: 24px; }
  .spec-card h4 { font-size: 22px; }

  /* Rule rows in shipping */
  .section [style*="grid-template-columns: 40px 160px 1fr"] {
    grid-template-columns: 40px 1fr !important;
    gap: 8px !important;
  }
  .section [style*="grid-template-columns: 40px 160px 1fr"] > :nth-child(2) {
    grid-column: 2;
  }
  .section [style*="grid-template-columns: 40px 160px 1fr"] > :nth-child(3) {
    grid-column: 1 / span 2;
    padding-left: 56px;
  }

  /* CTA strip below spec cards */
  .section [style*="justifyContent: space-between"][style*="flexWrap: wrap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Modal */
  .modal { padding: 28px 20px; max-height: 100vh; max-height: 100dvh; }
  .modal-head h3 { font-size: 28px; }
  .modal-summary { padding: 18px; }
  .modal-summary-grid { grid-template-columns: 1fr; gap: 12px; }
  .modal-foot { flex-direction: column; align-items: stretch; }
  .modal-foot .btn-primary { justify-content: center; }
  .modal-foot-note { text-align: left; max-width: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
