:root {
  --ink: #18201d;
  --ink-soft: #27312d;
  --paper: #f5f6f2;
  --white: #ffffff;
  --line: #d8ddd7;
  --muted: #66706b;
  --green: #1c6b4a;
  --green-dark: #124a34;
  --yellow: #f2c94c;
  --header-height: 76px;
  --shell: min(1180px, calc(100% - 48px));
  --shadow: 0 18px 44px rgba(10, 20, 15, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow::before {
  width: 28px;
  height: 3px;
  background: var(--yellow);
  content: "";
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.78);
}

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

h1,
h2,
h3 {
  line-height: 1.16;
}

h2 {
  margin-bottom: 28px;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.08;
}

.single-line-title {
  max-width: 100%;
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(16, 27, 21, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 34px;
}

.primary-nav a {
  position: relative;
  display: grid;
  height: 100%;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  color: var(--white);
  overflow: hidden;
  place-items: center;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 44%;
  animation: hero-in 1.2s ease both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 21, 17, 0.82) 0%, rgba(12, 21, 17, 0.46) 50%, rgba(12, 21, 17, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 21, 17, 0.44), transparent 48%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  padding-top: var(--header-height);
}

.hero-brand-title {
  display: inline-flex;
  max-width: min(100%, 900px);
  margin: 0 0 26px;
  align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
}

.hero-brand-mark {
  width: clamp(46px, 7vw, 78px);
  height: clamp(46px, 7vw, 78px);
  flex: 0 0 auto;
  object-fit: contain;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  font-weight: 900;
  line-height: 0.92;
  white-space: nowrap;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

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

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

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

.hero-scroll {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 800;
}

.scroll-line {
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.fact-strip {
  color: var(--white);
  background: var(--ink);
}

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

.fact {
  display: grid;
  min-height: 126px;
  padding: 28px;
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.fact:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.fact strong {
  color: var(--yellow);
  font-size: 1.65rem;
  line-height: 1.2;
}

.fact span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
}

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media > img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
}

.about-stamp {
  position: absolute;
  right: -24px;
  bottom: 34px;
  display: flex;
  width: 176px;
  min-height: 112px;
  padding: 20px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.about-stamp strong {
  font-size: 2.4rem;
  line-height: 1;
}

.about-stamp span {
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
}

.about-copy .lead {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
}

.about-copy > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.company-data {
  display: grid;
  margin: 34px 0 0;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.company-data div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-data div:nth-child(odd) {
  padding-right: 20px;
}

.company-data dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.company-data dd {
  margin: 0;
  font-weight: 700;
}

.products {
  background: var(--paper);
}

.section-heading {
  display: grid;
  margin-bottom: 58px;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
  max-width: 560px;
}

.section-heading > p {
  margin-bottom: 6px;
  color: var(--muted);
}

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

.capability {
  position: relative;
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: min-height 220ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.capability:hover,
.capability:focus-visible {
  border-color: #aeb8b1;
  box-shadow: 0 16px 34px rgba(24, 32, 29, 0.08);
  transform: translateY(-4px);
}

.capability:focus-visible {
  outline: 3px solid rgba(207, 158, 43, 0.55);
  outline-offset: 3px;
}

.capability > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 220ms ease, transform 420ms ease;
}

.capability-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.capability-overlay > span {
  display: block;
  margin-bottom: 66px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.capability h3 {
  margin-bottom: 14px;
  font-size: 1.16rem;
  white-space: nowrap;
}

.capability p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.capability.is-active {
  min-height: 576px;
  padding: 0;
  grid-row: span 2;
  color: var(--white);
  border: 0;
}

.capability.is-active > img {
  opacity: 1;
  transform: scale(1);
}

.capability.is-active .capability-overlay {
  position: absolute;
  inset: 0;
  padding: 34px;
  background: linear-gradient(0deg, rgba(11, 20, 16, 0.94), rgba(11, 20, 16, 0.05) 68%);
}

.capability.is-active .capability-overlay > span {
  margin-bottom: auto;
  color: var(--yellow);
}

.capability.is-active .capability-overlay h3 {
  font-size: 1.55rem;
}

.capability.is-active .capability-overlay p {
  color: rgba(255, 255, 255, 0.78);
}

.projects {
  color: var(--white);
  background: var(--ink);
}

.project-heading > p {
  color: rgba(255, 255, 255, 0.64);
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.project-row {
  display: grid;
  min-height: 158px;
  padding: 28px 0;
  grid-template-columns: 54px 1.2fr 1fr auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.project-index {
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
}

.project-row div p {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-row h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
}

.project-row > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.project-tag {
  padding: 7px 10px;
  color: var(--yellow);
  border: 1px solid rgba(242, 201, 76, 0.46);
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 800;
}

.global-reference {
  display: grid;
  margin-top: 56px;
  padding: 40px;
  grid-template-columns: minmax(250px, 0.72fr) 1.28fr;
  gap: 48px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.055);
}

.global-reference .eyebrow {
  margin-bottom: 12px;
}

.global-reference h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.14;
}

.global-reference ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  list-style: none;
}

.global-reference li {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
}

.global-reference .client-logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.global-reference .client-logo-grid li {
  display: grid;
  min-height: 70px;
  padding: 12px;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.global-reference .client-logo-grid span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact {
  background: var(--yellow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 9vw, 130px);
  align-items: start;
}

.contact .eyebrow {
  color: var(--ink);
}

.contact .eyebrow::before {
  background: var(--green);
}

.contact-copy h2 {
  font-size: 2.25rem;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 0;
}

.contact-address {
  max-width: 540px;
  margin-top: 24px;
}

.contact-address a {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  color: var(--ink);
}

.contact-address small {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-address span {
  line-height: 1.5;
  font-size: 0.93rem;
  font-weight: 800;
}

.contact-address a:hover span {
  color: var(--green);
}

.contact-numbers {
  display: grid;
  gap: 7px;
  margin-top: 22px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.contact-numbers a {
  width: fit-content;
}

.contact-numbers a:hover {
  color: var(--green);
}

.contact-actions {
  border-top: 2px solid var(--ink);
}

.contact-link {
  display: flex;
  min-height: 108px;
  padding: 18px 4px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(24, 32, 29, 0.34);
}

.contact-link span:first-child {
  display: grid;
  min-width: 0;
}

.contact-link small {
  margin-bottom: 5px;
  font-size: 0.66rem;
  font-weight: 800;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
}

.contact-link > span:last-child {
  font-size: 2rem;
  transition: transform 180ms ease;
}

.contact-link:hover > span:last-child {
  transform: translate(4px, -4px);
}

.contact-note {
  margin: 24px 0 0;
  font-size: 0.78rem;
}

.site-footer {
  padding: 40px 0;
  color: var(--white);
  background: #101713;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  display: grid;
  line-height: 1.2;
}

.footer-brand strong {
  font-size: 1.15rem;
}

.footer-brand span,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
}

.back-to-top {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--white);
  border-radius: 4px;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  place-items: center;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

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

@keyframes hero-in {
  from { opacity: 0.5; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
    --shell: min(100% - 36px, 760px);
  }

  .menu-button {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    height: calc(100svh - var(--header-height));
    padding: 40px 24px 80px;
    align-content: start;
    gap: 0;
    color: var(--white);
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    display: flex;
    height: 64px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .site-header:has(.primary-nav.is-open) {
    color: var(--white);
    background: var(--ink);
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

  .fact:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 560px;
  }

  .about-media > img {
    aspect-ratio: 4 / 3;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .capability.is-active {
    min-height: 576px;
  }

  .project-row {
    grid-template-columns: 42px 1fr auto;
  }

  .project-row > p {
    grid-column: 2 / 4;
  }

  .global-reference {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .global-reference .client-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 32px);
  }

  body {
    font-size: 15px;
    word-break: normal;
  }

  .section {
    padding: 78px 0;
  }

  h2 {
    font-size: 1.12rem;
  }

  .capability h3,
  .capability.is-active .capability-overlay h3 {
    font-size: 1.02rem;
  }

  .hero {
    min-height: 84svh;
    align-items: end;
  }

  .hero-image {
    object-position: 56% center;
  }

  .hero-inner {
    padding: calc(var(--header-height) + 60px) 0 78px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.7rem);
  }

  .hero-brand-title {
    gap: 12px;
  }

  .hero-brand-mark {
    width: clamp(36px, 11vw, 50px);
    height: clamp(36px, 11vw, 50px);
  }

  .hero-lead br {
    display: none;
  }

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

  .button {
    min-height: 48px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero-scroll {
    display: none;
  }

  .contact-copy h2 {
    font-size: 1.08rem;
  }

  .global-reference h3 {
    font-size: 1rem;
  }

  .fact {
    min-height: 104px;
    padding: 18px 16px;
  }

  .fact strong {
    font-size: 1.24rem;
  }

  .about-stamp {
    right: -8px;
    bottom: -24px;
    width: 150px;
    min-height: 92px;
    padding: 16px;
  }

  .about-copy {
    padding-top: 20px;
  }

  .company-data {
    grid-template-columns: 1fr;
  }

  .company-data div:nth-child(odd) {
    padding-right: 0;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability,
  .capability.is-active {
    min-height: 250px;
  }

  .capability.is-active {
    aspect-ratio: 4 / 5;
    grid-row: auto;
  }

  .capability-overlay > span {
    margin-bottom: 48px;
  }

  .project-row {
    padding: 26px 0;
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .project-row > p,
  .project-tag {
    grid-column: 2;
  }

  .project-tag {
    width: max-content;
  }

  .global-reference {
    padding: 26px 22px;
  }

  .global-reference ul {
    grid-template-columns: 1fr;
  }

  .global-reference .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-link {
    min-height: 96px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
