:root {
  --ink: #17222a;
  --subtle: #58646c;
  --line: #d9ded8;
  --paper: #f5f4ef;
  --panel: #ffffff;
  --forest: #1f4f47;
  --teal: #2d7582;
  --copper: #b66b45;
  --blue: #385f8a;
  --sage: #dde8dd;
  --shadow: 0 22px 70px rgba(23, 34, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.9);
  background: rgba(245, 244, 239, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: min(166px, 36vw);
  height: auto;
}

nav {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 19px;
  color: var(--subtle);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(23, 34, 42, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  --hero-image: url("assets/milliken-hero.jpg?v=20260714b");
  min-height: min(78svh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(52px, 8vw, 100px) clamp(20px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(245,244,239,0.98) 0%, rgba(245,244,239,0.9) 38%, rgba(245,244,239,0.18) 74%),
    var(--hero-image) center right / cover no-repeat;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 88px);
  line-height: 1.02;
  max-width: 880px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-lead {
  width: min(660px, 100%);
  color: #2b3840;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-lead span {
  display: block;
}

.hero-proof,
.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(31, 79, 71, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--forest);
  font-size: 13px;
  font-weight: 850;
}

.hero-actions,
.button-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: #ffffff;
  color: var(--forest);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--forest);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.76);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-width: 0;
  min-height: 124px;
  padding: 28px clamp(20px, 4vw, 42px);
  background: #ffffff;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
  font-size: 22px;
}

.metric span {
  display: block;
  color: var(--subtle);
  line-height: 1.55;
}

.section {
  padding: clamp(58px, 8vw, 112px) clamp(20px, 6vw, 96px);
}

.partner-section,
.guide-section,
.calculator-section,
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  background: #ffffff;
}

.partner-copy p,
.guide-copy p,
.calculator-copy p,
.request-section > div p,
.section-heading p {
  color: var(--subtle);
  font-size: 18px;
  line-height: 1.7;
}

.partner-grid,
.guide-steps,
.solution-map,
.proof-grid,
.product-grid,
.resource-list,
.faq-grid {
  display: grid;
  gap: 14px;
}

.partner-grid {
  grid-template-columns: repeat(3, 1fr);
}

.partner-grid article,
.solution-map article,
.proof-card,
.product-grid article,
.resource-list article,
.guide-steps article,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.partner-grid article {
  min-height: 240px;
  padding: 24px;
}

.partner-grid span,
.guide-steps span,
.product-grid span,
.resource-list span,
.proof-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--copper);
  font-weight: 850;
}

.partner-grid strong,
.guide-steps strong,
.resource-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.partner-grid p,
.guide-steps p,
.solution-map p,
.proof-card p,
.product-grid p,
.product-grid li,
.resource-list p,
details p {
  color: var(--subtle);
  line-height: 1.62;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 32px;
}

.solution-section {
  background: #eef2ed;
}

.solution-map {
  grid-template-columns: repeat(4, 1fr);
}

.solution-map article {
  min-height: 270px;
  padding: 26px;
}

.solution-map strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 28px;
}

.solution-map span {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 850;
}

.proof-section {
  background: var(--paper);
}

.proof-grid {
  grid-template-columns: repeat(4, 1fr);
}

.proof-card {
  min-height: 250px;
  padding: 26px;
}

.proof-card.highlight {
  border-color: rgba(31, 79, 71, 0.38);
  background: #e9f0e9;
}

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 26px;
}

.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cert-strip span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--forest);
  font-size: 13px;
  font-weight: 850;
}

.product-section,
.resources-section,
.faq-section {
  background: #ffffff;
}

.product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.product-grid article {
  min-height: 360px;
  padding: 28px;
}

.product-grid ul {
  margin: 20px 0 0;
  padding-left: 18px;
}

.guide-section {
  background: #f8f8f4;
}

.guide-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-steps article {
  min-height: 270px;
  padding: 22px;
}

.guide-steps span {
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--forest);
  color: #ffffff;
}

.calculator-section {
  background: #e8efec;
}

.calculator,
.request-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-card h3,
.contact-card p {
  margin: 0;
}

.contact-card h3 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.request-section .contact-card > p:not(.card-kicker, .form-status) {
  color: var(--subtle);
  line-height: 1.7;
}

.contact-actions {
  margin-top: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
}

input[type="range"] {
  padding: 0;
}

textarea {
  min-height: 122px;
  padding-top: 12px;
  resize: vertical;
}

.calculator-result {
  padding: 22px;
  border-radius: 8px;
  background: #17222a;
  color: #ffffff;
}

.calculator-result strong {
  display: block;
  margin-bottom: 8px;
  font-size: 34px;
}

.calculator-result p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.resource-list {
  grid-template-columns: repeat(3, 1fr);
}

.resource-list article {
  min-height: 220px;
  padding: 24px;
}

.request-section {
  background: #17222a;
  color: #ffffff;
}

.request-section .eyebrow {
  color: #d89a6f;
}

.request-section > div p {
  color: rgba(255, 255, 255, 0.74);
}

.form-status {
  margin: 0;
  color: var(--subtle);
  font-size: 14px;
}

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

details {
  padding: 22px;
}

summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

summary + p {
  margin-top: 14px;
  margin-bottom: 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 28px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--subtle);
}

footer strong {
  color: var(--ink);
}

.footer-brand,
.business-details {
  display: grid;
  gap: 6px;
}

.footer-brand {
  align-content: start;
}

.business-details {
  max-width: 760px;
  margin: 0;
  font-style: normal;
  line-height: 1.55;
}

.business-details a {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  footer {
    flex-direction: column;
    padding: 24px 18px;
  }
}

@media (max-width: 1080px) {
  .partner-section,
  .guide-section,
  .calculator-section,
  .request-section {
    grid-template-columns: 1fr;
  }

  .solution-map,
  .proof-grid,
  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-right: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    position: fixed;
    top: 15px;
    right: 16px;
    z-index: 50;
    background: #ffffff;
  }

  nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    max-height: 0;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 6px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 0.24s ease,
      opacity 0.18s ease;
  }

  .site-header.nav-open nav {
    max-height: 420px;
    padding-top: 8px;
    opacity: 1;
    pointer-events: auto;
  }

  nav a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .hero {
    min-width: 0;
    min-height: auto;
    padding-top: 58px;
    background:
      linear-gradient(180deg, rgba(245,244,239,0.97) 0%, rgba(245,244,239,0.88) 62%, rgba(245,244,239,0.4) 100%),
      var(--hero-image) center bottom / cover no-repeat;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-proof span {
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .intro-band,
  .partner-grid,
  .solution-map,
  .proof-grid,
  .product-grid,
  .resource-list,
  .faq-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .partner-grid article,
  .solution-map article,
  .proof-card,
  .product-grid article,
  .resource-list article,
  .guide-steps article {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand {
    align-items: flex-start;
    white-space: normal;
  }

  .brand-logo {
    width: min(142px, 44vw);
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }
}
