:root {
  --forest: #183f32;
  --forest-dark: #102e25;
  --ink: #171a18;
  --paper: #f4f2ec;
  --stone: #d9d6cd;
  --moss: #6d8061;
  --line: rgba(23, 26, 24, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 6%, rgba(109, 128, 97, 0.13), transparent 26rem),
    var(--paper);
  font-family: "Pretendard", system-ui, sans-serif;
  word-break: keep-all;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled {
  background: rgba(244, 242, 236, .91);
  border-color: rgba(23, 26, 24, .09);
  box-shadow: 0 14px 40px rgba(34, 44, 37, .07);
  backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(100% - 2.5rem, 1440px);
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link img { display: block; width: 182px; }
.desktop-nav { display: flex; align-items: center; gap: 2.15rem; }
.desktop-nav a {
  position: relative;
  padding: .75rem 0;
  color: rgba(23,26,24,.68);
  font-size: 1.0625rem;
  font-weight: 700;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .25rem;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.desktop-nav a.active { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  box-shadow: 0 10px 30px rgba(24,63,50,.18);
  font-size: .92rem;
  font-weight: 800;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.nav-cta:hover { transform: translateY(-2px) scale(1.015); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.5);
  cursor: pointer;
}
.menu-toggle iconify-icon { font-size: 1.5rem; }
.mobile-nav {
  display: none;
  position: absolute;
  inset: 80px 1.25rem auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(244,242,236,.97);
  box-shadow: 0 25px 55px rgba(25,38,31,.13);
  backdrop-filter: blur(18px);
}
.mobile-nav a { display: block; padding: .9rem 1rem; border-radius: .8rem; font-weight: 750; }
.mobile-nav a:hover { background: white; }
.mobile-nav .mobile-contact { margin-top: .4rem; color: white; background: var(--forest); }

.page-hero {
  min-height: 440px;
  padding: 120px max(1.25rem, calc((100vw - 1440px) / 2)) 64px;
  display: grid;
  align-items: end;
}
.page-hero-inner { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.62fr); gap: 5rem; align-items: end; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--forest);
  font-family: "Outfit", "Pretendard", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .45; }
.page-title {
  margin: 1.6rem 0 0;
  max-width: 980px;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.page-lead {
  margin: 0;
  max-width: 620px;
  color: rgba(23,26,24,.6);
  font-size: 1.08rem;
  line-height: 1.9;
}
.hero-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}
.hero-index div { padding: 1.25rem; background: rgba(244,242,236,.88); }
.hero-index strong { display: block; color: var(--forest); font: 600 2.4rem/1 "Outfit", sans-serif; }
.hero-index span { display: block; margin-top: .55rem; color: rgba(23,26,24,.5); font-size: .8rem; font-weight: 700; }

.section { padding: 7.5rem max(1.25rem, calc((100vw - 1440px) / 2)); }
.section.compact { padding-top: 5rem; padding-bottom: 5rem; }
.section.white { background: rgba(255,255,255,.42); }
.section.dark { color: white; background: var(--forest); }
.section-head { display: grid; grid-template-columns: 1fr minmax(300px,.62fr); gap: 5rem; align-items: end; margin-bottom: 4rem; }
.section-title { margin: .9rem 0 0; font-size: clamp(2.25rem,4vw,4.5rem); line-height: 1.16; letter-spacing: -.045em; }
.section-copy { margin: 0; color: rgba(23,26,24,.58); font-size: 1.05rem; line-height: 1.85; }
.dark .eyebrow { color: rgba(255,255,255,.6); }
.dark .section-copy { color: rgba(255,255,255,.62); }

.split-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.25rem; }
.feature-media { min-height: 620px; overflow: hidden; border-radius: 2rem; background: var(--stone); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel { min-height: 620px; padding: clamp(2rem,5vw,5rem); border-radius: 2rem; color: white; background: var(--forest); display: flex; flex-direction: column; justify-content: space-between; }
.feature-panel h2 { margin: 1rem 0 0; font-size: clamp(2.25rem,4vw,4.5rem); line-height: 1.15; letter-spacing: -.045em; }
.feature-panel p { color: rgba(255,255,255,.66); font-size: 1.05rem; line-height: 1.85; }
.feature-list { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.feature-list article { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.feature-list strong { color: rgba(255,255,255,.42); font-family: "Outfit", sans-serif; }
.feature-list h3 { margin: 0; font-size: 1.15rem; }
.feature-list p { margin: .45rem 0 0; font-size: .93rem; }

.material-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1.25rem; }
.material-card { min-height: 330px; padding: 2rem; border: 1px solid var(--line); border-radius: 1.5rem; background: rgba(255,255,255,.36); }
.material-card:nth-child(1), .material-card:nth-child(4) { grid-column: span 7; }
.material-card:nth-child(2), .material-card:nth-child(3) { grid-column: span 5; }
.material-card iconify-icon { font-size: 2rem; color: var(--forest); }
.material-card h3 { margin: 3rem 0 0; font-size: 1.65rem; letter-spacing: -.03em; }
.material-card p { margin: 1rem 0 0; max-width: 54ch; color: rgba(23,26,24,.57); line-height: 1.75; }
.material-card .tagline { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag { padding: .48rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: rgba(23,26,24,.55); font-size: .78rem; font-weight: 700; }

.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem 1.25rem; }
.project-link { display: block; }
.project-image { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 1.55rem; background: var(--stone); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.project-link:hover .project-image img { transform: scale(1.045); }
.project-arrow { position: absolute; right: 1rem; top: 1rem; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: white; background: rgba(23,26,24,.35); backdrop-filter: blur(10px); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; }
.project-meta h2, .project-meta h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.03em; }
.project-meta p { margin: .5rem 0 0; color: rgba(23,26,24,.5); font-size: .9rem; font-weight: 600; }
.project-number { color: rgba(23,26,24,.4); font: 500 .85rem "Outfit", sans-serif; }

.project-detail-hero { padding-top: 130px; }
.project-cover { width: min(100% - 2.5rem,1440px); margin: 0 auto; aspect-ratio: 16/8.3; overflow: hidden; border-radius: 2rem; background: var(--stone); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-detail-copy { display: grid; grid-template-columns: 1fr .7fr; gap: 5rem; }
.project-info { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid var(--line); }
.project-info div { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.project-info span { color: rgba(23,26,24,.45); font-size: .78rem; font-weight: 700; }
.project-info strong { display: block; margin-top: .45rem; font-size: 1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }
.gallery-grid figure { grid-column: span 6; margin: 0; overflow: hidden; border-radius: 1.5rem; background: var(--stone); }
.gallery-grid figure:nth-child(3n+1) { grid-column: span 12; }
.gallery-grid img { display: block; width: 100%; height: 100%; max-height: 820px; object-fit: cover; }

.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6rem; }
.patent-wall { display: grid; grid-template-columns: repeat(10,1fr); align-items: end; padding: 2.5rem 1.5rem 1.5rem; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 1.6rem; background: rgba(255,255,255,.045); }
.patent-wall figure { grid-row: 1; aspect-ratio: 1000/1414; margin: 0; overflow: hidden; border-radius: .35rem; box-shadow: 0 20px 42px rgba(0,0,0,.25); background: white; }
.patent-wall figure:nth-child(1) { grid-column: 1/5; transform: rotate(-3deg) translateY(.5rem); z-index:1; }
.patent-wall figure:nth-child(2) { grid-column: 3/7; transform: rotate(-1deg); z-index:2; }
.patent-wall figure:nth-child(3) { grid-column: 4/8; transform: translateY(-.4rem); z-index:5; }
.patent-wall figure:nth-child(4) { grid-column: 6/10; transform: rotate(1deg); z-index:4; }
.patent-wall figure:nth-child(5) { grid-column: 7/11; transform: rotate(3deg) translateY(.5rem); z-index:3; }
.patent-wall img { width: 100%; height: 100%; object-fit: cover; }
.steps { border-top: 1px solid rgba(255,255,255,.17); }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.step span { color: rgba(255,255,255,.4); font: 600 .8rem "Outfit",sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.step h3 { margin: 0; font-size: 1.45rem; }
.step p { margin: .65rem 0 0; color: rgba(255,255,255,.58); line-height: 1.75; }

.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 5rem; align-items: start; }
.contact-card { padding: 2rem; border-radius: 1.5rem; color: white; background: var(--forest); }
.contact-card h2 { margin: 0; font-size: 1.8rem; }
.contact-card p { color: rgba(255,255,255,.62); line-height: 1.75; }
.contact-list { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: .8rem; min-height: 48px; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.form-card { padding: clamp(1.5rem,4vw,3.5rem); border: 1px solid var(--line); border-radius: 1.8rem; background: rgba(255,255,255,.5); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem; }
.field.full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: .55rem; font-size: .88rem; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  color: var(--ink);
  outline: none;
  background: rgba(255,255,255,.72);
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(24,63,50,.1); }
.submit-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .9rem 1.7rem;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.submit-button:hover { transform: translateY(-2px) scale(1.015); }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: .8rem; font-weight: 650; line-height: 1.6; }
.notice.success { color: #174a38; background: #dfeee6; }
.notice.error { color: #812c2c; background: #f8e2e2; }
.honeypot { position: absolute !important; left: -9999px !important; }

.cta-strip { margin: 0 max(1.25rem, calc((100vw - 1440px) / 2)) 7rem; padding: clamp(2rem,5vw,4.5rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; border-radius: 2rem; color: white; background: var(--ink); }
.cta-strip h2 { margin: 0; max-width: 760px; font-size: clamp(2rem,4vw,4rem); line-height: 1.15; letter-spacing: -.04em; }
.cta-button { min-height: 56px; display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.5rem; border-radius: 999px; color: var(--ink); background: white; font-weight: 800; white-space: nowrap; }

.site-footer { padding: 4.5rem max(1.25rem, calc((100vw - 1440px) / 2)) 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.footer-logo { width: 170px; }
.footer-company { margin: 1.5rem 0 0; color: rgba(23,26,24,.5); font-size: .9rem; line-height: 1.9; }
.footer-contact, .footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 1rem; color: rgba(23,26,24,.5); font-size: .88rem; font-weight: 650; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: rgba(23,26,24,.36); font-size: .76rem; font-weight: 600; }
.footer-admin-link { margin-left: .7rem; text-decoration: underline; text-underline-offset: 3px; opacity: .75; }
.footer-admin-link:hover { opacity: 1; }

.reveal { opacity: 0; transform: translate3d(0,28px,0); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--delay,0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1199px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }
  .mobile-nav.open { display: block; }
}
@media (max-width: 900px) {
  .nav-inner { height: 76px; }
  .brand-link img { width: 152px; }
  .nav-cta { display: none; }
  .mobile-nav { top: 72px; }
  .page-hero { min-height: 400px; padding-top: 100px; }
  .page-hero-inner, .section-head, .split-feature, .process-grid, .contact-layout, .project-detail-copy { grid-template-columns: 1fr; gap: 2.5rem; }
  .section, .section.compact { padding-top: 5rem; padding-bottom: 5rem; }
  .feature-media, .feature-panel { min-height: 500px; }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .material-card:nth-child(n) { grid-column: span 6; }
  .cta-strip { align-items: start; flex-direction: column; }
}
@media (max-width: 620px) {
  .page-hero { min-height: 360px; padding-bottom: 3rem; }
  .page-title { font-size: clamp(2.2rem,9vw,3rem); }
  .page-lead { font-size: 1rem; }
  .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .feature-media { min-height: 390px; }
  .feature-panel { min-height: 520px; padding: 1.6rem; }
  .material-grid, .projects-grid { grid-template-columns: 1fr; }
  .material-card:nth-child(n) { grid-column: auto; min-height: 280px; }
  .patent-wall { padding: 1.4rem .7rem .8rem; }
  .step { grid-template-columns: 72px 1fr; }
  .gallery-grid figure, .gallery-grid figure:nth-child(3n+1) { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .project-cover { width: calc(100% - 2.5rem); aspect-ratio: 4/3; border-radius: 1.4rem; }
  .project-info { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
