@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --ink: #151515;
  --muted: #606367;
  --paper: #f7f4ed;
  --line: rgba(21, 21, 21, 0.16);
  --accent: #0d7d73;
  --accent-dark: #09534e;
  --copper: #bb6844;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(21, 21, 21, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

body.modal-open {
  overflow: hidden;
}

body:not(.pages-ready) .page-section:not([data-page="home"]),
body.pages-ready .page-section:not(.is-active) {
  display: none !important;
}

body::selection {
  color: var(--white);
  background: var(--accent-dark);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  color: var(--ink);
  border-bottom: 1px solid rgba(21, 21, 21, 0.08);
  background: rgba(247, 244, 237, 0.88);
  backdrop-filter: blur(16px);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.over-hero {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(rgba(8, 13, 15, 0.42), rgba(8, 13, 15, 0));
  backdrop-filter: none;
}

.brand-mark {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  align-items: end;
  padding: 130px clamp(20px, 6vw, 86px) 74px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 13, 15, 0.88) 0%, rgba(8, 13, 15, 0.58) 42%, rgba(8, 13, 15, 0.15) 100%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=86")
      center / cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 72%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(8, 13, 15, 0.82));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: hero-rise 760ms ease-out both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b18f;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  font-weight: 600;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.button-outline {
  color: var(--accent-dark);
  border-color: rgba(13, 125, 115, 0.3);
  background: var(--white);
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--accent);
  background: rgba(13, 125, 115, 0.08);
}

.hero-caption {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 38px;
  z-index: 1;
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 750;
}

.hero-caption span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-caption span::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 999px;
  background: #f0b18f;
}

.intro,
.services,
.portfolio,
.evidence,
.cg-showcase,
.inquiry,
.site-footer {
  padding-right: clamp(20px, 6vw, 86px);
  padding-left: clamp(20px, 6vw, 86px);
}

.intro {
  max-width: 1200px;
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.intro h2,
.section-heading h2,
.inquiry-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 4.25rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  word-break: keep-all;
}

.intro p {
  max-width: 760px;
  margin: 30px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 650;
  word-break: keep-all;
}

.services {
  padding-top: clamp(62px, 8vw, 104px);
  padding-bottom: clamp(70px, 9vw, 116px);
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: end;
  margin-bottom: clamp(32px, 5.5vw, 64px);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 650;
  line-height: 1.64;
  word-break: keep-all;
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(250px, 0.58fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding: clamp(26px, 4vw, 46px) 0;
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
}

.service-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.55vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  font-weight: 620;
  line-height: 1.68;
  word-break: keep-all;
}

.service-copy .service-notice {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: #3f4448;
  font-size: 0.95rem;
  font-weight: 760;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.service-tags li {
  border: 1px solid rgba(13, 125, 115, 0.24);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--accent-dark);
  background: rgba(13, 125, 115, 0.07);
  font-size: 0.88rem;
  font-weight: 820;
}

.portfolio {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 120px);
  color: var(--white);
  background: #16211f;
}

.portfolio .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  margin-bottom: clamp(48px, 7vw, 86px);
}

.portfolio-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.portfolio-media img {
  display: block;
  width: 100%;
  height: auto;
}

.portfolio-media figcaption {
  padding: 16px 18px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 760;
  word-break: keep-all;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.achievement-group {
  padding: clamp(24px, 3.4vw, 40px);
  background: #16211f;
}

.achievement-group span {
  color: #f0b18f;
  font-size: 0.86rem;
  font-weight: 900;
}

.achievement-group h3 {
  margin: 10px 0 20px;
  font-size: clamp(1.25rem, 1.8vw, 1.72rem);
  font-weight: 900;
  line-height: 1.16;
}

.achievement-group p {
  margin: -8px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
  font-weight: 700;
  word-break: keep-all;
}

.achievement-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.achievement-group li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.48;
  word-break: keep-all;
}

.evidence {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(70px, 9vw, 118px);
}

.principle-gallery {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
}

.principle-panel {
  display: grid;
  grid-template-columns: minmax(340px, 0.48fr) minmax(280px, 0.52fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 5vw, 58px);
}

.principle-panel:first-child {
  padding-top: 0;
  border-top: 0;
}

.principle-panel img {
  display: block;
  width: min(100%, 540px);
  max-height: 720px;
  height: auto;
  justify-self: start;
  object-fit: contain;
  background: var(--white);
  box-shadow: var(--shadow);
}

.principle-panel figcaption {
  display: grid;
  gap: 14px;
}

.principle-panel span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.principle-panel strong {
  display: block;
  font-size: clamp(1.55rem, 2.7vw, 2.65rem);
  font-weight: 900;
  line-height: 1.12;
}

.cg-showcase {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(72px, 9vw, 120px);
  background: var(--white);
}

.cg-block {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 5vw, 58px);
}

.cg-block + .cg-block {
  margin-top: clamp(56px, 8vw, 96px);
}

.cg-block-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.cg-block-heading span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cg-block-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 3.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.cg-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.cg-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin: 0;
  background: #111816;
}

.cg-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 520ms ease;
}

.cg-item:hover img,
.cg-item:focus-within img {
  transform: scale(1.035);
}

.cg-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 540px;
}

.cg-wide {
  grid-column: span 2;
}

.inquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  padding-top: clamp(68px, 9vw, 118px);
  padding-bottom: clamp(70px, 9vw, 120px);
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(8, 13, 15, 0.96), rgba(8, 13, 15, 0.74)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=82")
      center / cover;
}

.inquiry-copy {
  align-self: start;
  position: sticky;
  top: 96px;
}

.inquiry-copy p {
  max-width: 500px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
  word-break: keep-all;
}

.direct-contact {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.direct-contact a,
.direct-contact address {
  display: grid;
  gap: 5px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
  color: var(--white);
  font-style: normal;
}

.direct-contact span,
.footer-contact span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 900;
}

.direct-contact strong {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 850;
  line-height: 1.45;
  word-break: keep-all;
}

.inquiry-form {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.field-grid label > span,
.wide-field > span {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

fieldset label {
  cursor: pointer;
}

fieldset input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

fieldset label span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 830;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

fieldset input:checked + span {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(13, 125, 115, 0.62);
  box-shadow: 0 0 0 4px rgba(13, 125, 115, 0.12);
}

.request-preview {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.request-preview p {
  min-height: 80px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  white-space: pre-line;
  word-break: keep-all;
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.request-actions .button {
  width: fit-content;
}

.send-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 13, 15, 0.72);
  backdrop-filter: blur(10px);
}

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

.send-modal-panel {
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 38px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.send-modal-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
}

.send-modal-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
  word-break: keep-all;
}

.modal-preview {
  max-height: 180px;
  overflow: auto;
  margin-top: 22px;
  border: 1px solid var(--line);
  padding: 16px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.94rem;
  font-weight: 650;
  white-space: pre-line;
}

.send-status {
  min-height: 24px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(280px, 1fr) auto;
  min-height: 130px;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 750;
}

.site-footer p,
.footer-contact {
  margin: 0;
}

.site-footer div p:first-child {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.footer-contact {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.footer-contact a {
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 850;
}

.footer-contact span {
  color: var(--muted);
  line-height: 1.45;
  word-break: keep-all;
}

.copyright {
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 20px;
  }

  .site-nav {
    gap: 14px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 88svh;
    padding: 112px 20px 68px;
    background-position: 58% center;
  }

  .hero-caption {
    right: auto;
    bottom: 24px;
    left: 20px;
  }

  .section-heading,
  .inquiry {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-tags {
    justify-content: flex-start;
  }

  .inquiry-copy {
    position: relative;
    top: auto;
  }

  .portfolio-media,
  .achievement-grid,
  .principle-panel,
  .cg-grid {
    grid-template-columns: 1fr;
  }

  .principle-panel img {
    width: min(100%, 540px);
    max-height: 720px;
    justify-self: center;
  }

  .cg-large,
  .cg-wide {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .site-header {
    display: grid;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 90svh;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 5.8rem);
  }

  .hero-caption {
    display: none;
  }

  .hero-actions,
  fieldset,
  .field-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .request-actions .button {
    width: 100%;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .intro h2,
  .section-heading h2,
  .inquiry-copy h2 {
    font-size: clamp(1.9rem, 9.5vw, 2.85rem);
  }

  .intro,
  .services,
  .portfolio,
  .evidence,
  .cg-showcase,
  .inquiry,
  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .inquiry-form {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
