/* Engineer Story — company site (ES-STD-005 brand system) */
:root {
  --es-navy: #15427b;
  --es-navy-deep: #0f2f58;
  --es-sky: #00a0db;
  --es-slide: #6fa8dc;
  --charcoal: #343433;
  --mid-gray: #bfbfbf;
  --light-gray: #d8d8d8;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-section: #eef4f9;
  --text: #1a1f26;
  --muted: #5b6673;
  --line: #e2e8ef;
  --shadow: 0 1px 0 rgba(21, 66, 123, 0.04), 0 8px 24px rgba(21, 66, 123, 0.06);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --max: 1120px;
  --header-h: 72px;
  font-family: "Malgun Gothic", "맑은 고딕", "Hiragino Sans", "Yu Gothic",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Verdana, "Apple SD Gothic Neo",
    "Noto Sans KR", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: normal;
}

/* CJK: avoid mid-word character splits that look broken */
:lang(ko),
:lang(ja),
:lang(zh),
:lang(zh-Hans) {
  word-break: keep-all;
  line-break: strict;
}

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

a {
  color: var(--es-sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--es-navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.75rem;
}

/* Keep hamburger on the right when nav is collapsed */
.nav-toggle {
  margin-left: auto;
}

/* Language select — footer only */
.lang-switch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 1.1rem;
  max-width: 16rem;
}

.lang-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.lang-select-wrap {
  position: relative;
  width: 100%;
  max-width: 14rem;
}

.lang-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.75);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.75);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  padding: 0 2.25rem 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  line-height: 1.2;
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.lang-select:focus {
  border-color: var(--es-sky);
  box-shadow: 0 0 0 2px rgba(0, 160, 219, 0.28);
}

.lang-select option {
  color: var(--charcoal);
  background: #fff;
  font-weight: 600;
}

.lang-noscript {
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.lang-noscript a {
  color: rgba(255, 255, 255, 0.85);
}

/* AEO definition block */
.aeo-definition {
  margin: 0 0 1.35rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 38rem;
}

.aeo-definition strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9e7fb;
  margin-bottom: 0.35rem;
}

.aeo-definition p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9em;
}

.clients-title {
  margin: 0 0 0.85rem;
  color: var(--es-navy);
  font-size: 1.05rem;
}

.guide-p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.footer-blurb {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  max-width: 22rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 0.98rem;
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--es-sky);
  font-size: 1.25rem;
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: var(--bg-soft);
}

.faq-a {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
}

.faq-a p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.site-header .brand {
  min-width: 0;
  flex: 1 1 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--es-navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text strong span {
  color: var(--charcoal);
  font-weight: 600;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--charcoal);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav a:hover {
  color: var(--es-navy);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav .cta {
  margin-left: 0.35rem;
  background: var(--es-navy);
  color: #fff !important;
  padding: 0.55rem 0.95rem;
}

.nav .cta:hover {
  background: var(--es-navy-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--es-navy);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(0, 160, 219, 0.16), transparent 55%),
    linear-gradient(160deg, #0f2f58 0%, #15427b 48%, #1a5a96 100%);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9e7fb;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--es-sky);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
  word-break: keep-all;
}

/* Force line break only when there is enough width */
br.break-md {
  display: none;
}
@media (min-width: 560px) {
  br.break-md {
    display: inline;
  }
}

.hero h1 em {
  font-style: normal;
  color: #7fd4f5;
  white-space: normal;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--es-sky);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 160, 219, 0.28);
}

.btn-primary:hover {
  background: #0090c5;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-navy {
  background: var(--es-navy);
  color: #fff;
}

.btn-navy:hover {
  background: var(--es-navy-deep);
}

.btn-outline {
  background: #fff;
  color: var(--es-navy);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--es-sky);
  color: var(--es-sky);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 32rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.75rem;
  min-width: 0;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
  .stat {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1rem;
  }
  .stat strong {
    font-size: 1.2rem;
  }
  .stat span {
    margin-top: 0;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--es-navy);
}

.hero-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-card dt {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-card dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.92rem;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-label {
  display: inline-block;
  color: var(--es-sky);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  color: var(--es-navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-section {
  background: var(--bg-section);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--es-navy);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.info-table th,
.info-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 7.5rem;
  color: var(--muted);
  font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.timeline .year {
  font-weight: 700;
  color: var(--es-navy);
  font-size: 0.92rem;
}

.timeline p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.92rem;
}

/* Way */
.way-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.way-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.way-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--es-navy), var(--es-sky));
}

.way-card .num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--es-sky);
  letter-spacing: 0.04em;
}

.way-card h3 {
  margin: 0.4rem 0 0.65rem;
  font-size: 1.08rem;
  color: var(--es-navy);
}

.way-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Business */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.biz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.biz-card:hover {
  border-color: color-mix(in srgb, var(--es-sky) 45%, var(--line));
  box-shadow: var(--shadow);
}

.biz-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(21, 66, 123, 0.1), rgba(0, 160, 219, 0.12));
  color: var(--es-navy);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.biz-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--es-navy);
}

.biz-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--es-navy);
  background: var(--bg-section);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

/* Outsourcing */
.os-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.os-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  position: relative;
}

.os-step strong {
  display: block;
  color: var(--es-navy);
  margin-bottom: 0.4rem;
}

.os-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.os-step .step-no {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--es-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

/* References */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ref-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.ref-card .thumb {
  aspect-ratio: 16 / 10;
  background: #0f2f58 center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.ref-card .body {
  padding: 1.15rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ref-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--es-navy);
}

.ref-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.ref-card .meta {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--es-sky);
  letter-spacing: 0.02em;
}

/* Clients */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.clients span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Org */
.org-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.org-box {
  background: linear-gradient(160deg, var(--es-navy), #1a5a96);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
}

.org-box h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.org-box p {
  margin: 0 0 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
}

.org-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.org-metrics div {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  text-align: center;
}

.org-metrics strong {
  display: block;
  font-size: 1.35rem;
}

.org-metrics span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.org-roles {
  display: grid;
  gap: 0.85rem;
}

.role {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.role h4 {
  margin: 0 0 0.35rem;
  color: var(--es-navy);
  font-size: 1rem;
}

.role p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Product highlight */
.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.product .copy h3 {
  margin: 0 0 0.55rem;
  color: var(--es-navy);
  font-size: 1.35rem;
}

.product .copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.checklist {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--charcoal);
  font-size: 0.94rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--es-sky);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--es-sky);
}

.product-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 240px;
  background: #0f2f58 center/cover no-repeat;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  color: var(--es-navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-list span {
  color: var(--muted);
  font-weight: 600;
}

.contact-list a {
  color: var(--charcoal);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--es-sky);
}

.map-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--es-navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text strong span {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .brand-text small {
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.92rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Utility */
.divider-sky {
  height: 3px;
  width: 56px;
  background: var(--es-sky);
  border-radius: 99px;
  margin: 0.75rem 0 0;
}

.mt-2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .org-grid,
  .product,
  .contact-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .biz-grid,
  .way-grid,
  .ref-grid {
    grid-template-columns: 1fr 1fr;
  }

  .os-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Desktop: nav next to header actions */
@media (min-width: 901px) {
  .site-header .inner {
    gap: 0.75rem;
  }
  .nav {
    margin-left: auto;
  }
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.2rem;
    max-height: calc(100vh - var(--header-h));
    overflow: auto;
    box-shadow: 0 16px 32px rgba(15, 31, 48, 0.12);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.75rem 0.9rem;
  }

  .nav .cta {
    margin-left: 0;
    justify-content: center;
  }

}

@media (max-width: 720px) {
  .container {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }


  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .org-metrics,
  .biz-grid,
  .way-grid,
  .ref-grid,
  .os-steps {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 44px;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-row .btn {
    width: auto;
    flex: 1 1 auto;
  }

  section {
    padding: 3rem 0;
  }

  .faq-item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}




/* ----- Line-break polish ----- */
.section-head h2,
.way-card h3,
.biz-card h3,
.ref-card h3,
.role h4,
.product .copy h3,
.faq-item summary,
.aeo-definition p,
.hero-lead,
.hero-card h2,
.hero-card dd,
.info-table td,
.timeline p,
.contact-list div,
.org-box p,
.footer-blurb {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.section-head h2 {
  text-wrap: balance;
  line-height: 1.35;
}

.info-table th {
  white-space: nowrap;
  width: auto;
  min-width: 4.5rem;
  padding-right: 0.75rem;
}

.info-table td {
  min-width: 0;
}

.timeline {
  gap: 1rem;
}

.timeline li {
  grid-template-columns: 4.5rem minmax(0, 1fr);
}

.timeline .year {
  white-space: nowrap;
}

.timeline p {
  line-height: 1.55;
}

.tag-list li {
  white-space: nowrap;
}

.clients {
  align-items: center;
}

.clients span {
  white-space: nowrap;
  max-width: 100%;
}

.ref-card .meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ref-card h3,
.biz-card h3 {
  line-height: 1.35;
  text-wrap: balance;
}

.org-metrics span {
  display: block;
  line-height: 1.3;
  word-break: keep-all;
}

.org-metrics strong {
  white-space: nowrap;
}

.contact-list li {
  grid-template-columns: 5rem minmax(0, 1fr);
  align-items: start;
}

.contact-list span {
  white-space: nowrap;
}

.faq-item summary {
  line-height: 1.45;
  padding-right: 2.75rem;
}

.brand-text strong {
  white-space: nowrap;
}

.nav a {
  white-space: nowrap;
}

/* Long emails / URLs may still need to break */
a[href^="mailto:"],
a[href^="http"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 720px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table tr {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
  }
  .info-table tr:last-child {
    border-bottom: 0;
  }
  .info-table th,
  .info-table td {
    padding: 0.15rem 0;
    border-bottom: 0;
  }
  .info-table th {
    white-space: normal;
    color: var(--muted);
    font-size: 0.8rem;
  }
  .timeline li {
    grid-template-columns: 1fr;
  }
  .contact-list li {
    grid-template-columns: 1fr;
  }
  /* Override earlier 100% full-width buttons only when needed — keep cta flexible */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
