:root {
  --navy: #0f2334;
  --navy-2: #17364d;
  --teal: #2a766f;
  --teal-dark: #205f59;
  --mint: #e9f1ef;
  --soft: #f5f7f6;
  --white: #ffffff;
  --ink: #152b3a;
  --text: #50606a;
  --line: #dce5e2;
  --max: 1280px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(15, 35, 52, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-color: rgba(220,229,226,.85);
  box-shadow: 0 8px 28px rgba(15,35,52,.055);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr auto;
  align-items: center;
  gap: 2.25rem;
}
.brand { display: inline-flex; align-items: center; width: 238px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; gap: clamp(1rem, 2.3vw, 2.3rem); }
.site-nav a, .text-link {
  color: var(--ink);
  font-size: .92rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.48rem;
  height: 1px;
  background: var(--teal);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.menu-toggle { display: none; }

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.35rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--teal-dark); border-color: var(--teal-dark); box-shadow: 0 10px 24px rgba(42,118,111,.18); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(42,118,111,.28);
  outline-offset: 3px;
}
.button-small { min-height: 42px; padding: .68rem 1.05rem; font-size: .9rem; }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: var(--mint); border-color: var(--mint); color: var(--navy); box-shadow: none; }
.button-link {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.button-link span { color: var(--teal); font-size: 1.1em; }
.button-row { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: 2rem; }

.hero { background: #fbfcfb; overflow: hidden; }
.hero-desktop { display: block; width: 100%; }
.hero-desktop img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - 84px);
  object-fit: contain;
  object-position: center;
}
.hero-mobile { display: none; }

.section { padding: clamp(5rem, 9vw, 8.8rem) 0; }
.section-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section-soft { background: var(--soft); }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--teal);
  font-size: .74rem;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow-light { color: #83c6bf; }
h2 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.3rem, 5vw, 5.1rem);
  line-height: .99;
  letter-spacing: -.047em;
  font-weight: 680;
}
h3 { margin: 0; }
p { color: var(--text); }

.intro { padding-bottom: 0; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.intro-copy { padding-top: 1.9rem; }
.intro-copy > p { margin: 0; max-width: 37rem; font-size: clamp(1.14rem, 1.7vw, 1.42rem); line-height: 1.6; }
.service-line {
  width: min(calc(100% - 48px), var(--max));
  margin: clamp(4rem, 7vw, 7rem) auto 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.service-line span:not(:last-child)::after { content: "·"; margin-left: clamp(1.5rem, 4vw, 4rem); color: var(--teal); }

.statement { max-width: 18ch; }
.pain-list { margin-top: clamp(3.5rem, 7vw, 6.5rem); border-top: 1px solid #d2dcda; }
.pain-list > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
  border-bottom: 1px solid #d2dcda;
}
.pain-list span { color: var(--teal); font-size: .8rem; font-weight: 760; letter-spacing: .13em; }
.pain-list p { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3.1vw, 3.25rem); line-height: 1.1; letter-spacing: -.025em; }
.resolution { margin: 3rem 0 0 auto; max-width: 44rem; color: var(--teal-dark); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.35; font-weight: 650; }

.section-heading { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, .75fr) minmax(300px, 1fr) 40px;
  gap: 2rem;
  align-items: center;
  min-height: 138px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left .18s ease, color .18s ease;
}
.service-row:hover { padding-left: .7rem; }
.service-number { color: var(--teal); font-size: .8rem; font-weight: 780; letter-spacing: .13em; }
.service-row h3 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); letter-spacing: -.025em; }
.service-row p { margin: 0; max-width: 34rem; font-size: 1.03rem; }
.service-arrow { color: var(--teal); font-size: 1.35rem; justify-self: end; }

.portal { padding-bottom: 0; overflow: hidden; background: var(--navy); color: var(--white); }
.portal-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.portal h2 { color: var(--white); max-width: 13ch; }
.portal-copy > p:not(.eyebrow) { max-width: 39rem; color: #c6d2d8; font-size: 1.15rem; line-height: 1.65; margin: 1.8rem 0 2rem; }
.portal-visual {
  min-height: 470px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px 18px 0 0;
  background: #f8fbfa;
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  overflow: hidden;
}
.portal-topbar { height: 52px; padding: 0 1.1rem; display: flex; align-items: center; gap: .45rem; background: #eef3f2; color: #62727b; font-size: .73rem; }
.portal-topbar i { width: 8px; height: 8px; border-radius: 50%; background: #a7b6b2; }
.portal-topbar span { margin-left: .65rem; }
.portal-body { min-height: 418px; display: grid; grid-template-columns: 92px 1fr; }
.portal-sidebar { background: #132c3e; padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: 1.45rem; }
.portal-sidebar span { width: 42px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.22); }
.portal-sidebar .active { background: #66b7ae; }
.portal-content { padding: 3rem; }
.portal-title-line { width: 46%; height: 18px; border-radius: 999px; background: #1e3545; margin-bottom: 2.3rem; }
.portal-status { height: 88px; border-top: 1px solid #dbe5e2; border-bottom: 1px solid #dbe5e2; display: grid; grid-template-columns: 34px 1fr 72px; align-items: center; gap: 1rem; }
.portal-status b { width: 30px; height: 30px; border-radius: 50%; background: #d6ebe7; }
.portal-status span { width: 58%; height: 10px; border-radius: 999px; background: #5c747f; }
.portal-status em { width: 72px; height: 24px; border-radius: 999px; background: #dff0ed; }
.portal-entry { height: 72px; border-bottom: 1px solid #e4ebe9; display: grid; grid-template-columns: 22px 1fr 58px; align-items: center; gap: 1rem; }
.portal-entry b { width: 18px; height: 18px; border: 2px solid #75aaa5; border-radius: 4px; }
.portal-entry span { width: 67%; height: 9px; border-radius: 999px; background: #c7d3d1; }
.portal-entry small { width: 58px; height: 8px; border-radius: 999px; background: #dce5e2; }
.portal-features {
  width: min(calc(100% - 48px), var(--max));
  margin: clamp(4.3rem, 7vw, 7rem) auto 0;
  padding: 1.65rem 0;
  border-top: 1px solid rgba(255,255,255,.17);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: #d9e3e6;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-features span:not(:last-child)::after { content: "/"; margin-left: clamp(1.5rem, 4vw, 4rem); color: #66b7ae; }

.personal-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(3rem, 10vw, 10rem); align-items: start; }
.personal h2 { max-width: 12ch; }
.quote { margin: 1.8rem 0 0; }
.quote blockquote { margin: 0 0 2.4rem; color: var(--ink); font-size: clamp(1.65rem, 3.2vw, 3.2rem); line-height: 1.25; letter-spacing: -.03em; }
.quote figcaption { display: flex; flex-direction: column; padding-left: 1.2rem; border-left: 2px solid var(--teal); }
.quote figcaption strong { font-size: 1rem; }
.quote figcaption span { color: var(--text); font-size: .9rem; }

.process-heading h2 { max-width: 15ch; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d2dcda; }
.process-list li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid #d2dcda; }
.process-list > li > span { color: var(--teal); font-size: .8rem; font-weight: 780; letter-spacing: .13em; padding-top: .35rem; }
.process-list h3 { font-size: clamp(1.45rem, 2.5vw, 2.25rem); letter-spacing: -.025em; }
.process-list p { margin: .45rem 0 0; max-width: 44rem; }

.contact { background: var(--teal-dark); color: var(--white); }
.contact-inner { text-align: center; }
.contact h2 { max-width: 15ch; margin: 0 auto; color: var(--white); }
.contact-inner > p:not(.eyebrow) { max-width: 42rem; margin: 1.7rem auto 0; color: #d9eeeb; font-size: 1.12rem; }
.contact-actions { display: flex; justify-content: center; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: 2.3rem; }
.contact-actions > a { color: var(--white); text-underline-offset: .3rem; }

.site-footer { padding: 3rem 0; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr auto auto; gap: 3rem; align-items: start; }
.footer-inner strong { font-size: 1.05rem; letter-spacing: .02em; }
.footer-inner p { margin: .25rem 0 0; font-size: .86rem; }
.footer-inner address { color: var(--text); font-size: .88rem; font-style: normal; }
.footer-inner address a { text-underline-offset: .25rem; }
.footer-inner nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-inner nav a { color: var(--text); font-size: .88rem; text-decoration: none; }
.copyright { white-space: nowrap; }

.inquiry-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(15,35,52,.28);
  overflow: auto;
}
.inquiry-dialog::backdrop { background: rgba(8,22,32,.68); backdrop-filter: blur(4px); }
.dialog-shell { padding: clamp(1.5rem, 4vw, 3rem); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.dialog-head h2 { max-width: 14ch; font-size: clamp(2rem, 5vw, 3.8rem); }
.dialog-close { border: 0; background: transparent; color: var(--ink); font-size: 2.25rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid label { display: grid; gap: .45rem; }
.form-grid label > span { color: var(--ink); font-size: .78rem; font-weight: 720; letter-spacing: .04em; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  border: 1px solid #cbd7d4;
  border-radius: 10px;
  background: #fbfcfc;
  color: var(--ink);
  padding: .85rem .9rem;
}
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-wide { grid-column: 1 / -1; }
.form-note { margin: 1.25rem 0; color: #6b7a82; font-size: .78rem; }
.dialog-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { color: var(--teal-dark); font-size: .88rem; }

.legal-page { min-height: 100svh; background: var(--soft); }
.legal-header { padding: 1.2rem 0; background: var(--white); border-bottom: 1px solid var(--line); }
.legal-header-inner { width: min(calc(100% - 48px), 920px); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.legal-header .brand { width: 220px; }
.legal-header a:last-child { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.legal-main { width: min(calc(100% - 48px), 920px); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.legal-main h1 { margin: 0 0 2rem; font-size: clamp(2.8rem, 7vw, 5.7rem); line-height: 1; letter-spacing: -.05em; }
.legal-main h2 { margin: 2.6rem 0 .8rem; max-width: none; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.legal-main p, .legal-main li, .legal-main address { color: var(--text); font-style: normal; }
.legal-main a { color: var(--teal-dark); }
.legal-note { padding: 1rem 1.15rem; border-left: 3px solid var(--teal); background: var(--mint); }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 210px 1fr auto; gap: 1.25rem; }
  .brand { width: 205px; }
  .site-nav { gap: 1rem; }
  .site-nav a, .text-link { font-size: .84rem; }
  .header-actions .text-link { display: none; }
  .service-row { grid-template-columns: 70px minmax(210px, .8fr) minmax(270px, 1fr) 30px; gap: 1.2rem; }
  .portal-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 820px) {
  .header-inner { width: min(calc(100% - 32px), var(--max)); height: 70px; grid-template-columns: 1fr auto; }
  .brand { width: 195px; }
  .menu-toggle { display: grid; width: 46px; height: 46px; place-content: center; gap: 7px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4.25px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 1rem 24px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    transform: translateY(-130%);
    transition: transform .22s ease;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav a::after { display: none; }
  .header-actions { display: none; }
  .intro-grid, .personal-grid, .portal-grid { grid-template-columns: 1fr; }
  .intro-copy { padding-top: 0; }
  .service-line, .portal-features { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .service-line::-webkit-scrollbar, .portal-features::-webkit-scrollbar { display: none; }
  .service-line span, .portal-features span { white-space: nowrap; }
  .service-row { grid-template-columns: 50px 1fr 28px; padding: 1.8rem 0; }
  .service-row h3 { grid-column: 2; }
  .service-row p { grid-column: 2; margin-top: -.8rem; }
  .service-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .portal-visual { min-height: 390px; }
  .portal-body { min-height: 338px; grid-template-columns: 72px 1fr; }
  .portal-sidebar { padding: 1.8rem 1rem; }
  .portal-content { padding: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-desktop { display: none; }
  .hero-mobile { display: block; background: #fbfcfb; }
  .hero-mobile-photo img { width: 100%; height: auto; max-height: 72svh; object-fit: cover; object-position: center top; }
  .hero-mobile-brand { padding: 2.1rem 24px 2.5rem; text-align: center; }
  .hero-mobile-brand picture { display: block; width: min(100%, 340px); margin: 0 auto; }
  .hero-mobile-brand p { margin: 1.1rem 0 0; color: var(--navy); font-size: 1.03rem; letter-spacing: .14em; }
  .section-inner, .service-line, .portal-features, .footer-inner { width: min(calc(100% - 36px), var(--max)); }
  .section { padding: 4.7rem 0; }
  h2 { font-size: clamp(2.35rem, 12vw, 4.1rem); }
  .service-line { margin-top: 3.8rem; }
  .pain-list > div { grid-template-columns: 46px 1fr; min-height: 88px; }
  .pain-list p { font-size: clamp(1.45rem, 7vw, 2.15rem); }
  .resolution { margin-top: 2.4rem; }
  .portal { padding-bottom: 0; }
  .portal-visual { min-height: 330px; border-radius: 14px 14px 0 0; }
  .portal-topbar { height: 44px; }
  .portal-body { min-height: 286px; grid-template-columns: 54px 1fr; }
  .portal-sidebar { padding: 1.4rem .75rem; }
  .portal-sidebar span { width: 30px; }
  .portal-content { padding: 1.5rem; }
  .portal-status { grid-template-columns: 25px 1fr 52px; }
  .portal-status em { width: 52px; }
  .portal-entry { grid-template-columns: 18px 1fr 40px; }
  .portal-entry small { width: 40px; }
  .process-list li { grid-template-columns: 48px 1fr; }
  .contact-actions { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-inner nav { flex-direction: row; gap: 1.2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .dialog-head { gap: 1rem; }
}

@media (max-width: 420px) {
  .brand { width: 178px; }
  .hero-mobile-brand p { font-size: .88rem; letter-spacing: .11em; }
  .button-row { align-items: flex-start; flex-direction: column; }
  .service-row { grid-template-columns: 42px 1fr 22px; gap: .7rem; }
  .portal-visual { min-height: 300px; }
  .portal-content { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
