/* HAstory — home. Sizes are fluid: each value is the design size at a 1920px viewport, scaled by vw and clamped. */

:root {
  --navy: #0f172a;
  --ink: #141c2e;
  --off: #f8fafc;
  --white: #ffffff;
  --gray: #6b7280;
  --gray-soft: #6e788c;
  --line: #e2e8f0;
  --blue: #4f8bff;
  --blue-strong: #2487ea;
  --purple: #8b5cf6;
  --hero: #03060c;

  --font-en: "Inter", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  --font-kr: "Noto Sans KR", "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 6.25vw, 120px);
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--off);
  color: var(--navy);
  font-family: var(--font-kr);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: currentColor; flex: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 8px; background: var(--white); color: var(--navy); font-weight: 500;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- shared type ---------- */
.eyebrow { font-family: var(--font-en); font-weight: 500; font-size: 14px; line-height: 20px; color: var(--gray); letter-spacing: 0; }

.display { font-weight: 300; color: var(--navy); }
.display-journey    { font-size: clamp(32px, 5vw, 96px);    line-height: 1.45; letter-spacing: -0.04em; margin-top: clamp(20px, 2.5vw, 48px); }
.display-technology { font-size: clamp(30px, 3.75vw, 72px); line-height: 1.3;  letter-spacing: -0.03em; margin-top: 32px; }
.display-works      { font-size: clamp(32px, 4.27vw, 82px); line-height: 1.4;  letter-spacing: -0.05em; }
.display-why        { font-size: clamp(28px, 4.9vw, 94px);  line-height: 1.45; letter-spacing: -0.04em; margin-top: clamp(20px, 3vw, 57px); }
.display-build      { font-size: clamp(34px, 5.36vw, 103px); line-height: 1.45; letter-spacing: -0.04em; margin-top: clamp(16px, 1.7vw, 32px); }

.lead { margin-top: 16px; font-size: clamp(16px, 1.25vw, 24px); line-height: 1.58; color: var(--gray); }

.section { position: relative; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  color: var(--navy);
  background: rgba(248, 250, 252, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { font-family: var(--font-en); font-weight: 600; font-size: 25px; line-height: 36px; }

.gnb { display: flex; gap: clamp(28px, 5.2vw, 100px); font-family: var(--font-en); font-weight: 500; font-size: 14px; }
.gnb a { position: relative; padding: 11px 0; white-space: nowrap; }
.gnb a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnb a:hover::after, .gnb a.is-current::after { transform: scaleX(1); }

.lang { display: flex; align-items: center; gap: 20px; font-family: var(--font-en); font-size: 14px; line-height: 20px; }
.lang-current { font-weight: 500; }
.lang-divider { width: 1px; height: 12px; background: currentColor; }
.lang-other { color: var(--gray); cursor: not-allowed; }

.menu-toggle { display: none; width: 40px; height: 40px; margin-left: auto; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(100vh, 560px); min-height: max(100svh, 560px);
  display: flex; align-items: center; justify-content: center;
  background: var(--hero); color: var(--white); text-align: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: url("../img/hero-bg.svg") center / cover no-repeat; }
.hero-copy { position: relative; padding-block: calc(var(--header-h) + 24px) 96px; }
.hero-title { font-family: var(--font-en); font-weight: 700; font-size: clamp(56px, 6.67vw, 128px); line-height: 1.1; letter-spacing: -0.07em; }
.hero-title span { font-weight: 400; }
.hero-tagline { margin-top: clamp(12px, 1.25vw, 24px); font-family: var(--font-en); font-size: clamp(20px, 2.19vw, 42px); line-height: 1.45; }
.hero-desc { margin-top: clamp(12px, 1.25vw, 24px); font-size: clamp(16px, 1.5625vw, 30px); line-height: 1.47; color: #d1d5db; }
.hero-scroll {
  position: absolute; left: 50%; bottom: clamp(28px, 5.5vh, 60px); transform: translateX(-50%);
  padding: 8px 12px; font-weight: 500; font-size: 14px; line-height: 20px; white-space: nowrap;
}
.hero-scroll span { display: inline-block; margin-left: 6px; animation: nudge 1.8s ease-in-out infinite; }

.js .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .15s; }
.js .hero-copy > :nth-child(3) { animation-delay: .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- what we do ---------- */
.journey { padding-block: clamp(56px, 3.65vw, 70px) clamp(56px, 4.8vw, 92px); }

.journey-body {
  margin-top: clamp(28px, 3.4vw, 66px);
  display: grid; grid-template-columns: minmax(0, 370fr) minmax(0, 1254fr); gap: clamp(20px, 2.9vw, 56px) clamp(20px, 2.9vw, 56px);
  align-items: start;
}

.journey-tabs { display: flex; flex-direction: column; gap: clamp(8px, 1.05vw, 20px); }
.journey-tab {
  width: 100%; padding: clamp(6px, .95vw, 18px) 14px; border-radius: 16px; text-align: left;
  font-family: var(--font-en); font-size: clamp(18px, 1.615vw, 31px); line-height: 1.45; color: var(--gray-soft);
  transition: font-size .35s cubic-bezier(.2, .7, .2, 1), background-color .35s, color .35s, padding .35s;
}
.journey-tab:hover { color: var(--navy); }
.journey-tab.is-active { padding-block: 0; background: #f0f5ff; color: var(--blue); font-size: clamp(28px, 2.92vw, 56px); }

.journey-panels { position: relative; min-width: 0; }
.journey-panel {
  display: grid; grid-template-columns: minmax(0, 410fr) minmax(0, 600fr); gap: clamp(20px, 7.3vw, 140px); align-items: center;
  padding: clamp(20px, 3.1vw, 60px) clamp(20px, 3.2vw, 62px) clamp(20px, 3.1vw, 60px) clamp(20px, 2.2vw, 42px);
  background: var(--white); border: 1px solid #e0e8f5; border-radius: 28px;
}
.js .journey-panel:not(.is-active) { display: none; }
.js .journey-panel.is-active { animation: panel-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.journey-panel + .journey-panel { margin-top: 20px; }
.js .journey-panel + .journey-panel { margin-top: 0; }

.journey-text { align-self: start; padding-top: clamp(0px, .95vw, 18px); }
.journey-tag { font-family: var(--font-en); font-weight: 700; font-size: clamp(14px, 1.04vw, 20px); line-height: 1.2; color: var(--blue); }
.journey-title { margin-top: clamp(10px, .95vw, 18px); font-family: var(--font-en); font-weight: 400; font-size: clamp(24px, 2.29vw, 44px); line-height: 1.2; color: var(--ink); }
.journey-desc { margin-top: clamp(16px, 2.45vw, 47px); font-family: var(--font-en); font-size: clamp(15px, 1.15vw, 22px); line-height: 1.35; color: #6b7385; }
.journey-visual { width: 100%; aspect-ratio: 600 / 355; object-fit: cover; border-radius: 24px; }

.journey-path { grid-column: 1 / -1; position: relative; display: flex; justify-content: space-between; align-items: center; height: 30px; }
.journey-path::before, .journey-path::after { content: ""; position: absolute; left: 0; top: 50%; height: 3px; border-radius: 3px; transform: translateY(-50%); }
.journey-path::before { right: 0; background: #d9dee7; }
.journey-path::after { width: calc(var(--progress, 0) * 100%); background: var(--blue); }
.journey-path span { position: relative; z-index: 1; width: 8px; height: 8px; border-radius: 50%; background: #c3cad6; transition: transform .35s, background-color .35s; }
.journey-path span.is-done { background: var(--blue); }
.journey-path span.is-active { background: var(--blue); transform: scale(1.5); box-shadow: 0 0 0 3px rgba(79, 139, 255, .22); }

/* ---------- technology ---------- */
.technology { padding-block: clamp(56px, 6.25vw, 120px) clamp(56px, 5.4vw, 104px); }

.assembly {
  margin-top: clamp(32px, 3.1vw, 60px);
  display: grid; grid-template-columns: minmax(0, 440fr) 60px minmax(0, 620fr) 60px minmax(0, 500fr);
}
.assembly-panel { display: flex; flex-direction: column; gap: 20px; padding: clamp(18px, 1.67vw, 32px); background: var(--white); border-radius: 12px; min-width: 0; }
.assembly-center { border: 1px solid var(--line); }
.assembly-arrow { display: grid; place-items: center; color: var(--blue); }

.step-head h3 { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(18px, 1.25vw, 24px); line-height: 1.2; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eaf3fd; color: var(--blue-strong); font-family: var(--font-en); font-weight: 700; font-size: 20px; }
.step-head p { margin-top: 8px; font-size: 16px; line-height: 1.2; color: var(--gray); }

.engine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.engine {
  display: flex; flex-direction: column; gap: 6px; min-height: 96px; padding: 12px; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.engine:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.engine-head { display: flex; align-items: center; gap: 8px; }
.engine-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #e5e7eb; color: var(--gray); transition: background-color .2s, color .2s; }
.engine-name { flex: 1; min-width: 0; font-family: var(--font-en); font-weight: 600; font-size: 13px; line-height: 16px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine-toggle { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e5e7eb; color: var(--gray); }
.engine-toggle .ico-x { display: none; }
.engine-desc { font-size: 11px; line-height: 13px; color: var(--gray); }

.engine[aria-pressed="true"] { background: #eff6ff; border-color: #3b82f6; }
.engine[aria-pressed="true"] .engine-icon { background: #3b82f6; color: var(--white); }
.engine[aria-pressed="true"][data-tone="green"] { background: #f0fdf4; border-color: #10b981; }
.engine[aria-pressed="true"][data-tone="green"] .engine-icon { background: #10b981; }
.engine[aria-pressed="true"] .ico-x { display: block; }
.engine[aria-pressed="true"] .ico-plus { display: none; }

.assembly-visual { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.assembly-visual img { width: min(100%, 484px); border-radius: 12px; }
.assembly-selection { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 26px; font-family: var(--font-en); font-weight: 600; font-size: 12px; }
.assembly-selection span { padding: 4px 10px; border-radius: 20px; background: #eff6ff; color: #3b82f6; }
.assembly-selection span[data-tone="green"] { background: #f0fdf4; color: #059669; }
.assembly-selection em { align-self: center; font-style: normal; font-weight: 400; color: var(--gray); }

.service-card { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--off); border: 1px solid var(--line); border-radius: 12px; }
.service-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; background: #eff6ff; color: #3b82f6; font-family: var(--font-en); font-weight: 600; font-size: 11px; line-height: 13px; }
.service-card h4 { font-weight: 700; font-size: clamp(18px, 1.25vw, 24px); line-height: 1.2; }
.service-desc { font-size: 16px; line-height: 26px; color: var(--gray); }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags li { padding: 4px 10px; border-radius: 6px; background: rgba(82, 167, 253, .3); color: var(--blue); font-size: 14px; line-height: 17px; }
.service-preview { width: 100%; margin-top: auto; aspect-ratio: 396 / 164; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- works ---------- */
.works { padding-top: clamp(56px, 5.2vw, 100px); }
.works-intro { margin-top: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(24px, 4.2vw, 80px); }
.works-lead { flex: 0 1 779px; font-size: clamp(16px, 1.5625vw, 30px); line-height: 1.47; }

.scene { padding-block: clamp(40px, 5.2vw, 100px); }
.scene-inner { display: grid; grid-template-columns: minmax(0, 720fr) minmax(0, 820fr); gap: clamp(24px, 7.3vw, 140px); align-items: stretch; }
.scene-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; }
.scene-word { font-family: var(--font-en); font-weight: 600; font-size: clamp(72px, 11.35vw, 218px); line-height: 1.1; letter-spacing: -0.05em; white-space: nowrap; }
.scene-tag { font-weight: 500; font-size: clamp(14px, .94vw, 18px); line-height: 1.4; color: var(--blue); }
.scene-title { margin-top: clamp(12px, 1.25vw, 24px); font-weight: 500; font-size: clamp(24px, 2.29vw, 44px); line-height: 1.41; }
.scene-desc { margin-top: clamp(12px, 1.25vw, 24px); font-size: clamp(15px, 1.2vw, 23px); line-height: 1.39; color: var(--gray); }
.scene-visual { aspect-ratio: 820 / 615; overflow: hidden; }
.scene-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Pinned mode: the stage sticks while scrolling through the tall wrapper and scenes cross-fade. */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .js .works-scroll { height: 500vh; }
  .js .works-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
  .js .scene {
    position: absolute; inset: 0; display: flex; align-items: center; padding-block: 0;
    opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
  }
  .js .scene.is-active { opacity: 1; visibility: visible; transition: opacity .5s; }
  .js .scene-visual { max-height: calc(100vh - var(--header-h) - 80px); }
  .js .scene-word, .js .scene-text, .js .scene-visual { transition: transform .7s cubic-bezier(.2, .7, .2, 1); transform: translateY(28px); }
  .js .scene.is-active .scene-word, .js .scene.is-active .scene-text, .js .scene.is-active .scene-visual { transform: none; }
}

/* ---------- why ---------- */
.why { padding-block: clamp(56px, 6.25vw, 120px) clamp(64px, 7.7vw, 148px); background: linear-gradient(180deg, #ffffff 0%, var(--off) 55%, var(--line) 100%); }
.why-lead { margin-top: 8px; max-width: 980px; font-size: clamp(16px, 1.25vw, 24px); line-height: 1.46; }

.why-cards { margin-top: clamp(28px, 2.9vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card {
  position: relative; min-height: clamp(220px, 16.04vw, 308px); padding: clamp(20px, 1.67vw, 32px);
  background: linear-gradient(180deg, #ffffff, #f5f9ff); border: 1px solid #d6e4ff; border-radius: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04), 0 16px 32px -12px rgba(15, 23, 42, .07);
  cursor: default; overflow: hidden;
}
.why-card[data-tone="purple"] { background: linear-gradient(180deg, #ffffff, #fcfaff); border-color: #e9d7fe; }
.why-front, .why-back { transition: opacity .35s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.why-front { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.why-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #dbeafe; border: 1px solid #60a5fa; color: var(--blue); box-shadow: 0 8px 18px -6px rgba(96, 165, 250, .2); }
.why-card[data-tone="purple"] .why-icon { background: #f3e8ff; border-color: #a78bfa; color: var(--purple); box-shadow: 0 8px 18px -6px rgba(167, 139, 250, .2); }
.why-front h3 { font-weight: 700; font-size: clamp(22px, 2.08vw, 40px); line-height: 1.4; }
.why-back { position: absolute; inset: 0; padding: clamp(24px, 2.3vw, 44px) clamp(20px, 1.67vw, 32px); display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(12px); }
.why-back-title { font-weight: 700; font-size: clamp(18px, 1.5625vw, 30px); line-height: 1.4; }
.why-back-desc { font-size: clamp(18px, 1.9vw, 36px); line-height: 1.5; color: var(--gray); }
.why-card:hover .why-front, .why-card:focus-visible .why-front, .why-card.is-open .why-front { opacity: 0; transform: translateY(-12px); }
.why-card:hover .why-back, .why-card:focus-visible .why-back, .why-card.is-open .why-back { opacity: 1; transform: none; }

.continuity { margin-top: clamp(40px, 3.4vw, 66px); padding-top: 16px; border-top: 1px solid #cbd5e1; }
.continuity-title {
  display: inline-block; font-family: var(--font-en); font-weight: 300; font-size: clamp(28px, 3.96vw, 76px); line-height: 1.3; letter-spacing: -0.04em;
  background: linear-gradient(90deg, #0f172a 0%, #60a5fa 48%, #a78bfa 72%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.continuity-title strong { font-weight: 600; font-size: 1.08em; }
.continuity-desc { margin-top: 16px; font-size: clamp(16px, 1.875vw, 36px); line-height: 1.44; color: var(--gray); }

/* ---------- build ---------- */
.build { padding-block: clamp(64px, 6.77vw, 130px) clamp(72px, 11.7vw, 225px); background: #eef1f6 url("../img/build-bg.jpg") center / cover no-repeat; }
.build-row { margin-top: clamp(20px, 1.67vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4.2vw, 80px); }
.build-question { font-weight: 500; font-size: clamp(20px, 1.615vw, 31px); line-height: 1.45; }
.build-desc { margin-top: 16px; font-size: clamp(16px, 1.3vw, 25px); line-height: 1.44; }
.build-cta {
  flex: 0 1 600px; display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: clamp(60px, 4.7vw, 90px); padding: 12px 32px;
  background: var(--navy); color: var(--white); font-family: var(--font-en); font-weight: 500; font-size: clamp(16px, 1.3vw, 25px); white-space: nowrap;
  transition: background-color .25s;
}
.build-cta span { transition: transform .25s; }
.build-cta:hover { background: #1e293b; }
.build-cta:hover span { transform: translateX(6px); }

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

/* The page design sets the header and hero 92px from the edge instead of 120px. */
.page-build .site-header, .page-hero { --gutter: clamp(20px, 4.79vw, 92px); }

.page-hero {
  position: relative; min-height: clamp(440px, 28.125vw, 540px); padding-block: calc(var(--header-h) + 30px) 48px;
  background: #090d1c url("../img/build-hero-bg.svg") right center / cover no-repeat; color: var(--white); overflow: hidden;
}
.page-eyebrow { font-weight: 700; font-size: 14px; line-height: 17px; color: #8ca6ff; }
.page-title { margin-top: 22px; font-weight: 700; font-size: clamp(34px, 3.23vw, 62px); line-height: 1.19; }
.page-desc { margin-top: 22px; font-size: clamp(15px, 1.04vw, 20px); line-height: 1.3; color: #bdc7d9; }
.page-desc strong { font-weight: 700; }
.page-hero-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 18px; border-radius: 8px;
  background: rgba(255, 255, 255, .9); color: var(--navy); font-weight: 700; font-size: 13px; line-height: 16px;
  transition: background-color .2s;
}
.page-hero-link span { transition: transform .2s; }
.page-hero-link:hover { background: var(--white); }
.page-hero-link:hover span { transform: translateX(4px); }

.inquiry { padding-block: clamp(56px, 4.7vw, 90px) clamp(72px, 7.24vw, 139px); background: #f9fafc; color: #0a0f21; }
.inquiry-inner { max-width: calc(1200px + var(--gutter) * 2); }
.inquiry-eyebrow { font-family: var(--font-en); font-weight: 700; font-size: 13px; line-height: 16px; }
.inquiry-title { margin-top: 32px; font-family: var(--font-en); font-weight: 700; font-size: clamp(26px, 1.77vw, 34px); line-height: 1.2; }
.inquiry-lead { margin-top: 32px; font-family: var(--font-en); font-size: 15px; line-height: 1.4; }
.inquiry-form { margin-top: 32px; display: grid; gap: 32px; }

.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q-title { margin-bottom: 14px; padding: 0; font-weight: 700; font-size: 16px; line-height: 19px; color: var(--navy); }
.q-num { margin-right: .9em; }
.q-help { margin-top: 12px; font-size: 12px; line-height: 1.4; color: #6b7385; }
.q-alert { color: #cc4040; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: block; padding: 11px 16px; border: 1px solid #c7cfde; border-radius: 20px; background: var(--white);
  font-size: 13px; line-height: 16px; color: var(--navy); white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.field {
  display: block; width: 100%; height: 56px; padding: 0 16px; border: 1px solid #c7cfde; border-radius: 9px; background: var(--white);
  font: inherit; font-size: 13px; color: var(--navy); transition: border-color .15s, box-shadow .15s;
}
textarea.field { height: 130px; padding: 16px; line-height: 1.5; resize: vertical; }
.field::placeholder { color: #949cab; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 139, 255, .18); }

.upload {
  display: flex; align-items: center; gap: 10px; min-height: 54px; margin-top: 14px; padding: 10px 16px;
  border: 1px solid #c7cfde; border-radius: 9px; background: #f7faff; cursor: pointer; transition: border-color .15s;
}
.upload:hover, .upload:focus-within { border-color: var(--blue); }
.upload-label { font-weight: 700; font-size: 13px; line-height: 16px; color: var(--blue); white-space: nowrap; }
.upload-help { font-size: 12px; line-height: 1.4; color: #6b7385; }

.files { margin-top: 14px; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px 6px 16px; border: 1px solid #d1d6e3; border-radius: 8px; background: var(--white); font-size: 14px; }
.file-name { min-width: 0; font-weight: 700; font-size: 13px; line-height: 16px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { flex: none; font-size: 12px; color: #6b7385; }
.file-remove { flex: none; margin-left: auto; padding: 7px 10px; border-radius: 6px; background: #f9fafc; color: #cc4040; font-weight: 700; font-size: 12px; line-height: 14px; }
.file-remove:hover { background: #fdeeee; }

.contact-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--navy); }

.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-width: 260px; height: 58px; padding: 0 26px;
  border-radius: 8px; background: #407aff; color: var(--white); font-family: var(--font-en); font-weight: 700; font-size: 14px;
  transition: background-color .2s;
}
.submit span { transition: transform .2s; }
.submit:hover { background: #2f66e6; }
.submit:hover span { transform: translateX(4px); }
.form-status { flex: 1 1 280px; font-size: 14px; line-height: 1.5; color: #cc4040; }

/* ---------- project list page ---------- */
.page-hero--list { background-color: #0b1220; background-image: url("../img/list-hero-bg.svg"); }
.page-hero--list .page-desc { color: #d1d5db; }

.board { padding-block: clamp(48px, 3.75vw, 72px) clamp(72px, 8.1vw, 156px); background: #f9fafc; }
.board-inner { max-width: calc(1440px + var(--gutter) * 2); }
.board-eyebrow { font-weight: 700; font-size: 13px; line-height: 16px; color: var(--blue); }
.board-title { margin-top: 26px; font-weight: 700; font-size: clamp(28px, 2.08vw, 40px); line-height: 1.2; }
.board-lead { margin-top: 26px; font-size: 15px; line-height: 1.4; color: #6b7385; }

.board-tools { margin-top: 26px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.board-count { font-weight: 700; font-size: 14px; line-height: 17px; white-space: nowrap; }
.board-search { position: relative; flex: 0 1 330px; color: #949cab; }
.board-search input {
  width: 100%; height: 44px; padding: 0 44px 0 14px; border: 1px solid #dbe0eb; border-radius: 8px; background: var(--white);
  font: inherit; font-size: 12px; color: var(--navy); -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.board-search input::placeholder { color: #949cab; }
.board-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 139, 255, .18); }
.board-search input::-webkit-search-cancel-button { display: none; }
.board-search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }

.board-table { width: 100%; margin-top: 26px; border-collapse: collapse; table-layout: fixed; background: var(--white); }
.board-table th { height: 48px; padding: 0 8px 0 0; background: var(--navy); color: var(--white); font-weight: 700; font-size: 12px; text-align: left; }
.board-table td { height: 68px; padding: 0 8px 0 0; border-bottom: 1px solid #dbe0eb; font-size: 13px; line-height: 1.4; color: #6b7385; }
.board-table th:first-child, .board-table td:first-child { padding-left: 18px; }
.inquiry-open { font-weight: 700; color: var(--navy); text-align: left; line-height: 1.4; }
.inquiry-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.board-empty td { height: 160px; text-align: center; }

.pagination { margin-top: 26px; display: flex; justify-content: center; gap: 8px; }
.pagination button { width: 38px; height: 38px; border: 1px solid #dbe0eb; border-radius: 6px; background: var(--white); font-size: 13px; color: #6b7385; transition: border-color .15s, color .15s; }
.pagination button:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.pagination button[aria-current] { border-color: var(--navy); background: var(--navy); color: var(--white); font-weight: 700; }
.pagination button:disabled { opacity: .45; cursor: default; }

.modal { width: min(520px, calc(100vw - 40px)); padding: 36px; border: 0; border-radius: 16px; background: var(--white); color: var(--navy); }
.modal::backdrop { background: rgba(0, 0, 0, .48); }
.modal-title { font-weight: 700; font-size: 22px; line-height: 26px; }
.modal-input { display: block; width: 100%; height: 54px; margin-top: 18px; padding: 0 16px; border: 1px solid #717e8d; border-radius: 8px; background: var(--white); font: inherit; font-size: 13px; color: var(--navy); }
.modal-input::placeholder { color: #949cab; }
.modal-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 139, 255, .18); }
.modal-input.is-error { border-color: #db3838; box-shadow: none; }
.modal-alert { display: flex; gap: 7px; margin-top: 18px; font-weight: 700; font-size: 12px; line-height: 1.4; color: #db3838; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.modal-actions button { height: 48px; border-radius: 8px; font-weight: 700; font-size: 13px; transition: background-color .15s, border-color .15s; }
.modal-cancel { border: 1px solid #dbe0eb; background: var(--white); color: var(--navy); }
.modal-cancel:hover { border-color: var(--navy); }
.modal-confirm { background: var(--blue); color: var(--white); }
.modal-confirm:hover { background: #3a76ea; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--gray); padding-block: 40px clamp(60px, 7.7vw, 148px); font-size: clamp(14px, .94vw, 18px); line-height: 1.45; }
.footer-inner { display: flex; justify-content: space-between; gap: clamp(32px, 6.25vw, 120px); }
.footer-brand { flex: 0 1 760px; display: flex; flex-direction: column; gap: 16px; font-family: var(--font-en); }
.footer-logo { font-weight: 600; font-size: clamp(30px, 2.29vw, 44px); line-height: 1.45; color: var(--white); }
.footer-logo span { font-weight: 400; }
.footer-legal { flex: 0 1 800px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.footer-legal span { margin-inline: .6em; }

/* ---------- first-visit intro (home only) ---------- */
.intro { display: none; }
.show-intro .intro, .intro.exit {
  display: block; position: fixed; inset: 0; z-index: 300; overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0b1322 0%, #05070b 48%, #020305 100%);
  color: #f4f7fb; font-family: var(--font-en);
}
.intro.exit { opacity: 0; pointer-events: none; transition: opacity 1.2s ease; }
.show-intro body { overflow: hidden; }
/* Hold the hero entrance until the intro is dismissed. */
.show-intro .hero-copy > * { animation: none; opacity: 0; }

.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at center, transparent 32%, rgba(0, 0, 0, .26) 70%, rgba(0, 0, 0, .76) 100%); }
.intro-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-inline: 20px; text-align: center; opacity: 0; animation: intro-copy-in 1.8s ease 2.2s forwards;
}
.intro-dot {
  width: 5px; height: 5px; margin-bottom: 32px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px 8px rgba(180, 220, 255, .35), 0 0 70px 25px rgba(70, 145, 255, .12);
  animation: intro-pulse 2.2s ease-in-out infinite;
}
.intro-brand { font-size: clamp(64px, 10vw, 160px); font-weight: 300; line-height: .9; letter-spacing: -0.075em; text-shadow: 0 0 28px rgba(255, 255, 255, .08); }
.intro-brand span { font-weight: 500; }
.intro-tagline { max-width: 80vw; margin-top: 28px; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.8; letter-spacing: .28em; text-transform: uppercase; color: rgba(244, 247, 251, .62); }
.intro-enter {
  margin-top: 44px; padding: 12px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .035); color: #f4f7fb; font-size: 11px; letter-spacing: .2em;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .25s ease, transform .25s ease;
}
.intro-enter:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.intro-skip { position: absolute; right: 20px; bottom: 16px; padding: 8px; color: rgba(255, 255, 255, .46); font-size: 10px; letter-spacing: .18em; }
.intro-skip:hover { color: rgba(255, 255, 255, .8); }

@keyframes intro-copy-in { to { opacity: 1; } }
@keyframes intro-pulse { 0%, 100% { transform: scale(.8); opacity: .6; } 50% { transform: scale(1.35); opacity: 1; } }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro-copy { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (max-width: 1599px) {
  /* The engine cards need a wider first column than the 1920 design ratio gives them. */
  .assembly { grid-template-columns: minmax(0, 520fr) 40px minmax(0, 560fr) 40px minmax(0, 480fr); }
  .engine-head { gap: 6px; }
}

@media (max-width: 1360px) {
  .assembly { grid-template-columns: minmax(0, 1fr); }
  .assembly-arrow { height: 56px; }
  .assembly-arrow svg { transform: rotate(90deg); }
  .engine-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .why-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: flex; }
  .lang { display: none; }
  .gnb {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(3, 6, 12, .96); color: var(--white); font-size: 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .gnb.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
  .gnb a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .gnb a::after { display: none; }

  .journey-body { grid-template-columns: minmax(0, 1fr); }
  .journey-tabs { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .journey-tabs::-webkit-scrollbar { display: none; }
  .journey-tab, .journey-tab.is-active { width: auto; flex: none; padding: 8px 14px; font-size: 18px; border-radius: 12px; }
  .journey-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; border-radius: 20px; }
  .journey-visual { border-radius: 16px; }

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

  .works-intro { flex-direction: column; align-items: flex-start; }
  .works-lead { flex: none; }
  .scene-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scene-copy { gap: 20px; }

  .build-row { flex-direction: column; align-items: stretch; }
  .build-cta { flex: none; }

  /* 16px inputs keep iOS from zooming the page on focus. */
  .field, .board-search input, .modal-input { font-size: 16px; }

  /* The inquiry table becomes a list of cards. */
  .board-table, .board-table tbody, .board-table td { display: block; }
  .board-table colgroup { display: none; }
  .board-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .board-table tr[data-row] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 18px; border-bottom: 1px solid #dbe0eb; }
  .board-table td, .board-table td:first-child { height: auto; padding: 0; border: 0; }
  .board-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 11px; color: #949cab; }
  .board-table .col-num { display: none; }
  .board-table .col-title { grid-column: 1 / -1; font-size: 15px; }
  .board-empty td { padding: 56px 0; }
  .modal { padding: 28px 24px; }
  .contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload { flex-direction: column; align-items: flex-start; gap: 6px; }

  .footer-inner { flex-direction: column; }
  .footer-brand, .footer-legal { flex: none; }
}

@media (max-width: 560px) {
  .engine { padding: 10px; }
  .engine-icon { width: 24px; height: 24px; }
  .engine-name { font-size: 12px; }
  .why-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: minmax(0, 1fr); }
  .submit { width: 100%; }
  .why-card { min-height: 200px; }
  .footer-legal span { display: block; height: 0; overflow: hidden; margin: 0; }
}
