﻿@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/woff2/PretendardVariable.subset.woff2") format("woff2-variations");
}

/* ==========================================================================
   ARCHI × Units visual language
   Photo-first · large type · soft color chapters · airy spacing
   ========================================================================== */

:root {
  /* Colors — architect.md SSOT */
  --ink: #191816;
  --paper: #fafaf7;
  --paper-2: #efefea;
  --surface: #ffffff;
  --muted: #706e68;
  --line: rgba(25, 24, 22, 0.12);
  --line-strong: rgba(25, 24, 22, 0.2);
  --teal: #1a5f53;
  --teal-deep: #164f44;
  --lime: #d8e879;
  --sand: #ead4bd;
  --lilac: #e4e0f2;
  --coral: #e07a5f;
  --accent: #b45138;
  --accent-soft: #f0d8cd;

  /* Spacing scale (8px base) — architect.md SSOT */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 80px;
  --s-11: 96px;
  --s-12: 128px;
  --s-13: 140px;
  --s-14: 160px;

  /* Layout tokens */
  --pad-x: var(--s-7); /* desktop 40px · mobile override 16px */
  --section-y: var(--s-13); /* desktop 140px · mobile override 85px */
  --section-y-tight: var(--s-10);
  --content: 100%; /* full-bleed within pad-x — no fixed px shell */
  --gap: var(--s-4);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(21, 21, 20, 0.12);
  --nav-h: 76px;
  --nav-pad-y: 0px;

  /* Type scale — body-first, PDP/detail readable */
  --fs-meta: 12px; /* mono labels · captions */
  --fs-ui: 14px; /* nav · buttons · chips */
  --fs-body: 17px; /* default body */
  --fs-body-md: 16px; /* cards · secondary body */
  --fs-body-lg: 18px; /* summary · story */
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-h3: clamp(1.35rem, 1.8vw, 1.7rem);
  --fs-h2: clamp(2.5rem, 5.2vw, 4.8rem);
  --fs-h1: clamp(3.1rem, 7vw, 6.2rem);
  --fs-hero: clamp(3.4rem, 8vw, 7.4rem);
  --fs-display: clamp(2.8rem, 6vw, 5.4rem);
  --fs-pdp-title: clamp(2.2rem, 3.6vw, 3.1rem);
  --fs-pdp-tagline: clamp(1.3rem, 2vw, 1.55rem);
  --lh-body: 1.65;
  --lh-tight: 1.08;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 450;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

p {
  font-size: inherit;
  line-height: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

em {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Top navigation (Units-like masthead)
   -------------------------------------------------------------------------- */

.shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--nav-pad-y) var(--pad-x);
  background: rgba(243, 241, 235, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(21, 21, 20, 0.04);
}

.brand {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  flex-shrink: 0;
}

.brand i {
  font-style: normal;
  margin: 0 2px;
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-4), 2.2vw, var(--s-6));
  margin-left: auto;
}

.site-nav a {
  position: relative;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.rail-meta {
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 var(--s-5);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font: 650 var(--fs-ui)/1 var(--sans);
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease), background 0.25s ease;
}

.header-cta:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

.page {
  width: 100%;
  padding-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-6);
  padding: var(--s-8) var(--pad-x) var(--s-10);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 560 11px/1.4 var(--mono);
  letter-spacing: 0.04em;
}

/* Shared content shell: horizontal pad lives on section, not double-counted in inner */

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-left: auto;
  max-width: 100%;
  text-align: right;
}

.social-links a:hover {
  color: var(--ink);
}

.social-links .social-note {
  width: 100%;
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Work log — Archi & Mae journal (Instagram / Threads)
   -------------------------------------------------------------------------- */

.work-log {
  padding: var(--section-y) var(--pad-x);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-log .section-inner {
  width: 100%;
  margin: 0 auto;
}

.work-log .section-head {
  margin-bottom: var(--s-9);
  max-width: 100%;
}

.work-log .section-title {
  margin: 0 0 var(--s-4);
}

.work-log-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.work-log-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: var(--s-6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-log-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 232, 121, 0.45), transparent 70%);
  pointer-events: none;
}

.work-log-card[data-channel="threads"]::before {
  background: radial-gradient(circle, rgba(26, 95, 83, 0.22), transparent 70%);
}

.work-log-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(25, 24, 22, 0.18);
}

.work-log-card .index {
  margin: 0 0 var(--s-5);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-log-card h3 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.work-log-card p {
  margin: 0;
  max-width: 100%;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--muted);
  word-break: keep-all;
}

.work-log-card .handle {
  margin-top: var(--s-5);
  font: 650 var(--fs-ui)/1.3 var(--mono);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.work-log-card .text-link {
  margin-top: auto;
  padding-top: var(--s-6);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font: 650 12px/1 var(--sans);
}

.work-log-card .text-link::after {
  content: "↗";
  transition: transform 0.25s var(--ease);
}

.work-log-card:hover .text-link::after {
  transform: translate(3px, -2px);
}

.work-log-note {
  margin: var(--s-6) 0 0;
  max-width: 100%;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--muted);
  word-break: keep-all;
}

.community-copy .work-log-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.community-copy .work-log-inline a {
  display: inline-flex;
  align-items: center;
  min-height: var(--s-7);
  padding: 0 var(--s-4);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font: 650 12px/1 var(--sans);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.community-copy .work-log-inline a:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Type & primitives
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 var(--s-4);
  color: var(--teal);
  font: 650 var(--fs-meta)/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: var(--section-y) var(--pad-x);
}

.section-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.section-head {
  max-width: 100%;
  margin-bottom: var(--s-9);
}

.section-head:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: var(--lh-tight);
  word-break: keep-all;
  text-wrap: balance;
}

.lead {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  word-break: keep-all;
}

/* 문장 끝 `.` 뒤 줄바꿈 (site.js sentence-break) */
.sentence-break br {
  display: block;
  content: "";
  margin: 0;
}

.display {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.02;
  word-break: keep-all;
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 54px;
  padding: 0 var(--s-6);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font: 650 var(--fs-ui)/1 var(--sans);
  letter-spacing: 0.03em;
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: #e8f78a;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font: 650 var(--fs-ui)/1 var(--sans);
}

.text-link::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero — full-bleed Units style
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + var(--s-7)) var(--pad-x) var(--s-11);
  color: #fff;
  overflow: hidden;
  background: #16352e;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  will-change: transform;
  background: #16352e;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 16, 0.15) 0%, rgba(10, 18, 16, 0.2) 40%, rgba(10, 18, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 18, 16, 0.35) 0%, transparent 55%);
}

.hero-frame {
  position: absolute;
  inset: var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 2;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  will-change: transform;
}

.hero .eyebrow {
  color: var(--lime);
}

.hero h1 {
  margin: 0 0 var(--s-5);
  max-width: 100%;
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.94;
  word-break: keep-all;
}

.hero-intro {
  margin: 0 0 var(--s-7);
  max-width: 100%;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-8);
  color: rgba(255, 255, 255, 0.62);
  font: 560 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-depth {
  display: none;
}

/* --------------------------------------------------------------------------
   Locations / intro band
   -------------------------------------------------------------------------- */

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-7) var(--s-10);
  align-items: end;
  margin-bottom: var(--s-10);
}

.intro-grid .display {
  max-width: 100%;
}

.intro-grid .lead {
  max-width: 100%;
  font-size: var(--fs-body-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.stat {
  min-height: 200px;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
}

.stat span {
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.stat:nth-child(1) {
  background: var(--teal);
  color: #fff;
  border-color: transparent;
}

.stat:nth-child(1) p,
.stat:nth-child(1) span {
  color: rgba(255, 255, 255, 0.78);
}

.stat:nth-child(2) {
  background: var(--lime);
  border-color: transparent;
}

.stat:nth-child(3) {
  background: var(--sand);
  border-color: transparent;
}

.stat:nth-child(4) {
  background: var(--lilac);
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   Feature marquee
   -------------------------------------------------------------------------- */

.strip {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.strip-track {
  display: flex;
  width: max-content;
  animation: strip 34s linear infinite;
}

.strip-track span {
  flex: 0 0 auto;
  padding: var(--s-5) var(--s-7);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes strip {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Practice / All-inclusive panels
   -------------------------------------------------------------------------- */

.practice {
  background: var(--paper-2);
}

.practice-list {
  display: grid;
  gap: var(--gap);
}

.practice-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: min(480px, 70vh);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.practice-card:nth-child(even) {
  grid-template-columns: 1.05fr 1fr;
}

.practice-card:nth-child(even) .practice-copy {
  order: 2;
}

.practice-card:nth-child(even) .practice-visual {
  order: 1;
}

.practice-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(var(--s-6), 4vw, var(--s-8));
}

.practice-copy .index {
  margin: 0 0 var(--s-6);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.practice-copy h3 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.1;
  word-break: keep-all;
}

.practice-copy .sub {
  margin: 0 0 var(--s-6);
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.practice-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-copy li {
  padding: var(--s-3) 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.practice-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: rgba(21, 21, 20, 0.04);
  display: grid;
  place-items: center;
}

.practice-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  will-change: transform;
}

.practice-card[data-tone="ink"] {
  background: var(--teal);
  color: #fff;
}

.practice-card[data-tone="ink"] .index,
.practice-card[data-tone="ink"] .sub,
.practice-card[data-tone="ink"] li {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.16);
}

.practice-card[data-tone="lime"] {
  background: var(--lime);
}

.practice-card[data-tone="sand"] {
  background: var(--sand);
  color: var(--ink);
}

.practice-card[data-tone="sand"] .btn,
.practice-card[data-tone="sand"] .text-link.btn-like {
  background: #fff;
  color: var(--ink);
}

.practice-card[data-tone="lilac"] {
  background: var(--lilac);
}

/* --------------------------------------------------------------------------
   Products — Our Units style
   -------------------------------------------------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}

.product-tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.product-tile:nth-child(1),
.product-tile:nth-child(2) {
  grid-column: span 3;
}

.product-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-tile .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  display: grid;
  place-items: center;
}

.product-tile .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  will-change: transform;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--surface);
}

.product-tile .index {
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-tile h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.product-tile p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.products-cta {
  margin-top: var(--s-7);
}

/* --------------------------------------------------------------------------
   Split / community / values
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(620px, 78vh);
}

.split-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(var(--s-6), 5vw, var(--s-9));
  overflow: hidden;
}

.split-panel.dark {
  background: var(--ink);
  color: #fff;
}

.split-panel.photo {
  color: #fff;
  min-height: min(620px, 78vh);
}

.split-panel.photo .media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #121815;
  display: grid;
  place-items: center;
}

.split-panel.photo .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
  will-change: transform;
}

.split-panel.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(10, 14, 12, 0.78) 100%);
}

.split-panel.photo > *:not(.media) {
  position: relative;
  z-index: 1;
}

.split-panel h3 {
  margin: 0 0 var(--s-4);
  max-width: 100%;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  word-break: keep-all;
}

.split-panel p:not(.eyebrow) {
  margin: 0;
  max-width: 100%;
  opacity: 0.88;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.split-panel .eyebrow {
  color: var(--lime);
}

.community {
  padding: 0;
}

.community-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(680px, 86vh);
  background: var(--teal);
  color: #fff;
  overflow: hidden;
}

.community-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--s-8), 7vw, var(--s-11)) var(--pad-x);
}

.community-copy .eyebrow {
  color: var(--lime);
}

.community-copy h2 {
  margin: 0 0 var(--s-5);
  max-width: 100%;
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  word-break: keep-all;
}

.community-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.community-visual {
  position: relative;
  display: grid;
  place-items: end center;
  padding: var(--s-8) var(--s-5) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(217, 238, 101, 0.22), transparent 42%);
}

.community-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.28));
  will-change: transform;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.value-card {
  min-height: 280px;
  padding: var(--s-6);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform 0.35s var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font: 650 13px/1 var(--mono);
}

.value-card h3 {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.value-card:nth-child(1) {
  background: var(--accent-soft);
  border-color: transparent;
}

.value-card:nth-child(2) {
  background: var(--lime);
  border-color: transparent;
}

.value-card:nth-child(3) {
  background: var(--lilac);
  border-color: transparent;
}

.statement {
  padding: clamp(var(--s-11), 14vw, var(--s-14)) var(--pad-x);
  background: var(--paper);
}

.statement p {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.96;
  word-break: keep-all;
}

.statement span {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-hero {
  min-height: min(72vh, 700px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + var(--s-8)) var(--pad-x) var(--s-9);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 238, 101, 0.28), transparent 30%),
    var(--paper);
  overflow: hidden;
}

.page-hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
  word-break: keep-all;
}

.case-list {
  border-top: 1px solid var(--line);
}

.case {
  display: grid;
  grid-template-columns: 12% minmax(0, 1fr) auto;
  gap: var(--s-5) var(--s-6);
  padding: var(--s-7) var(--pad-x);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.case:hover {
  background: var(--surface);
}

.case .index {
  padding-top: var(--s-2);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.case h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.case p {
  margin: 0;
  max-width: 100%;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
}

.tag {
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.06em;
}

.timeline {
  display: grid;
  gap: var(--s-3);
}

.timeline-item {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr);
  gap: var(--s-5);
  padding: var(--s-6);
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.timeline-item .index {
  font: 600 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  color: var(--teal);
}

.timeline-item h3 {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-h3);
  letter-spacing: -0.03em;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.principle {
  min-height: 200px;
  padding: var(--s-6);
  border-radius: var(--radius);
}

.principle:nth-child(1) {
  background: var(--accent-soft);
}

.principle:nth-child(2) {
  background: var(--lime);
}

.principle:nth-child(3) {
  background: var(--lilac);
}

.principle:nth-child(4) {
  background: var(--sand);
}

.principle h3 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-h3);
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  word-break: keep-all;
}

/* Activity page */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}

.activity-card {
  padding: var(--s-6);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(21, 21, 20, 0.05);
}

.activity-card .index {
  display: block;
  margin-bottom: var(--s-3);
  color: var(--teal);
  font-size: 12px;
  font-weight: 640;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.activity-card h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.activity-card > p {
  margin: 0 0 var(--s-4);
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.activity-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-2);
}

.activity-card li {
  position: relative;
  padding-left: 1.1em;
  color: var(--ink);
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.activity-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(31, 107, 92, 0.12);
}

.activity-cta {
  margin: var(--s-7) 0 0;
  color: var(--muted);
  word-break: keep-all;
}

@media (max-width: 900px) {
  .activity-grid {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  width: 100%;
  max-width: 100%;
  margin: var(--s-8) 0 var(--section-y);
  padding: var(--s-9) var(--pad-x);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  box-sizing: border-box;
}

.contact-panel .eyebrow {
  color: var(--lime);
}

.contact-panel h2 {
  margin: 0 0 var(--s-4);
  max-width: 100%;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  word-break: keep-all;
}

.contact-panel p {
  margin: 0 0 var(--s-6);
  max-width: 100%;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.contact-route,
.dl-btn,
.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--s-8);
  padding: 0 var(--s-5);
  border-radius: var(--radius-pill);
  font: 650 var(--fs-ui)/1 var(--sans);
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease;
}

.contact-route {
  background: var(--lime);
  color: var(--ink);
}

.contact-route:hover {
  transform: translateY(-3px);
}

.contact-socials {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-6);
}

.contact-socials a {
  color: rgba(255, 255, 255, 0.72);
  font: 600 11px/1 var(--mono);
}

.contact-socials a:hover {
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.capability {
  grid-column: span 4;
  min-height: 280px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.capability:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Catalog: PC 2-col · Mobile 3-col */
.catalog-group {
  margin-top: var(--s-10);
}

.catalog-group:first-of-type {
  margin-top: 0;
}

.catalog-group-head {
  margin-bottom: var(--s-6);
  max-width: 100%;
}

.catalog-group-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.75rem, 2.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  word-break: keep-all;
}

.catalog-group-desc {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.catalog-grid {
  display: grid;
  gap: var(--gap);
}

/* PC 앱 — 2열, 가로형 화면 */
.catalog-grid-pc {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-grid-pc .capability {
  grid-column: auto;
  min-height: 480px;
}

.catalog-grid-pc .product-thumb {
  min-height: 260px;
  aspect-ratio: 16 / 10;
}

/* 모바일 앱 — 3열, 세로형 화면 */
.catalog-grid-mobile {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-grid-mobile .capability {
  grid-column: auto;
  min-height: 520px;
}

.catalog-grid-mobile .product-thumb {
  min-height: 320px;
  aspect-ratio: 9 / 16;
}

.catalog-group-method {
  margin-top: var(--s-8);
}

.catalog-group-method .capability-method {
  grid-column: 1 / -1;
  min-height: 0;
  padding: var(--s-6) var(--s-7);
}

.catalog-group-consistency {
  margin-top: var(--s-8);
  margin-bottom: var(--s-2);
}

.consistency-card {
  background: var(--teal);
  color: #fff;
  border-color: transparent;
}

.consistency-card .index {
  color: var(--lime);
  opacity: 1;
}

.consistency-card h3 {
  max-width: 100%;
}

.consistency-card p {
  max-width: 100%;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
}

.consistency-points {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.consistency-points li {
  padding: var(--s-4);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font: 600 var(--fs-body-md)/1.45 var(--sans);
  word-break: keep-all;
}

@media (max-width: 900px) {
  .consistency-points {
    grid-template-columns: 1fr;
  }
}

/* Tone colors (form-independent, not nth-child) */
.capability.tone-teal {
  background: var(--teal);
  color: #fff;
  border-color: transparent;
}

.capability.tone-lime {
  background: var(--lime);
  border-color: transparent;
}

.capability.tone-sand {
  background: var(--sand);
  border-color: transparent;
  color: var(--ink);
}

/* Beige catalog card — white pill CTA */
.capability.tone-sand .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 0 var(--s-5);
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(21, 21, 20, 0.06);
}

.capability.tone-sand .text-link:hover {
  background: var(--ink);
  color: #fff;
}

.capability.tone-sand .text-link::after {
  color: inherit;
}

.capability.tone-lilac {
  background: var(--lilac);
  border-color: transparent;
}

.capability.tone-accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.capability.tone-soft {
  background: var(--accent-soft);
  border-color: transparent;
}

.capability.tone-paper {
  background: var(--paper-2);
  border-color: transparent;
}

/* legacy mixed catalog (if any) */
.capability:nth-child(1):not([class*="tone-"]) {
  grid-column: span 6;
  min-height: 340px;
  background: var(--teal);
  color: #fff;
  border-color: transparent;
}

.capability:nth-child(2):not([class*="tone-"]) {
  grid-column: span 6;
  background: var(--lime);
  border-color: transparent;
}

.capability:nth-child(3):not([class*="tone-"]) {
  background: var(--sand);
  border-color: transparent;
}

.capability:nth-child(4):not([class*="tone-"]) {
  background: var(--lilac);
  border-color: transparent;
}

.capability:nth-child(5):not([class*="tone-"]) {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.capability .index {
  margin-bottom: var(--s-5);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.capability h3 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.capability p {
  margin: 0;
  max-width: 100%;
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  opacity: 0.88;
  word-break: keep-all;
}

.capability .text-link {
  margin-top: auto;
  padding-top: var(--s-5);
}

.product-status {
  display: inline-flex;
  width: max-content;
  margin-bottom: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font: 650 var(--fs-meta)/1.1 var(--sans);
}

.status-live {
  color: #2f6b56;
}

.status-build {
  color: #a94d2f;
}

.status-prep {
  color: #866b32;
}

.capability:nth-child(1) .product-status,
.capability:nth-child(5) .product-status,
.capability.tone-teal .product-status,
.capability.tone-accent .product-status {
  color: #111;
  background: var(--lime);
  border-color: var(--lime);
}

.product-thumb {
  margin: var(--s-4) 0 0;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 21, 20, 0.1);
  background: rgba(21, 21, 20, 0.06);
  display: grid;
  place-items: center;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

/* form-specific aspect handled under .catalog-grid-pc / .catalog-grid-mobile */

.product-notes {
  position: relative;
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: var(--section-y) var(--pad-x);
  overflow: hidden;
}

.product-notes .section-head {
  position: relative;
  z-index: 1;
  width: 45%;
  max-width: 100%;
  margin: 0;
}

.product-notes::after {
  content: "";
  position: absolute;
  right: var(--pad-x);
  top: 50%;
  width: 48%;
  height: 76%;
  max-height: none;
  transform: translateY(-50%);
  border-radius: var(--radius);
  background: var(--surface) center / contain no-repeat;
  box-shadow: var(--shadow);
}

#dearme {
  background: var(--lime);
}

#dearme::after {
  background-image: url("images/dearme-editorial.png");
  background-position: center center;
  background-size: contain;
}

#sloth {
  background: var(--sand);
}

#sloth::after {
  background-image: url("images/sloth-screen.png");
  background-position: center center;
  background-size: contain;
}

#tracker {
  background: var(--lilac);
}

#tracker::after {
  background-image: url("images/tracker-screen.png");
  background-position: center center;
  background-size: contain;
}

#pawwalk {
  background: var(--accent);
  color: #fff;
}

#pawwalk .eyebrow,
#pawwalk .lead,
#pawwalk .section-title {
  color: #fff;
}

#pawwalk::after {
  background-image: url("images/pawwalk-editorial.png");
  background-position: center center;
  background-size: contain;
}

#azentify {
  background: var(--accent-soft);
}

#azentify::after {
  background-image: url("images/azentify-screen.png");
  background-position: center center;
  background-size: contain;
}

#designgenerator {
  background: var(--paper-2);
}

#designgenerator::after {
  background-image: url("images/archi-desk-plan.png");
  background-position: center center;
  background-size: contain;
}

.mae-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 68vh;
  margin: 0;
  padding: var(--section-y) var(--pad-x);
  background: var(--teal);
  color: #fff;
  align-items: center;
  gap: var(--s-6);
  overflow: hidden;
  border-radius: 0;
}

.mae-section .eyebrow,
.mae-section .text-link {
  color: var(--lime);
}

.mae-section h2 {
  margin: 0 0 var(--s-4);
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
  word-break: keep-all;
}

.mae-section > div:first-child p:not(.eyebrow) {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.mae-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
}

.mae-visual .product-shot.mae-hero-shot {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mae-visual .product-shot.mae-hero-shot img {
  width: 100%;
  height: auto;
  max-height: min(60vh, 560px);
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-sm);
  background: #111;
}

.mae-visual .product-shot.mae-hero-shot figcaption {
  padding: 8px 4px 0;
  color: rgba(21, 21, 20, 0.55);
  font: 600 9px/1.3 var(--mono);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid currentColor;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.product-notes .product-detail {
  width: 45%;
  max-width: 100%;
}

.product-detail p {
  margin: 0;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  word-break: keep-all;
}

.product-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
}

.product-detail li {
  padding-top: var(--s-3);
  border-top: 1px solid currentColor;
  font: 600 var(--fs-body-md)/1.5 var(--sans);
  word-break: keep-all;
}

.download-links,
.product-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.dl-btn {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}

.dl-btn-primary {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.dl-btn-primary:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.dl-btn:not(.dl-btn-primary):hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.mae-section .download-links .dl-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.mae-section .download-links .dl-btn:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

#pawwalk .dl-btn {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

#pawwalk .dl-btn:hover {
  background: #fff;
  color: var(--ink);
}

/* Tighter vertical rhythm when sections stack (utility) */
.section.section-tight {
  padding-top: var(--s-9);
  padding-bottom: var(--section-y);
}

.section.section-tight + .section.section-tight {
  padding-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   Product catalog (link cards)
   -------------------------------------------------------------------------- */

a.capability.capability-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.capability {
  transform-style: preserve-3d;
  will-change: transform;
}

.capability .product-thumb {
  overflow: hidden;
}

.capability .product-thumb img {
  will-change: transform;
  transform-origin: center center;
}

a.capability.capability-link .text-link {
  margin-top: auto;
  padding-top: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 650 12px/1 var(--sans);
  letter-spacing: -0.01em;
}

a.capability.capability-link .text-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

a.capability.capability-link:hover .text-link::after {
  transform: translateX(4px);
}

.capability-method {
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   Product detail page (PDP)
   -------------------------------------------------------------------------- */

.pdp {
  padding-bottom: var(--section-y);
}

.pdp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  padding: calc(var(--nav-h) + var(--s-6)) var(--pad-x) var(--s-5);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-crumb a {
  color: var(--ink);
  text-decoration: none;
}

.pdp-crumb a:hover {
  color: var(--teal);
}

.pdp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-7);
  align-items: start;
  padding: 0 var(--pad-x) var(--s-10);
}

.pdp-gallery {
  position: relative;
  display: grid;
  gap: var(--gap);
  isolation: isolate;
}

.pdp-depth-glow,
.pdp-depth-orb {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
  will-change: transform;
}

.pdp-depth-glow {
  width: 70%;
  height: 70%;
  left: -8%;
  top: 8%;
  background: radial-gradient(circle, rgba(216, 232, 121, 0.35), transparent 68%);
  opacity: 0.85;
}

.pdp-depth-orb {
  width: 46%;
  height: 46%;
  right: -4%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(26, 95, 83, 0.28), transparent 70%);
  opacity: 0.9;
}

.pdp[data-theme="lime"] .pdp-depth-glow {
  background: radial-gradient(circle, rgba(216, 232, 121, 0.55), transparent 68%);
}

.pdp[data-theme="accent"] .pdp-depth-glow {
  background: radial-gradient(circle, rgba(180, 81, 56, 0.35), transparent 68%);
}

.pdp[data-theme="lilac"] .pdp-depth-orb {
  background: radial-gradient(circle, rgba(228, 224, 242, 0.7), transparent 70%);
}

.pdp-main {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--s-3);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
  will-change: transform;
}

.pdp-main.is-tilt {
  box-shadow: 0 24px 50px rgba(25, 24, 22, 0.16);
}

.pdp-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  border-radius: var(--radius-sm);
  background: rgba(21, 21, 20, 0.06);
  will-change: transform;
  transform-origin: center center;
}

.pdp-main figcaption {
  margin-top: var(--s-3);
  padding: 0 var(--s-1);
  font: 600 10px/1.3 var(--mono);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pdp-thumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  will-change: transform;
}

.pdp-thumb {
  width: 88px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: rgba(21, 21, 20, 0.04);
}

.pdp-thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pdp-thumb.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.pdp-info {
  --pdp-shift-x: 0px;
  --pdp-shift-y: 0px;
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
  padding: var(--s-6);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 420px;
  /* pointer follow without breaking sticky (transform on children only) */
}

.pdp-info > * {
  transform: translate3d(var(--pdp-shift-x), var(--pdp-shift-y), 0);
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.pdp-info > .pdp-actions {
  transition-delay: 0.04s;
}

.pdp-info > .pdp-meta {
  transition-delay: 0.02s;
}

.pdp[data-theme="teal"] .pdp-info {
  background: var(--teal);
  border-color: transparent;
  color: #fff;
}

.pdp[data-theme="teal"] .pdp-info .eyebrow,
.pdp[data-theme="teal"] .pdp-info .pdp-summary,
.pdp[data-theme="teal"] .pdp-info .pdp-meta dt {
  color: rgba(255, 255, 255, 0.72);
}

.pdp[data-theme="teal"] .pdp-info .product-status {
  color: #111;
  background: var(--lime);
  border-color: var(--lime);
}

.pdp[data-theme="lime"] .pdp-info {
  background: var(--lime);
  border-color: transparent;
}

.pdp[data-theme="sand"] .pdp-info {
  background: var(--sand);
  border-color: transparent;
  color: var(--ink);
}

/* Beige (sand) surfaces — primary CTA = white button */
.pdp[data-theme="sand"] .pdp-actions .dl-btn-primary,
.pdp[data-theme="sand"] .download-links .dl-btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(21, 21, 20, 0.06);
}

.pdp[data-theme="sand"] .pdp-actions .dl-btn-primary:hover,
.pdp[data-theme="sand"] .download-links .dl-btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

.pdp[data-theme="sand"] .pdp-actions .dl-btn:not(.dl-btn-primary),
.pdp[data-theme="sand"] .download-links .dl-btn:not(.dl-btn-primary) {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.pdp[data-theme="sand"] .pdp-actions .dl-btn:not(.dl-btn-primary):hover,
.pdp[data-theme="sand"] .download-links .dl-btn:not(.dl-btn-primary):hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.pdp[data-theme="lilac"] .pdp-info {
  background: var(--lilac);
  border-color: transparent;
}

.pdp[data-theme="accent"] .pdp-info {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.pdp[data-theme="accent"] .pdp-info .eyebrow,
.pdp[data-theme="accent"] .pdp-info .pdp-summary,
.pdp[data-theme="accent"] .pdp-info .pdp-meta dt {
  color: rgba(255, 255, 255, 0.78);
}

.pdp[data-theme="accent"] .pdp-info .product-status {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.pdp[data-theme="soft"] .pdp-info {
  background: var(--accent-soft);
  border-color: transparent;
}

.pdp[data-theme="paper"] .pdp-info {
  background: var(--paper-2);
}

.pdp-info .eyebrow {
  margin: 0 0 var(--s-3);
}

.pdp-info .product-status {
  margin-bottom: var(--s-4);
}

.pdp-info h1 {
  margin: 0 0 var(--s-3);
  font-size: var(--fs-pdp-title);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  word-break: keep-all;
}

.pdp-tagline {
  margin: 0 0 var(--s-4);
  font-size: var(--fs-pdp-tagline);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  word-break: keep-all;
}

.pdp-summary {
  margin: 0 0 var(--s-5);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
  opacity: 0.92;
  word-break: keep-all;
}

.pdp-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
  margin: 0 0 var(--s-6);
  padding: var(--s-4) 0 0;
  border-top: 1px solid currentColor;
  opacity: 0.95;
}

.pdp-meta dt {
  margin: 0 0 var(--s-1);
  font: 600 var(--fs-meta)/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}

.pdp-meta dd {
  margin: 0;
  font: 650 var(--fs-ui)/1.4 var(--sans);
  word-break: keep-all;
}

.pdp-actions {
  margin-top: auto;
}

.pdp[data-theme="teal"] .pdp-actions .dl-btn:not(.dl-btn-primary),
.pdp[data-theme="accent"] .pdp-actions .dl-btn:not(.dl-btn-primary) {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.pdp[data-theme="teal"] .pdp-actions .dl-btn:not(.dl-btn-primary):hover,
.pdp[data-theme="accent"] .pdp-actions .dl-btn:not(.dl-btn-primary):hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.pdp[data-theme="teal"] .pdp-actions .dl-btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.pdp[data-theme="teal"] .pdp-actions .dl-btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.pdp[data-theme="accent"] .pdp-actions .dl-btn-primary {
  background: #fff;
  color: var(--ink);
}

.pdp[data-theme="accent"] .pdp-actions .dl-btn-primary:hover {
  background: var(--ink);
  color: #fff;
}

.pdp-block {
  padding: var(--section-y) var(--pad-x);
}

.pdp-block + .pdp-block {
  border-top: 1px solid var(--line);
}

.pdp-block .section-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.pdp-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}

.pdp-feature-grid li {
  display: grid;
  gap: var(--s-2);
  min-height: 140px;
  padding: var(--s-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.25s ease;
  will-change: transform;
}

.pdp-feature-grid li.is-tilt {
  box-shadow: var(--shadow);
  border-color: rgba(25, 24, 22, 0.18);
}

.pdp-feature-grid strong {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.pdp-feature-grid span {
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  color: var(--muted);
  word-break: keep-all;
}

.pdp-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.pdp-story-grid article {
  padding: var(--s-6);
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid transparent;
  min-height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.3s ease;
  will-change: transform;
}

.pdp-story-grid article.is-tilt {
  box-shadow: var(--shadow);
  background: var(--surface);
  border-color: var(--line);
}

.pdp-story-grid h2 {
  margin: 0 0 var(--s-4);
  font-size: clamp(1.35rem, 1.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
  word-break: keep-all;
}

.pdp-story-grid p:not(.eyebrow) {
  margin: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
  word-break: keep-all;
}

.pdp-related-grid .product-tile {
  text-decoration: none;
  color: inherit;
}

.pdp-related .products-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

[data-parallax],
[data-parallax-layer] {
  will-change: transform;
}

.pdp-main,
.pdp-feature-grid li,
.pdp-story-grid article,
.capability,
.product-tile {
  backface-visibility: hidden;
}

.block-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  mix-blend-mode: multiply;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.08s linear;
}

.block-cursor span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.block-cursor.is-active {
  width: 60px;
  height: 60px;
  background: var(--lime);
  border-color: transparent;
}

.js .page-enter main {
  opacity: 0;
}

.js .page-ready main {
  opacity: 1;
  transition: opacity 0.75s ease;
}

.scroll-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s var(--ease) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease) var(--reveal-delay, 0ms);
}

.js .scroll-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(40px);
}

.js .scroll-reveal.reveal-child:not(.is-visible) {
  transform: translateY(28px) scale(0.985);
}

.js .pdp-gallery.scroll-reveal:not(.is-visible) {
  transform: translate3d(-28px, 36px, 0);
}

.js .pdp-info.scroll-reveal:not(.is-visible) {
  transform: translate3d(28px, 36px, 0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .intro-grid,
  .split,
  .community-stage,
  .practice-card,
  .practice-card:nth-child(even),
  .mae-section {
    grid-template-columns: 1fr;
  }

  .practice-card:nth-child(even) .practice-copy,
  .practice-card:nth-child(even) .practice-visual {
    order: initial;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .product-tile:nth-child(1),
  .product-tile:nth-child(2),
  .product-tile:nth-child(3),
  .product-tile:nth-child(4),
  .product-tile:nth-child(5) {
    grid-column: span 3;
  }

  .capability:nth-child(n) {
    grid-column: span 6;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .tags {
    justify-content: flex-start;
  }

  .product-notes .section-head,
  .product-notes .product-detail {
    width: 100%;
  }

  .product-notes::after {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin-top: var(--s-6);
  }

  .product-notes {
    display: block;
  }

  .pdp-hero {
    grid-template-columns: 1fr;
  }

  .pdp-info {
    position: static;
  }

  .pdp-story-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid-pc {
    grid-template-columns: 1fr;
  }

  .catalog-grid-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-log-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    margin-left: 0;
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 760px) {
  :root {
    --pad-x: var(--s-4); /* 16px */
    --section-y: 85px;
    --section-y-tight: var(--s-8);
    --nav-h: 64px;
    --nav-pad-y: var(--s-3);
    --fs-body: 16px;
    --fs-body-md: 15px;
    --fs-body-lg: 17px;
    --fs-lead: clamp(17px, 4vw, 19px);
    --fs-ui: 13px;
  }

  .site-header {
    height: auto;
    min-height: var(--nav-h);
    padding: var(--nav-pad-y) var(--pad-x);
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin: var(--s-2) 0 0;
    gap: var(--s-3);
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 12px;
  }

  .site-nav a[aria-current="page"]::after {
    bottom: calc(var(--s-1) * -1);
  }

  .header-cta {
    min-height: 36px;
    padding: 0 var(--s-4);
    font-size: 13px;
  }

  .hero {
    min-height: calc(100svh - var(--s-5));
    padding: calc(var(--nav-h) + var(--s-8)) var(--pad-x) var(--s-9);
  }

  .hero-frame {
    inset: var(--s-3);
  }

  .page-hero {
    min-height: min(64vh, 560px);
    padding: calc(var(--nav-h) + var(--s-6)) var(--pad-x) var(--s-8);
  }

  .section,
  .work-log,
  .pdp-block {
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
  }

  .section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
  }

  .section.section-tight {
    padding-top: var(--s-8);
  }

  .contact-panel {
    width: 100%;
    max-width: 100%;
    margin: var(--s-6) 0 var(--section-y);
    padding: var(--s-7) var(--pad-x);
  }

  .product-notes .section-head,
  .product-notes .product-detail {
    width: 100%;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .pdp-crumb {
    padding: calc(var(--nav-h) + var(--s-5)) var(--pad-x) var(--s-4);
  }

  .pdp-hero {
    padding: 0 var(--pad-x) var(--s-8);
    gap: var(--s-6);
  }

  .site-footer {
    padding: var(--s-7) var(--pad-x) var(--s-9);
  }

  .stats,
  .principles,
  .product-detail ul,
  .products-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .product-tile:nth-child(n),
  .capability:nth-child(n) {
    grid-column: span 1;
  }

  .pdp-feature-grid,
  .pdp-meta {
    grid-template-columns: 1fr;
  }

  .pdp-thumb {
    width: 72px;
    height: 54px;
  }

  .pdp-info {
    padding: var(--s-5);
  }

  .catalog-grid-pc,
  .catalog-grid-mobile {
    grid-template-columns: 1fr;
  }

  .catalog-grid-pc .capability,
  .catalog-grid-mobile .capability {
    min-height: 0;
  }

  .product-thumb,
  .catalog-grid-pc .product-thumb,
  .catalog-grid-mobile .product-thumb {
    min-height: 240px;
  }

  .catalog-grid-pc .product-thumb {
    aspect-ratio: 16 / 10;
  }

  .catalog-grid-mobile .product-thumb {
    aspect-ratio: 3 / 4;
    min-height: 280px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .block-cursor {
    display: none;
  }

  .social-links {
    width: 100%;
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Mae floating chatbot (bottom-right)
   -------------------------------------------------------------------------- */

.mae-chat-root {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 240;
  font-family: var(--sans);
  pointer-events: none;
}

.mae-chat-root * {
  pointer-events: auto;
}

/* 캐릭터(런처) 왼쪽에 붙는 채팅창 */
.mae-chat-panel {
  position: absolute;
  right: calc(100% + 14px);
  bottom: 0;
  width: min(360px, calc(100vw - 48px - 260px));
  height: min(520px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px) scale(0.96);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease),
    visibility 0.28s;
}

.mae-chat-root.is-open .mae-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.mae-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(135deg, rgba(31, 107, 92, 0.12), rgba(217, 238, 101, 0.28)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.mae-chat-avatar {
  width: 48px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 4px 8px rgba(21, 21, 20, 0.14));
  flex-shrink: 0;
}

.mae-chat-identity {
  min-width: 0;
  flex: 1;
}

.mae-chat-identity strong {
  display: block;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mae-chat-identity span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mae-chat-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 21, 20, 0.06);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mae-chat-close:hover,
.mae-chat-close:focus-visible {
  background: rgba(21, 21, 20, 0.12);
  outline: none;
}

.mae-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, #faf9f6 0%, var(--surface) 40%);
  scroll-behavior: smooth;
}

/* 채팅 메시지 말풍선 (캐릭터 위 힌트와 클래스 분리 — 충돌 시 display:none 로 답변이 안 보였음) */
.mae-chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
  word-break: keep-all;
  position: relative;
}

.mae-chat-msg.is-mae {
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.mae-chat-msg.is-user {
  align-self: flex-end;
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.mae-chat-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mae-chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--paper-2);
}

.mae-chat-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.55;
  animation: mae-chat-dot 1.1s ease-in-out infinite;
}

.mae-chat-typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.mae-chat-typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes mae-chat-dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

.mae-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
  background: var(--surface);
}

.mae-chat-chip {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mae-chat-chip:hover,
.mae-chat-chip:focus-visible {
  background: var(--lime);
  border-color: transparent;
  outline: none;
}

.mae-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.mae-chat-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink);
}

.mae-chat-form input:focus {
  outline: 2px solid rgba(31, 107, 92, 0.35);
  outline-offset: 1px;
  border-color: var(--teal);
}

.mae-chat-form button[type="submit"] {
  height: 42px;
  min-width: 72px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 640;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mae-chat-form button[type="submit"]:hover,
.mae-chat-form button[type="submit"]:focus-visible {
  background: var(--teal-deep);
  outline: none;
}

.mae-chat-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}

/* 등신대 컷아웃 — 원형 버튼 없음, 캐릭터 PNG만 */
.mae-chat-launcher {
  width: auto;
  height: auto;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: block;
  position: relative;
  line-height: 0;
  transition: transform 0.25s var(--ease), filter 0.25s ease;
  filter: drop-shadow(0 10px 18px rgba(21, 21, 20, 0.22));
}

.mae-chat-launcher:hover,
.mae-chat-launcher:focus-visible {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 16px 24px rgba(31, 107, 92, 0.28));
  outline: none;
}

.mae-chat-launcher img {
  width: auto;
  height: 352px;
  max-width: min(240px, 42vw);
  border-radius: 0;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  pointer-events: none;
  user-select: none;
}

/* 캐릭터 위 유도 말풍선 (채팅 메시지 .mae-chat-msg 와 분리) */
.mae-chat-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  transform: translateX(-50%);
  z-index: 2;
  max-width: 148px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 22px rgba(21, 21, 20, 0.12);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  animation: mae-chat-hint-float 2.8s ease-in-out infinite;
}

.mae-chat-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: translateX(-50%) rotate(45deg);
}

.mae-chat-root.is-open .mae-chat-hint {
  display: none;
}

@keyframes mae-chat-hint-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

.mae-chat-launcher-badge {
  position: absolute;
  top: 8px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(196, 92, 62, 0.35);
}

.mae-chat-root.is-open .mae-chat-launcher-badge {
  display: none;
}

/* 발 아래 은은한 빛 — 등신대 그림자 느낌 */
.mae-chat-launcher-pulse {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 56%;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(217, 238, 101, 0.55), transparent 70%);
  transform: translateX(-50%);
  animation: mae-chat-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.mae-chat-root.is-open .mae-chat-launcher-pulse {
  display: none;
}

@keyframes mae-chat-pulse {
  0% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.92);
  }
  70% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.25);
  }
}

/* 좁은 화면: 좌측 공간 부족 시 캐릭터 위로 폴백 */
@media (max-width: 640px) {
  .mae-chat-panel {
    right: 0;
    bottom: calc(100% + 16px);
    width: min(340px, calc(100vw - 24px));
    height: min(52vh, 480px);
    border-radius: 20px;
    transform-origin: bottom right;
    transform: translateY(10px) scale(0.96);
  }

  .mae-chat-root.is-open .mae-chat-panel {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .mae-chat-launcher img {
    height: 296px;
    max-width: min(200px, 48vw);
  }

  .mae-chat-hint {
    font-size: 11px;
    padding: 7px 10px;
    max-width: 132px;
  }

  .mae-chat-panel {
    width: calc(100vw - 24px);
    height: min(60vh, 500px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .scroll-reveal:not(.is-visible),
  .js .page-ready main {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-parallax],
  [data-parallax-layer],
  .hero-media img,
  .practice-visual img,
  .product-tile .thumb img,
  .pdp-main img,
  .pdp-info > *,
  .pdp-main,
  .capability,
  .pdp-feature-grid li,
  .pdp-story-grid article {
    transform: none !important;
    will-change: auto !important;
  }

  .pdp-depth-glow,
  .pdp-depth-orb {
    display: none;
  }

  .pdp-info {
    --pdp-shift-x: 0px !important;
    --pdp-shift-y: 0px !important;
  }

  .block-cursor {
    display: none;
  }

  .strip-track {
    animation: none;
  }

  .mae-chat-launcher-pulse,
  .mae-chat-typing i,
  .mae-chat-hint {
    animation: none !important;
  }

  .mae-chat-panel {
    transition: none !important;
  }
}

/* ==========================================================================
   COMPONENT CONTRACT (architect.md SSOT · last-wins override)
   Re-assert after accumulated drift. Do not weaken these rules without
   updating architect.md first.
   ========================================================================== */

/* --- Media: never crop content images --- */
.hero-media img,
.practice-visual img,
.product-tile .thumb img,
.split-panel.photo .media img,
.product-thumb img,
.pdp-main img,
.pdp-thumb img,
.mae-visual .product-shot img,
.capability .product-thumb img,
.pdp-related .thumb img {
  object-fit: contain !important;
  object-position: center center !important;
  transform: none;
}

.product-notes::after,
#dearme::after,
#sloth::after,
#tracker::after,
#pawwalk::after,
#azentify::after,
#designgenerator::after {
  background-size: contain !important;
  background-position: center center !important;
}

/* Media wells */
.product-tile .thumb,
.product-thumb,
.practice-visual,
.pdp-main,
.pdp-thumb {
  background-color: var(--paper-2);
}

/* --- Buttons --- */
.btn,
.dl-btn,
.dl-btn-primary,
.contact-route,
.product-actions a,
.header-cta {
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-sizing: border-box;
}

.btn {
  min-height: 54px;
  padding: 0 var(--s-6);
  background: var(--ink);
  color: #fff;
  border: 0;
  font-size: var(--fs-ui);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.dl-btn,
.product-actions a:not(.dl-btn-primary) {
  min-height: var(--s-8);
  padding: 0 var(--s-5);
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: var(--fs-ui);
}

.dl-btn-primary {
  min-height: var(--s-8);
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-ui);
}

.dl-btn-primary:hover {
  background: var(--teal);
  color: #fff;
}

/* Sand / beige — white primary button (required) */
.pdp[data-theme="sand"] .dl-btn-primary,
.capability.tone-sand .text-link {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: transparent !important;
}

.pdp[data-theme="sand"] .dl-btn-primary:hover,
.capability.tone-sand .text-link:hover {
  background: var(--ink) !important;
  color: #fff !important;
}

/* Dark chapters — light text */
.capability.tone-teal,
.capability.tone-accent,
.consistency-card,
.pdp[data-theme="teal"] .pdp-info,
.pdp[data-theme="accent"] .pdp-info {
  color: #fff;
}

.capability.tone-sand,
.capability.tone-lime,
.capability.tone-lilac,
.capability.tone-soft,
.capability.tone-paper,
.pdp[data-theme="sand"] .pdp-info,
.pdp[data-theme="lime"] .pdp-info,
.pdp[data-theme="lilac"] .pdp-info,
.pdp[data-theme="soft"] .pdp-info,
.pdp[data-theme="paper"] .pdp-info {
  color: var(--ink);
}

/* --- Cards --- */
.capability,
.product-tile,
.value-card,
.principle,
.activity-card,
.pdp-feature-grid li,
.pdp-story-grid article,
.work-log-card {
  border-radius: var(--radius);
  box-sizing: border-box;
}

.capability,
.product-tile,
.work-log-card,
.pdp-feature-grid li {
  border: 1px solid var(--line);
}

.capability {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.capability h3,
.product-tile h3,
.work-log-card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.capability p,
.product-tile p,
.work-log-card p {
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
  max-width: 100%;
  word-break: keep-all;
}

/* --- Type primitives --- */
.eyebrow {
  font: 650 var(--fs-meta)/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--muted);
  max-width: 100%;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: var(--lh-tight);
  word-break: keep-all;
  text-wrap: balance;
}

/* --- Layout shell --- */
.section {
  padding: var(--section-y) var(--pad-x);
}

.section-inner,
.work-log .section-inner,
.pdp-block .section-inner {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

/* --- Catalog grids --- */
.catalog-grid-pc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.catalog-grid-mobile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.catalog-grid-pc .product-thumb {
  aspect-ratio: 16 / 10;
  min-height: 240px;
}

.catalog-grid-mobile .product-thumb {
  aspect-ratio: 9 / 16;
  min-height: 280px;
}

.product-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

@media (max-width: 1100px) {
  .catalog-grid-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-grid-pc,
  .catalog-grid-mobile {
    grid-template-columns: 1fr;
  }
}

/* --- PDP text readable --- */
.pdp-summary {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body);
}

.pdp-tagline {
  font-size: var(--fs-pdp-tagline);
}

.pdp-info h1 {
  font-size: var(--fs-pdp-title);
}

.pdp-feature-grid span,
.pdp-story-grid p:not(.eyebrow) {
  font-size: var(--fs-body-md);
  line-height: var(--lh-body);
}

.pdp-feature-grid strong {
  font-size: 1.2rem;
}