:root {
  --white: #ffffff;
  --snow: #f7fbff;
  --mist: #edf4fb;
  --line: #dbe7f2;
  --navy: #0b2545;
  --blue: #006fee;
  --blue-dark: #004fb4;
  --text: #1c2838;
  --muted: #66768a;
  --shadow: 0 24px 70px rgba(0, 48, 110, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", Arial, sans-serif;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 111, 238, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--white) 0%, var(--snow) 46%, var(--white) 100%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  width: calc(100% - 60px);
  margin: 0;
  padding: 0.75rem 1rem;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 231, 242, 0.74);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 46px rgba(11, 37, 69, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: cover;
  background: var(--blue);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 111, 238, 0.28);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.side-dots {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 20;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.side-dots span {
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.side-dots .active {
  background: var(--blue);
}

.quick-estimate {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 20;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  width: 104px;
  min-height: 126px;
  padding: 1rem 0.65rem;
  color: var(--white);
  text-align: center;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 48, 110, 0.34);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.quick-estimate:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0, 48, 110, 0.42);
}

.quick-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 9px;
  font-size: 1.2rem;
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  padding: 8rem 1.25rem 6rem;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 16, 48, 0.38), rgba(0, 16, 48, 0.18) 42%, rgba(0, 16, 48, 0.52)),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.22), transparent 22rem);
}

.eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  text-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.hero-description {
  max-width: 620px;
  margin: 1.5rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.9;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.hero-content {
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 36px rgba(0, 111, 238, 0.28);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

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

.hero-card {
  position: relative;
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 18%, rgba(0, 16, 48, 0.22) 50%, transparent 82%),
    linear-gradient(135deg, #10253e, #7a8178 42%, #d8d2c2);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 0 14%, transparent 14% 100%),
    radial-gradient(circle at 16% 62%, rgba(255, 250, 238, 0.74), transparent 8rem),
    radial-gradient(circle at 84% 62%, rgba(74, 56, 34, 0.42), transparent 7rem);
  border: 0;
  border-radius: 0;
}

.curtain-panel {
  position: absolute;
  top: 0;
  width: 60%;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(111, 119, 111, 0.95) 0,
      rgba(178, 184, 174, 0.92) 18px,
      rgba(91, 99, 92, 0.96) 24px,
      rgba(190, 195, 184, 0.9) 52px
    );
  filter: drop-shadow(0 26px 46px rgba(0, 16, 48, 0.24));
  transition:
    transform 1900ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 120ms;
  will-change: transform;
}

.panel-left {
  left: 0;
  transform: translateX(0) skewX(-3deg);
}

.panel-right {
  right: 0;
  transform: translateX(0) skewX(3deg);
}

.curtain-opened .hero-card .panel-left {
  transform: translateX(-58%) skewX(-3deg);
}

.curtain-opened .hero-card .panel-right {
  transform: translateX(58%) skewX(3deg);
}

.curtain-opened .hero-card .curtain-panel {
  filter: drop-shadow(0 24px 34px rgba(9, 55, 108, 0.16));
}

.window-glow {
  position: absolute;
  inset: 8% 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.46), rgba(255, 245, 220, 0.18) 44%, rgba(255, 255, 255, 0.04) 64%);
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.58;
  transform: scale(0.78);
  transition:
    opacity 1500ms ease,
    transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 700ms;
}

.curtain-opened .hero-card .window-glow {
  opacity: 1;
  transform: scale(1.12);
}

.hero-card-text {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: auto;
  width: min(360px, calc(100% - 56px));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem;
  color: var(--white);
  background: rgba(0, 16, 48, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(11, 37, 69, 0.1);
  backdrop-filter: blur(14px);
}

.hero-card-text strong {
  font-size: 1.05rem;
}

.hero-card-text span {
  color: rgba(255, 255, 255, 0.72);
}

.section,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 6rem 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
}

.intro-logo {
  display: inline-block;
  margin-bottom: 1.35rem;
}

.intro-logo img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0, 111, 238, 0.18);
}

.section h2,
.contact h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro-copy p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.intro-copy {
  margin-top: 8.6rem;
}

.intro-copy p + p {
  margin-top: 1.2rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  min-height: 285px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 14px 36px rgba(11, 37, 69, 0.06);
}

.service-card > span {
  color: var(--blue);
  font-weight: 800;
}

.service-card h3 {
  margin: 3.2rem 0 1rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.service-card p,
.point-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}

.gallery {
  padding-top: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(11, 37, 69, 0.1);
}

.gallery-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 500ms ease,
    filter 500ms ease;
}

.gallery-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(0, 16, 48, 0.22));
  opacity: 0;
  transition: opacity 280ms ease;
}

.gallery-link:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.gallery-link:hover::after {
  opacity: 1;
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 360px);
  min-height: 64px;
  padding: 0 2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0, 111, 238, 0.26);
  font-size: 1.12rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-more-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0, 111, 238, 0.34);
}

.gallery-page {
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 111, 238, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--snow) 0%, var(--white) 56%, var(--snow) 100%);
}

.gallery-page-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 9rem 0 5rem;
}

.gallery-hero {
  max-width: 760px;
  margin-bottom: 2.4rem;
}

.gallery-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.gallery-hero p:last-child {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.85;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.gallery-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.1rem;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 111, 238, 0.16);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.07);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gallery-tab:hover,
.gallery-tab.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(0, 111, 238, 0.24);
}

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

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-page-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--mist);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(11, 37, 69, 0.08);
}

.gallery-page-grid.is-infinite a {
  display: none;
}

.gallery-page-grid.is-infinite a.is-visible {
  display: block;
}

.gallery-page-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-page-grid a:hover img {
  transform: scale(1.05);
}

.gallery-loading {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  min-height: 72px;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gallery-loading.is-visible {
  opacity: 1;
}

.gallery-loading span {
  width: 12px;
  height: 12px;
  background: var(--blue);
  border-radius: 999px;
  animation: galleryDot 900ms ease-in-out infinite;
}

.gallery-loading span:nth-child(2) {
  animation-delay: 140ms;
}

.gallery-loading span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes galleryDot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.portfolio {
  padding-top: 3rem;
}

.point-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.point-item {
  padding: 1.35rem;
  background: linear-gradient(180deg, var(--white), var(--snow));
  border: 1px solid var(--line);
  border-radius: 24px;
}

.point-item strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--navy);
  font-size: 1.08rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 5rem;
  padding: 3rem;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 20rem),
    linear-gradient(135deg, var(--navy), var(--blue-dark));
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.contact .section-label,
.contact h2,
.contact p {
  color: var(--white);
}

.contact p {
  margin-top: 1.2rem;
  opacity: 0.78;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem;
  color: var(--navy);
  background: var(--white);
  border-radius: 28px;
}

.contact-card p {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
  opacity: 1;
}

.contact-card a {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.contact-card span {
  color: var(--muted);
}

.contact-map {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 1rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 231, 242, 0.7);
  border-radius: 30px;
  box-shadow: 0 18px 46px rgba(11, 37, 69, 0.16);
}

.contact-map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.4rem 1rem;
}

.contact-map-heading .section-label {
  margin-bottom: 0.35rem;
  color: var(--blue);
}

.contact-map-heading h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.045em;
}

.contact-map-heading span {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-map-heading a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  color: var(--white);
  font-weight: 800;
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(0, 111, 238, 0.26);
}

.contact-map-view {
  overflow: hidden;
  height: 420px;
  border-radius: 22px;
  background: var(--snow);
}

.contact-map iframe {
  display: block;
  width: calc(100% + 500px);
  height: 420px;
  border: 0;
  transform: translateX(-500px);
  background: var(--snow);
}

.contact-route {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: rgba(0, 111, 238, 0.07);
  border: 1px solid rgba(0, 111, 238, 0.12);
  border-radius: 20px;
}

.contact-route strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-size: 1.02rem;
}

.contact-route span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.75rem;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 111, 238, 0.14);
  border-radius: 999px;
}

.contact-route p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header,
  .site-nav,
  .hero-actions,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    margin-top: 0;
  }

  .hero {
    gap: 2rem;
    min-height: 100svh;
    padding-top: 8rem;
  }

  .hero-card {
    min-height: 430px;
  }

  .service-grid,
  .gallery-grid,
  .point-list {
    grid-template-columns: 1fr;
  }

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

  .contact {
    padding: 2rem;
  }

  .contact-map-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-map-heading a {
    width: 100%;
  }

  .contact-map-view {
    height: 340px;
  }

  .contact-map iframe {
    width: calc(100% + 390px);
    height: 340px;
    transform: translateX(-390px);
  }

  .side-dots,
  .quick-estimate {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section,
  .contact,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    border-radius: 0 0 18px 18px;
  }

  .site-nav {
    display: none;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .contact-map {
    padding: 0.75rem;
  }

  .contact-map-view {
    height: 300px;
    border-radius: 18px;
  }

  .contact-map iframe {
    width: calc(100% + 330px);
    height: 300px;
    transform: translateX(-330px);
  }

  .gallery-page-main {
    width: min(100% - 28px, 1120px);
    padding-top: 7rem;
  }

  .gallery-page-grid {
    gap: 0.7rem;
  }

  .gallery-tabs {
    gap: 0.55rem;
  }

  .gallery-tab {
    min-height: 42px;
    padding: 0 0.85rem;
    font-size: 0.88rem;
  }

  .gallery-page-grid a {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .curtain-panel,
  .window-glow {
    transition: none;
  }
}
