:root {
  color-scheme: light;
  --navy: #1b2a4a;
  --dark: #101c30;
  --ink: #18273a;
  --muted: #536274;
  --light-ink: #d7e1ed;
  --line: #d9e0e5;
  --paper: #f2f5f6;
  --white: #fff;
  --orange: #d97706;
  --gold: #ffbd70;
  --radius: 7px;
  --edge: clamp(16px, 4.4vw, 72px);
  --gutter: clamp(14px, 2.2vw, 32px);
  --section: clamp(64px, 8.7vw, 144px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 18px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

main { display: block; }
section { padding-block: var(--section); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.05em; }
h2 { font-size: clamp(2rem, 4.1vw, 4.08rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 750; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.wrap { width: min(1376px, calc(100% - var(--edge) * 2)); margin-inline: auto; }
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.skip {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--dark);
  background: var(--white);
  transform: translateY(-180%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: var(--header);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-size: clamp(1.1rem, 1.5vw, 1.42rem);
  font-weight: 850;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.mark {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background: var(--orange);
  clip-path: polygon(0 32%, 48% 2%, 100% 30%, 100% 98%, 65% 98%, 65% 61%, 36% 61%, 36% 98%, 0 98%);
}

nav { display: flex; align-items: center; gap: clamp(12px, 1.9vw, 28px); }
nav a { white-space: nowrap; font-size: .92rem; font-weight: 700; }
nav a:hover { color: #9a4e00; }
.menu { display: none; }

.btn, .header-call {
  display: inline-flex;
  min-height: 49px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--orange);
  color: #111d2c;
  font-weight: 800;
  text-align: center;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

.btn:hover { background: #ee9a38; }
.header-call { background: var(--navy); color: var(--white); }
.header-call:hover { background: #34496f; color: var(--white); }
.btn-ghost { border-color: #f0f5fa80; background: transparent; color: var(--white); }
.btn-ghost:hover { background: #f0f5fa24; color: var(--white); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #924706;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .07em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: clamp(570px, 50vw, 765px);
  align-content: center;
  padding-block: clamp(72px, 8vw, 132px);
  color: var(--white);
  background: var(--dark);
}

.hero .eyebrow, .contact .eyebrow, .strengths .eyebrow { color: var(--gold); }

.hero h1 { font-size: clamp(2.65rem, 5.4vw, 6rem); max-width: 920px; font-weight: 800; }
.hero h1 span, .hero h1 em { color: var(--gold); font-style: normal; }

.hero-content { position: relative; z-index: 2; }
.hero-media {
  position: absolute;
  overflow: hidden;
  inset: 0;
  z-index: -1;
  background: var(--navy);
}

.hero-media::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(90deg, #101c30f7 0%, #101c30dc 29%, #101c3078 67%, #101c305c 100%);
}

.hero-media [data-slide] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 850ms ease;
}
.hero-media [data-slide].is-active { opacity: 1; }
.hero-media::after { z-index: 1; }
.hero-media picture, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img { transform: scale(1.01); }
.hero-media .is-animated img { animation: cinematic-zoom 9s linear both; }
.hero:not(.is-playing) .hero-media .is-animated img { animation-play-state: paused; }
@keyframes cinematic-zoom { from { transform: scale(1.01); } to { transform: scale(1.08); } }

.hero-controls {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: clamp(20px, 4vw, 48px);
}

.hero:not(.carousel-ready) .hero-controls { display: none; }

.slide-index, .slide-actions { display: flex; gap: 6px; }

.hero-controls button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 9px;
  color: var(--white);
  background: #101c3075;
  border: 1px solid #eef3f97a;
  border-radius: var(--radius);
}

.hero-controls button:hover, .hero-controls button[aria-current="true"] {
  color: var(--dark);
  background: var(--gold);
  border-color: var(--gold);
}

.hero-content > p:not(.eyebrow) {
  max-width: 42rem;
  margin-block: 22px 30px;
  color: var(--light-ink);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
}

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

.section-head { max-width: 55rem; margin-bottom: clamp(30px, 5vw, 62px); }
.section-head > p:not(.eyebrow) { max-width: 47rem; margin-top: 16px; color: var(--muted); }

.intro .grid12 { align-items: end; }
.intro-copy { grid-column: span 7; }
.intro-note { grid-column: span 5; padding: 4px 0 4px clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }
.intro-copy p:not(.eyebrow), .intro-note p { margin-top: 12px; color: var(--muted); }
.intro-note h3 { margin-top: 6px; }
.services, .process { background: var(--paper); }
.service-card, .project-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s ease, translate .25s ease;
}

.service-card img, .project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce3e7;
}

.card-body { padding: clamp(20px, 3vw, 39px); }
.card-body p { margin-top: 12px; color: var(--muted); }
.card-body ul { padding-inline-start: 1.12em; margin-block: 18px 0; color: var(--muted); }
.card-body li + li { margin-top: 3px; }
.card-body li::marker { color: #a85204; }

@media (hover: hover) {
  .service-card:hover, .project-card:hover { border-color: #b96611; translate: 0 -4px; }
}

.strengths { background: var(--navy); color: var(--white); }
.strengths .section-head > p:not(.eyebrow), .strength p { color: var(--light-ink); }
.strength { grid-column: span 3; min-width: 0; padding: clamp(20px, 2.4vw, 34px) 0 0; border-top: 1px solid #ffffff54; }
.strength h3 { margin-top: 18px; }
.strength p { margin-top: 9px; }
.strength .number { color: var(--gold); font-size: 1.05rem; font-weight: 760; letter-spacing: .06em; }
.strength svg { width: 34px; height: 34px; color: var(--gold); }

.project-card { grid-column: span 3; }
.project-card .card-body { padding: clamp(17px, 2vw, 28px); }
.project-card h3 { font-size: clamp(1.1rem, 1.65vw, 1.47rem); }

.timeline {
  --timeline-origin: 23px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gutter);
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: var(--timeline-origin) calc((100% - 4 * var(--gutter)) / 5 - var(--timeline-origin)) auto var(--timeline-origin);
  height: 1px;
  background: #adbac3;
  transform-origin: left;
}

.timeline li { position: relative; min-width: 0; }
.timeline .number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #ab5c0d;
  border-radius: var(--radius);
  color: #874405;
  background: var(--white);
  font-size: .92rem;
  font-weight: 800;
}

.timeline h3 { margin-top: 16px; font-size: clamp(1rem, 1.6vw, 1.37rem); }
.timeline p { margin-top: 7px; color: var(--muted); font-size: .95rem; }

.contact { background: var(--navy); color: var(--white); }
.contact-copy { grid-column: span 5; }
.contact-copy p:not(.eyebrow) { margin-top: 18px; color: var(--light-ink); }
.contact-copy .btn { margin-top: 20px; }
.contact form {
  grid-column: span 7;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3.2vw, 42px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.fields label { display: block; min-width: 0; font-size: .92rem; font-weight: 720; }
.full { grid-column: 1 / -1; }
input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #a7b4bf;
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink);
  font-size: max(1rem, 16px);
  font-weight: 450;
}
textarea { resize: vertical; min-height: 110px; }
button:disabled { cursor: wait; opacity: .72; }
#form-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }
#form-status:empty { display: none; }
#form-status:not(:empty) {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid #b8c7d2;
  border-radius: var(--radius);
  background: #f2f6f9;
  color: var(--ink);
  font-size: .9rem;
}
#form-status[data-state=error] { color: #842723; background: #fff3f1; border-color: #e2b0a9; }
#form-status[data-state=success] { color: #285537; background: #edf8f0; border-color: #9fc8ad; }
#form-status[data-state=demo] { color: #64400e; background: #fff6e7; border-color: #e2be7f; }
#submit-quote { width: 100%; margin-top: 17px; }

footer {
  padding-block: clamp(28px, 5vw, 56px);
  background: var(--dark);
  color: var(--light-ink);
  font-size: .92rem;
}

.footer-grid { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
footer .brand, footer strong { color: var(--white); }
footer address { font-style: normal; }
footer p + p { margin-top: 4px; }
footer a:hover { color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .will-reveal { transition: opacity .65s ease, transform .65s cubic-bezier(.19, 1, .22, 1), translate .25s ease, border-color .25s ease; }
  .will-reveal:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(18px); }
  .timeline.will-reveal::before { transition: transform 1s cubic-bezier(.19, 1, .22, 1); }
  .timeline.will-reveal:not(.is-visible)::before { transform: scaleX(0); }
  .timeline.will-reveal.is-visible li { animation: step-in .56s cubic-bezier(.19, 1, .22, 1) backwards; }
  .timeline.will-reveal.is-visible li:nth-child(2) { animation-delay: .08s; }
  .timeline.will-reveal.is-visible li:nth-child(3) { animation-delay: .16s; }
  .timeline.will-reveal.is-visible li:nth-child(4) { animation-delay: .24s; }
  .timeline.will-reveal.is-visible li:nth-child(5) { animation-delay: .32s; }
  @keyframes step-in { from { transform: translateY(10px); opacity: .16; } to { transform: none; opacity: 1; } }
}

@media (max-width: 1050px) {
  :root { --header: 68px; }
  .bar { gap: 10px; }
  .header-call { margin-left: 0; }
  .bar .menu { margin-left: auto; }
  .menu {
    display: inline-grid;
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 44px;
    place-items: center;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 750;
  }
  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header));
    padding: 10px var(--edge) 16px;
    gap: 0;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  #site-nav[data-open] { display: flex; }
  #site-nav a { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  #site-nav a:last-child { border-bottom: 0; }
  .strength, .project-card { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --header: 62px; }
  .hero {
    display: grid;
    min-height: 0;
    padding-block: 0;
    align-content: normal;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-media {
    position: relative;
    grid-area: 1 / 1;
    aspect-ratio: 16 / 9;
    z-index: 0;
  }
  .hero-media::after { background: linear-gradient(0deg, #101c3075, #101c3000 50%); }
  .hero-media img, .hero-media .is-animated img { transform: none; animation: none; }
  .hero-content { grid-area: 2 / 1; padding-block: 27px 40px; }
  .hero-controls { grid-area: 1 / 1; align-self: end; margin-block: 0 9px; }
  .desktop-break { display: none; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3.65rem); }
  .hero-content > p:not(.eyebrow) { margin-block: 15px 21px; }
  .intro-copy, .intro-note, .contact-copy, .contact form { grid-column: 1 / -1; }
  .contact form { margin-top: 10px; }
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }
  .timeline::before {
    inset: 18px auto 46px var(--timeline-origin);
    width: 1px;
    height: auto;
    transform-origin: top;
  }
  .timeline li { min-height: 46px; padding-left: 61px; }
  .timeline .number { position: absolute; left: 0; top: 0; }
  .timeline h3 { margin-top: 1px; }
  .timeline p { margin-top: 4px; }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .timeline.will-reveal:not(.is-visible)::before { transform: scaleY(0); }
}

@media (max-width: 540px) {
  .bar { gap: 6px; }
  .brand { gap: 6px; font-size: 1.02rem; }
  .mark { width: 23px; height: 23px; flex-basis: 23px; }
  .header-call { min-height: 44px; padding: 6px; line-height: 1.16; font-size: 0; white-space: nowrap; gap: 0; }
  .header-call > span { font-size: .75rem; }
  .slide-index { display: none; }
  .service-card, .project-card { grid-column: 1 / -1; }
  .strength { padding-top: 16px; }
  .strength h3 { font-size: 1.08rem; margin-top: 11px; }
  .strength p { font-size: .91rem; }
  .fields { grid-template-columns: 1fr; }
  .actions { gap: 8px; }
  .actions .btn { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  .hero-media img { transform: none; }
  .service-card:hover, .project-card:hover { translate: none; }
}
