/* ══════════════════════════════════════════
   Design Tokens — Light
   ══════════════════════════════════════════ */

:root {
  --bg:         #f8f6f2;
  --surface:    #ffffff;
  --surface-2:  #f2efeb;
  --surface-3:  #eae6e0;
  --border:     rgba(28, 24, 20, 0.08);
  --border-h:   rgba(28, 24, 20, 0.15);
  --text:       #1a1816;
  --text-2:     #5c554d;
  --text-3:     #9a928a;
  --accent:     #b06330;
  --accent-hover: #c4722e;
  --accent-dim: rgba(176, 99, 48, 0.08);
  --accent-soft: rgba(176, 99, 48, 0.14);
  --heading:    #1a1816;

  --font-display: "DM Serif Display", "Noto Serif SC", serif;
  --font-body:    "Inter", "Noto Serif SC", sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur:       300ms;

  --shadow-sm:  0 1px 3px rgba(28, 24, 20, 0.04), 0 1px 2px rgba(28, 24, 20, 0.03);
  --shadow:     0 4px 16px rgba(28, 24, 20, 0.06), 0 1px 4px rgba(28, 24, 20, 0.04);
  --shadow-lg:  0 12px 40px rgba(28, 24, 20, 0.10), 0 4px 12px rgba(28, 24, 20, 0.05);
}

/* ══════════════════════════════════════════
   Reset
   ══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }

button {
  font: inherit; color: inherit;
  background: none; border: none; cursor: pointer;
}

/* subtle warm texture */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.018;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ══════════════════════════════════════════
   Layout
   ══════════════════════════════════════════ */

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */

.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.header.scrolled {
  background: rgba(248, 246, 242, 0.88);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin-inline: auto;
  padding: 18px 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-h);
  border-radius: 10px;
  font-family: var(--font-display); font-size: 18px;
  color: var(--accent);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.logo:hover .logo-mark { background: var(--accent-dim); border-color: var(--accent); }

.logo-text {
  font-size: 13px; letter-spacing: 0.22em; font-weight: 600; color: var(--text-2);
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--text-2);
  border-radius: var(--radius-xs);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav a:hover { color: var(--text); background: rgba(28, 24, 20, 0.04); }

.nav-cta {
  margin-left: 6px;
  border: 1px solid var(--border-h) !important;
  border-radius: 100px !important;
  padding: 7px 20px !important;
}

.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-2);
  transition: transform var(--dur) var(--ease);
}

/* ══════════════════════════════════════════
   Hero
   ══════════════════════════════════════════ */

.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: var(--space-2xl) 0 var(--space-xl);
  position: relative; overflow: hidden;
}

/* warm ambient glow */
.hero::before {
  content: ""; position: absolute;
  width: 700px; height: 700px; top: -15%; right: -10%;
  background: radial-gradient(circle, rgba(176, 99, 48, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: ""; position: absolute;
  width: 500px; height: 500px; bottom: 5%; left: -8%;
  background: radial-gradient(circle, rgba(176, 99, 48, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl); align-items: center;
  width: min(1120px, 100% - 48px); margin-inline: auto;
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; box-shadow: var(--shadow-sm);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: var(--space-md); width: fit-content;
}

.tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 8px;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.hero-desc {
  max-width: 540px;
  color: var(--text-2); font-size: 15px; line-height: 2;
  margin-bottom: 6px;
}

.hero-desc + .hero-desc { margin-top: 0; }

.hero-desc-list {
  list-style: none; padding: 0; margin: 0;
  max-width: 540px;
}

.hero-desc-list li {
  position: relative; padding-left: 16px;
  color: var(--text-2); font-size: 15px; line-height: 2;
  margin-bottom: 6px;
}

.hero-desc-list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.hero-actions { display: flex; gap: 14px; margin-top: var(--space-lg); }

/* hero about card */
.hero-about-card {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hac-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
  margin-bottom: 14px;
}

.hac-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.hac-tags span {
  padding: 7px 16px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--bg);
}

.hac-divider {
  height: 1px; background: var(--border);
  margin: var(--space-md) 0;
}

.hac-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.8;
}

.hero-scroll-hint {
  position: absolute; bottom: var(--space-lg);
  left: 50%; transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  40%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60%  { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; border-radius: 100px;
  transition: all var(--dur) var(--ease); cursor: pointer;
}

.btn-fill {
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}

.btn-fill:hover {
  background: var(--accent-hover); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176, 99, 48, 0.22);
}

.btn-fill svg { transition: transform var(--dur) var(--ease); }
.btn-fill:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border-h);
}

.btn-ghost:hover {
  color: var(--text); border-color: var(--text-3);
  background: var(--surface); transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════
   Shared Section Styles
   ══════════════════════════════════════════ */

.sec-original,
.sec-brand,
.sec-author,
.sec-life,
.sec-about,
.sec-contact {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.role-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(176, 99, 48, 0.16);
  border-radius: 100px;
  font-size: 12px; font-weight: 500; color: var(--accent);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-lg);
}

/* Section Heading — chapter header block */
.sec-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.sh-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* legacy sec-label kept for compatibility */
.sec-label {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: var(--space-lg);
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500;
}

.label-num {
  color: var(--accent); font-family: var(--font-display); font-size: 14px;
}

.label-line { width: 40px; height: 1px; background: var(--border-h); }

/* ══════════════════════════════════════════
   Subsection
   ══════════════════════════════════════════ */

.subsec { margin-bottom: var(--space-xl); }
.subsec:last-child { margin-bottom: 0; }

.subsec-title {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--text-2);
  letter-spacing: 0.04em;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

/* ══════════════════════════════════════════
   1 — Original: Overview
   ══════════════════════════════════════════ */

.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.overview-question {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--heading); line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.overview-desc {
  color: var(--text-2); line-height: 1.9;
}

.overview-desc strong { color: var(--accent); font-weight: 500; }

.category-cards { display: grid; gap: 12px; }

.cat-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cat-card:hover {
  border-color: var(--border-h); transform: translateX(4px);
  box-shadow: var(--shadow);
}

.cat-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.cat-card strong {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--heading); margin-bottom: 4px;
}

.cat-card p { font-size: 13px; color: var(--text); line-height: 1.6; }
.cat-examples { font-style: italic; opacity: 0.8; margin-top: 6px; font-size: 12px !important; color: var(--text-2) !important; }

/* ══════════════════════════════════════════
   Works Trio (shared with Author)
   ══════════════════════════════════════════ */

.works-trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.works-quad {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.work-card {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}

.work-card:hover {
  border-color: var(--border-h); transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.wc-num {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--accent);
  opacity: 0.3; margin-bottom: var(--space-xs);
}

.meta {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}

.work-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem; line-height: 1.25;
  color: var(--heading); margin-bottom: 12px;
}

.wc-excerpt { font-size: 13px; color: var(--text-3); flex: 1; }

.wc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--space-sm); padding: 8px 0;
  font-size: 13px; font-weight: 500; color: var(--accent);
  text-decoration: none;
  transition: gap var(--dur) var(--ease);
}

.wc-btn:hover { gap: 12px; }

/* ══════════════════════════════════════════
   1 — Original: Series
   ══════════════════════════════════════════ */

.series-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.series-cards .sc-body {
  flex: 1;
}

.series-cards .sc-img {
  margin-top: auto;
}

.brand-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: start;
}

.brand-cards .series-card {
  display: flex; flex-direction: column;
}

.series-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.series-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.sc-img {
  width: 100%; display: block;
}

.sc-body {
  padding: var(--space-md);
}

.sc-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--heading);
  margin-bottom: 8px; line-height: 1.4;
}

.sc-body p { font-size: 13px; color: var(--text-2); line-height: 1.7; }

.sc-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--accent-dim); color: var(--accent);
  margin-bottom: 10px;
}

.sc-title-quote {
  font-family: var(--font-display); font-size: 14px !important;
  color: var(--heading) !important; font-weight: 500;
  margin-bottom: 8px;
}

/* ══════════════════════════════════════════
   2 — Brand: Method
   ══════════════════════════════════════════ */

.brand-method {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: start;
  margin-bottom: var(--space-lg);
}

.method-step {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.method-step:hover { border-color: var(--border-h); box-shadow: var(--shadow); }

.ms-num {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--accent); opacity: 0.45;
  margin-bottom: 12px;
}

.method-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--heading); margin-bottom: 10px;
}

.method-step p { font-size: 13px; color: var(--text-2); line-height: 1.8; }

.method-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; color: var(--text-3); padding-top: 60px;
}

.client-types {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ct-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; margin-bottom: var(--space-sm);
}

.ct-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.ct-tags span {
  padding: 8px 18px; font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 100px;
  background: var(--bg);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.ct-tags span:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}

/* ══════════════════════════════════════════
   2 — Brand: Cases
   ══════════════════════════════════════════ */

.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}

.case-card:hover {
  border-color: var(--border-h); transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.cc-tag {
  display: inline-block; width: fit-content;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px;
}

.case-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem; line-height: 1.25;
  color: var(--heading); margin-bottom: 12px;
}

.case-card > p { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1; }

/* ══════════════════════════════════════════
   3 — Author: Role Analysis
   ══════════════════════════════════════════ */

.role-analysis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ra-card {
  padding: var(--space-md);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.ra-card:hover {
  border-color: var(--border-h); transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ra-icon {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.ra-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--heading); margin-bottom: 10px;
}

.ra-card p { font-size: 13px; color: var(--text-2); line-height: 1.8; }

/* ══════════════════════════════════════════
   4 — Life
   ══════════════════════════════════════════ */

.life-desc {
  color: var(--text-2); line-height: 1.9;
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.life-block {
  margin-bottom: var(--space-md);
}

.life-block-desc {
  color: var(--text-2); line-height: 1.8; font-size: 15px;
  margin-bottom: var(--space-sm);
}

.life-block-link {
  margin-bottom: var(--space-md);
}

.life-block-link a {
  color: var(--accent); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid rgba(176, 99, 48, 0.3);
  transition: border-color var(--dur) var(--ease);
}

.life-block-link a:hover {
  border-color: var(--accent);
}

.life-imgs-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.life-imgs-single {
  grid-template-columns: 1fr; max-width: 50%;
}

.life-img {
  width: 100%; display: block; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}

/* About section removed — content now in hero */

/* ══════════════════════════════════════════
   Contact
   ══════════════════════════════════════════ */

.contact-inner {
  max-width: 640px; margin-inline: auto; text-align: center;
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--heading); margin-bottom: 12px;
}

.contact-inner > p { color: var(--text-2); margin-bottom: var(--space-lg); }

.contact-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.c-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--space-md);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.c-link:hover {
  border-color: rgba(176, 99, 48, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.c-link-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3);
}

.c-link-value { font-size: 14px; font-weight: 500; color: var(--heading); }
.c-link:hover .c-link-value { color: var(--accent); }

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */

.footer { border-top: 1px solid var(--border); padding: var(--space-md) 0; }

.footer-inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  max-width: 1120px; margin-inline: auto; padding: 0 24px;
  font-size: 12px; color: var(--text-3); letter-spacing: 0.04em;
}

.footer-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

/* ══════════════════════════════════════════
   Modal
   ══════════════════════════════════════════ */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28, 24, 20, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity 400ms var(--ease);
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: min(780px, 92vw);
  max-height: 85vh;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(28, 24, 20, 0.18);
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 400ms var(--ease);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky; top: 0;
  float: right; margin: 16px 16px 0 0;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2); z-index: 1;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.modal-close:hover { color: var(--text); background: var(--surface-3); }

.modal-body {
  padding: var(--space-lg);
  padding-top: var(--space-md);
}

.modal-body .modal-meta {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--space-sm);
}

.modal-body .modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--heading); line-height: 1.2;
  margin-bottom: var(--space-md);
}

.modal-body .modal-content {
  color: var(--text-2); line-height: 2;
  font-size: 15px;
}

.modal-body .modal-content p { margin-bottom: var(--space-md); }
.modal-body .modal-content p:last-child { margin-bottom: 0; }

.modal-body .modal-content strong { color: var(--heading); font-weight: 600; }

.modal-body .modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--heading); font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md); padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.modal-body .modal-content blockquote {
  border-left: 3px solid var(--accent); padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2); font-style: italic; line-height: 1.8;
}

.modal-body .modal-content .article-img {
  width: 100%; border-radius: var(--radius-sm); margin: var(--space-sm) 0;
}

.modal-body .modal-content .article-figure {
  margin: var(--space-lg) 0;
}

.modal-body .modal-content .article-figure figcaption {
  font-size: 12px; color: var(--text-3); text-align: center;
  margin-top: 8px; line-height: 1.6;
}

.modal-body .modal-content .article-meta-line {
  font-size: 13px; color: var(--text-3); margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm); border-bottom: 1px solid var(--border);
}

.modal-body .modal-content sup {
  font-size: 10px; color: var(--accent); font-weight: 600;
}

.modal-body .modal-content .article-refs {
  font-size: 12px; color: var(--text-3); line-height: 1.8;
  padding-left: 20px; margin-top: var(--space-md);
}

.modal-body .modal-content .article-refs li { margin-bottom: 4px; }

/* ══════════════════════════════════════════
   Scroll Reveal
   ══════════════════════════════════════════ */

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }

/* ══════════════════════════════════════════
   Responsive — Tablet
   ══════════════════════════════════════════ */

@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .header-inner { position: relative; }

  .nav.open {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 16px 24px;
    background: rgba(248, 246, 242, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav.open a { padding: 12px 0; }
  .nav.open .nav-cta { margin-left: 0 !important; width: fit-content; }

  .hero-inner { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .works-trio { grid-template-columns: 1fr; }
  .works-quad { grid-template-columns: 1fr 1fr; }
  .brand-method { grid-template-columns: 1fr; gap: 16px; }
  .method-arrow { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .role-analysis { grid-template-columns: 1fr; }
  .series-cards, .brand-cards { grid-template-columns: 1fr; }
  .life-gallery { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   Responsive — Mobile
   ══════════════════════════════════════════ */

@media (max-width: 640px) {
  :root { --space-xl: 56px; --space-2xl: 80px; }
  .container { width: min(1120px, 100% - 32px); }

  .hero h1 { font-size: 3rem; }
  .sec-heading { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .hero-scroll-hint { display: none; }
  .life-gallery { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 6px; }
  .footer-sep { display: none; }
}
