:root {
  --bd-red: #0b0b0b;
  --bd-black: #0b0b0b;
  --bd-gray: #8a8a8a;
  --bd-light: #f6f6f4;
  --bd-line: #e5e5e5;
  --bd-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bd-white);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bd-black);
  word-break: keep-all;
  letter-spacing: -0.02em;
}

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

button {
  font-family: inherit;
}

/* ================================
   Common
================================ */

.bd-eyebrow {
  font-size: 13px;
  color: var(--bd-red);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.bd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--bd-black);
  font-size: 14px;
  transition: all 0.25s ease;
}

.bd-button:hover {
  background: var(--bd-black);
  color: #fff;
}

.bd-button.red {
  border-color: var(--bd-red);
  background: var(--bd-red);
  color: #fff;
}

.bd-button.red:hover {
  background: var(--bd-black);
  border-color: var(--bd-black);
}

/* Blank Image Box */
.bd-blank-image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.035) 25%, transparent 25%) -12px 0/24px 24px,
    linear-gradient(225deg, rgba(0,0,0,0.035) 25%, transparent 25%) -12px 0/24px 24px,
    linear-gradient(315deg, rgba(0,0,0,0.035) 25%, transparent 25%) 0 0/24px 24px,
    linear-gradient(45deg, rgba(0,0,0,0.035) 25%, #f1f1ef 25%) 0 0/24px 24px;
  border: 1px solid var(--bd-line);
}

.bd-blank-image span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bd-blank-image img,
.bd-page-visual img,
.home-side-image img,
.home-portfolio-thumb img,
.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================
   Header
================================ */

.bd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bd-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.bd-header-logo {
  width: 280px;
  height: 86px;
  display: flex;
  align-items: center;
  padding: 0 36px;
  border-right: 1px solid var(--bd-line);
}

.bd-header-logo img {
  display: block;
  width: auto;
  height: 26.4px;
  object-fit: contain;
}

.bd-header-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 34px;
  font-size: 14px;
}

.bd-header-nav a {
  transition: color 0.2s ease;
}

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

.bd-header-right {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 28px;
  font-size: 14px;
  color: var(--bd-gray);
}

.bd-menu-button {
  width: 26px;
  height: 18px;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bd-menu-button span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--bd-black);
  transition: all 0.2s ease;
}

.bd-menu-button span:nth-child(1) {
  top: 0;
}

.bd-menu-button span:nth-child(2) {
  top: 8px;
}

.bd-menu-button span:nth-child(3) {
  bottom: 0;
}

.bd-menu-button.is-active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.bd-menu-button.is-active span:nth-child(2) {
  opacity: 0;
}

.bd-menu-button.is-active span:nth-child(3) {
  bottom: 9px;
  transform: rotate(-45deg);
}

/* ================================
   Page Basic
================================ */

.bd-page {
  min-height: 70vh;
}

.bd-page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 86px);
  border-bottom: 1px solid var(--bd-line);
}

.bd-page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 7vw;
}

.bd-page-title {
  font-size: clamp(38px, 3.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 400;
  margin: 0;
}

.bd-page-desc {
  max-width: 620px;
  margin: 32px 0 0;
  font-size: 17px;
  line-height: 1.78;
  color: #333;
}

.bd-page-visual {
  min-height: calc(100vh - 86px);
  overflow: hidden;
}

.bd-section {
  padding: 96px 6vw;
  border-bottom: 1px solid var(--bd-line);
}

.bd-section.light {
  background: var(--bd-light);
}

.bd-section-title {
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  font-weight: 400;
  margin: 0;
}

.bd-section-text {
  max-width: 760px;
}

.bd-section-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.82;
  color: #333;
}

.bd-section-text p + p {
  margin-top: 26px;
}

/* ================================
   Portfolio Grid
================================ */

.portfolio-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 24px;
}

.portfolio-card-item {
  display: block;
  border: 1px solid var(--bd-line);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  border-color: #d8d8d8;
}

.portfolio-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--bd-line);
  background: #f4f4f2;
}

.portfolio-img-box .portfolio-img {
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portfolio-img--default {
  z-index: 1;
  opacity: 1;
}

.portfolio-img--hover {
  z-index: 2;
  opacity: 0;
  transform: scale(1.025);
}

.portfolio-card-item:hover .portfolio-img--default,
.portfolio-card-item:focus-visible .portfolio-img--default {
  opacity: 0;
}

.portfolio-card-item:hover .portfolio-img--hover,
.portfolio-card-item:focus-visible .portfolio-img--hover {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none) {
  .portfolio-card-item:active .portfolio-img--default {
    opacity: 0;
  }

  .portfolio-card-item:active .portfolio-img--hover {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-img-box .portfolio-img {
    transition-duration: 0.01ms;
  }
}

.portfolio-card-body {
  padding: 20px 22px 24px;
}

.portfolio-card-body h3 {
  margin: 0 0 18px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.portfolio-card-body p {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* ================================
   Journal Grid
================================ */

.journal-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.journal-card-item {
  min-height: 260px;
  padding: 26px 24px;
  border: 1px solid var(--bd-line);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.journal-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  border-color: #d8d8d8;
}

.journal-card-item h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.34;
  letter-spacing: -0.045em;
  font-weight: 400;
}

.journal-meta {
  font-size: 13px;
  color: var(--bd-gray);
  margin: 0 0 8px;
}

.journal-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ================================
   Project Detail
================================ */

.project-detail { background: #fff; }
.project-intro { padding: 86px 6vw 76px; }
.project-back {
  display: inline-block;
  margin-bottom: 76px;
  color: var(--bd-gray);
  font-size: 13px;
  transition: color 0.2s ease;
}
.project-back:hover { color: var(--bd-red); }
.project-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 8vw;
  align-items: end;
}
.project-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(54px, 7.2vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.075em;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.project-summary > p {
  margin: 0 0 48px;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}
.project-summary dl { margin: 0; border-top: 1px solid var(--bd-line); }
.project-summary dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--bd-line);
  font-size: 13px;
}
.project-summary dt { color: var(--bd-gray); }
.project-summary dd { margin: 0; }
.project-hero,
.project-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--bd-light);
}
.project-hero { width: 100%; }
.project-hero img,
.project-gallery img { width: 100%; height: auto; display: block; }
.project-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 108px 6vw 118px;
  border-bottom: 1px solid var(--bd-line);
}
.project-story article { padding: 0 5vw 0 0; }
.project-story article + article {
  padding-left: 3vw;
  border-left: 1px solid var(--bd-line);
}
.project-story span {
  display: block;
  margin-bottom: 30px;
  color: var(--bd-red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.project-story p { margin: 0; color: #393939; font-size: 16px; line-height: 1.85; }
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}
.project-gallery figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.project-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 70px 6vw;
  border-top: 1px solid var(--bd-line);
}
.project-pagination a { display: flex; flex-direction: column; gap: 11px; }
.project-pagination a.is-next { text-align: right; }
.project-pagination span,
.project-pagination-list { color: var(--bd-gray); font-size: 12px; font-weight: 400; }
.project-pagination strong {
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 400;
  letter-spacing: -0.045em;
}
.project-pagination-list {
  display: block !important;
  padding: 13px 18px;
  border: 1px solid var(--bd-line);
  color: var(--bd-black);
  text-align: center;
  transition: all 0.2s ease;
}
.project-pagination-list:hover { border-color: var(--bd-black); background: var(--bd-black); color: #fff; }

/* ================================
   Footer
================================ */

.bd-footer {
  background: var(--bd-black);
  color: #fff;
  padding: 70px 6vw 40px;
  border-top: 1px solid #222;
}

.bd-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 90px;
}

.bd-footer-brand img {
  display: block;
  width: 93px;
  height: auto;
}

.bd-footer-brand p {
  margin: 14px 0 0;
  font-size: 13px;
  color: #777;
}

.bd-footer-logo-box {
  display: none;
}

.bd-footer-title {
  font-size: 13px;
  color: #777;
  margin-bottom: 18px;
}

.bd-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: #d8d8d8;
}

.bd-footer-links a:hover {
  color: var(--bd-red);
}

.bd-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 34px;
  border-top: 1px solid #222;
  font-size: 12px;
  color: #777;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1024px) {
  .bd-header-nav {
    display: none;
  }

  .bd-header-nav.is-open {
    position: fixed;
    top: 86px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 28px;
    background: #fff;
    border-bottom: 1px solid var(--bd-line);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  }

  .bd-header-nav.is-open a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--bd-line);
  }

  .bd-page-hero,
  .project-intro-grid,
  .bd-section > div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
  }

  .project-intro-grid { gap: 60px; }
  .project-story { grid-template-columns: 1fr; gap: 0; }
  .project-story article { padding: 0 0 48px; }
  .project-story article + article {
    padding: 48px 0;
    border-top: 1px solid var(--bd-line);
    border-left: 0;
  }

  .bd-page-visual {
    min-height: 52vh;
  }

  .bd-section div[style*="grid-template-columns:repeat(4,1fr)"],
  .bd-section div[style*="grid-template-columns: repeat(4,1fr)"],
  .bd-section div[style*="grid-template-columns:repeat(3,1fr)"],
  .bd-section div[style*="grid-template-columns: repeat(3,1fr)"],
  .portfolio-grid-wrap,
  .journal-grid-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bd-footer-top {
    grid-template-columns: 1fr;
    gap: 42px;
    margin-bottom: 60px;
  }
}

@media (max-width: 640px) {
  .bd-header {
    height: 64px;
  }

  .bd-header-logo {
    width: auto;
    height: 64px;
    padding: 0 20px;
    border-right: 0;
  }

  .bd-header-logo img {
    height: 19.2px;
  }

  .bd-header-right > span {
    display: none;
  }

  .bd-header-right {
    padding-right: 20px;
  }

  .bd-header-nav.is-open {
    top: 64px;
  }

  .bd-page-hero-copy {
    padding: 58px 22px 68px;
  }

  .project-intro { padding: 52px 22px 58px; }
  .project-back { margin-bottom: 54px; }
  .project-intro h1 { font-size: clamp(44px, 15vw, 68px); line-height: 0.98; }
  .project-summary > p { font-size: 16px; line-height: 1.76; }
  .project-story { padding: 74px 22px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure:nth-child(n) { grid-column: auto; }
  .project-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 38px 20px;
    padding: 54px 22px;
  }
  .project-pagination-list { grid-column: 1 / -1; grid-row: 2; }

  .bd-page-title {
    font-size: 34px;
    line-height: 1.14;
  }

  .bd-page-desc {
    font-size: 16px;
    line-height: 1.72;
  }

  .bd-page-visual {
    min-height: 42vh;
  }

  .bd-section {
    padding: 70px 22px;
  }

  .bd-section-title {
    font-size: 30px;
    line-height: 1.16;
  }

  .bd-section-text p {
    font-size: 16px;
    line-height: 1.76;
  }

  .bd-section > div[style*="display:grid"],
  .bd-section div[style*="grid-template-columns:repeat(4,1fr)"],
  .bd-section div[style*="grid-template-columns: repeat(4,1fr)"],
  .bd-section div[style*="grid-template-columns:repeat(3,1fr)"],
  .bd-section div[style*="grid-template-columns: repeat(3,1fr)"],
  .portfolio-grid-wrap,
  .journal-grid-wrap {
    grid-template-columns: 1fr !important;
  }

  .bd-section article[style*="border-right"] {
    border-right: 0 !important;
    border-bottom: 1px solid var(--bd-line) !important;
  }

  .bd-button {
    width: 100%;
  }

  .portfolio-card-body h3 {
    font-size: 20px;
  }

  .journal-card-item h3 {
    font-size: 21px;
  }

  .bd-footer {
    padding: 60px 22px 34px;
  }

  .bd-footer-bottom {
    flex-direction: column;
  }
}
