:root {
  --navy: #0b1730;
  --navy-2: #10203f;
  --blue: #2f6fed;
  --blue-light: #7fb8ff;
  --accent: #ff8a1e;
  --accent-dark: #e5720a;
  --ink: #12151c;
  --text: #1c212b;
  --text-mute: #5b6472;
  --bg: #ffffff;
  --bg-soft: #f3f5f9;
  --border: #e6e9ef;
  --radius: 16px;
  --shadow: 0 20px 40px -20px rgba(11, 23, 48, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* Topbar */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
}
.topbar a { color: var(--blue-light); text-decoration: none; font-weight: 600; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 23, 48, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand__mark {
  height: 30px;
  width: auto;      /* mark is slightly wider than tall (746:680) */
  flex: none;
}
.brand__text {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.brand__text em { font-style: normal; color: var(--blue-light); }
.brand__text--light { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 5px;
}
.nav__cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--accent-dark); }
.nav__cta.is-active::after { display: none; }   /* CTA already reads as active */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(255, 138, 30, 0.55);
}
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.14); }
.location .btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.location .btn--ghost:hover { background: var(--bg-soft); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.6);
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,16,34,0.75) 0%, rgba(9,16,34,0.55) 45%, rgba(9,16,34,0.92) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 120px 24px 100px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow.center { display: block; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--blue-light); }
.hero__desc {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }


/* Sub-page hero (compact banner instead of the full-height home hero) */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, #16305e 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.page-hero__desc {
  margin: 16px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  max-width: 640px;
}

/* Shared info table (about / careers / contact) */
.info-section { background: var(--bg); }
.info-table {
  margin: 0;
  max-width: 720px;
  border-top: 1px solid var(--border);
}
.info-table > div {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.info-table dt {
  width: 96px;
  flex: none;
  color: var(--text-mute);
  font-weight: 600;
  font-size: 14px;
}
.info-table dd { margin: 0; font-size: 15px; color: var(--navy); font-weight: 600; }
.info-table a { color: var(--blue); text-decoration: none; }
.info-table--compact { margin-top: 28px; }
.info-section .info-table { margin: 0 auto; }

/* Service detail rows */
.svc { background: var(--bg); }
.svc--alt { background: var(--bg-soft); }
.svc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc__grid--rev .svc__media { order: 2; }
.svc__copy .eyebrow { color: var(--blue); }
.svc__copy h2 {
  font-size: clamp(23px, 3vw, 31px);
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 800;
}
.svc__copy p { color: var(--text-mute); margin: 0 0 20px; font-size: 16px; }
.svc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.svc__list li {
  position: relative;
  padding-left: 28px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

/* Home extras */
.link-more {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}
.home-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.home-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--border);
  padding-bottom: 4px;
}
.home-links a:hover { border-color: var(--accent); }

/* Stats */
.stats { background: var(--navy-2); color: #fff; padding: 48px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong { display: block; font-size: 26px; color: var(--blue-light); margin-bottom: 6px; }
.stat span { font-size: 14px; color: rgba(255,255,255,0.72); }

/* Section basics */
section { padding: 100px 0; }
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 56px;
  color: var(--navy);
}
.section-title.center { text-align: center; }

/* Strengths */
.strengths { background: var(--bg); }
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.strength {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  text-align: center;
}
.strength__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(255, 138, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.strength__icon svg { width: 32px; height: 32px; }
.strength h3 { margin: 0 0 12px; font-size: 20px; color: var(--navy); }
.strength p { margin: 0; color: var(--text-mute); font-size: 15px; line-height: 1.7; }

/* About */
.about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__copy .eyebrow { color: var(--blue); }
.about__copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 20px;
}
.about__copy p { color: var(--text-mute); margin: 0 0 14px; font-size: 16px; }
.about__points { display: grid; gap: 16px; margin-top: 24px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point svg { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.point strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.point span { display: block; color: var(--text-mute); font-size: 14px; line-height: 1.5; }


/* Services */
.services { background: var(--bg-soft); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 138, 30, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--navy); }
.card p { margin: 0; color: var(--text-mute); font-size: 15px; }

/* Process (compact, inside services section) */
.process {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.process__title {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.02em;
}
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.process__steps li {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.process__steps span {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}
.process__steps strong { font-size: 15px; color: var(--navy); }
.process__steps em { font-style: normal; font-size: 13px; color: var(--text-mute); line-height: 1.45; }

/* Equipment */
.equipment { background: var(--bg); }
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.equipment__hint {
  display: none;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin: -18px 0 20px;
}
.equip-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  /* flex column so content stays top-aligned — <button> centers its
     content by default, which shifted cards with shorter descriptions */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.equip-card__media { flex: none; }
.equip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.equip-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.equip-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--navy); }
.equip-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.equip-card:hover .equip-card__media img { transform: scale(1.06); }
.equip-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.equip-card h3 { margin: 18px 20px 6px; font-size: 17px; color: var(--navy); }
.equip-card p { margin: 0 20px 20px; color: var(--text-mute); font-size: 14px; }

/* CTA strip (every page ends with this) */
.cta-strip {
  background: linear-gradient(120deg, var(--navy) 0%, #1b3a72 100%);
  padding: 56px 0;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-strip__inner h2 { margin: 0 0 8px; font-size: 26px; }
.cta-strip__inner p { margin: 0; color: rgba(255,255,255,0.78); }
.cta-strip__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Location (map full width on the contact page) */
.location { background: var(--bg-soft); }
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.location__actions { margin-top: 24px; text-align: center; }
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Gallery (시공사례) */
.gallery { background: var(--bg); }
.gallery__hint {
  text-align: center;
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 28px;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.shot {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s, box-shadow 0.2s;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.shot:hover img { transform: scale(1.05); }
/* 영상 카드: 재생 아이콘 + 배지 */
.shot__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(11, 23, 48, 0.62);
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: background 0.2s, transform 0.2s;
}
.shot__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
.shot--video:hover .shot__play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}
.shot__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}

/* 카테고리 필터 */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 28px;
}
.filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-mute);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover { border-color: var(--blue); color: var(--navy); }
.filter-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.filter-chip__n { opacity: 0.55; font-weight: 500; margin-left: 4px; }
.gallery__empty {
  text-align: center;
  color: var(--text-mute);
  padding: 40px 0;
}

.shot.is-hidden { display: none; }

.shot__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(transparent, rgba(11,23,48,0.85));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

/* 사진이 아직 없을 때 */
.empty-state {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 20px; }
.empty-state h2 { margin: 0 0 12px; font-size: 21px; color: var(--navy); }
.empty-state p { margin: 0 0 24px; color: var(--text-mute); font-size: 15px; line-height: 1.7; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(6, 12, 26, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__inner { max-width: 1100px; width: 100%; text-align: center; }
.lightbox__inner img {
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}
.lightbox__cap { margin: 16px 0 4px; color: #fff; font-size: 15px; font-weight: 600; }
.lightbox__count { margin: 0; color: rgba(255,255,255,0.5); font-size: 13px; }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.26); }
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 30px;
  line-height: 1;
  padding-bottom: 4px;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* Careers */
.careers__badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  vertical-align: middle;
}
.careers-page { background: var(--bg); }
.careers-page__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.careers-page__title {
  margin: 14px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
  font-weight: 800;
}
.careers-page__lead { margin: 0 0 28px; color: var(--text-mute); font-size: 16px; }
.careers-page__aside {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}
.careers-page__aside h3 { margin: 0; font-size: 18px; color: var(--navy); }
.careers-page__aside p { margin: 0 0 6px; font-size: 14px; color: var(--text-mute); }
.careers-page__aside .btn { width: 100%; }
.careers-page__aside .btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.careers-page__aside .btn--ghost:hover { background: #fff; }

/* FAQ */
.faq { background: var(--bg); }
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  background: var(--bg-soft);
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--blue);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 14px 0 0; color: var(--text-mute); font-size: 15px; line-height: 1.7; }

/* Contact */
.contact { background: var(--bg); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact__grid > * { min-width: 0; }
.contact__intro .eyebrow { color: var(--blue); }
.contact__intro h2 { font-size: 28px; color: var(--navy); margin: 0 0 16px; }
.contact__intro p { color: var(--text-mute); }
.contact__call { margin-top: 20px; }
.contact__form {
  display: grid;
  gap: 18px;
  background: var(--bg-soft);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact__form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
.contact__form input,
.contact__form textarea {
  font-family: inherit;
  font-weight: 400;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  resize: vertical;
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.btn--send { justify-self: start; min-width: 160px; }
.contact__note a, .quick-chat__note a { color: var(--blue); font-weight: 600; }
.contact__note { margin: 0; font-size: 13px; color: var(--text-mute); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 48px 0 28px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer .brand__mark { height: 24px; width: auto; }
.footer p { margin: 4px 0; font-size: 14px; }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 32px;
}
.footer__nav a { font-size: 14px; font-weight: 600; }
.footer__copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Equipment modal */
.equip-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.equip-modal.is-open { visibility: visible; opacity: 1; }
.equip-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 34, 0.72);
  backdrop-filter: blur(2px);
}
.equip-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.equip-modal.is-open .equip-modal__panel { transform: translateY(0) scale(1); }
.equip-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11,23,48,0.55);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equip-modal__close:hover { background: rgba(11,23,48,0.8); }
.equip-modal__media { aspect-ratio: 16/10; background: var(--navy); }
.equip-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.equip-modal__body { padding: 28px 30px 32px; }
.equip-modal__badge {
  display: inline-block;
  background: rgba(255,138,30,0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.equip-modal__body h3 { margin: 0 0 12px; font-size: 22px; color: var(--navy); }
.equip-modal__body p { margin: 0; color: var(--text-mute); font-size: 15px; line-height: 1.7; white-space: pre-line; }

/* Floating call button + quick chat */
.fab-stack {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.fab {
  width: 58px;
  height: 58px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px -8px rgba(255, 138, 30, 0.6);
  animation: pulse 2.4s infinite;
}
.fab--chat {
  background: var(--blue);
  box-shadow: 0 14px 28px -8px rgba(47, 111, 237, 0.6);
  animation: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,138,30,0.5), 0 14px 28px -8px rgba(255,138,30,0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255,138,30,0), 0 14px 28px -8px rgba(255,138,30,0.6); }
  100% { box-shadow: 0 0 0 0 rgba(255,138,30,0), 0 14px 28px -8px rgba(255,138,30,0.6); }
}

.quick-chat { position: relative; }
.quick-chat__panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 50px -18px rgba(11,23,48,0.4);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.quick-chat.is-open .quick-chat__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.quick-chat__header {
  background: var(--navy);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.quick-chat__header strong { display: block; font-size: 15px; }
.quick-chat__header span { display: block; font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.quick-chat__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  cursor: pointer;
  padding: 2px;
}
.quick-chat__close:hover { color: #fff; }
.quick-chat__form {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}
.quick-chat__form input,
.quick-chat__form textarea {
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  resize: vertical;
}
.quick-chat__form input:focus,
.quick-chat__form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
.quick-chat__form .btn { padding: 10px; font-size: 14px; width: 100%; }
.quick-chat__note { margin: 0; padding: 0 18px 16px; font-size: 11px; color: var(--text-mute); }

@media (max-width: 400px) {
}

/* ────────────────────────────────────────────────────────────────
   모바일 빠른문의 : 화면 아래 시트로 띄운다.

   휴대폰에서 입력칸을 누르면 키보드가 올라오는데,
   - 안드로이드는 화면 높이가 줄어들어 팝업이 좁은 스크롤 박스가 되고
   - 아이폰은 화면 높이가 그대로여서 팝업 아래쪽(보내기 버튼)이 키보드에 가려진다.
   그래서 위치를 화면 기준으로 고정하고, 키보드 높이는 JS가
   visualViewport 로 재서 --qc-inset / --qc-max 에 넣어준다.
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .quick-chat__panel {
    position: fixed;
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(var(--qc-inset, 88px) + env(safe-area-inset-bottom, 0px));
    max-height: var(--qc-max, 72vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* 시트가 열려 있는 동안에는 플로팅 버튼이 가리지 않게 숨긴다 */
  .quick-chat.is-open ~ .fab,
  .quick-chat.is-open .fab--chat { opacity: 0; pointer-events: none; }
}

/* Reveal animation.
   Gated on .js so the page stays readable if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .about__grid, .contact__grid,
  .svc__grid, .careers-page__grid { grid-template-columns: 1fr; }
  .svc__grid { gap: 32px; }
  .svc__grid--rev .svc__media { order: 0; }
  .careers-page__aside { position: static; }
  .cards, .equipment__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar span { display: none; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav__cta { margin-top: 8px; text-align: center; }
  .hamburger { display: flex; }
  section { padding: 64px 0; }
  .page-hero { padding: 48px 0 42px; }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
  .footer__top { flex-direction: column; }
  .home-links { gap: 18px 24px; }
}

/* Narrow phones (and folded Z Fold cover screen) */
@media (max-width: 620px) {
  section { padding: 48px 0; }
  .section-title { margin-bottom: 32px; }
  /* Service cards: icon beside text instead of stacked */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card {
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
  }
  .card__icon { width: 44px; height: 44px; margin: 0; grid-row: span 2; align-self: start; }
  .card__icon svg { width: 22px; height: 22px; }
  .card h3 { margin: 0 0 4px; font-size: 17px; }
  .card p { font-size: 14px; }
  .faq__item { padding: 16px 18px; }
  .contact__form { padding: 24px 20px; }
  .info-table > div { flex-direction: column; gap: 4px; padding: 11px 0; }
  .info-table dt { width: auto; }
  .about__grid { gap: 32px; }
  .contact__grid { gap: 28px; }
  .location__map, .map-frame { min-height: 300px; }
  .cta-strip__actions { width: 100%; flex-direction: column; }
  .cta-strip__actions .btn { width: 100%; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }

  /* 시공사례: 2열 유지 (1열은 사진이 과하게 커짐) */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot__cap { font-size: 11.5px; padding: 18px 10px 9px; }
  .empty-state { padding: 40px 22px; }
  .lightbox { padding: 12px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__inner img { max-height: 68vh; max-height: 68dvh; }
  .hero { min-height: 78vh; min-height: 78dvh; }
  .hero__inner { padding: 88px 24px 72px; }
  .contact__form { gap: 14px; }
  .contact__form label { gap: 6px; font-size: 13px; }
  .contact__form input, .contact__form textarea { padding: 11px 14px; }
  .contact__form textarea { min-height: 96px; }

  /* Process: compact two-line rows */
  .process { margin-top: 32px; padding: 20px; }
  .process__steps { grid-template-columns: 1fr; gap: 10px; }
  .process__steps li {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    column-gap: 8px;
    padding-left: 12px;
  }
  .process__steps strong { grid-column: 2; }
  .process__steps em { grid-column: 2; font-size: 12.5px; }

  /* Equipment: horizontal swipe instead of 4 stacked cards */
  .equipment__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 24px 14px;
    margin: 0 -24px;
    scrollbar-width: none;
  }
  .equipment__grid::-webkit-scrollbar { display: none; }
  .equip-card {
    flex: 0 0 78%;
    max-width: 300px;
    scroll-snap-align: center;
  }
  .equip-card h3 { margin: 14px 16px 4px; font-size: 16px; }
  .equip-card p { margin: 0 16px 16px; font-size: 13px; }
  .equipment__hint { display: block; }
}

/* Short viewports (Z Flip cover screen, landscape phones).
   빠른문의 패널 높이는 위의 모바일 시트 규칙과 JS(--qc-max)가 담당한다. */
@media (max-height: 560px) {
  .hero { min-height: 520px; }
  .equip-modal__panel { max-height: 82vh; max-height: 82dvh; }

  /* 키보드가 올라와 화면이 짧아지면 빠른문의 내용을 조여
     스크롤 없이 '보내기' 까지 보이게 한다 */
  .quick-chat__header { padding: 11px 16px; }
  .quick-chat__header span { display: none; }
  .quick-chat__form { gap: 8px; padding: 12px 14px; }
  .quick-chat__form input,
  .quick-chat__form textarea { padding: 8px 12px; }
  .quick-chat__form textarea { min-height: 48px; height: 48px; }
  .quick-chat__form .btn { padding: 9px; }
  .quick-chat__note { padding: 0 14px 10px; font-size: 10.5px; }
}
