:root {
  --ink: #18201f;
  --muted: #56615f;
  --paper: #f7f3ea;
  --surface: #fffdf8;
  --line: #d9d0c2;
  --teal: #0d6f68;
  --blue: #244c8f;
  --amber: #b36b16;
  --red: #8d342f;
  --charcoal: #202726;
  --shadow: 0 20px 60px rgba(24, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

.expandable-img {
  cursor: zoom-in;
}

.expandable-img:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(24, 32, 31, 0.86);
}

.image-modal.is-open {
  display: flex;
}

.image-modal figure {
  width: min(1120px, 100%);
  max-height: calc(100vh - 56px);
  margin: 0;
  display: grid;
  gap: 12px;
}

.image-modal img {
  width: 100%;
  max-height: calc(100vh - 128px);
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.image-modal figcaption {
  color: rgba(255, 253, 248, 0.86);
  font-size: 15px;
  text-align: center;
}

.image-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.1);
  color: var(--surface);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-color: rgba(13, 111, 104, 0.45);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 208, 194, 0.82);
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.section,
.content-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 253, 248, 0.96), rgba(247, 243, 234, 0.86)),
    radial-gradient(circle at 74% 20%, rgba(13, 111, 104, 0.2), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(179, 107, 22, 0.18), transparent 32%);
  overflow: hidden;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
}

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

.hero .eyebrow {
  color: var(--teal);
}

.hero h1,
.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.88);
  font-size: 20px;
}

.hero p {
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px 46px 18px 18px;
  border: 1px solid rgba(32, 39, 38, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(32, 39, 38, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(32, 39, 38, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.glyph-card {
  position: absolute;
  width: 245px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(32, 39, 38, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.glyph-card:nth-child(1) {
  top: 26px;
  right: 6px;
}

.glyph-card:nth-child(2) {
  top: 180px;
  left: 0;
}

.glyph-card:nth-child(3) {
  right: 44px;
  bottom: 22px;
}

.glyph-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--surface);
  background: var(--teal);
}

.glyph-card:nth-child(2) .glyph-icon {
  background: var(--blue);
}

.glyph-card:nth-child(3) .glyph-icon {
  background: var(--amber);
}

.glyph-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.glyph-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.glyph-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(24, 32, 31, 0.4);
}

.button.light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.page-hero .button.secondary {
  color: var(--surface);
  border-color: rgba(255, 253, 248, 0.72);
}

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

.section {
  padding: 86px 0;
}

.section.compact {
  padding: 58px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-header h2,
.content-section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bridge-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.bridge-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
}

.bridge-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.bridge-points {
  display: grid;
  gap: 12px;
}

.bridge-point {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.bridge-point strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--surface);
  font-size: 14px;
}

.bridge-point h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.bridge-point p {
  margin: 0;
  color: var(--muted);
}

.project-card,
.stat-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card {
  overflow: hidden;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7dfd2;
}

.project-card-body {
  padding: 20px;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.project-card p,
.note-card p,
.stat-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  border: 1px solid rgba(86, 97, 95, 0.28);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.signal-band {
  background: var(--charcoal);
  color: var(--surface);
}

.signal-grid {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.signal-grid h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

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

.signal-list span {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: rgba(255, 253, 248, 0.86);
  background: rgba(255, 253, 248, 0.05);
}

.page-hero {
  color: var(--surface);
  background: var(--charcoal);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0 72px;
}

.page-hero p {
  color: rgba(255, 253, 248, 0.82);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.case-image {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-image img {
  width: 100%;
}

.case-copy {
  display: grid;
  gap: 18px;
}

.case-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-block h2,
.case-block h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.case-block p,
.case-block li {
  color: var(--muted);
}

.case-block p {
  margin: 0;
}

.case-block ul {
  margin: 0;
  padding-left: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

.gallery.note-gallery figure {
  background: var(--surface);
}

.gallery.note-gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card,
.note-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 28px;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline-item strong {
  color: var(--amber);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.accent-teal {
  color: var(--teal);
}

.accent-blue {
  color: var(--blue);
}

.accent-amber {
  color: var(--amber);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
}

.pricing-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.system-map .note-card {
  min-height: 150px;
}

@media (max-width: 860px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 12px;
  }

  .hero-visual::before {
    display: none;
  }

  .glyph-card,
  .glyph-card:nth-child(1),
  .glyph-card:nth-child(2),
  .glyph-card:nth-child(3) {
    position: static;
    width: 100%;
    min-height: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 44px;
    line-height: 1.04;
  }

  .hero p,
  .page-hero p {
    font-size: 18px;
  }

  .section,
  .content-section {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .section-header,
  .signal-grid,
  .two-column,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
  }

  .project-grid,
  .gallery,
  .stat-grid,
  .system-map,
  .bridge-grid {
    grid-template-columns: 1fr;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
