:root {
  --bg: #f5efe7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fff9f1;
  --text: #162232;
  --muted: #5c6571;
  --line: rgba(22, 34, 50, 0.12);
  --brand: #0a3569;
  --brand-dark: #07284f;
  --accent: #f08a24;
  --section-space-y: 3.5rem;
  --section-head-gap: 2rem;
  --card-surface: rgba(251, 248, 243, 0.88);
  --card-border: rgba(18, 63, 122, 0.12);
  --card-shadow: 0 18px 40px rgba(18, 63, 122, 0.05);
  --card-shadow-hover: 0 22px 44px rgba(18, 63, 122, 0.07);
  --input-surface: rgba(255, 255, 255, 0.96);
  --shadow: 0 24px 60px rgba(11, 32, 37, 0.12);
  --radius: 24px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 138, 36, 0.16), transparent 24%),
    radial-gradient(circle at right center, rgba(10, 53, 105, 0.14), transparent 30%),
    linear-gradient(180deg, #fcf8f2 0%, #f3ece3 100%);
  line-height: 1.65;
}

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

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

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

.narrow {
  width: min(calc(100% - 2rem), 820px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(251, 247, 240, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-logo-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(100%, 276px);
  object-fit: contain;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.lang-switch-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch-button:hover,
.lang-switch-button.is-active {
  color: var(--text);
  background: rgba(10, 53, 105, 0.08);
}

.lang-switch-button:focus-visible {
  outline: 2px solid rgba(10, 53, 105, 0.45);
  outline-offset: 2px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  margin: 0.35rem 0;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}

.hero-grid,
.split-layout,
.contact-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

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

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 1.5rem;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0.3rem 0 1rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-text,
.page-hero p,
.info-card p,
.service-card p,
.report-card p,
.case-card p,
.panel p {
  color: var(--muted);
}

.eyebrow,
.card-kicker {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-copy {
  padding-top: 0.25rem;
}

.hero-copy .hero-text {
  max-width: 720px;
}

.hero-copy .hero-actions {
  margin: 1.5rem 0 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: var(--text);
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 33, 38, 0.14);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

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

.button-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 16px 32px rgba(7, 40, 79, 0.18);
}

.button-secondary:hover {
  border-color: rgba(10, 53, 105, 0.26);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(11, 32, 37, 0.08);
}

.button:focus-visible,
.text-link:focus-visible,
.site-nav a:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(10, 53, 105, 0.45);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.text-link {
  font-weight: 700;
  color: var(--brand-dark);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--brand);
}

.hero-card,
.info-card,
.service-card,
.report-card,
.case-card,
.panel,
.contact-form {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hero-card {
  max-width: 460px;
  min-height: auto;
  padding: 1.35rem 1.4rem;
  margin-left: auto;
}

.hero-card:hover,
.info-card:hover,
.service-card:hover,
.report-card:hover,
.case-card:hover,
.panel:hover,
.contact-form:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 53, 105, 0.16);
  box-shadow: var(--card-shadow-hover);
}

.signal-list,
.service-card ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-stats,
.card-grid,
.case-strip,
.report-grid,
.timeline,
.case-stack,
.service-list {
  display: grid;
  gap: 1.25rem;
}

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

.hero-stats article,
.case-strip article,
.timeline article {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.hero-stats strong,
.case-strip span,
.timeline span {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.hero-stats article {
  padding: 0.9rem 0 0;
}

.hero-stats strong {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero-stats span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-card .card-kicker {
  margin-bottom: 0.4rem;
}

.hero-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.hero-card .signal-list {
  margin: 0.9rem 0 1.15rem;
}

.hero-card .signal-list li + li {
  margin-top: 0.7rem;
}

.section {
  padding: var(--section-space-y) 0;
  scroll-margin-top: 80px;
}

.section-highlight {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.82), rgba(245, 238, 227, 0.45));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: var(--section-head-gap);
}

.section-head .eyebrow {
  margin-bottom: 0.45rem;
  color: #2E5B9A;
}

.section-head h2 {
  color: #123F7A;
}

#about .section-head,
#what-i-do .section-head,
#recent-notes .section-head,
#topics .section-head,
#contact .section-head {
  margin-bottom: var(--section-head-gap);
}

#about .card-grid,
#what-i-do .card-grid,
#topics .card-grid,
#recent-notes .case-strip,
#contact .contact-grid {
  align-items: stretch;
}

#about .info-card,
#what-i-do .info-card,
#topics .info-card,
#recent-notes .case-strip article,
#contact .panel,
#contact .contact-form {
  text-align: left;
  background: var(--card-surface);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}

#about .info-card h3,
#what-i-do .info-card h3,
#topics .info-card h3,
#recent-notes .case-strip h3,
#contact .panel h2 {
  color: #123F7A;
}

#about .info-card p,
#what-i-do .info-card p,
#topics .info-card p:last-child,
#recent-notes .case-strip p:last-child,
#contact .panel p {
  color: #5B6673;
  line-height: 1.75;
}

#about .section-head {
  margin-bottom: var(--section-head-gap);
}

#about .info-card {
  border-color: #DDD6CC;
}

#about .info-card h3 {
  margin: 0 0 1rem;
}

#about .info-card p {
  margin: 0;
  line-height: 1.8;
}

#about .info-card p + p {
  margin-top: 0.9rem;
}

#what-i-do .section-head {
  margin-bottom: var(--section-head-gap);
}

#what-i-do .info-card h3 {
  margin: 0 0 0.9rem;
}

#what-i-do .info-card p {
  margin: 0;
  max-width: 28ch;
}

#recent-notes .section-head {
  margin-bottom: var(--section-head-gap);
}

#recent-notes .case-strip article {
  padding: 1.25rem 1.3rem 1.35rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

#recent-notes .case-strip article:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 63, 122, 0.16);
  box-shadow: var(--card-shadow-hover);
}

#recent-notes .case-strip .report-tag {
  align-self: flex-start;
  margin-bottom: 0.15rem;
}

#recent-notes .case-strip span {
  font-size: 0.92rem;
  color: #2E5B9A;
}

#recent-notes .case-strip h3 {
  margin: 0;
  line-height: 1.25;
}

#recent-notes .case-strip p:last-child {
  margin: 0;
  max-width: 30ch;
}

#topics .section-head {
  margin-bottom: var(--section-head-gap);
}

#topics .info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 63, 122, 0.16);
  box-shadow: var(--card-shadow-hover);
}

#topics .info-card .report-tag {
  align-self: flex-start;
  margin-bottom: 0.2rem;
}

#topics .info-card h3 {
  margin: 0 0 0.85rem;
  line-height: 1.3;
}

#topics .info-card p:last-child {
  margin: 0;
  max-width: 30ch;
}

#contact .section-head {
  margin-bottom: var(--section-head-gap);
}

#contact {
  scroll-margin-top: 96px;
}

#contact .contact-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

#contact .contact-panel {
  display: grid;
  gap: 1.35rem;
  width: 100%;
  max-width: 52rem;
}

#contact .contact-panel-group {
  display: grid;
  gap: 0.75rem;
}

#contact .panel h2 {
  margin: 0 0 1.1rem;
  font-size: 1.55rem;
}

#contact .panel p {
  margin: 0;
  line-height: 1.8;
}

#contact .panel p + p {
  margin-top: 0.9rem;
}

#contact .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.1rem;
}

#contact .contact-actions .button {
  min-width: 10.5rem;
}

#contact .copy-feedback {
  min-height: 1.5rem;
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#contact .copy-feedback.is-success {
  color: var(--brand-dark);
}

#contact .copy-feedback.is-error {
  color: #9c3d32;
}

#contact .contact-form {
  gap: 1.1rem;
}

#contact .contact-form label {
  color: #1B2633;
  font-weight: 600;
}

#contact .contact-form input,
#contact .contact-form textarea {
  min-height: 3.2rem;
  padding: 0.95rem 1rem;
  border-color: rgba(18, 63, 122, 0.14);
  background: var(--input-surface);
}

#contact .contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

#contact .contact-form button {
  min-width: 8.5rem;
}

.section-head h2,
.split-layout h2,
.panel h2,
.service-card h2,
.report-card h2,
.case-card h2 {
  margin: 0.25rem 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

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

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

.case-strip article {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list p {
  margin: 0 0 1rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.58);
  border-radius: 0 1rem 1rem 0;
}

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

.case-stack,
.service-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.services-grid,
.scenario-grid,
.report-category-grid,
.audience-grid,
.case-type-grid,
.cases-archive-grid,
.about-points-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

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

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

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.service-card .button {
  margin-top: auto;
}

.scenario-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.scenario-list li + li {
  margin-top: 0.75rem;
}

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

.report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.report-card .button {
  margin-top: auto;
}

.case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.case-card .button {
  margin-top: auto;
}

.report-date {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--muted);
}

.report-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 53, 105, 0.1);
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.cta-panel {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0.25rem 0 0.75rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.cta-panel p:last-of-type {
  color: var(--muted);
  max-width: 780px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(18, 63, 122, 0.14);
  border-radius: 1rem;
  font: inherit;
  background: var(--input-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(10, 53, 105, 0.22);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: rgba(10, 53, 105, 0.38);
  box-shadow: 0 0 0 4px rgba(10, 53, 105, 0.08);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(165, 60, 60, 0.45);
  box-shadow: 0 0 0 4px rgba(165, 60, 60, 0.08);
  background: rgba(255, 248, 248, 0.95);
}

.form-feedback {
  min-height: 1.5rem;
  margin: -0.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-feedback.is-error {
  color: #9c3d32;
}

.form-feedback.is-success {
  color: var(--brand-dark);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  background: rgba(251, 248, 243, 0.46);
  border-top: 1px solid rgba(18, 63, 122, 0.08);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

.brand-footer-link {
  display: inline-flex;
  margin-bottom: 0.65rem;
}

.brand-footer-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.brand-footer-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(100%, 240px);
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .split-layout,
  .contact-grid,
  .two-column,
  .card-grid,
  .services-grid,
  .scenario-grid,
  .report-category-grid,
  .audience-grid,
  .case-type-grid,
  .cases-archive-grid,
  .about-points-grid,
  .case-strip,
  .report-grid,
  .reports-archive-grid,
  .timeline,
  .case-stack,
  .service-list,
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    max-width: none;
    margin-left: 0;
  }

  #contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 720px) {
  .brand-logo-shell {
    height: 40px;
    padding: 0;
  }

  .brand-logo {
    height: 40px;
    max-width: 214px;
  }

  .brand-footer-shell {
    height: 52px;
    padding: 5px 10px;
  }

  .brand-footer-logo {
    height: 38px;
    max-width: 196px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-actions {
    gap: 0.7rem;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }

  .hero {
    padding-bottom: 2rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section-head,
  #about .section-head,
  #what-i-do .section-head,
  #recent-notes .section-head,
  #topics .section-head,
  #contact .section-head {
    margin-bottom: 1.5rem;
  }

  .hero-copy .hero-actions {
    margin: 1.25rem 0 1.35rem;
  }

  .hero-card {
    padding: 1.2rem 1.15rem;
  }

  .hero-stats {
    gap: 0.8rem;
  }

  .button,
  #contact .contact-form button {
    min-height: 3rem;
  }

  #about .info-card,
  #what-i-do .info-card,
  #topics .info-card,
  #recent-notes .case-strip article,
  #contact .panel,
  #contact .contact-form {
    padding: 1.3rem 1.2rem;
  }

  #contact .contact-panel {
    gap: 1.15rem;
    max-width: none;
  }

  #contact .contact-form input,
  #contact .contact-form textarea {
    min-height: 3rem;
  }

  #contact .contact-actions .button {
    width: 100%;
    min-width: 0;
  }

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