/* =========================================================
   TOONIST — (주)투니스트 소개 페이지
   Editorial / warm-ink visual system
   ========================================================= */

:root {
  /* palette */
  --ink-900: #0f0d0c;
  --ink-800: #151211;
  --ink-700: #1c1917;
  --ink-600: #262220;
  --line: rgba(255, 250, 242, 0.12);
  --line-strong: rgba(255, 250, 242, 0.24);
  --paper: #f7f3ec;
  --paper-dim: #ece5d9;
  --paper-muted: rgba(247, 243, 236, 0.62);
  --accent: #d9a566;
  --accent-soft: rgba(217, 165, 102, 0.16);
  --accent-deep: #b07f3f;

  /* type */
  --ff-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --ff-serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --ff-display: "Cormorant Garamond", "Noto Serif KR", serif;

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--ff-sans);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

p {
  margin: 0;
}

ul,
dl,
dd,
dt,
blockquote {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

::selection {
  background: var(--accent);
  color: #16120d;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: #16120d;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

/* display serif accent */
.serif-em {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-style: normal;
  color: var(--accent);
  letter-spacing: -0.045em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--paper);
}
.btn-solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120d;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(247, 243, 236, 0.06);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background-color 0.45s var(--ease), padding 0.45s var(--ease),
    border-color 0.45s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(15, 13, 12, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

/* Logo file is a 128x90 canvas where the mark itself occupies only
   x 2-51 / y 36-85 (a 50x50 badge); everything else is transparent padding.
   We crop to that badge so it sits centred instead of drifting up-left.
   Scale = --mark / 50, so each factor below is a source pixel x 1/50. */
.brand-mark {
  --mark: 32px;
  position: relative;
  width: var(--mark);
  height: var(--mark);
  flex: none;
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  max-width: none;
  width: calc(var(--mark) * 2.56);   /* 128 / 50 */
  height: calc(var(--mark) * 1.8);   /*  90 / 50 */
  left: calc(var(--mark) * -0.04);   /*  -2 / 50 */
  top: calc(var(--mark) * -0.72);    /* -36 / 50 */
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-text strong {
  font-family: var(--ff-serif);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-family: var(--ff-display);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--paper-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(247, 243, 236, 0.72);
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--paper);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav .nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--paper);
}
.nav .nav-cta::after {
  display: none;
}
.nav .nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #16120d;
}

/* ---------- external nav link (에이툰) ---------- */
/* lives in style.css because index.html does not load board.css */
.nav a.nav-external {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 4px;
}

.nav-ext-icon {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav a.nav-external:hover .nav-ext-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1px;
  background: var(--paper);
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) {
  top: 17px;
}
.nav-toggle span:nth-child(2) {
  top: 23px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateX(-50%) translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateX(-50%) translateY(-3px) rotate(-45deg);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(120px, 17vh, 190px) 0 0;
  overflow: hidden;
  background: var(--ink-900);
}

.hero-glow {
  position: absolute;
  top: -22%;
  right: -12%;
  width: min(78vw, 900px);
  aspect-ratio: 1;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(217, 165, 102, 0.19),
    rgba(217, 165, 102, 0.05) 42%,
    transparent 68%
  );
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(247, 243, 236, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(247, 243, 236, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(64px, 10vh, 112px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin-bottom: clamp(22px, 3vw, 34px);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero-title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2.15rem, 5.2vw, 4.05rem);
  line-height: 1.24;
  letter-spacing: -0.05em;
}

.hero-title .serif-em {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

.hero-title .serif-em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.6;
}

.hero-lead {
  max-width: 34rem;
  margin-top: clamp(24px, 3.2vw, 34px);
  color: var(--paper-muted);
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.6vw, 40px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: clamp(20px, 4vw, 46px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.42);
  margin-bottom: 8px;
}

.hero-meta dd {
  font-family: var(--ff-serif);
  font-size: 0.98rem;
  color: rgba(247, 243, 236, 0.9);
  font-weight: 400;
}

/* hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.hero-figure {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #0b0908;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
  animation: floatPanel 11s ease-in-out infinite;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}

/* soft edge so the artwork melts into the dark background */
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      to top,
      rgba(15, 13, 12, 0.72),
      transparent 42%
    ),
    linear-gradient(to right, rgba(15, 13, 12, 0.35), transparent 30%);
}

.hero-figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.62);
}

.fig-tag {
  font-family: var(--ff-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.fig-line {
  width: 26px;
  height: 1px;
  background: rgba(247, 243, 236, 0.36);
  flex: none;
}

.fig-text {
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.72);
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.badge {
  position: absolute;
  right: max(0px, 2%);
  bottom: 4%;
  width: clamp(88px, 12vw, 118px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #17120c;
  box-shadow: 0 18px 40px -16px rgba(217, 165, 102, 0.7);
}

.badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spinBadge 26s linear infinite;
}

@keyframes spinBadge {
  to {
    transform: rotate(360deg);
  }
}

.badge svg text {
  fill: rgba(23, 18, 12, 0.62);
  font-family: var(--ff-sans);
  font-size: 9.4px;
  letter-spacing: 2.1px;
  font-weight: 500;
}

.badge-core {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(-1px);
}

/* marquee strip */
.hero-strip {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  overflow: hidden;
  background: rgba(247, 243, 236, 0.02);
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.strip-track span {
  font-family: var(--ff-serif);
  font-size: 0.8rem;
  letter-spacing: 0.34em;
  color: rgba(247, 243, 236, 0.5);
  white-space: nowrap;
}

.strip-track i {
  color: var(--accent);
  font-style: normal;
  opacity: 0.7;
}

@keyframes marquee {
  to {
    transform: translateX(-33.3333%);
  }
}

/* =========================================================
   SECTION SHELL
   ========================================================= */
.section {
  position: relative;
  padding: clamp(76px, 11vw, 148px) 0;
}

.section-head {
  max-width: 46rem;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(15, 13, 12, 0.45);
  margin-bottom: clamp(18px, 2.4vw, 26px);
}

.label span {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.label-light {
  color: rgba(247, 243, 236, 0.45);
}
.label-light span {
  color: var(--accent);
}

.section-title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1.72rem, 3.6vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.section-lead {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-size: clamp(0.95rem, 1.15vw, 1.04rem);
  line-height: 1.9;
}

/* =========================================================
   ABOUT (paper section)
   ========================================================= */
.about {
  background: var(--paper);
  color: var(--ink-900);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 82% 0%,
    rgba(217, 165, 102, 0.22),
    transparent 55%
  );
  pointer-events: none;
}

.about .section-lead {
  color: rgba(15, 13, 12, 0.68);
  max-width: 44rem;
}

.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(48px, 7vw, 84px);
  border-top: 1px solid rgba(15, 13, 12, 0.14);
}

.pillar {
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px)
    clamp(24px, 3vw, 30px) 0;
  border-right: 1px solid rgba(15, 13, 12, 0.1);
  transition: background-color 0.4s var(--ease);
}

.pillar:last-child {
  border-right: 0;
}

.pillar:nth-child(n + 2) {
  padding-left: clamp(20px, 2.6vw, 36px);
}

.pillar:hover {
  background: rgba(15, 13, 12, 0.03);
}

.pillar-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.84rem;
  letter-spacing: 0.24em;
  color: var(--accent-deep);
  margin-bottom: 20px;
}

.pillar h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.pillar p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(15, 13, 12, 0.62);
}

/* =========================================================
   PROGRAM
   ========================================================= */
.program {
  background: var(--ink-800);
  border-bottom: 1px solid var(--line);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 5.5vw, 64px);
}

.program-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(
    170deg,
    rgba(247, 243, 236, 0.045),
    rgba(247, 243, 236, 0.012)
  );
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease),
    background-color 0.45s var(--ease);
  overflow: hidden;
}

.program-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.program-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.program-card:hover::after {
  opacity: 0.9;
}

.program-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(217, 165, 102, 0.32);
  border-radius: 100px;
  padding: 5px 13px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}

.program-card h3 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1.36rem, 2.5vw, 1.92rem);
  line-height: 1.36;
  letter-spacing: -0.045em;
}

.program-desc {
  margin-top: 18px;
  font-size: 0.93rem;
  line-height: 1.88;
  color: var(--paper-muted);
}

.program-desc strong {
  color: var(--paper);
  font-weight: 500;
}

.program-list {
  margin-top: clamp(22px, 2.8vw, 30px);
  border-top: 1px solid var(--line);
}

.program-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 250, 242, 0.07);
  font-size: 0.88rem;
  color: rgba(247, 243, 236, 0.82);
}

.program-list li span {
  flex: none;
  width: 42px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(247, 243, 236, 0.4);
}

.program-note {
  margin-top: clamp(28px, 3.4vw, 40px);
  font-size: 0.84rem;
  color: rgba(247, 243, 236, 0.42);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  background: var(--paper-dim);
  color: var(--ink-900);
}

.portfolio::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 88% 8%,
    rgba(217, 165, 102, 0.2),
    transparent 50%
  );
  pointer-events: none;
}

.portfolio .wrap {
  position: relative;
}

.portfolio-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid rgba(15, 13, 12, 0.14);
}

.portfolio-lead {
  margin-top: 18px;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(15, 13, 12, 0.62);
}

.btn-outline-dark {
  border-color: rgba(15, 13, 12, 0.28);
  color: var(--ink-900);
  flex: none;
}

.btn-outline-dark:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: clamp(30px, 4vw, 44px);
}

.portfolio-loading {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(15, 13, 12, 0.5);
}

.p-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(15, 13, 12, 0.12);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.p-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 13, 12, 0.26);
  box-shadow: 0 26px 50px -32px rgba(15, 13, 12, 0.5);
}

.p-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(150deg, #1c1917, #332d28);
}

.p-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.p-card:hover .p-cover img {
  transform: scale(1.045);
}

/* text-only cover fallback */
.p-cover.is-text {
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, #1c1917, #2a2420);
}

.p-cover.is-text span {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 236, 0.34);
  padding: 0 18px;
  text-align: center;
  line-height: 1.35;
}

.p-cat {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 100px;
  background: rgba(15, 13, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(247, 243, 236, 0.16);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: rgba(247, 243, 236, 0.86);
}

.p-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 1.8vw, 22px);
}

.p-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.42;
}

.p-summary {
  margin-top: 8px;
  font-size: 0.855rem;
  line-height: 1.72;
  color: rgba(15, 13, 12, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(15, 13, 12, 0.45);
}

.p-meta i {
  font-style: normal;
  opacity: 0.5;
}

.p-empty {
  grid-column: 1 / -1;
  padding: clamp(38px, 5vw, 54px) 24px;
  text-align: center;
  border: 1px dashed rgba(15, 13, 12, 0.2);
  border-radius: 3px;
}

.p-empty strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 1.04rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(15, 13, 12, 0.8);
}

.p-empty span {
  font-size: 0.86rem;
  color: rgba(15, 13, 12, 0.5);
}

/* =========================================================
   VISIT
   ========================================================= */
.visit {
  background: var(--ink-900);
  border-top: 1px solid var(--line);
}

.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.visit .section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.visit-address {
  margin-top: clamp(20px, 2.6vw, 28px);
  font-family: var(--ff-serif);
  font-size: clamp(1.06rem, 1.7vw, 1.36rem);
  line-height: 1.72;
  font-weight: 300;
  color: rgba(247, 243, 236, 0.94);
  letter-spacing: -0.03em;
}

.visit-address .nowrap {
  color: rgba(247, 243, 236, 0.5);
  font-size: 0.92em;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 3.2vw, 34px);
}

.visit-actions .btn {
  padding: 13px 22px;
  font-size: 0.86rem;
}

.visit-note {
  margin-top: clamp(26px, 3.4vw, 36px);
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(247, 243, 236, 0.44);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--accent);
  color: #16120d;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.7);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* map card */
.visit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(247, 243, 236, 0.03);
}

.visit-map {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #14110f;
  background-image: linear-gradient(
      to right,
      rgba(247, 243, 236, 0.09) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(247, 243, 236, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(217, 165, 102, 0.14), transparent 55%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
}

.map-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 22%;
  background: rgba(247, 243, 236, 0.07);
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
  transform: rotate(-4deg) scaleX(1.1);
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(217, 165, 102, 0.18),
    0 0 0 16px rgba(217, 165, 102, 0.07);
}

.pin-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(15, 13, 12, 0.85);
  border: 1px solid var(--line-strong);
  color: rgba(247, 243, 236, 0.86);
}

.visit-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(247, 243, 236, 0.46);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 52px);
}

.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-logo em {
  font-family: var(--ff-display);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  color: rgba(247, 243, 236, 0.42);
  margin-left: 8px;
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(247, 243, 236, 0.44);
}

.footer-info dl {
  display: grid;
  gap: 10px;
}

.footer-info dl div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-info dt {
  color: rgba(247, 243, 236, 0.34);
  letter-spacing: 0.04em;
}

.footer-info dd {
  color: rgba(247, 243, 236, 0.72);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 26px;
  border-top: 1px solid rgba(255, 250, 242, 0.08);
  font-size: 0.76rem;
  color: rgba(247, 243, 236, 0.34);
  letter-spacing: 0.02em;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom a {
  color: rgba(247, 243, 236, 0.44);
  transition: color 0.3s var(--ease);
}

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

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
/* progressive enhancement: content is visible unless JS is running */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* hero items always animate in from load, never blocked by observers */
.hero-in {
  animation: heroIn 1s var(--ease) both;
}

.hero-in:nth-of-type(1) {
  animation-delay: 0.05s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy .hero-in:nth-child(1) {
  animation-delay: 0.08s;
}
.hero-copy .hero-in:nth-child(2) {
  animation-delay: 0.18s;
}
.hero-copy .hero-in:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-copy .hero-in:nth-child(4) {
  animation-delay: 0.4s;
}
.hero-copy .hero-in:nth-child(5) {
  animation-delay: 0.5s;
}

.hero-visual.hero-in {
  animation-delay: 0.26s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal,
  .hero-in {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .panel-front,
  .badge svg,
  .strip-track {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    min-height: 0;
    justify-content: flex-start;
  }

  .hero-figure {
    max-width: 480px;
  }

  .badge {
    left: auto;
    right: 4%;
    bottom: -6px;
  }

  .visit-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .visit-card {
    max-width: 520px;
  }
}

@media (max-width: 860px) {
  /* brand + toggle stay above the menu overlay */
  .header-inner {
    position: relative;
    z-index: 2;
  }

  .brand,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(96px + env(safe-area-inset-top)) var(--gutter) 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink-900);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease),
      visibility 0.4s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.is-open {
    background: var(--ink-900);
  }

  /* keep the header bar readable above the solid overlay */
  .site-header:has(.nav.is-open) {
    background: var(--ink-900);
    border-bottom-color: transparent;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    width: 100%;
    padding: 15px 0;
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255, 250, 242, 0.08);
    color: rgba(247, 243, 236, 0.86);
  }

  .nav a::after {
    display: none;
  }

  .nav .nav-cta {
    margin-top: 18px;
    width: auto;
    padding: 12px 24px;
    border-radius: 100px;
    border-color: var(--accent);
    background: var(--accent);
    color: #16120d;
    font-family: var(--ff-sans);
    font-size: 0.86rem;
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.is-scrolled {
    padding: 12px 0;
  }

  .pillars {
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(15, 13, 12, 0.14);
  }

  .pillar {
    padding: 26px 0 !important;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 13, 12, 0.1);
  }

  .pillar:last-child {
    border-bottom: 0;
  }

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

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 250, 242, 0.07);
  }

  .hero-meta dt {
    margin-bottom: 0;
  }

  .hero-meta dd {
    text-align: right;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 14px 20px;
    font-size: 0.84rem;
  }

  .hero-title {
    letter-spacing: -0.045em;
  }

  .hero-figure {
    max-width: 100%;
  }

  .hero-figcaption {
    padding: 12px 14px;
    font-size: 0.62rem;
  }

  .badge {
    width: 78px;
    left: auto;
    right: 4%;
    bottom: -14px;
  }

  .visit-actions .btn {
    flex: 1 1 calc(50% - 5px);
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .visit-actions .btn-solid {
    flex-basis: 100%;
  }

  .footer-info dl div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

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

  .portfolio-top {
    align-items: flex-start;
  }

  .portfolio-top .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }
}
