:root {
  --bg: #f7f8f5;
  --paper: #ffffff;
  --ink: #172026;
  --muted: #65727c;
  --line: #d9e0e2;
  --navy: #063b78;
  --navy-2: #0b4f93;
  --teal: #00a7b5;
  --teal-soft: #dff6f7;
  --green: #2a8c66;
  --green-soft: #e3f2e8;
  --coral: #d65a43;
  --coral-soft: #fae6df;
  --gold: #b5892e;
  --gold-soft: #f7edd6;
  --shadow: 0 18px 44px rgba(12, 36, 54, 0.12);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(0, 167, 181, 0.42);
  outline-offset: 3px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.reveal-on-scroll.reveal-soft {
  transform: translateY(10px);
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 224, 226, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: auto;
  height: 62px;
  object-fit: contain;
}

.brand-text {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.top-nav {
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.top-nav a {
  padding: 9px 11px;
  border-radius: 8px;
}

.top-nav a:hover,
.top-nav .nav-cta {
  background: var(--navy);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: 660px;
  padding: clamp(62px, 9vw, 120px) clamp(20px, 6vw, 84px) clamp(48px, 7vw, 86px);
  background:
    linear-gradient(90deg, rgba(6, 59, 120, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(6, 59, 120, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #eef7f8 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(40px, 6.8vw, 72px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(27px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.32;
  letter-spacing: 0;
}

.hero-lead,
.section-heading p,
.problem-card p,
.solution-grid p,
.research-card p,
.contact-section p {
  color: var(--muted);
}

.hero-lead {
  max-width: 720px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.tab-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.primary-link {
  background: var(--navy);
  color: white;
}

.secondary-link {
  background: white;
  color: var(--navy);
}

.hero-visual {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(6, 59, 120, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-process-panel,
.evidence-card,
.scope-panel,
.status-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(6, 59, 120, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(6, 59, 120, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.hero-process-panel {
  padding: clamp(20px, 4vw, 34px);
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-process-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(21px, 2.4vw, 29px);
}

.hero-process-panel > p:not(.panel-kicker) {
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 700;
}

.hero-process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-process-list::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 4px;
  background: var(--line);
  transform: translateY(-50%);
}

.hero-process-list article {
  position: relative;
  z-index: 1;
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-process-list span,
.process-map span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 900;
}

.hero-process-list article:nth-child(2) span,
.process-map article:nth-child(2) span {
  background: var(--navy);
}

.hero-process-list article:nth-child(3) span,
.process-map article:nth-child(3) span {
  background: var(--green);
}

.hero-process-list article:nth-child(4) span,
.process-map article:nth-child(4) span {
  background: var(--gold);
}

.hero-process-list strong,
.hero-process-list small {
  display: block;
}

.hero-process-list small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.panel-callout {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 900;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(20px, 6vw, 84px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 30px rgba(12, 36, 54, 0.08);
  transform: translateY(-28px);
}

.metric-strip article {
  min-height: 138px;
  padding: 22px;
  background: var(--paper);
}

.metric-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.metric-strip strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--navy);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
}

.metric-strip p {
  margin-bottom: 0;
  color: var(--muted);
}

.content-section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 84px);
}

.section-band {
  background: #edf8f7;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  max-width: none;
}

.market-grid,
.solution-grid,
.research-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.problem-card,
.solution-grid article,
.research-card,
.reason-grid article,
.service-checklist,
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.problem-card,
.solution-grid article,
.research-card,
.reason-grid article {
  min-height: 220px;
  padding: 22px;
}

.problem-card span,
.reason-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  margin-bottom: 18px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 900;
}

.evidence-row,
.gallery,
.portfolio-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

figure {
  margin: 0;
}

.evidence-card,
.gallery figure,
.wide-figure,
.portfolio-visuals > article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gallery img,
.wide-figure img {
  width: 100%;
}

figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.evidence-card,
.scope-panel,
.status-panel {
  min-height: 360px;
  padding: 26px;
}

.evidence-card h3,
.scope-panel h3,
.status-panel h3 {
  max-width: 720px;
  margin-bottom: 18px;
}

.travel-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 24px;
}

.travel-flow span {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.travel-flow b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
}

.travel-flow span:nth-child(2) b {
  background: var(--navy);
}

.travel-flow span:nth-child(3) b {
  background: var(--coral);
}

.travel-flow span:nth-child(4) b {
  background: var(--gold);
}

.evidence-bottom,
.evidence-date {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
}

.evidence-bottom strong {
  color: var(--coral);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1;
}

.evidence-bottom span {
  color: var(--muted);
  font-weight: 900;
}

.law-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.law-compare div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.law-compare span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.law-compare div:nth-child(2) span {
  background: var(--teal);
}

.law-compare strong,
.law-compare small {
  display: block;
}

.law-compare strong {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.25;
}

.law-compare small {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.evidence-date {
  background: #eef8f9;
  color: var(--navy);
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 900;
}

.process-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.process-map::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 3px;
  background: var(--line);
  transform: translateY(-50%);
}

.process-map article {
  position: relative;
  z-index: 1;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.process-map strong {
  display: block;
  margin-bottom: 7px;
  font-size: 19px;
}

.process-map p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.solution-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 19px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.filter-button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.service-detail {
  min-height: 430px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #10283d;
  color: white;
  box-shadow: var(--shadow);
}

.service-detail p {
  color: rgba(255, 255, 255, 0.78);
}

.service-kicker,
.research-card span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.service-detail ul,
.service-checklist ul {
  margin: 18px 0;
  padding-left: 20px;
}

.service-detail li,
.service-checklist li {
  margin-bottom: 8px;
}

.detail-callout {
  margin-top: 22px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.service-checklist {
  padding: 24px;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portfolio-summary {
  position: sticky;
  top: 84px;
  padding: 24px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.portfolio-summary strong {
  display: block;
  font-size: 58px;
  line-height: 1;
}

.portfolio-summary span {
  display: block;
  margin: 8px 0 14px;
  font-weight: 900;
}

.portfolio-summary p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portfolio-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 15px;
}

.portfolio-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.portfolio-card h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.portfolio-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.portfolio-card strong {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.status-done {
  background: var(--green-soft);
  color: var(--green);
}

.status-filed {
  background: var(--gold-soft);
  color: var(--gold);
}

.status-progress {
  background: var(--coral-soft);
  color: var(--coral);
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.scope-list span {
  min-height: 80px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.scope-list span:nth-child(2) {
  border-left-color: var(--navy);
}

.scope-list span:nth-child(3) {
  border-left-color: var(--green);
}

.scope-list span:nth-child(4) {
  border-left-color: var(--gold);
}

.status-chart {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.donut {
  width: min(100%, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, white 0 49%, transparent 50%),
    conic-gradient(var(--green) 0 196deg, var(--gold) 196deg 245deg, var(--coral) 245deg 360deg);
}

.donut strong,
.donut span {
  grid-area: 1 / 1;
}

.donut strong {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: 54px;
  line-height: 1;
}

.donut span {
  margin-top: 50px;
  color: var(--muted);
  font-weight: 900;
}

.status-chart ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-chart li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.status-chart .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.status-chart .dot.status-done {
  background: var(--green);
}

.status-chart .dot.status-filed {
  background: var(--gold);
}

.status-chart .dot.status-progress {
  background: var(--coral);
}

.status-chart b {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.wide-figure,
.portfolio-visuals {
  margin-top: 18px;
}

.research-grid {
  margin-bottom: 18px;
}

.research-card span {
  background: var(--green-soft);
  color: var(--green);
}

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

.reason-section {
  background: #10283d;
  color: white;
}

.reason-section .eyebrow {
  color: #73d4de;
}

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

.reason-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.reason-grid span {
  background: rgba(115, 212, 222, 0.16);
  color: #73d4de;
}

.reason-grid strong {
  display: block;
  font-size: 19px;
  line-height: 1.35;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: start;
  margin: clamp(54px, 7vw, 88px) clamp(20px, 6vw, 84px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(12, 36, 54, 0.08);
}

.contact-section h2 {
  max-width: 820px;
}

.contact-section p {
  max-width: 820px;
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.contact-form input {
  min-height: 44px;
  padding: 9px 11px;
}

.contact-form textarea {
  min-height: 136px;
  padding: 11px;
  resize: vertical;
}

.contact-form .primary-link {
  width: 100%;
  cursor: pointer;
}

.contact-form .primary-link:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--coral);
}

.mobile-section-nav,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1080px) {
  .hero,
  .service-layout,
  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .solution-grid,
  .reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-summary {
    position: static;
  }
}

@media (max-width: 880px) {
  :root {
    --mobile-section-w: 58px;
    --mobile-bottom-h: 70px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 14px);
  }

  body {
    padding-bottom: calc(var(--mobile-bottom-h) + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 0 14px;
    width: 100vw;
    max-width: 100vw;
  }

  .site-header .top-nav {
    display: none;
  }

  .brand-logo {
    height: 54px;
  }

  .brand-text {
    font-size: 16px;
  }

  .mobile-section-nav {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    right: 10px;
    bottom: auto;
    width: var(--mobile-section-w);
    max-width: var(--mobile-section-w);
    max-height: calc(100svh - var(--header-h) - var(--mobile-bottom-h) - 32px);
    z-index: 48;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 8px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(12, 36, 54, 0.14);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
    transition:
      inset 180ms ease,
      width 180ms ease,
      max-width 180ms ease,
      border-radius 180ms ease,
      background-color 180ms ease,
      box-shadow 180ms ease;
  }

  .mobile-section-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-section-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 42px;
    padding: 0 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .mobile-section-nav a.is-active {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
    box-shadow: 0 8px 16px rgba(6, 59, 120, 0.22);
  }

  .mobile-section-nav.is-at-top {
    top: calc(var(--header-h) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(12, 36, 54, 0.1);
  }

  .mobile-section-nav.is-at-top a {
    width: auto;
    min-height: 34px;
    padding: 0 13px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 34px);
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    width: 100vw;
    max-width: 100vw;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    min-height: calc(var(--mobile-bottom-h) + env(safe-area-inset-bottom));
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -16px 38px rgba(12, 36, 54, 0.12);
    backdrop-filter: blur(20px);
  }

  .mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 52px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #6f7d86;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
    color: #8a98a0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
      color 160ms ease,
      transform 160ms ease;
  }

  .mobile-bottom-nav a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
    box-shadow: 0 10px 22px rgba(6, 59, 120, 0.22);
  }

  .mobile-bottom-nav a[aria-current="page"] svg {
    color: white;
    transform: translateY(-1px);
  }

  .mobile-bottom-nav a:active {
    transform: translateY(1px);
  }
}

@media (max-width: 760px) {
  h1 {
    max-width: min(100%, 310px);
    font-size: 28px;
    line-height: 1.18;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    max-width: min(100%, 310px);
    font-size: 16px;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero {
    gap: 22px;
  }

  .metric-strip,
  .market-grid,
  .solution-grid,
  .research-grid,
  .reason-grid,
  .evidence-row,
  .portfolio-visuals,
  .gallery,
  .portfolio-grid,
  .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .metric-strip {
    margin-top: 16px;
    transform: none;
  }

  .split-heading {
    display: grid;
    gap: 14px;
  }

  .tab-group {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86px, 1fr);
    gap: 5px;
    overflow-x: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    scrollbar-width: none;
  }

  .tab-group::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    min-width: 0;
    min-height: 34px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .filter-button.is-active {
    background: var(--navy);
    color: white;
  }

  .hero-process-list,
  .travel-flow,
  .law-compare,
  .scope-list,
  .status-chart {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-process-list::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 3px;
    height: auto;
    transform: none;
  }

  .hero-process-list article {
    min-height: auto;
    padding: 15px 15px 15px 58px;
  }

  .hero-process-list span {
    position: absolute;
    top: 15px;
    left: 15px;
  }

  .evidence-card,
  .scope-panel,
  .status-panel {
    min-height: auto;
    padding: 20px;
  }

  .travel-flow {
    margin: 20px 0;
  }

  .travel-flow span {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .evidence-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-date {
    font-size: 19px;
    line-height: 1.25;
  }

  .process-map {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .process-map::before {
    top: 30px;
    bottom: 30px;
    left: 31px;
    right: auto;
    width: 3px;
    height: auto;
    transform: none;
  }

  .process-map article {
    min-height: auto;
    padding: 16px 16px 16px 66px;
  }

  .process-map span {
    position: absolute;
    top: 16px;
    left: 16px;
  }

  .donut {
    width: min(100%, 190px);
  }

  .service-detail,
  .service-checklist,
  .portfolio-summary {
    min-height: auto;
    padding: 20px;
  }

  .portfolio-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portfolio-card strong {
    grid-column: 2;
    width: fit-content;
  }

  .problem-card,
  .solution-grid article,
  .research-card,
  .reason-grid article {
    min-height: auto;
  }

  .contact-section {
    margin-top: 42px;
  }

  .contact-section .primary-link {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .content-section,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .metric-strip,
  .contact-section {
    margin-left: 16px;
    margin-right: 16px;
  }

  .portfolio-card h3 {
    font-size: 15px;
  }
}
