/* Figma references: dark canvas, 6-column image gallery, live text below.
   Scope every override to the main page so detail styles stay independent. */
.home-page {
  --page-bg: #191919;
  --gutter: 40px;
  --ink: #fff;
  --muted: #a6a6a6;
  background: var(--page-bg);
  color: #fff;
}
.home-page .site-header {
  height: 110px;
  align-items: flex-start;
  padding-top: 36px;
}
.home-page .site-header .brand {
  font-family: "ONE Mobile", Pretendard, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  gap: 7px;
}
.home-page .home-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  background: #000;
  font: 38px/1 Arial, sans-serif;
}
.home-page .home-hero {
  margin: 0;
  padding-block: 0;
}
.home-page .home-heading {
  margin: 0;
  font-family: Poppins, Pretendard, sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 6.666667vw, 128px);
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}
.home-page .home-work-intro {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  margin-top: 18px;
  margin-bottom: 26px;
  min-height: 32px;
  color: #858585;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.home-page .home-work-intro span:nth-child(2) {
  justify-self: center;
}
.home-page .home-work-intro span:last-child {
  justify-self: end;
  text-align: right;
}
.home-page .work-section {
  padding-bottom: 0;
}
.home-page .project-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 112px 8px;
}
.home-page .project-card {
  aspect-ratio: auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  color: #fff;
  display: block;
  transition: none;
}
.home-page .project-card:hover {
  transform: none;
}
.home-page .project-card::after {
  display: none;
}
.home-page .home-card-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 15/23;
  overflow: hidden;
  background: #242424;
}
.home-page .card-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.home-page .home-card-media::after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7333333333));
  pointer-events: none;
}
.home-page .home-card:hover .card-image {
  transform: scale(1.035);
  filter: none;
}
.home-page .home-card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9333333333);
  color: #151515;
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}
.home-page .home-card:hover .home-card-arrow, .home-page .home-card:focus-visible .home-card-arrow {
  opacity: 1;
}
.home-page .home-card-body {
  position: static;
  padding-top: 24px;
}
.home-page .home-card-body h3 {
  font-family: "ONE Mobile Title", Pretendard, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-synthesis: none;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.home-page .home-card-body p {
  margin-top: 12px;
  font-family: "ONE Mobile Title", Pretendard, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
  font-synthesis: none;
  color: rgba(255, 255, 255, 0.7);
}
.home-page .home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  border: 1px solid #aaa;
  border-radius: 999px;
  padding: 3px 8px;
  color: #aaa;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.home-page .home-card-status {
  margin-top: 14px;
}
.home-page .home-card-tools {
  margin-top: 16px;
}
.home-page .home-tools {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.home-page .home-tool {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1450980392);
}
.home-page .home-tool img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.home-page .home-tool:first-child {
  background: white;
}
.home-page .home-card-tools .home-tool {
  background: #fff;
}
.home-page .home-media-meta {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.home-page .home-image-label {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  right: 24px;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  padding: 4px 6px;
  color: #aaa;
  font-size: 10px;
  line-height: 1;
}
.home-page .home-footer {
  background: transparent;
  margin-top: 260px;
  padding-top: 0;
  padding-bottom: 60px;
}
.home-page .home-footer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  font-size: 13px;
  line-height: 1.2;
  color: #9d9d9d;
  font-weight: 600;
}
.home-page .home-footer-meta span:nth-of-type(2) {
  justify-self: center;
}
.home-page .home-footer-meta > a:last-child {
  justify-self: end;
  text-align: right;
}
.home-page .home-footer-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-page .home-footer-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 15px;
  font-size: 12px;
  color: #aaa;
}
.home-page .home-footer-brand {
  color: white;
  font-weight: 700;
}
.home-page .home-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  flex-shrink: 0;
}
.home-page .home-contact-label {
  font: 700 14px/1.4 Pretendard, sans-serif;
  background: #242423;
  border-radius: 16px;
  padding: 11px 16px;
}
.home-page .home-contact-portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 6px;
  border: 2px solid #ef805e;
  border-radius: 50%;
}
.home-page .home-contact-portrait .contact-avatar {
  --avatar-size: 60px;
}
.home-page .home-contact-dot {
  position: absolute;
  right: 4px;
  bottom: 5px;
  background: #25d7aa;
  border: 3px solid #191919;
  border-radius: 50%;
  width: 15px;
  height: 15px;
}
.home-page .contact-launcher {
  display: none;
}
.home-page .contact-panel {
  bottom: max(24px, env(safe-area-inset-bottom));
  max-height: calc(100dvh - 48px);
}

@media (min-width: 768px) and (max-width: 1279px) {
  .home-page {
    --gutter: 40px;
  }
  .home-page .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px 8px;
  }
  .home-page .home-heading {
    font-size: clamp(54px, 8vw, 100px);
  }
  .home-page .home-footer {
    margin-top: 180px;
  }
  .home-page .home-footer-greeting {
    flex-wrap: wrap;
  }
}
@media (max-width: 767px) {
  .home-page {
    --gutter: 16px;
  }
  .home-page .site-header {
    height: 86px;
    padding-top: 20px;
    align-items: flex-start;
  }
  .home-page .site-header .brand {
    font-size: 19px;
    gap: 5px;
  }
  .home-page .home-brand-mark {
    width: 24px;
    height: 26px;
    font-size: 26px;
  }
  .home-page .home-heading {
    font-size: clamp(28px, 7.65vw, 59px);
    line-height: 1.4;
  }
  .home-page .home-work-intro {
    margin-top: 42px;
    margin-bottom: 18px;
    font-size: 10px;
  }
  .home-page .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 8px;
  }
  .home-page .home-card-body {
    padding-top: 14px;
  }
  .home-page .home-card-body p {
    margin-top: 8px;
  }
  .home-page .home-media-meta {
    left: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .home-page .home-image-label {
    right: 12px;
    bottom: 12px;
    font-size: 8px;
  }
  .home-page .home-tool {
    width: 20px;
    height: 20px;
  }
  .home-page .home-tool img {
    width: 16px;
    height: 16px;
  }
  .home-page .home-badge {
    min-height: 20px;
    font-size: 8px;
    padding: 3px 6px;
  }
  .home-page .home-contact {
    gap: 8px;
  }
  .home-page .home-contact-label {
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 10px;
  }
  .home-page .home-contact-portrait {
    width: 44px;
    height: 44px;
    padding: 3px;
  }
  .home-page .home-contact-portrait .contact-avatar {
    --avatar-size: 34px;
  }
  .home-page .home-contact-dot {
    width: 10px;
    height: 10px;
    border-width: 2px;
    bottom: 2px;
    right: 0;
  }
  .home-page .home-footer {
    margin-top: 120px;
    padding-bottom: 36px;
  }
  .home-page .home-footer-meta {
    font-size: 9px;
  }
  .home-page .home-footer-greeting {
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 18px;
  }
  .home-page .home-footer-greeting .home-heading {
    width: 100%;
  }
  .home-page .home-footer-bottom {
    flex-wrap: wrap;
    font-size: 10px;
    gap: 12px;
    margin-top: 28px;
  }
  .home-page .contact-panel {
    bottom: 12px;
    max-height: calc(100dvh - 24px);
  }
}
/* Restore reveal motion after the gallery layout's static transforms. */
.home-page .home-heading-roll {
  position: relative;
  overflow: hidden;
  height: 1.4em;
}

.home-page .home-heading-roll .hero-phrase {
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}

html.motion-ready .home-page .home-card[data-reveal] {
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready .home-page .home-card[data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(40px);
}

html.motion-ready .home-page .home-card[data-reveal].is-visible, html.motion-ready .home-page .home-card[data-reveal]:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-page .contact-widget {
  position: static;
}

.home-page .contact-panel {
  position: absolute;
  z-index: 1000;
  top: var(--contact-anchor-top, 120px);
  right: var(--contact-anchor-right, 40px);
  bottom: auto;
  max-height: var(--contact-anchor-height, 650px);
  transform-origin: top right;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-card[data-reveal], .home-page .home-heading-roll .hero-phrase {
    transition: none !important;
  }
}
/* Quick initial sequence; all first-row cards finish within about one second. */
html.motion-ready .home-page [data-entry] {
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ready .home-page [data-entry]:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

html.motion-ready .home-page .home-card[data-reveal] {
  transition-duration: 0.5s, 0.65s;
}

@keyframes home-entry-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html.motion-ready .home-page .home-entry-item.is-entering {
  animation: home-entry-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-entry-item.is-entering {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
