:root {
  --ink: #18251f;
  --muted: #65736d;
  --primary: #1f7a4d;
  --primary-dark: #145232;
  --accent: #d89614;
  --bg: #f4f8f5;
  --surface: #ffffff;
  --line: #d8e5dd;
  --soft: #e6f3ec;
  --hero-overlay: rgba(13, 36, 27, 0.6);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

body.sheet-open { overflow: hidden; }

main { flex: 1; }

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: var(--soft);
}

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: white;
}

.hero-inner {
  width: min(860px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding: 88px 0;
}

.hero h1,
.sub-hero h1 {
  margin: 10px 0 18px;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p,
.sub-hero p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

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

.button.primary:hover { background: var(--primary-dark); }

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.ghost {
  border-color: color-mix(in srgb, white 74%, transparent);
  color: white;
}

.button.ghost:hover {
  background: color-mix(in srgb, white 16%, transparent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.sub-hero .eyebrow {
  color: color-mix(in srgb, white 82%, var(--accent));
}

.section,
.split-section,
.profile-section,
.contact-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.industry-summary {
  width: min(1120px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: stretch;
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
}

.summary-copy,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-copy {
  padding: clamp(24px, 4vw, 34px);
}

.summary-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.summary-copy p {
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.summary-card {
  min-height: 160px;
  padding: 20px;
  border-top: 5px solid var(--primary);
}

.summary-card:nth-child(2) {
  border-top-color: var(--accent);
}

.summary-card:nth-child(3) {
  border-top-color: var(--primary-dark);
}

.summary-card span,
.summary-card strong {
  display: block;
  letter-spacing: 0;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.summary-card strong {
  margin-top: 16px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.28;
}

.summary-card p {
  margin: 12px 0 0;
  font-size: 0.93rem;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.16rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.gallery-card,
.contact-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 230px;
  padding: 22px;
}

.service-card span {
  display: block;
  width: 38px;
  height: 5px;
  margin-bottom: 34px;
  border-radius: 99px;
  background: var(--accent);
}

.service-card p,
.gallery-card p,
.message p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.split-section > div:first-child p {
  font-size: 1.04rem;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.facts dd {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 850;
}

.band {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--soft) 64%, var(--bg));
}

.sub-hero {
  min-height: 44vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 7vw, 96px) clamp(52px, 8vw, 84px);
  background-position: center;
  background-size: cover;
  color: white;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.profile-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.message {
  padding-top: 8px;
}

.message p + p {
  margin-top: 18px;
}

.signature {
  margin-top: 28px !important;
  color: var(--ink) !important;
  font-size: 1.12rem;
  font-weight: 850;
}

.signature span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card div {
  padding: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: clamp(22px, 4vw, 34px);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 5px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact-list strong {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-list a,
.contact-list span {
  font-weight: 800;
  text-decoration: none;
}

.lead-form {
  display: grid;
  gap: 10px;
}

.lead-form label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-color: var(--primary);
}

.check-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 6px 0;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  line-height: 1.55;
}

.check-row input {
  width: 16px;
  margin-top: 3px;
}

.form-note {
  min-height: 1.5em;
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  text-decoration: none;
}

.floating-contact {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.hide-floating-contact .floating-contact {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  visibility: hidden;
}

.floating-trigger,
.floating-sheet {
  pointer-events: auto;
}

.floating-trigger {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.floating-trigger span {
  font-size: 0.9rem;
  font-weight: 750;
}

.floating-trigger strong {
  font-size: 1.08rem;
}

.floating-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: 180ms ease;
}

.floating-contact.is-open .floating-trigger {
  opacity: 0;
  visibility: hidden;
}

.floating-contact.is-open .floating-sheet {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.sheet-head h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.floating-sheet .lead-form {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .service-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-summary {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 18px;
  }

  .split-section,
  .profile-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 72px 0;
  }

  .section,
  .split-section,
  .profile-section,
  .contact-layout {
    width: calc(100% - 32px);
    padding: 50px 0;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1,
  .sub-hero h1 {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .floating-contact {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .floating-trigger {
    min-height: 62px;
  }
}
