:root {
  --navy: #1b2a4a;
  --navy-deep: #121c33;
  --teal: #1f7a7a;
  --teal-dark: #165e5e;
  --cream: #f7f3ea;
  --cream-deep: #efe6d4;
  --white: #ffffff;
  --ink: #243044;
  --muted: #3d4a5c;
  --line: #e4d9c4;
  --gold: #c4a35a;
  --gold-text: #6e5424;
  --card: #fffcf7;
  --shadow: 0 12px 32px rgba(27, 42, 74, 0.07);
  --radius: 14px;
  --max: 1120px;
  --header-h: 76px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; }

a { color: var(--teal-dark); }

a:hover { color: var(--navy); }

.hero a:not(.btn),
.page-hero a:not(.btn),
.cta-band a:not(.btn),
.industry-lead a:not(.btn),
.feature-panel a:not(.btn) {
  color: #fff;
  text-underline-offset: 3px;
}

.hero a:not(.btn):hover,
.page-hero a:not(.btn):hover,
.cta-band a:not(.btn):hover,
.industry-lead a:not(.btn):hover,
.feature-panel a:not(.btn):hover { color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.15rem, 4.6vw, 3.45rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.28rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 6px;
}

.skip:focus { top: 12px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}

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

.brand-mark {
  width: 54px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  flex: none;
}

.brand-mark img {
  width: 54px;
  max-width: none;
  height: auto;
  margin: 0;
  display: block;
}

.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 243, 234, 0.35);
  background: transparent;
  border-radius: 8px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--white); }

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-links .nav-cta {
  background: var(--teal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: none;
}

.nav-links .nav-cta:hover { background: var(--teal-dark); color: var(--white); }
.nav-links a.nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px #e7d7a8; }

/* Heroes */
.hero,
.page-hero {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(31, 122, 122, 0.38), transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(196, 163, 90, 0.16), transparent 42%),
    var(--navy);
  color: var(--cream);
  padding: 72px 0 80px;
}

.page-hero { padding: 56px 0 60px; }

.hero h1,
.page-hero h1,
.hero .kicker,
.page-hero .kicker { color: var(--cream); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.85rem;
}

.hero .lede,
.page-hero .lede {
  font-size: 1.15rem;
  color: #e7e1d4;
  max-width: 40rem;
}

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

.logo-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  justify-self: end;
  width: min(280px, 100%);
}

.logo-card img { display: block; width: 100%; height: auto; }

.logo-card figcaption {
  text-align: center;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

.hero-photo,
.story-photo,
.detail-shot,
.card-shot { margin: 0; }

.hero-photo img,
.story-photo img,
.detail-shot img,
.card-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero .hero-photo img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
}

.page-hero .hero-photo img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 18px;
}

.story-photo img,
.detail-shot img {
  border-radius: 16px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-photo figcaption,
.page-hero .hero-photo figcaption {
  color: #e7e1d4;
  font-size: 0.75rem;
  margin: 8px 0 0;
}

.story-photo figcaption,
.detail-shot figcaption,
.card-shot figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 8px 0 0;
}

.hero-photo figcaption a,
.page-hero .hero-photo figcaption a { color: #fff; }

.product-card {
  border-top: 3px solid var(--teal);
  overflow: hidden;
}

.appwin {
  margin: -22px -22px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.appwin-inline {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 480px;
}

.appwin-inline .appwin-bar { border-radius: 11px 11px 0 0; }

.appwin-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--cream);
  padding: 7px 10px;
}

.appwin-dots { display: flex; gap: 4px; }
.appwin-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: block;
}
.appwin-dots i:nth-child(2) { background: var(--teal); }
.appwin-dots i:nth-child(3) { background: var(--cream); }

.appwin-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appwin-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e7d7a8;
  white-space: nowrap;
}

.appwin-body {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 124px;
  background: #fffdf8;
}

.appwin-nav {
  background: var(--cream-deep);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--navy);
}

.appwin-nav span {
  padding: 4px 6px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appwin-nav .is-on { background: var(--navy); color: var(--cream); }

.appwin-main {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  min-width: 0;
}

.appwin-stat,
.appwin-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--navy);
}

.appwin-stat b {
  display: block;
  color: var(--teal-dark);
  font-size: 0.95rem;
  line-height: 1.1;
}

.appwin-stat span { font-size: 0.68rem; color: var(--muted); }

.appwin-track {
  display: block;
  height: 5px;
  margin-top: 6px;
  border-radius: 99px;
  background: rgba(31, 122, 122, 0.18);
  overflow: hidden;
}

.appwin-track i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.appwin-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.appwin-row em {
  font-style: normal;
  font-weight: 700;
  color: var(--teal-dark);
  text-align: right;
}

.photo-credit {
  color: #d9d0c0;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
  padding: 0 0 14px;
}

.site-footer .photo-credit a {
  display: inline;
  color: #e7e1d4;
  margin: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 18px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 243, 234, 0.6);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

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

.btn-line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-line:hover { background: var(--white); color: var(--navy); }

/* Sections */
.section { padding: 76px 0; }
.section-tight { padding: 28px 0; }

.section h2 { max-width: 22em; }
.section .intro {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.challenge-grid,
.pillar-grid,
.card-grid,
.industry-grid,
.support-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.challenge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-grid { grid-template-columns: 1.3fr 1fr; }
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.pillar,
.challenge,
.support-card,
.detail,
.info-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.challenge,
.pillar,
.card,
.support-card {
  padding: 22px 22px 20px;
}

.challenge h3,
.pillar h3,
.card h3,
.support-card h3 { margin-bottom: 0.4rem; }

.challenge p,
.pillar p,
.card p,
.support-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.pillar { border-top: 4px solid var(--gold); }

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 122, 122, 0.1);
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.icon {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid transparent;
}

.tag-live { background: rgba(31, 122, 122, 0.12); color: var(--teal-dark); border-color: rgba(31, 122, 122, 0.28); }
.tag-dev { background: rgba(27, 42, 74, 0.06); color: var(--navy); border-color: rgba(27, 42, 74, 0.16); }
.tag-planned { background: rgba(196, 163, 90, 0.18); color: var(--gold-text); border-color: rgba(110, 84, 36, 0.35); }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.card-links a {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.card-links a:hover { text-decoration: underline; }

.alongside {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.alongside li {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 0 0 12px 28px;
  color: var(--ink);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.feature-panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-panel h2,
.feature-panel h3 { color: var(--cream); }

.feature-panel p,
.feature-panel li { color: #e7e1d4; }

.feature-panel .ticks li::before { border-color: var(--gold); }

.note {
  background: var(--cream-deep);
  border-left: 4px solid var(--teal);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  color: var(--navy);
  font-size: 0.98rem;
}

.group-label {
  margin: 48px 0 0;
}

.detail {
  padding: 28px;
  margin-top: 16px;
  scroll-margin-top: 96px;
}

.detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.detail-head h2 { margin: 0; }
.detail-head .tag { margin: 0; }

.detail .lede { color: var(--ink); max-width: 48rem; }

.cta-band {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(31, 122, 122, 0.35), transparent 50%),
    var(--navy);
  color: var(--cream);
  padding: 72px 0;
}

.cta-band h2 { color: var(--cream); max-width: 18ch; }
.cta-band p { color: #e7e1d4; max-width: 36rem; }

/* Industries */
.industry-lead {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
}

.industry-lead h2,
.industry-lead h3 { color: var(--cream); }
.industry-lead p,
.industry-lead li { color: #e7e1d4; }
.industry-lead .ticks li::before { border-color: var(--gold); }

.stack { display: grid; gap: 18px; }

/* About */
.profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

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

.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.fact span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 4px;
}

.fact strong { color: var(--navy); font-weight: 700; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 28px;
  align-items: start;
}

form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }

label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #d5cbb8;
  border-radius: 8px;
  padding: 12px 12px;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(31, 122, 122, 0.35);
  border-color: var(--teal);
}

.form-help { color: var(--muted); font-size: 0.95rem; }

.mail-status {
  background: rgba(31, 122, 122, 0.1);
  border: 1px solid rgba(31, 122, 122, 0.3);
  color: var(--navy);
  border-radius: 10px;
  padding: 12px 14px;
}

.email-callout {
  font-size: 1.15rem;
  font-weight: 700;
}

.email-callout a { color: var(--navy); }

.info-panel { padding: 22px; }
.info-panel h2 { font-size: 1.45rem; }
.info-panel a { font-weight: 700; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #e7e1d4;
  padding-top: 48px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 36px;
}

.foot-logo {
  width: 148px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 12px;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: #e7e1d4;
  text-decoration: none;
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.site-footer a:hover { color: var(--white); text-decoration: underline; }

.site-footer p { color: #e7e1d4; font-size: 0.95rem; }

.foot-bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.14);
  padding: 16px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: #e7e1d4;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .challenge-grid,
  .card-grid,
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid,
  .split,
  .industry-grid,
  .profile,
  .contact-grid { grid-template-columns: 1fr; }
  .logo-card { justify-self: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 18px;
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(247, 243, 234, 0.12);
  }
  .nav-links .nav-cta {
    margin-top: 10px;
    text-align: center;
    border-bottom: 0;
  }
  .site-header { position: sticky; }
  .nav-inner { position: static; }
  .site-header { position: sticky; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero, .page-hero { padding: 40px 0 48px; }
  .page-hero .hero-photo img { aspect-ratio: 4 / 3; object-position: center 22%; }
  .section { padding: 52px 0; }
  .challenge-grid,
  .pillar-grid,
  .card-grid,
  .support-grid,
  .foot-grid,
  .facts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions, .card-links { align-items: stretch; }
  .card-links a { padding: 4px 0; }
  .foot-bottom { flex-direction: column; }
  .detail, .industry-lead, .feature-panel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.js .product-details { display: none; }

.product-card { cursor: pointer; }

.product-card .card-links a:not([target="_blank"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 8px 12px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  background: transparent;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.product-card .card-links a:not([target="_blank"]):hover {
  background: var(--white);
  color: var(--navy);
}

.product-card .card-links a[target="_blank"] {
  position: relative;
  z-index: 2;
}

.product-dialog {
  padding: 0;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  width: min(680px, calc(100% - 32px));
  max-height: min(880px, calc(100vh - 48px));
  max-height: min(880px, calc(100dvh - 48px));
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(18, 28, 51, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.product-dialog[open] {
  opacity: 1;
  transform: none;
}

.product-dialog.is-closing {
  opacity: 0;
  transform: translateY(18px);
}

@starting-style {
  .product-dialog[open] {
    opacity: 0;
    transform: translateY(18px);
  }
}

.product-dialog::backdrop {
  background: rgba(18, 28, 51, 0.62);
}

.product-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--navy);
}

.product-dialog-toolbar button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(247, 243, 234, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.product-dialog-toolbar button:hover { background: rgba(255, 255, 255, 0.08); }

.product-dialog-body {
  padding: 18px 18px 28px;
  overflow: auto;
  max-height: calc(100dvh - 120px);
}

.product-dialog h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 14px 0 6px;
}

.product-dialog .value {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.dialog-block { margin-top: 16px; }

.dialog-block h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.dialog-actions .btn { width: auto; }

.appwin-lg {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.appwin-lg .appwin-body {
  min-height: 168px;
  grid-template-columns: 108px minmax(0, 1fr);
}

.appwin-lg .appwin-name { font-size: 0.9rem; }
.appwin-lg .appwin-nav { font-size: 0.75rem; padding: 12px 8px; }
.appwin-lg .appwin-stat b { font-size: 1.35rem; }
.appwin-lg .appwin-row { font-size: 0.85rem; }

@media (max-width: 760px) {
  .product-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: translateY(100%);
  }

  .product-dialog[open] { transform: none; }
  .product-dialog.is-closing { transform: translateY(100%); }

  @starting-style {
    .product-dialog[open] { transform: translateY(100%); opacity: 1; }
  }

  .product-dialog-body { max-height: none; }
  .dialog-actions { flex-direction: column; }
  .dialog-actions .btn { width: 100%; }
  .product-card .card-links a:not([target="_blank"]) { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .product-dialog,
  .product-dialog[open],
  .product-dialog.is-closing {
    transform: none !important;
    transition: none !important;
  }
}

/* Depth and motion */
.site-header {
  background: rgba(27, 42, 74, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 28, 51, 0.9);
  box-shadow: 0 10px 28px rgba(8, 14, 28, 0.28);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 46% 58% at 88% 8%, rgba(31, 122, 122, 0.55), transparent 62%),
    radial-gradient(ellipse 38% 48% at 8% 92%, rgba(247, 243, 234, 0.16), transparent 58%),
    radial-gradient(ellipse 28% 36% at 48% 42%, rgba(22, 94, 94, 0.4), transparent 70%),
    var(--navy);
  background-size: 150% 150%, 130% 130%, 120% 120%, auto;
  animation: heroShift 18s ease-in-out infinite alternate;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -60px;
  top: -90px;
  border-radius: 50%;
  background: rgba(31, 122, 122, 0.42);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
  animation: heroFloat 14s ease-in-out infinite alternate;
}

.hero .wrap,
.page-hero .wrap { position: relative; z-index: 1; }

@keyframes heroShift {
  from { background-position: 0% 40%, 100% 0%, 50% 50%, 0 0; }
  to { background-position: 100% 60%, 0% 100%, 40% 60%, 0 0; }
}

@keyframes heroFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, 28px, 0); }
}

.hero-photo,
.page-hero .hero-photo {
  position: relative;
  padding: 0 0 18px 18px;
}

.hero-photo::before,
.page-hero .hero-photo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 18px 0 0 0;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(31, 122, 122, 0.9), rgba(196, 163, 90, 0.7));
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  animation: none;
  width: auto;
  height: auto;
}

.hero .hero-photo img,
.page-hero .hero-photo img {
  width: calc(100% - 18px);
}

.hero .hero-photo img,
.page-hero .hero-photo img {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  box-shadow:
    0 2px 6px rgba(8, 14, 28, 0.2),
    0 22px 46px rgba(8, 14, 28, 0.32);
}

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

main > .section {
  position: relative;
}

main > .section:nth-child(even) { background: #fff; }
main > .section:nth-child(odd) { background: #f3f7f6; }

main > .section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 32px;
  background: inherit;
  clip-path: ellipse(62% 100% at 50% 100%);
  z-index: 1;
  pointer-events: none;
}

.card,
.pillar,
.challenge,
.support-card {
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(27, 42, 74, 0.05),
    0 14px 32px rgba(27, 42, 74, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover,
.pillar:hover,
.challenge:hover,
.support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 122, 122, 0.55);
  box-shadow:
    0 10px 18px rgba(27, 42, 74, 0.06),
    0 22px 40px rgba(31, 122, 122, 0.14);
}

.product-card .appwin { position: relative; }

.product-card .appwin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.42) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}

.product-card:hover .appwin {
  transform: perspective(900px) rotateX(1.5deg) rotateY(-1.5deg);
  transition: transform 0.35s ease;
}

.product-card:hover .appwin::after {
  transform: translateX(130%);
  transition: transform 0.7s ease;
}

.btn-primary,
.btn-navy {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  box-shadow: 0 8px 18px rgba(18, 28, 51, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--teal);
  background-image: linear-gradient(180deg, #278888, #165e5e);
}

.btn-navy {
  background-color: var(--navy);
  background-image: linear-gradient(180deg, #243656, #121c33);
}

.btn-primary::after,
.btn-navy::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover,
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 28, 51, 0.22);
  color: var(--white);
}

.btn-primary:hover::after,
.btn-navy:hover::after { transform: translateX(4px); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .hero::after,
  .page-hero::after { width: 220px; height: 220px; filter: blur(36px); }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-card:hover .appwin { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .page-hero,
  .hero::after,
  .page-hero::after,
  .btn-primary::after,
  .btn-navy::after {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card:hover,
  .pillar:hover,
  .challenge:hover,
  .support-card:hover,
  .product-card:hover .appwin,
  .btn-primary:hover,
  .btn-navy:hover,
  .btn-primary:hover::after,
  .btn-navy:hover::after,
  .hero-photo img,
  .story-photo img {
    transform: none !important;
  }
}
