:root {
  --bg: #f3eee6;
  --paper: #fffdfa;
  --paper-soft: #faf4ed;
  --ink: #17253a;
  --muted: #627088;
  --line: rgba(24, 38, 61, 0.12);
  --line-strong: rgba(24, 38, 61, 0.22);
  --accent: #b85f4b;
  --accent-soft: rgba(184, 95, 75, 0.13);
  --accent-warm: #f6ddd6;
  --sage: #dbe4da;
  --blue-soft: #dce5ef;
  --celadon: #b9cbbb;
  --dancheong-blue: #315f7c;
  --shadow: 0 22px 70px rgba(23, 37, 58, 0.10);
  --shadow-soft: 0 10px 30px rgba(23, 37, 58, 0.07);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans", "Noto Sans KR", system-ui, sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(184,95,75,.13), transparent 23%),
    radial-gradient(circle at 92% 16%, rgba(49,95,124,.12), transparent 22%),
    radial-gradient(circle at 70% 72%, rgba(185,203,187,.22), transparent 27%),
    linear-gradient(180deg, #f7f1ea 0%, #efe7dc 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    radial-gradient(circle, rgba(23,37,58,.08) .8px, transparent .8px),
    linear-gradient(to right, rgba(24,38,61,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24,38,61,.04) 1px, transparent 1px);
  background-size: 10px 10px, 34px 34px, 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.35), transparent 80%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }

.site-shell { min-height: 100vh; position: relative; }
main { padding: 18px; position: relative; z-index: 1; }

.topbar {
  max-width: var(--max);
  margin: 22px auto 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner { position: relative; }
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,253,250,.82);
  border: 1px solid rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 20px 70px rgba(23,37,58,.10);
  z-index: -1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-stamp {
  display: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfa, #f8efe6);
  border: 1px solid rgba(217,107,88,.24);
  color: var(--accent);
  font-size: 1.9rem;
  font-family: "Cormorant Garamond", "Noto Sans KR", serif;
  box-shadow: var(--shadow-soft);
}
.brand strong { display: block; font-size: 1rem; }

.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e98987;
  padding: 8px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topnav a {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.topnav a:hover {
  transform: translateY(-1px);
  border-color: rgba(217,107,88,.35);
  background: #fff;
}
.topnav .nav-cta {
  margin-left: 12px;
  padding: 15px 18px 15px 24px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 38px rgba(23,37,58,.18);
}
.topnav .nav-cta span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.hero, .inner-hero, .section-block, .page-section {
  max-width: var(--max);
  margin: 0 auto 24px;
  background: rgba(255,253,250,.88);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.hero::before,
.inner-hero::before,
.section-block::before,
.page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 22%);
  pointer-events: none;
}
.hero::after,
.inner-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -75px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(217,107,88,.18), rgba(217,107,88,0) 70%);
}
.hero { padding: 96px 18px 44px; }
.inner-hero { padding: 34px; }
.section-block, .page-section { padding: 30px; }

.hero-grid,
.two-col,
.about-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.hero-grid { grid-template-columns: minmax(0,1.05fr) minmax(380px,.95fr); }
.two-col, .about-grid { grid-template-columns: 1.15fr .85fr; }

.hero-copy h1,
.inner-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: .95;
  letter-spacing: -.045em;
  max-width: 12ch;
}
.hero-copy h1 {
  max-width: 12ch;
  font-family: "Cormorant Garamond", "Noto Sans", serif;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: .88;
  letter-spacing: -.06em;
  color: #22332f;
}
.hero-copy h1 em {
  color: #d0606f;
  font-style: italic;
  font-weight: 600;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #d0606f;
}
.hero-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: #d0606f;
}
.korean-line {
  display: block;
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", "Noto Sans KR", serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  color: var(--accent);
  letter-spacing: .01em;
}
.lead {
  margin: 0;
  max-width: 66ch;
  font-size: 1.04rem;
  line-height: 1.85;
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.info-chip,
.hero-note-card,
.project-card,
.about-panel,
.content-panel,
.content-card,
.metric-card,
.gallery-card,
.sticky-note,
.note-box,
.traffic-card,
.timeline-list article,
.pledge-list article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}
.info-chip {
  padding: 10px 14px;
  font-size: .92rem;
  background: rgba(255,255,255,.72);
}
.hero-side {
  display: grid;
  gap: 16px;
}
.hero-note-card,
.about-panel,
.content-panel,
.content-card,
.sticky-note,
.metric-card,
.traffic-card,
.timeline-list article,
.pledge-list article { padding: 22px; }
.hero-note-card p,
.about-panel p,
.content-panel p,
.content-card p,
.sticky-note p,
.timeline-list article p,
.pledge-list article p,
.page-section p,
.section-block p,
blockquote {
  margin-top: 0;
  line-height: 1.86;
  color: #34435d;
}
.design-card {
  transform: rotate(-1.3deg);
  border-style: dashed;
  border-color: rgba(217,107,88,.35);
}
.tag-kor {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.metric-stack { display: grid; gap: 14px; }
.metric-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.8rem;
  font-weight: 800;
}
.metric-card small { color: var(--muted); line-height: 1.6; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.section-head h2,
.content-panel h2,
.about-panel h2,
.content-card h3,
.hero-note-card h3,
.sticky-note h3 {
  margin: 0;
  letter-spacing: -.03em;
}
.section-head h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.4rem);
  position: relative;
  padding-bottom: 12px;
}
.section-head h2::after {
  content: "";
  width: 78px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(217,107,88,0));
  border-radius: 999px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.works-header { max-width: var(--max); margin: 0 auto 16px; padding: 0 2px; }
.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 24px;
}
.summary-section {
  max-width: var(--max);
  margin: 72px auto 24px;
  padding: 0 2px;
}
.summary-head {
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}
.summary-head h2::after {
  left: 50%;
  transform: translateX(-50%);
}
.project-card {
  padding: 30px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  height: 100%;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 18%, rgba(184,95,75,.12), transparent 18%),
    radial-gradient(circle at 18% 92%, rgba(49,95,124,.10), transparent 24%);
  opacity: .72;
  pointer-events: none;
}
.project-card > * { position: relative; z-index: 1; }
.project-card:hover {
  transform: translateY(-2px) rotate(-.2deg);
  box-shadow: 0 22px 60px rgba(23,37,58,.12);
}
.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.project-no {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
  color: rgba(184,95,75,.18);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.project-icon {
  min-width: 56px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255,244,230,.92);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.project-card img {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f4ece2, #fffdfb);
}
.project-meta h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  line-height: 1.35;
  margin: 0 0 10px;
  text-wrap: balance;
}
.project-meta p { margin: 0; color: var(--muted); line-height: 1.78; }
.project-tags {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(184,95,75,.09);
  color: #9a514e;
  font-size: .82rem;
  font-weight: 700;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transition: transform .18s ease, opacity .18s ease;
}
.read-link:hover { transform: translateY(-1px); opacity: .95; }

.content-panel { gap: 12px; }
.summary-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.summary-panel {
  padding: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,253,248,.96), rgba(250,244,237,.92));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.summary-main {
  grid-row: span 3;
  background:
    radial-gradient(circle at 88% 16%, rgba(184,95,75,.16), transparent 24%),
    linear-gradient(180deg, #fffdfa, #f6eee4);
}
.summary-panel span {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(184,95,75,.32);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
}
.summary-panel h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.4;
}
.summary-main h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.summary-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}
.summary-panel p + p { margin-top: 12px; }
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-card h3 { font-size: 1.08rem; line-height: 1.45; }

.document-content {
  max-width: 1040px;
}
.assignment-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(184,95,75,.08), transparent 24%),
    radial-gradient(circle at 88% 36%, rgba(185,203,187,.14), transparent 22%),
    rgba(255,253,250,.94);
}
.document-content > h2,
.document-content > h3 {
  letter-spacing: -.02em;
  margin-top: 1.5rem;
  margin-bottom: .7rem;
}
.document-content > h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}
.document-content > h3 {
  font-size: 1.12rem;
  color: #20304d;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}
.meta-grid article {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(250,244,237,.72));
  border: 1px solid var(--line);
}
.meta-grid strong,
.meta-grid span {
  display: block;
}
.meta-grid strong {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.meta-grid span {
  color: #27364d;
  line-height: 1.55;
}
.step-block {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  margin: 22px 0;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.step-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2eee8;
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step-block h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.4;
}
.step-block p:last-child { margin-bottom: 0; }
.evidence-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.evidence-strip.single {
  grid-template-columns: minmax(0, 1fr);
}
.evidence-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.evidence-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}
.evidence-strip.single img {
  aspect-ratio: auto;
  max-height: 720px;
  object-fit: contain;
  background: #f8f4ee;
}
.evidence-strip figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: .86rem;
  border-top: 1px solid var(--line);
}
.body-list {
  margin: 0;
  padding-left: 1.35rem;
  color: #34435d;
}
.body-list li { margin: 8px 0; line-height: 1.82; }
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fdf9f5);
}
table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f0e9;
  font-size: .93rem;
}
blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--accent-soft);
}
.note-box {
  padding: 16px 18px;
  color: #34435d;
}

.timeline-list,
.pledge-list { display: grid; gap: 16px; }
.timeline-list article,
.pledge-list article {
  background: linear-gradient(180deg, #fffdfa, #faf3ea);
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.traffic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.traffic-card.green { background: linear-gradient(180deg, #fbfffb, #e5efe4); }
.traffic-card.yellow { background: linear-gradient(180deg, #fffdf4, #f5e6ba); }
.traffic-card.red { background: linear-gradient(180deg, #fff9f8, #f5d0ca); }
.sticky-note {
  background: linear-gradient(180deg, #fff9ea, #fff1cf);
  border-style: dashed;
  transform: rotate(1.1deg);
}
.sticky-note ol { padding-left: 18px; margin-bottom: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 12px;
}

.evidence-section { background: rgba(252,247,241,.95); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-card {
  padding: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23,37,58,.10);
}
.gallery-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f0ebe4;
}
.gallery-card figcaption {
  padding: 12px 2px 2px;
  font-size: .9rem;
  color: var(--muted);
}

.site-footer {
  max-width: var(--max);
  margin: 26px auto 0;
  padding: 0 18px 36px;
  color: var(--muted);
}
.site-footer p { margin: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 37, 0.38);
  backdrop-filter: blur(8px);
}
.lightbox-image {
  display: grid;
  place-items: center;
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  background: transparent;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  background: rgba(255,255,255,.95);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1024px) {
  .hero-grid,
  .two-col,
  .about-grid,
  .meta-grid,
  .project-grid,
  .summary-grid,
  .card-grid.three-col,
  .card-grid.two-col,
  .policy-grid,
  .traffic-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .project-grid { grid-auto-rows: auto; }
  .summary-main { grid-row: auto; }
  .korean-hero { min-height: auto; }
  .hero-showcase { min-height: 520px; }
  .profile-mockup { right: 0; left: 0; margin: 0 auto; }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    margin: 12px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar::before { inset: 0; border-radius: 28px; }
  main { padding: 12px; }
  .hero, .inner-hero, .section-block, .page-section { padding: 22px; }
  .hero-copy h1, .inner-hero h1 { max-width: 100%; }
  .topnav { width: 100%; }
  .topnav .nav-cta { margin-left: 0; }
  .hero-copy h1 { font-size: clamp(3.2rem, 19vw, 5.2rem); }
  .hero-showcase { min-height: 430px; }
  .profile-mockup {
    width: 92%;
    min-height: 360px;
    border-width: 8px;
    border-radius: 32px;
  }
  .avatar-illustration {
    width: 200px;
    height: 250px;
    bottom: 64px;
  }
  .avatar-illustration span { transform: scale(.82); transform-origin: top left; }
  .mockup-caption {
    left: 12px;
    right: 12px;
    bottom: -24px;
  }
  .float-card { width: 112px; border-width: 7px; border-radius: 18px; }
  .float-card-top { right: 0; top: 20px; }
  .float-card-bottom { left: 0; bottom: 4px; }
  .step-block {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .evidence-strip { grid-template-columns: 1fr; }
}

.lightbox[hidden] { display: none !important; }

.lightbox-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

body.project-b1 { --accent: #4E78A8; --accent-soft: rgba(78,120,168,.12); }
body.project-b2 { --accent: #4F7A68; --accent-soft: rgba(79,122,104,.12); }
body.project-b3 { --accent: #8B5E83; --accent-soft: rgba(139,94,131,.12); }
body.project-b4 { --accent: #3E6D9C; --accent-soft: rgba(62,109,156,.12); }
body.project-b5 { --accent: #D96B58; --accent-soft: rgba(217,107,88,.12); }
body.project-b6 { --accent: #9A514E; --accent-soft: rgba(154,81,78,.12); }
body.project-b1 .inner-hero,
body.project-b2 .inner-hero,
body.project-b3 .inner-hero,
body.project-b4 .inner-hero,
body.project-b5 .inner-hero,
body.project-b6 .inner-hero {
  border-top: 6px solid var(--accent);
}

.gallery-button { position: relative; display: block; }
.gallery-button::after {
  content: "Mở ảnh ↗";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(24,38,61,.82);
  color: #fff;
  font-size: .72rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.gallery-button:hover::after { opacity: 1; transform: translateY(0); }

body.korean-portfolio::after {
  content: "한글 · 문화 · AI · 기록";
  position: fixed;
  right: -72px;
  top: 42%;
  z-index: 0;
  color: rgba(23,37,58,.09);
  font-family: "Noto Sans KR", "Noto Sans", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5em;
  writing-mode: vertical-rl;
  pointer-events: none;
}

.korean-hero {
  isolation: isolate;
  min-height: 760px;
  background:
    radial-gradient(circle at 6% 14%, rgba(238,137,135,.24), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(185,203,187,.22), transparent 26%),
    linear-gradient(100deg, rgba(255,250,244,.96), rgba(255,253,248,.86));
  border-color: rgba(255,255,255,.9);
}

.korean-hero::before {
  background:
    radial-gradient(circle at 90% 28%, transparent 0 200px, rgba(217,107,88,.10) 201px, transparent 202px),
    linear-gradient(90deg, rgba(49,95,124,.07), transparent 30%);
}

.korean-hero::after {
  width: 310px;
  height: 310px;
  right: -95px;
  bottom: -105px;
  background:
    radial-gradient(circle at 50% 50%, rgba(184,95,75,.18), transparent 42%),
    conic-gradient(from 180deg, rgba(49,95,124,.16), rgba(184,95,75,.14), rgba(185,203,187,.18), rgba(49,95,124,.16));
  border-radius: 50%;
  filter: blur(.2px);
  opacity: .78;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
  align-self: end;
}

.profile-mockup {
  position: absolute;
  right: -16px;
  bottom: -8px;
  width: min(520px, 100%);
  min-height: 470px;
  padding: 28px;
  border-radius: 42px;
  border: 12px solid rgba(33,48,58,.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.8), transparent 28%),
    linear-gradient(145deg, #ffe2dd, #eef4ee 78%);
  box-shadow: 0 34px 80px rgba(23,37,58,.14);
  transform: rotate(2deg);
}

.mockup-tab {
  position: absolute;
  right: 28px;
  top: 34px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #d0606f;
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.avatar-illustration {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 250px;
  height: 310px;
  transform: translateX(-50%);
}

.avatar-illustration::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 32px;
  height: 190px;
  border-radius: 46% 46% 42% 42%;
  background: #292a2e;
}

.avatar-illustration::after {
  content: "";
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 0;
  height: 112px;
  border-radius: 90px 90px 24px 24px;
  background: linear-gradient(180deg, #4f876e, #3f755c);
}

.avatar-illustration span {
  position: absolute;
  left: 62px;
  top: 62px;
  z-index: 2;
  width: 126px;
  height: 156px;
  border-radius: 48% 48% 44% 44%;
  background: #f3bd95;
  box-shadow:
    45px 62px 0 -41px #292a2e,
    82px 62px 0 -41px #292a2e,
    64px 112px 0 -58px #bd6e72;
}

.mockup-caption {
  position: absolute;
  left: -68px;
  right: 52px;
  bottom: -28px;
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255,253,250,.92);
  box-shadow: 0 24px 68px rgba(23,37,58,.13);
  transform: rotate(-2deg);
}

.mockup-caption small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mockup-caption strong {
  display: block;
  max-width: 16ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: .95;
  color: #22332f;
}

.float-card {
  position: absolute;
  z-index: 2;
  width: 156px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(23,37,58,.16);
  border: 10px solid rgba(255,255,255,.88);
  object-fit: cover;
}

.float-card-top {
  right: -10px;
  top: 54px;
  transform: rotate(8deg);
}

.float-card-bottom {
  left: 8px;
  bottom: 8px;
  transform: rotate(-8deg);
}

.hanok-card,
.hanji-note {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(23,37,58,.13);
  border-radius: 30px 30px 18px 30px;
  background:
    linear-gradient(180deg, rgba(255,253,248,.92), rgba(251,244,234,.88)),
    radial-gradient(circle at 18% 0%, rgba(184,95,75,.13), transparent 34%);
  box-shadow: 0 18px 52px rgba(23,37,58,.09);
}

.hanok-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 10px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--dancheong-blue), var(--accent), var(--celadon));
  opacity: .78;
}

.hanji-note {
  transform: rotate(1.2deg);
  background:
    radial-gradient(circle at 12% 18%, rgba(185,203,187,.28), transparent 28%),
    linear-gradient(180deg, rgba(255,253,248,.96), rgba(244,236,226,.9));
}

.hanji-note > span:not(.tag-kor) {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "Noto Sans KR", sans-serif;
  font-weight: 900;
  letter-spacing: .18em;
}

.identity-card {
  background:
    linear-gradient(180deg, rgba(255,253,248,.94), rgba(251,244,234,.92)),
    repeating-linear-gradient(90deg, rgba(49,95,124,.035) 0 1px, transparent 1px 18px);
}

.journey-section {
  background:
    radial-gradient(circle at 90% 4%, rgba(49,95,124,.12), transparent 22%),
    rgba(255,253,250,.9);
}

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

.journey-grid article {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8, #f8f0e7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.journey-grid article span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.journey-grid article h3 {
  margin: 0 0 8px;
}

.journey-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.preview-panel {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(49,95,124,.18), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(184,95,75,.18), transparent 26%),
    linear-gradient(135deg, #fffdf8, #efe6db);
}

.preview-panel strong {
  display: block;
  color: var(--ink);
  font-family: "Noto Sans KR", "Noto Sans", sans-serif;
  font-size: 1.35rem;
}

.korean-grid {
  align-items: stretch;
}

.korean-grid .feature-card {
  grid-row: auto;
}

.korean-grid .feature-card img {
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.korean-grid .project-card {
  background:
    linear-gradient(180deg, rgba(255,253,248,.96), rgba(251,244,234,.92));
}

.korean-grid .project-card:hover {
  border-color: rgba(184,95,75,.28);
  box-shadow: 0 26px 70px rgba(23,37,58,.13);
}

.read-link {
  background: linear-gradient(135deg, var(--ink), var(--dancheong-blue));
}

.back-link-strong {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,253,248,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.back-link-strong:hover {
  transform: translateY(-1px);
  border-color: rgba(49,95,124,.28);
  background: #fff;
}

.gallery-button::after {
  content: "Mở ảnh";
}

@media (max-width: 1024px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .korean-hero { min-height: auto; }
  .hero-showcase { min-height: 520px; }
  .profile-mockup { right: 0; left: 0; margin: 0 auto; }
}

@media (max-width: 720px) {
  .topbar {
    margin: 12px;
    padding: 14px;
  }
  .topbar::before { inset: 0; border-radius: 28px; }
  .topnav .nav-cta { margin-left: 0; }
  .hero-copy h1 { font-size: clamp(3.2rem, 19vw, 5.2rem); }
  .hero-showcase { min-height: 430px; }
  .profile-mockup {
    width: 92%;
    min-height: 360px;
    border-width: 8px;
    border-radius: 32px;
  }
  .avatar-illustration {
    width: 200px;
    height: 250px;
    bottom: 64px;
  }
  .avatar-illustration span {
    transform: scale(.82);
    transform-origin: top left;
  }
  .mockup-caption {
    left: 12px;
    right: 12px;
    bottom: -24px;
  }
  .float-card {
    width: 112px;
    border-width: 7px;
    border-radius: 18px;
  }
  .float-card-top { right: 0; top: 20px; }
  .float-card-bottom { left: 0; bottom: 4px; }
}

/* Homepage layout aligned with the compact reference portfolio. */
body.korean-portfolio .korean-hero {
  max-width: var(--max);
  min-height: auto;
  margin: 0 auto 42px;
  padding: 118px 18px 48px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

body.korean-portfolio .korean-hero::before,
body.korean-portfolio .korean-hero::after {
  display: none;
}

body.korean-portfolio .korean-hero .hero-copy {
  max-width: 820px;
}

body.korean-portfolio .korean-hero .lead {
  max-width: 620px;
}

body.korean-portfolio .korean-hero .info-strip {
  gap: 0;
  margin-top: 24px;
  color: var(--muted);
}

body.korean-portfolio .korean-hero .info-chip {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
}

body.korean-portfolio .korean-hero .info-chip + .info-chip::before {
  content: "·";
  margin: 0 10px;
  color: rgba(98,112,136,.75);
}

.about-portfolio {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 18px;
}

.about-header,
.section-head.summary-head {
  text-align: center;
  align-items: center;
}

.about-header .tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184,95,75,.10);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-header h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -.04em;
}

.about-card-flat {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,253,250,.72);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
}

.about-block-flat {
  padding: 0;
}

.about-block-flat h3 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .88rem;
  letter-spacing: .14em;
}

.about-block-flat p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.about-tags-flat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.about-tags-flat span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(184,95,75,.09);
  color: #9a514e;
  font-size: .86rem;
  font-weight: 700;
}

.about-quote-flat {
  margin: 4px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(184,95,75,.08);
  color: #34435d;
  line-height: 1.75;
}

/* Reposition hero artwork so it sits parallel with the headline. */
body.korean-portfolio .hero-showcase {
  min-height: 460px;
  transform: translate(88px, -78px);
}

body.korean-portfolio .profile-mockup {
  width: min(430px, 100%);
  min-height: 390px;
  right: -18px;
  top: 50px;
  bottom: auto;
}

body.korean-portfolio .mockup-caption {
  left: -22px;
  right: 28px;
  bottom: -18px;
}

body.korean-portfolio .float-card-top {
  right: -22px;
  top: -8px;
}

body.korean-portfolio .float-card-bottom {
  left: -4px;
  bottom: 16px;
}

@media (max-width: 1024px) {
  body.korean-portfolio .hero-showcase {
    transform: none;
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .profile-mockup {
    right: 0;
    top: 62px;
  }

  body.korean-portfolio .float-card-top {
    right: -8px;
    top: 18px;
  }

  body.korean-portfolio .float-card-bottom {
    left: 0;
    bottom: 8px;
  }
}

.works-header {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.works-header .section-head {
  align-items: center;
}

.works-header .section-head h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.project-grid {
  margin-bottom: 0;
}

.summary-section {
  clear: both;
  margin-top: 80px;
  padding-top: 0;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.summary-panel {
  padding: 28px;
  border-radius: 24px;
}

.summary-panel span {
  margin-bottom: 12px;
  color: rgba(184,95,75,.36);
  font-size: 1.8rem;
  line-height: 1;
}

.summary-panel h3 {
  font-size: 1.05rem;
}

.summary-panel p {
  font-size: .94rem;
  line-height: 1.72;
}

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

/* Reposition hero artwork so it sits parallel with the headline. */
body.korean-portfolio .hero-showcase {
  min-height: 500px;
  transform: translate(88px, -78px);
}

body.korean-portfolio .profile-mockup {
  width: min(430px, 100%);
  min-height: 390px;
  right: -18px;
  top: 50px;
  bottom: auto;
}

body.korean-portfolio .mockup-caption {
  left: -22px;
  right: 28px;
  bottom: -18px;
}

body.korean-portfolio .float-card-top {
  right: -22px;
  top: -8px;
}

body.korean-portfolio .float-card-bottom {
  left: -4px;
  bottom: 16px;
}

@media (max-width: 1024px) {
  body.korean-portfolio .hero-showcase {
    transform: none;
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .profile-mockup {
    right: 0;
    top: 62px;
  }

  body.korean-portfolio .float-card-top {
    right: -8px;
    top: 18px;
  }

  body.korean-portfolio .float-card-bottom {
    left: 0;
    bottom: 8px;
  }
}

/* Final homepage fixes */
.inner-hero-copy .back-link,
.back-link {
  display: flex;
  width: fit-content;
  margin-bottom: 16px;
}

body.korean-portfolio .korean-hero {
  padding-top: 118px;
  padding-bottom: 42px;
}

body.korean-portfolio .korean-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 44px;
}

body.korean-portfolio .korean-hero .hero-copy {
  max-width: 760px;
}

body.korean-portfolio .hero-showcase {
  display: block;
  min-height: 560px;
  position: relative;
}

body.korean-portfolio .profile-mockup {
  right: 10px;
  bottom: 12px;
}

body.korean-portfolio .float-card-top {
  right: -34px;
  top: 8px;
}

body.korean-portfolio .float-card-bottom {
  left: 2px;
  bottom: 16px;
}

.about-portfolio {
  max-width: var(--max);
  margin: 0 auto 70px;
  padding: 64px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .6fr);
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(185,203,187,.20), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(184,95,75,.08), transparent 24%),
    linear-gradient(135deg, rgba(245,255,248,.70), rgba(255,253,250,.26));
  border: 0;
  box-shadow: none;
}

.about-copy-flat h2 {
  margin: 8px 0 10px;
  color: #8fd3a7;
  font-family: "Noto Sans", "Noto Sans KR", sans-serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .95;
  letter-spacing: -.06em;
}

.about-hello {
  margin: 0;
  color: #22332f;
  font-size: 1.05rem;
  font-weight: 700;
}

.about-subtitle,
.about-desc {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.78;
}

.about-info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 740px;
  margin: 28px 0 22px;
}

.about-info-row div {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 14px 42px rgba(23,37,58,.06);
}

.about-info-row strong,
.about-info-row span {
  display: block;
  text-align: center;
}

.about-info-row strong {
  margin-bottom: 8px;
  color: #22332f;
  font-size: .72rem;
  letter-spacing: .14em;
}

.about-info-row span {
  color: #27364d;
  font-weight: 800;
}

.about-action {
  display: inline-flex;
  margin-top: 24px;
  padding: 14px 26px;
  border-radius: 18px;
  background: #9bddac;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(107,182,127,.22);
}

.about-avatar-flat {
  justify-self: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8f8, #ead6db 72%);
  box-shadow: 0 26px 80px rgba(90,133,98,.18), inset 0 0 0 5px rgba(255,255,255,.76);
}

.about-avatar-flat span {
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  filter: drop-shadow(0 10px 18px rgba(217,107,88,.18));
}

@media (max-width: 1024px) {
  body.korean-portfolio .korean-hero .hero-grid,
  .about-portfolio {
    grid-template-columns: 1fr;
  }

  body.korean-portfolio .hero-showcase {
    min-height: 520px;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .korean-hero {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  body.korean-portfolio .hero-showcase {
    min-height: 420px;
  }

  .about-portfolio {
    padding: 42px 18px;
    margin-bottom: 48px;
    gap: 30px;
  }

  .about-info-row {
    grid-template-columns: 1fr;
  }
}

/* Scale homepage down and keep hero artwork clear of the title. */
body.korean-portfolio {
  --max: 1040px;
}

body.korean-portfolio .korean-hero {
  padding-top: 92px;
  padding-bottom: 34px;
}

body.korean-portfolio .korean-hero .hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(300px, .72fr);
  gap: 72px;
}

body.korean-portfolio .hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.25rem, 6.45vw, 6.45rem);
  line-height: .9;
}

body.korean-portfolio .hero-copy .lead {
  max-width: 520px;
  font-size: .94rem;
}

body.korean-portfolio .korean-hero .info-strip {
  font-size: .84rem;
}

body.korean-portfolio .hero-showcase {
  min-height: 440px;
  transform: translate(34px, -28px);
}

body.korean-portfolio .profile-mockup {
  width: min(390px, 100%);
  min-height: 350px;
  right: -44px;
  top: 92px;
  bottom: auto;
}

body.korean-portfolio .avatar-illustration {
  width: 190px;
  height: 250px;
  bottom: 58px;
}

body.korean-portfolio .avatar-illustration span {
  transform: scale(.78);
  transform-origin: top left;
}

body.korean-portfolio .mockup-caption {
  left: -72px;
  right: 16px;
  bottom: -18px;
  padding: 18px 22px;
}

body.korean-portfolio .mockup-caption strong {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

body.korean-portfolio .float-card {
  width: 126px;
  border-width: 8px;
}

body.korean-portfolio .float-card-top {
  right: -86px;
  top: 16px;
}

body.korean-portfolio .float-card-bottom {
  left: -58px;
  bottom: 34px;
}

@media (max-width: 1024px) {
  body.korean-portfolio .korean-hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.korean-portfolio .hero-showcase {
    transform: none;
    min-height: 430px;
  }

  body.korean-portfolio .profile-mockup {
    right: 0;
    left: 0;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .hero-copy h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  body.korean-portfolio .float-card-top {
    right: -8px;
    top: 18px;
  }

  body.korean-portfolio .float-card-bottom {
    left: 0;
    bottom: 8px;
  }
}

/* Restore compact About me & Portfolio section. */
.about-portfolio {
  display: block;
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 0 18px;
  background: transparent;
}

.about-card-flat {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,253,250,.72);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .about-portfolio {
    margin-bottom: 42px;
    padding: 0 12px;
  }
}

/* Final reference-match homepage hero. Keep this block last. */
body.korean-portfolio {
  --max: 1360px;
}

body.korean-portfolio .topbar {
  max-width: 1120px;
  margin-top: 16px;
}

body.korean-portfolio .korean-hero {
  max-width: 1360px;
  margin: 0 auto 46px;
  padding: 120px 48px 52px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

body.korean-portfolio .korean-hero::before,
body.korean-portfolio .korean-hero::after {
  display: none;
}

body.korean-portfolio .korean-hero .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(460px, 1fr);
  align-items: center;
  gap: 76px;
}

body.korean-portfolio .korean-hero .hero-copy {
  max-width: 780px;
}

body.korean-portfolio .hero-copy h1 {
  max-width: 9.6ch;
  margin: 18px 0 26px;
  font-size: clamp(5.2rem, 7.3vw, 7.85rem);
  line-height: .88;
  letter-spacing: -.06em;
}

body.korean-portfolio .hero-copy .lead {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.65;
}

body.korean-portfolio .korean-hero .info-strip {
  margin-top: 24px;
  font-size: .92rem;
  gap: 0;
}

body.korean-portfolio .korean-hero .info-chip {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.korean-portfolio .hero-showcase {
  position: relative;
  display: block;
  min-height: 560px;
  transform: translate(8px, -8px);
}

body.korean-portfolio .profile-mockup {
  width: 490px;
  min-height: 455px;
  right: 10px;
  top: 112px;
  bottom: auto;
  left: auto;
  margin: 0;
}

body.korean-portfolio .avatar-illustration {
  width: 250px;
  height: 310px;
  bottom: 86px;
}

body.korean-portfolio .avatar-illustration span {
  transform: none;
}

body.korean-portfolio .mockup-caption {
  left: -92px;
  right: 50px;
  bottom: -22px;
  padding: 24px 28px;
}

body.korean-portfolio .mockup-caption strong {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
}

body.korean-portfolio .float-card {
  width: 155px;
  border-width: 10px;
}

body.korean-portfolio .float-card-top {
  right: -12px;
  top: 46px;
}

body.korean-portfolio .float-card-bottom {
  left: -28px;
  bottom: 0;
}

body.korean-portfolio .about-portfolio {
  display: block;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 18px;
  background: transparent;
}

@media (max-width: 1180px) {
  body.korean-portfolio .korean-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  body.korean-portfolio .korean-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, .78fr);
    gap: 42px;
  }

  body.korean-portfolio .hero-copy h1 {
    font-size: clamp(4.4rem, 8vw, 6.6rem);
  }

  body.korean-portfolio .profile-mockup {
    width: 430px;
    min-height: 395px;
  }
}

@media (max-width: 920px) {
  body.korean-portfolio .korean-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  body.korean-portfolio .hero-showcase {
    min-height: 500px;
    transform: none;
  }

  body.korean-portfolio .profile-mockup {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(2deg);
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .korean-hero {
    padding: 44px 18px 32px;
  }

  body.korean-portfolio .hero-copy h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  body.korean-portfolio .hero-showcase {
    min-height: 430px;
  }

  body.korean-portfolio .profile-mockup {
    width: 92%;
    min-height: 360px;
  }

  body.korean-portfolio .float-card-top {
    right: 0;
    top: 18px;
  }

  body.korean-portfolio .float-card-bottom {
    left: 0;
    bottom: 8px;
  }
}

/* Homepage 80% visual scale. Keep this block last. */
body.korean-portfolio {
  --max: 1088px;
}

body.korean-portfolio .topbar {
  max-width: 896px;
  padding: 10px 14px;
}

body.korean-portfolio .brand-logo {
  width: 46px;
  height: 46px;
}

body.korean-portfolio .brand strong {
  font-size: .92rem;
}

body.korean-portfolio .brand span,
body.korean-portfolio .topnav a {
  font-size: .82rem;
}

body.korean-portfolio .topnav .nav-cta {
  padding: 12px 15px 12px 19px;
}

body.korean-portfolio .topnav .nav-cta span {
  width: 28px;
  height: 28px;
}

body.korean-portfolio .korean-hero {
  max-width: 1088px;
  padding: 96px 38px 42px;
  margin-bottom: 38px;
}

body.korean-portfolio .korean-hero .hero-grid {
  grid-template-columns: minmax(0, 624px) minmax(368px, 1fr);
  gap: 60px;
}

body.korean-portfolio .hero-copy h1 {
  max-width: 9.7ch;
  font-size: clamp(4.15rem, 5.85vw, 6.3rem);
  line-height: .89;
}

body.korean-portfolio .hero-eyebrow {
  font-size: .66rem;
}

body.korean-portfolio .hero-copy .lead {
  max-width: 520px;
  font-size: .9rem;
  line-height: 1.72;
}

body.korean-portfolio .korean-hero .info-strip {
  font-size: .78rem;
}

body.korean-portfolio .hero-showcase {
  min-height: 448px;
  transform: translate(6px, -6px);
}

body.korean-portfolio .profile-mockup {
  width: 392px;
  min-height: 364px;
  right: 8px;
  top: 90px;
}

body.korean-portfolio .avatar-illustration {
  width: 200px;
  height: 248px;
  bottom: 68px;
}

body.korean-portfolio .avatar-illustration span {
  transform: scale(.82);
  transform-origin: top left;
}

body.korean-portfolio .mockup-caption {
  left: -74px;
  right: 40px;
  bottom: -18px;
  padding: 19px 22px;
}

body.korean-portfolio .mockup-caption small {
  font-size: .58rem;
}

body.korean-portfolio .mockup-caption strong {
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
}

body.korean-portfolio .float-card {
  width: 124px;
  border-width: 8px;
}

body.korean-portfolio .float-card-top {
  right: -10px;
  top: 38px;
}

body.korean-portfolio .float-card-bottom {
  left: -22px;
  bottom: 0;
}

body.korean-portfolio .about-portfolio,
body.korean-portfolio .works-header,
body.korean-portfolio .project-grid,
body.korean-portfolio .summary-section,
body.korean-portfolio .site-footer {
  max-width: 1088px;
}

@media (max-width: 1180px) {
  body.korean-portfolio .korean-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
    gap: 34px;
  }
}

/* Replace hero mockup images with a compact illustrated portfolio card. */
body.korean-portfolio .hero-art-card {
  width: min(330px, 100%);
  min-height: 430px;
  justify-self: center;
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 38px 30px 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 80% 15%, rgba(247,190,162,.82) 0 36px, transparent 37px),
    radial-gradient(circle at 22% 78%, rgba(212,241,243,.74) 0 52px, transparent 53px),
    radial-gradient(circle at 50% 38%, rgba(255,211,174,.52), rgba(247,199,210,.42) 42%, transparent 43%),
    linear-gradient(145deg, rgba(255,253,250,.96), rgba(255,226,232,.78) 58%, rgba(255,224,191,.82));
  border: 10px solid rgba(255,255,255,.72);
  box-shadow: 0 30px 90px rgba(23,37,58,.12), inset 0 0 0 1px rgba(255,255,255,.8);
  overflow: hidden;
  transform: translate(18px, -20px);
}

body.korean-portfolio .hero-art-card::before {
  content: "";
  position: absolute;
  inset: 38px 54px auto;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(217,107,88,.14);
  background: radial-gradient(circle, rgba(255,237,219,.72), rgba(255,205,220,.36) 62%, transparent 63%);
}

.sakura-orb {
  position: relative;
  z-index: 1;
  width: 188px;
  height: 188px;
  margin: 30px auto 0;
}

.sakura-orb .petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 46px;
  border: 4px solid rgba(217,107,88,.62);
  border-radius: 70% 22% 70% 22%;
  background: rgba(255,238,243,.58);
  transform-origin: 0 50%;
}

.sakura-orb .p1 { transform: rotate(-90deg) translateX(6px); }
.sakura-orb .p2 { transform: rotate(-18deg) translateX(6px); }
.sakura-orb .p3 { transform: rotate(54deg) translateX(6px); }
.sakura-orb .p4 { transform: rotate(126deg) translateX(6px); }
.sakura-orb .p5 { transform: rotate(198deg) translateX(6px); }

.flower-core {
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e99586;
  box-shadow:
    0 -44px 0 -4px #e99586,
    42px -12px 0 -4px #e99586,
    28px 35px 0 -4px #e99586,
    -28px 35px 0 -4px #e99586,
    -42px -12px 0 -4px #e99586;
}

.sakura-orb .sparkle {
  position: absolute;
  right: 24px;
  top: 40px;
  color: #f1a56f;
  font-size: 1.4rem;
}

.student-card {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 22px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 42px rgba(23,37,58,.08);
  text-align: center;
}

.student-card span {
  display: block;
  margin-bottom: 10px;
  color: #f05a9b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .28em;
}

.student-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.14rem;
}

.student-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 920px) {
  body.korean-portfolio .hero-art-card {
    transform: none;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .hero-art-card {
    width: min(310px, 100%);
    min-height: 400px;
  }
}

@media (max-width: 720px) {
  body.korean-portfolio .korean-hero {
    padding: 44px 18px 30px;
    margin-bottom: 28px;
  }

  .about-portfolio {
    margin-bottom: 42px;
    padding: 0 12px;
  }

  .about-card-flat {
    padding: 22px;
  }

  .summary-section {
    margin-top: 56px;
  }

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