:root {
  --color-bg: #eef3f1;
  --color-bg-deep: #dfe8e4;
  --color-surface: #f7faf8;
  --color-ink: #15201c;
  --color-ink-soft: #3d4f47;
  --color-brand: #0a4d4d;
  --color-brand-deep: #063636;
  --color-accent: #b8860b;
  --color-accent-soft: #e6d5a8;
  --color-line: #c5d2cc;
  --color-error: #9b2c2c;
  --color-success: #1e5c45;
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Noto Sans KR", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(10, 77, 77, 0.08);
  --header-h: 4.25rem;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(10, 77, 77, 0.09), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(184, 134, 11, 0.08), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-brand-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-brand-deep);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(238, 243, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  background: rgba(247, 250, 248, 0.95);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-brand-deep);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.site-header__toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--color-brand);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.site-nav__cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-brand);
  color: #f7faf8 !important;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-brand-deep);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }

  .site-nav.is-open {
    max-height: 24rem;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav__list a {
    display: block;
    padding: 0.85rem 0.25rem;
  }

  .site-nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn--primary {
  background: var(--color-brand);
  color: #f7faf8;
}

.btn--primary:hover {
  background: var(--color-brand-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.btn--ghost:hover {
  background: rgba(10, 77, 77, 0.06);
  color: var(--color-brand-deep);
}

.btn--accent {
  background: var(--color-accent);
  color: #1a1508;
}

.btn--accent:hover {
  background: #9a7009;
  color: #fff;
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__lead {
  max-width: 38rem;
  color: var(--color-ink-soft);
  font-size: 1.08rem;
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--color-line);
}

.page-hero h1 {
  margin: 0 0 var(--space-sm);
}

.page-hero p {
  max-width: 36rem;
  color: var(--color-ink-soft);
  margin: 0;
}

/* Home hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  color: #f4f7f5;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 54, 54, 0.88) 0%, rgba(6, 54, 54, 0.55) 45%, rgba(6, 54, 54, 0.25) 100%),
    linear-gradient(0deg, rgba(6, 54, 54, 0.75) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.03em;
  animation: rise-in 0.9s var(--ease) both;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 var(--space-sm);
  max-width: 28rem;
  color: #e8f0ec;
  animation: rise-in 0.9s 0.12s var(--ease) both;
}

.hero__support {
  margin: 0 0 var(--space-lg);
  max-width: 28rem;
  color: rgba(244, 247, 245, 0.88);
  font-size: 1.02rem;
  animation: rise-in 0.9s 0.22s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  animation: rise-in 0.9s 0.32s var(--ease) both;
}

.hero__actions .btn--primary {
  background: var(--color-accent);
  color: #1a1508;
}

.hero__actions .btn--primary:hover {
  background: #d4a017;
}

.hero__actions .btn--ghost {
  border-color: rgba(244, 247, 245, 0.65);
  color: #f4f7f5;
}

.hero__actions .btn--ghost:hover {
  background: rgba(244, 247, 245, 0.12);
  color: #fff;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

/* Offer strip */
.offer-band {
  background: var(--color-brand-deep);
  color: #e8f0ec;
  padding: var(--space-lg) 0;
}

.offer-band__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.offer-band h2 {
  color: #f4f7f5;
  margin: 0 0 var(--space-sm);
}

.offer-band p {
  margin: 0;
  color: rgba(232, 240, 236, 0.85);
}

@media (max-width: 760px) {
  .offer-band__grid {
    grid-template-columns: 1fr;
  }
}

/* Service list */
.service-list {
  display: grid;
  gap: var(--space-lg);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.service-row:nth-child(even) {
  direction: rtl;
}

.service-row:nth-child(even) > * {
  direction: ltr;
}

.service-row__media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 14rem;
}

.service-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 14rem;
  transition: transform 0.7s var(--ease);
}

.service-row:hover .service-row__media img {
  transform: scale(1.04);
}

.service-row__body h3 {
  margin: 0 0 var(--space-sm);
}

.service-row__body h3 a {
  text-decoration: none;
  color: inherit;
}

.service-row__meta {
  font-size: 0.88rem;
  color: var(--color-brand);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

@media (max-width: 760px) {
  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Evidence */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.quote {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--color-brand);
}

.quote p {
  font-size: 0.98rem;
  color: var(--color-ink-soft);
}

.quote__meta {
  font-size: 0.85rem;
  color: var(--color-ink);
  font-weight: 600;
}

.quote__service {
  display: block;
  font-weight: 400;
  color: var(--color-ink-soft);
  margin-top: 0.15rem;
}

@media (max-width: 900px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

/* Story block */
.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: center;
}

.story__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 760px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.rate-table th {
  background: var(--color-brand);
  color: #f4f7f5;
  font-weight: 600;
}

.rate-note {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(10, 77, 77, 0.06);
  border-left: 3px solid var(--color-brand);
}

.process-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.process-layout__img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 800px) {
  .process-layout {
    grid-template-columns: 1fr;
  }
}

/* Process steps */
.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.process-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.process-steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-lg);
}

.post-item {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-line);
}

.post-item__media {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.post-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item__date {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.post-item h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.35rem;
}

.post-item h2 a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 700px) {
  .post-item {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.article-hero img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin: var(--space-md) 0 var(--space-lg);
}

/* Detail panels */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
}

.detail-aside {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-md);
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-aside dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 0.85rem;
}

.detail-aside dd {
  margin: 0.2rem 0 0;
}

@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }
}

/* Forms */
.form {
  max-width: 36rem;
  display: grid;
  gap: var(--space-md);
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-ink);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

.form__field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__error {
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.1em;
}

.form__status {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  display: none;
}

.form__status.is-success {
  display: block;
  background: rgba(30, 92, 69, 0.12);
  color: var(--color-success);
  border: 1px solid rgba(30, 92, 69, 0.3);
}

.form__status.is-error {
  display: block;
  background: rgba(155, 44, 44, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(155, 44, 44, 0.3);
}

.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

.contact-card {
  background: var(--color-brand-deep);
  color: #e8f0ec;
  padding: var(--space-lg);
  border-radius: var(--radius);
}

.contact-card h2 {
  color: #f4f7f5;
  margin-top: 0;
}

.contact-card a {
  color: var(--color-accent-soft);
}

.contact-card p {
  margin-bottom: 0.75rem;
}

@media (max-width: 800px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: var(--space-xl);
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--color-line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(10, 77, 77, 0.08);
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0 var(--space-lg);
  background: var(--color-brand-deep);
  color: rgba(232, 240, 236, 0.88);
}

.site-footer a {
  color: var(--color-accent-soft);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: var(--space-lg);
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f4f7f5;
  margin: 0 0 0.35rem;
}

.site-footer__tag {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer__label {
  display: inline-block;
  min-width: 3.2rem;
  color: var(--color-accent-soft);
  font-weight: 600;
  font-size: 0.85rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__copy {
  max-width: var(--max);
  margin: var(--space-lg) auto 0;
  padding: var(--space-md) var(--space-md) 0;
  border-top: 1px solid rgba(232, 240, 236, 0.15);
  font-size: 0.85rem;
  color: rgba(232, 240, 236, 0.65);
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--space-md);
  background: transparent;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 52rem;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius);
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-brand-deep);
}

.cookie-banner__text p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  margin: 0;
  color: var(--color-brand);
}

/* Team / about */
.portrait {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.values > div {
  padding-top: var(--space-md);
  border-top: 2px solid var(--color-accent);
}

.values h3 {
  margin: 0 0 0.5rem;
}

@media (max-width: 700px) {
  .values {
    grid-template-columns: 1fr;
  }
}

.cta-band {
  margin: var(--space-xl) 0;
  padding: var(--space-xl) var(--space-md);
  background:
    linear-gradient(120deg, rgba(10, 77, 77, 0.92), rgba(6, 54, 54, 0.88)),
    url("https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1400&h=600&fit=crop") center / cover;
  color: #f4f7f5;
  text-align: center;
}

.cta-band h2 {
  color: #f4f7f5;
  margin: 0 0 var(--space-sm);
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto var(--space-md);
  color: rgba(244, 247, 245, 0.9);
}
