/* ---------- Design tokens ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --gray-300: #dedcd6;
  --gray-500: #8b8a86;
  --gray-700: #4a4a48;
  --accent: #dbff78;

  --container: min(1125px, 100% - 2.5rem);
  --radius-md: 10px;

  --font-kr: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic',
    'Apple SD Gothic Neo', system-ui, sans-serif;
  --font-en: 'Inter Tight', var(--font-kr);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-kr);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

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

h1, h2, h3, h4, p {
  margin: 0;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--black);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.logo-mark {
  height: 26px;
  width: auto;
}

.logo-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.3);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.logo-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
}

.logo-text b {
  font-weight: 700;
}

.logo-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--black);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-arrow {
  font-size: 0.7rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  margin-inline: auto;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: #2b2b2e;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.text-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 700;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 2px;
}

.text-strong-link {
  font-weight: 700;
}

/* ---------- Sections (generic) ---------- */
.section {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.section-title.light {
  color: var(--white);
}

.section-title.center {
  text-align: center;
}

.lead {
  margin-top: 1.1rem;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--black);
  line-height: 1.6;
}

.lead.strong {
  font-weight: 700;
}

.section-foot {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.6;
}

.section-foot.center {
  text-align: center;
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.highlight {
  padding: 0.05em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.highlight-lime {
  background: var(--accent);
  color: var(--black);
}

.highlight-dark {
  background: var(--black);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  min-height: min(80vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-logo {
  width: clamp(110px, 15vw, 210px);
  height: auto;
}

.btn-hero-download {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-download:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ---------- Headline section ---------- */
.headline {
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.button-row {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Problems section ---------- */
.problems-section {
  background: var(--off-white);
}

.problems-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.problem-card {
  background: var(--white);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--black);
  flex-shrink: 0;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.problem-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Philosophy section ---------- */
.philosophy-grid {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  grid-template-columns: repeat(4, 1fr);
}

.dark-card {
  background: var(--black);
  color: var(--white);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.dark-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Vec panels ---------- */
.panels {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4.5rem);
}

.panel {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2.75rem);
}

.panel-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: clamp(1rem, 3vw, 1.8rem);
  background: var(--black);
}

.panel-title-box {
  background: var(--black);
  color: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2rem) clamp(2rem, 4vw, 2.75rem);
}

.panel-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.panel-title {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.panel-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.panel-figure {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
}

.panel-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.panel-quote {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
}

.panel-body {
  margin-top: 1rem;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  max-width: 68ch;
}

/* ---------- Process ---------- */
.process-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  display: flex;
  flex-direction: column;
}

.process-figure {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
}

.process-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.process-step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 1.3rem;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.process-arrow {
  position: relative;
  height: 1px;
  background: var(--black);
  margin: 1.5rem 0 1.25rem;
}

.process-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--black);
}

.process-step p {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* ---------- Services ---------- */
.services-section {
  background: var(--off-white);
}

.services-grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.3rem;
}

.service-figure {
  margin: -1.5rem -1.3rem 1.25rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: var(--off-white);
}

.service-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

.service-card ul li {
  font-size: 0.86rem;
  color: var(--gray-700);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

/* ---------- Works ---------- */
.works-section {
  background: var(--black);
}

.works-filter {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.works-grid {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.work-card[hidden] {
  display: none;
}

.works-empty {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.works-empty[hidden] {
  display: none;
}

.work-card {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease);
}

.work-img-default {
  opacity: 1;
}

.work-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.work-card:hover .work-img-default {
  opacity: 0;
}

.work-card:hover .work-img-hover {
  opacity: 1;
}

.work-card:hover .work-img {
  transform: scale(1.04);
}

/* ---------- Partners ---------- */
.partner-card {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.partner-photo {
  flex-shrink: 0;
  width: clamp(140px, 20vw, 220px);
  aspect-ratio: 0.73;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
}

.partner-role {
  color: var(--gray-700);
  font-weight: 600;
  margin-top: 0.3rem;
  margin-bottom: 1.1rem;
}

.partner-skills p {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.partner-skills span {
  display: inline-block;
  font-weight: 700;
  color: var(--black);
  margin-right: 0.6rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: #d6d6d6;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #2a2a2d;
}

.footer-logo {
  width: 84px;
  height: auto;
  margin-bottom: 1.25rem;
}

.footer-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a5a5a5;
}

.footer-resume {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.resume-block h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.resume-block p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #a5a5a5;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-bottom: 1px solid #2a2a2d;
}

.footer-badges img {
  height: 28px;
  width: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: #6f6f6f;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--black);
  color: var(--accent);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 90;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 200;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 2.25rem);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--gray-700);
}

.modal-close:hover {
  background: var(--gray-100, var(--off-white));
  color: var(--black);
}

#contact-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  padding-right: 2rem;
}

.modal-desc {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.55;
}

#contact-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--black);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--black);
}

.form-submit {
  margin-top: 0.4rem;
  width: 100%;
}

.modal-note {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--off-white);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--black);
}

.modal-note[hidden] {
  display: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Project detail page ---------- */
.project-topbar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 1.1rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s var(--ease);
}

.project-back:hover {
  color: var(--accent);
}

.project-hero {
  background: var(--black);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.project-poster {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-poster img {
  width: 100%;
  height: auto;
}

.project-hero-main {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.project-hero-img {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

.project-hero-img-title {
  position: absolute;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.project-title {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.project-title-sub {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.project-desc {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
}

.project-desc + .project-desc {
  margin-top: 0.85rem;
}

.project-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
}

.project-meta-item {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.project-palette {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.palette-card {
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  color: var(--white);
}

.palette-swatch {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.palette-code {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
}

.palette-rgb {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.palette-meaning-kr {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.palette-meaning-en {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}

.project-stream {
  background: var(--black);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.project-stream-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}

.project-stream-list img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.project-footer-nav {
  background: var(--black);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.project-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--white);
}

.project-nav-link.next {
  text-align: right;
  align-items: flex-end;
}

.project-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.project-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  transition: opacity 0.2s var(--ease);
}

.project-nav-link:hover .project-nav-title {
  opacity: 0.7;
}

@media (max-width: 860px) {
  .panel-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .project-poster {
    max-width: 280px;
  }

  .project-palette {
    grid-template-columns: 1fr;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .problems-grid,
  .services-grid,
  .philosophy-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .footer-resume {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h, 76px);
    background: transparent;
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), background 0s linear 0.35s, border-color 0.35s var(--ease);
    z-index: 80;
  }

  .main-nav.is-open {
    max-height: 420px;
    background: var(--black);
    border-bottom-color: #2a2a2d;
    transition: max-height 0.35s var(--ease), background 0s linear, border-color 0.35s var(--ease);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #1c1c1c;
  }

  .header-actions .lang-select {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-tagline {
    display: none;
  }
}

@media (max-width: 640px) {
  .problems-grid,
  .services-grid,
  .philosophy-grid,
  .process-grid,
  .works-grid,
  .footer-resume {
    grid-template-columns: 1fr;
  }

  .partner-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-photo {
    width: 160px;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }
}

/* ---------- 404 page ---------- */
.notfound-hero {
  background: var(--black);
  color: var(--white);
  min-height: calc(100svh - 79px);
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.notfound-hero-inner {
  width: 100%;
  text-align: center;
}

.notfound-art {
  position: relative;
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  margin: 0 auto;
  touch-action: none;
}

.notfound-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.notfound-eyebrow {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.notfound-hint {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.notfound-title {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.4rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--white);
}

.notfound-desc {
  margin-top: 1.1rem;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.notfound-actions {
  justify-content: center;
}

.notfound-primary-btn {
  background: var(--accent);
  color: var(--black);
}

.notfound-primary-btn:hover {
  background: var(--white);
}

.notfound-outline-btn {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.notfound-outline-btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

@media (max-width: 640px) {
  .notfound-hero {
    min-height: calc(100svh - 70px);
  }
}
