:root {
  --ink: #1b1f1d;
  --muted: #687069;
  --line: #d9ded6;
  --paper: #f7f6f0;
  --white: #fffdf8;
  --moss: #56684c;
  --sage: #8c9a80;
  --clay: #b86f4b;
  --charcoal: #242621;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans KR",
    sans-serif;
  line-height: 1.6;
  word-break: keep-all;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: var(--white);
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 1px 0 rgba(27, 31, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
  position: relative;
  z-index: 25;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.74;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 29, 25, 0.82) 0%, rgba(23, 29, 25, 0.55) 40%, rgba(23, 29, 25, 0.1) 70%),
    linear-gradient(180deg, rgba(23, 29, 25, 0.28), rgba(23, 29, 25, 0.58)),
    url("./assets/aheadlab-hero.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding-top: 84px;
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0bd8f;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

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

.hero-copy {
  max-width: 580px;
  margin-bottom: 34px;
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
}

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

.button.ghost {
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
}

.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(86px, 11vw, 150px) 0;
}

.intro-grid,
.section-heading,
.product-layout,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 8vw, 96px);
}

.intro-copy p,
.section-heading p,
.product-copy p,
.contact p,
.sustainability p {
  color: var(--muted);
  font-size: 18px;
}

.highlight-list {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
}

.highlight-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.highlight-list dt {
  color: var(--moss);
  font-weight: 800;
}

.highlight-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.materials {
  border-top: 1px solid var(--line);
}

.material-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 76px);
  background: var(--line);
}

.material-board article {
  min-height: 300px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--white);
}

.material-board span {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--clay);
  font-weight: 800;
}

.material-board p,
.product-cards p,
.process-list span {
  color: var(--muted);
}

.products {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background: var(--charcoal);
  color: var(--white);
}

.products .section-label {
  color: #f0bd8f;
}

.product-copy p {
  color: rgba(255, 253, 248, 0.72);
  margin-top: 28px;
}

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

.product-cards article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.05);
}

.product-thumb {
  min-height: 150px;
  margin-bottom: auto;
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 253, 248, 0.44), transparent 16%),
    radial-gradient(circle at 68% 62%, rgba(184, 111, 75, 0.58), transparent 22%),
    linear-gradient(145deg, rgba(140, 154, 128, 0.72), rgba(255, 253, 248, 0.14));
}

.thumb-two {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 253, 248, 0.4), transparent 18%),
    linear-gradient(150deg, rgba(184, 111, 75, 0.66), rgba(86, 104, 76, 0.75));
}

.thumb-three {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 248, 0.46), transparent 20%),
    linear-gradient(130deg, rgba(214, 180, 128, 0.62), rgba(96, 111, 90, 0.78));
}

.process {
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: clamp(44px, 6vw, 76px) 0 0;
  list-style: none;
  counter-reset: process;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-list li {
  min-height: 220px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list li::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 58px;
  color: var(--clay);
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.sustainability {
  padding: clamp(86px, 10vw, 140px) 20px;
  background:
    linear-gradient(90deg, rgba(27, 31, 29, 0.76), rgba(27, 31, 29, 0.34)),
    url("./assets/aheadlab-hero.png") center / cover no-repeat fixed;
  color: var(--white);
}

.sustainability-inner {
  width: min(100%, 860px);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.sustainability p {
  max-width: 700px;
  color: rgba(255, 253, 248, 0.78);
}

.contact {
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
}

.contact-panel address {
  color: var(--muted);
  font-style: normal;
  font-size: 17px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  padding: 42px clamp(20px, 4vw, 56px);
  color: rgba(255, 253, 248, 0.76);
  background: #171916;
}

.footer-brand strong,
.footer-brand span,
.footer-info span {
  display: block;
}

.footer-brand strong {
  color: var(--white);
  font-size: 18px;
}

.footer-brand span {
  margin-top: 6px;
  font-size: 13px;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-header {
    height: 68px;
  }

  .site-header.is-open {
    height: 100vh;
    align-items: flex-start;
    padding-top: 13px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .site-nav {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 24px;
    min-height: 100vh;
    padding-top: 68px;
    color: var(--ink);
    background: var(--white);
    font-size: 28px;
    transform: translateY(-100%);
    transition: transform 220ms ease;
  }

  .site-header.is-open .site-nav {
    transform: translateY(0);
  }

  .hero {
    min-height: 820px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(23, 29, 25, 0.82), rgba(23, 29, 25, 0.42)),
      url("./assets/aheadlab-hero.png") 65% center / cover no-repeat;
  }

  .intro-grid,
  .section-heading,
  .product-layout,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .material-board,
  .product-cards,
  .process-list {
    grid-template-columns: 1fr;
  }

  .material-board article,
  .process-list li {
    min-height: auto;
  }

  .material-board span,
  .process-list li::before {
    margin-bottom: 34px;
  }

  .product-cards article {
    min-height: 300px;
  }

  .footer-info {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 760px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

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

  .highlight-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-panel {
    font-size: 18px;
  }
}
