@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("./assets/fonts/SourceSans3-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("./assets/fonts/SourceSerif4-Variable.woff2") format("woff2");
}

:root {
  color-scheme: only light;
  --ink: #031224;
  --ink-deep: #020815;
  --ink-soft: #061a34;
  --blue: #2c78ff;
  --blue-bright: #8bc5ff;
  --blue-deep: #155cff;
  --paper: #eef3f8;
  --paper-warm: #f5f8fb;
  --white: #ffffff;
  --text: #101f35;
  --muted: #54657b;
  --line: #ccd7ea;
  --line-dark: rgba(77, 111, 168, 0.24);
  --error: #b93636;
  --success: #176f54;
  --display: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --body: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --shell: min(1280px, calc(100vw - 96px));
  --header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

/* Short, consistent transitions: never delay navigation or hide required form
   controls in JavaScript. Reduced-motion users retain immediate state changes. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bwc-surface-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body:not(.portal-page) #main-content,
  .dashboard-panel:not([hidden]),
  dialog[open]:not(.review-tour),
  .mobile-nav:not([hidden]) { animation: bwc-surface-enter .28s cubic-bezier(.22, 1, .36, 1); }

  /* Browsers supporting discrete transitions keep the dialog/backdrop in the
     top layer through its short exit. Older browsers still get the entry fade. */
  @supports (transition-behavior: allow-discrete) {
    .mobile-nav { opacity: 0; transition: opacity .2s ease, display .2s allow-discrete; }
    .mobile-nav:not([hidden]) { opacity: 1; }
    @starting-style { .mobile-nav:not([hidden]) { opacity: 0; } }
    dialog:not(.review-tour) {
      opacity: 0;
      transition: opacity .2s ease, display .2s allow-discrete, overlay .2s allow-discrete;
    }
    dialog[open]:not(.review-tour) { opacity: 1; }
    dialog:not(.review-tour)::backdrop {
      opacity: 0;
      transition: opacity .2s ease, display .2s allow-discrete, overlay .2s allow-discrete;
    }
    dialog[open]:not(.review-tour)::backdrop { opacity: 1; }
    @starting-style { dialog[open]:not(.review-tour)::backdrop { opacity: 0; } }
  }
}

.return-to-top {
  position: fixed;
  z-index: 80;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 14px 11px 18px;
  color: var(--white);
  background: var(--blue-deep);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 32px rgba(3, 18, 36, 0.28);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.return-to-top b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--ink);
  background: var(--blue-bright);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1;
}

.return-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.return-to-top:hover {
  background: var(--ink);
}

.return-to-top:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 4px;
}

body.menu-open .return-to-top {
  opacity: 0;
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--blue-bright);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.02;
}

h1,
h2 {
  letter-spacing: -0.055em;
}

h3 {
  letter-spacing: -0.025em;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-ink h1,
.section-ink h2,
.section-ink h3 {
  color: var(--white);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding: 132px 0;
}

.section-dark,
.section-ink {
  color: #d6e2ef;
  background: linear-gradient(180deg, var(--ink) 0%, #020916 100%);
}

.section-ink {
  background: linear-gradient(180deg, var(--ink-deep) 0%, #010611 100%);
}

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

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--blue-bright);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.kicker,
.micro-label,
.eyebrow,
.visual-label,
.footer-column > span,
.footer-contact > span,
.legal-grid aside > span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 25px;
  color: var(--blue-deep);
}

.kicker::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
}

.kicker-blue {
  color: var(--blue-bright);
}

.micro-label {
  margin-bottom: 12px;
  color: var(--blue-deep);
}

.eyebrow {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  color: var(--blue-bright);
}

.eyebrow span {
  display: flex;
  align-items: center;
}

.eyebrow span:first-child::after {
  width: 48px;
  height: 1px;
  margin: 0 15px;
  content: "";
  background: rgba(139, 216, 255, 0.5);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 19px 14px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button span {
  font-size: 19px;
  font-weight: 400;
}

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

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #a9d6ff 0%, #69aaff 100%);
  box-shadow: 0 18px 28px rgba(17, 70, 160, 0.18);
}

.button-primary:hover {
  background: linear-gradient(135deg, #ffffff 0%, #d8ebff 100%);
}

.button-dark {
  color: var(--white);
  background: linear-gradient(135deg, #031224 0%, #0d2f61 100%);
}

.button-dark:hover {
  background: linear-gradient(135deg, #0d2f61 0%, #155cff 100%);
}

.button-danger {
  border-color: #b4232f;
  color: #9f1d28;
  background: #fff7f7;
}

.button-danger:hover {
  color: #fff;
  background: #9f1d28;
}

.button-outline-light {
  color: var(--white);
  border-color: rgba(139, 197, 255, 0.52);
  background: rgba(255, 255, 255, 0.04);
}

.button-outline-light:hover {
  color: var(--ink);
  border-color: transparent;
  background: linear-gradient(135deg, #a9d6ff 0%, #69aaff 100%);
}

.button-full {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.text-link:hover {
  gap: 22px;
  color: var(--blue);
}

.text-link-light {
  color: var(--white);
}

.lead-copy {
  font-size: clamp(21px, 2vw, 28px);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--white);
  border-bottom: 1px solid rgba(158, 199, 222, 0.18);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-sticky {
  position: fixed;
  background: rgba(3, 18, 36, 0.96);
  box-shadow: 0 8px 30px rgba(0, 10, 20, 0.16);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  gap: 36px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: 250px;
  align-items: center;
}

.desktop-nav {
  display: flex;
  height: 100%;
  gap: 36px;
  align-items: center;
}

.desktop-nav a,
.header-demo,
.header-portal {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.header-demo {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid rgba(139, 197, 255, 0.55);
  border-radius: 999px;
  color: var(--blue-bright);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-demo:hover {
  border-color: var(--blue-bright);
  color: #fff;
  background: rgba(139, 197, 255, 0.12);
  transform: translateY(-2px);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-portal {
  display: inline-flex;
  justify-self: end;
  min-height: 30px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid rgba(139, 197, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #a9d6ff 0%, #69aaff 100%);
  box-shadow: 0 10px 26px rgba(17, 70, 160, 0.32);
  color: var(--ink);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-portal span {
  line-height: 1;
}

.header-portal i {
  font-size: 11px;
  font-style: normal;
  line-height: 1;
  transition: transform 180ms ease;
}

.header-portal:hover {
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff 0%, #d8ebff 100%);
  box-shadow: 0 14px 30px rgba(17, 70, 160, 0.26);
  transform: translateY(-2px);
}

.header-portal:hover i {
  transform: translate(2px, -2px);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

/* Home hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  background-image: linear-gradient(rgba(103, 155, 222, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 155, 222, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent 0, black 40%, black 100%);
}

.hero-home {
  min-height: 790px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 698px;
  grid-template-columns: minmax(0, 1.03fr) minmax(480px, 0.97fr);
  gap: 7vw;
  align-items: center;
  padding: 80px 0 74px;
}

.hero-copy h1,
.page-hero h1,
.not-found h1 {
  max-width: 840px;
  margin-bottom: 32px;
  color: var(--white);
  font-size: clamp(58px, 6.6vw, 106px);
  font-weight: 800;
  line-height: 0.91;
}

.hero-copy h1 em,
.page-hero h1 em,
.not-found h1 em {
  color: var(--blue-bright);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 38px;
  color: #c9dae5;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.55;
}

.hero-rule {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 47%;
  height: 5px;
  background: linear-gradient(90deg, #8bc5ff 0%, #155cff 100%);
}

.hero-rule::before {
  position: absolute;
  bottom: 0;
  left: -45px;
  width: 45px;
  height: 46px;
  content: "";
  border-bottom: 5px solid #8bc5ff;
  border-left: 5px solid #8bc5ff;
}

.build-board {
  position: relative;
  border: 1px solid rgba(139, 197, 255, 0.34);
  color: #8facc0;
  background: rgba(3, 18, 36, 0.72);
  box-shadow: 0 40px 90px rgba(0, 8, 17, 0.32);
}

.build-board::before,
.build-board::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  pointer-events: none;
}

.build-board::before {
  top: -6px;
  left: -6px;
  border-top: 2px solid #8bc5ff;
  border-left: 2px solid #8bc5ff;
}

.build-board::after {
  right: -6px;
  bottom: -6px;
  border-right: 2px solid #8bc5ff;
  border-bottom: 2px solid #8bc5ff;
}

.board-topline,
.board-footer {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.board-topline {
  border-bottom: 1px solid rgba(139, 197, 255, 0.2);
}

.board-status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--blue-bright);
}

.board-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee4b5;
  box-shadow: 0 0 0 4px rgba(110, 228, 181, 0.1);
}

.board-canvas {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(139, 197, 255, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}

.board-axis {
  position: absolute;
  opacity: 0.5;
  background: #155cff;
}

.board-axis-x {
  top: 51%;
  right: 0;
  left: 0;
  height: 1px;
}

.board-axis-y {
  top: 0;
  bottom: 0;
  left: 48%;
  width: 1px;
}

.board-note {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(139, 197, 255, 0.3);
  color: #b8ccda;
  background: rgba(2, 9, 22, 0.94);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.board-note b {
  color: var(--blue-bright);
}

.board-note-one {
  top: 34px;
  left: 24px;
}

.board-note-two {
  top: 92px;
  right: 20px;
}

.board-note-three {
  right: 35px;
  bottom: 26px;
}

.browser-block {
  position: absolute;
  z-index: 1;
  top: 87px;
  left: 50%;
  width: 68%;
  overflow: hidden;
  border: 1px solid #4f79a6;
  background: #f5f8fc;
  box-shadow: 18px 22px 0 rgba(26, 88, 175, 0.16);
  transform: translateX(-50%);
}

.browser-bar {
  display: flex;
  height: 27px;
  gap: 5px;
  align-items: center;
  padding: 0 9px;
  background: #d6e0eb;
}

.browser-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7a8c9d;
}

.browser-bar span {
  margin-left: auto;
  color: #42586f;
  font-family: var(--mono);
  font-size: 7px;
}

.browser-page {
  min-height: 235px;
  padding: 26px 24px;
  background: linear-gradient(135deg, #071624 0 58%, #155cff 58% 100%);
}

.browser-kicker,
.browser-heading {
  display: block;
  background: #9bcfff;
}

.browser-kicker {
  width: 57px;
  height: 4px;
  margin-bottom: 19px;
}

.browser-heading {
  width: 72%;
  height: 13px;
  margin-bottom: 8px;
  background: #fff;
}

.browser-heading.short {
  width: 50%;
}

.browser-columns {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.browser-columns span {
  height: 63px;
  border: 1px solid rgba(139, 197, 255, 0.55);
  background: rgba(5, 26, 43, 0.45);
}

.coordinate {
  position: absolute;
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 8px;
}

.coordinate-a {
  top: 225px;
  left: 10px;
  transform: rotate(-90deg);
}

.coordinate-b {
  right: 10px;
  bottom: 105px;
}

.board-footer {
  min-height: 48px;
  gap: 8px;
  border-top: 1px solid rgba(147, 199, 229, 0.25);
}

.board-footer strong {
  padding: 4px 6px;
  color: var(--ink);
  background: var(--blue-bright);
}

/* Proof */
.proof-strip {
  color: #c8d8e2;
  background: var(--ink-soft);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-grid > div {
  display: grid;
  min-height: 106px;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 34px;
  border-right: 1px solid rgba(149, 193, 217, 0.22);
}

.proof-grid > div:first-child {
  padding-left: 0;
}

.proof-grid > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-grid strong {
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 12px;
}

.proof-grid span {
  max-width: 250px;
  font-size: 14px;
  line-height: 1.45;
}

/* Shared headings */
.section-heading {
  margin-bottom: 70px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 8vw;
  align-items: end;
}

.split-heading h2,
.process-intro h2,
.portal-callout h2,
.fit-grid h2,
.engagement-grid h2,
.faq-grid h2,
.founder-grid h2 {
  margin-bottom: 0;
  font-size: clamp(44px, 5vw, 76px);
}

.split-heading > p {
  max-width: 500px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 18px;
}

.section-ink .split-heading > p {
  color: #aabfcd;
}

/* Services preview */
.section-services-preview {
  background: var(--paper-warm);
}

.service-index {
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  min-height: 122px;
  grid-template-columns: 72px minmax(250px, 0.8fr) minmax(280px, 1fr) 52px;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease, background 180ms ease;
}

.service-row:hover {
  padding-inline: 18px;
  color: var(--blue-deep);
  background: #fff;
}

.service-number {
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 13px;
}

.service-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.service-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.service-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
}

/* Work */
.section-work {
  overflow: hidden;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 26px;
}

.work-card {
  min-width: 0;
}

.work-visual {
  position: relative;
  display: block;
  min-height: 460px;
  overflow: hidden;
  text-decoration: none;
}

.work-card:not(.work-card-wide) .work-visual {
  min-height: 460px;
}

.visual-marketing {
  padding: 55px 42px 0;
  background: linear-gradient(135deg, #071428 0%, #103d86 50%, #1f74ff 100%);
}

.visual-marketing::before {
  position: absolute;
  top: -85px;
  right: -65px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(2, 9, 22, 0.28);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 38px rgba(2, 9, 22, 0.08), 0 0 0 75px rgba(2, 9, 22, 0.05);
}

.visual-portal {
  padding: 55px 30px 0;
  background: linear-gradient(135deg, #020916 0%, #0a2142 100%);
}

.visual-label {
  position: absolute;
  z-index: 2;
  top: 19px;
  left: 22px;
  color: var(--ink);
  font-size: 10px;
}

.visual-portal .visual-label {
  color: var(--blue-bright);
}

.site-preview {
  position: relative;
  height: 405px;
  overflow: hidden;
  border: 8px solid #fff;
  background: var(--white);
  box-shadow: 0 25px 50px rgba(4, 21, 34, 0.18);
  transform: rotate(-1deg);
  transition: transform 400ms ease;
}

.work-visual:hover .site-preview {
  transform: rotate(0) translateY(-8px);
}

.preview-nav {
  display: flex;
  height: 38px;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  background: #fff;
}

.preview-nav i {
  width: 58px;
  height: 12px;
  margin-right: auto;
  background: var(--ink);
}

.preview-nav span {
  width: 31px;
  height: 3px;
  background: #879db8;
}

.preview-hero {
  position: relative;
  display: flex;
  height: 212px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #031224 0%, #0d2c5f 100%);
}

.preview-hero strong {
  position: relative;
  z-index: 1;
  font-size: 33px;
  line-height: 1;
}

.preview-hero i {
  position: absolute;
  right: -45px;
  width: 190px;
  height: 190px;
  border: 25px solid #2c78ff;
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(44, 120, 255, 0.12);
}

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

.preview-cards span {
  height: 110px;
  border: 1px solid #c9d7e7;
  background: linear-gradient(#e9eff2 0 45%, #fff 45%);
}

.portal-preview {
  display: grid;
  height: 405px;
  overflow: hidden;
  grid-template-columns: 24% 76%;
  border: 7px solid #fff;
  background: #edf2f7;
  box-shadow: 0 25px 50px rgba(0, 7, 15, 0.28);
  transform: rotate(1.5deg) translateY(4px);
  transition: transform 400ms ease;
}

.work-visual:hover .portal-preview {
  transform: rotate(0) translateY(-8px);
}

.portal-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 12px;
  color: #fff;
  background: linear-gradient(180deg, #031224 0%, #081b33 100%);
}

.portal-rail b {
  margin-bottom: 17px;
  color: var(--blue-bright);
  font-size: 17px;
}

.portal-rail i {
  width: 70%;
  height: 5px;
  background: #668094;
}

.portal-main {
  padding: 30px 18px;
}

.portal-title {
  display: block;
  width: 68%;
  height: 13px;
  margin-bottom: 24px;
  background: #031224;
}

.portal-main > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.portal-main i {
  display: block;
  height: 120px;
  border: 1px solid #c5d3e4;
  background: #fff;
}

.work-meta {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) 1fr auto;
  gap: 38px;
  align-items: start;
  padding: 28px 0 0;
}

.work-meta h3 {
  margin: 0;
  color: #fff;
  font-size: 27px;
}

.work-meta > p {
  margin: 0;
  color: #aabfcd;
  font-size: 14px;
  line-height: 1.55;
}

.circle-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--blue-bright);
  font-size: 20px;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.circle-link:hover {
  color: var(--ink);
  background: var(--blue-bright);
}

.work-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.work-meta-stack .text-link {
  margin-top: auto;
}

/* Process */
.section-process {
  background: #fff;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(480px, 1.28fr);
  gap: 10vw;
}

.process-intro {
  position: sticky;
  top: 140px;
  align-self: start;
}

.process-intro h2 {
  margin-bottom: 28px;
}

.process-intro > p:not(.kicker) {
  max-width: 440px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 18px;
}

.process-list {
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  display: grid;
  min-height: 175px;
  grid-template-columns: 66px 1fr;
  gap: 26px;
  padding: 0 0 44px;
}

.process-list li:not(:last-child)::before {
  position: absolute;
  top: 41px;
  bottom: 8px;
  left: 20px;
  width: 1px;
  content: "";
  background: var(--line);
}

.process-list li > span {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid var(--blue-deep);
  border-radius: 50%;
  color: var(--blue-deep);
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.process-list h3 {
  margin: 3px 0 12px;
  font-size: 30px;
}

.process-list p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
}

/* Portal callout */
.portal-callout {
  position: relative;
  overflow: hidden;
  color: #c9d9e4;
  background: #0b3653;
}

.portal-callout::after {
  position: absolute;
  top: -25%;
  right: -8%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(139, 216, 255, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 60px rgba(139, 216, 255, 0.035), 0 0 0 120px rgba(139, 216, 255, 0.025);
}

.portal-callout-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9vw;
  align-items: center;
}

.portal-callout h2 {
  margin-bottom: 28px;
  color: #fff;
}

.portal-callout p:not(.kicker) {
  max-width: 480px;
  margin-bottom: 34px;
}

.workspace-demo {
  border: 1px solid rgba(139, 216, 255, 0.45);
  background: #eaf0f3;
  box-shadow: 22px 25px 0 rgba(3, 18, 30, 0.22);
  transform: rotate(1deg);
}

.workspace-header {
  display: flex;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  color: #597184;
  background: #fff;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.workspace-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #43bb87;
}

.workspace-body {
  display: grid;
  min-height: 350px;
  grid-template-columns: 21% 79%;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 31px 19px;
  background: var(--ink);
}

.workspace-sidebar i {
  width: 70%;
  height: 6px;
  background: #49677c;
}

.workspace-sidebar i:first-child {
  width: 100%;
  background: var(--blue-bright);
}

.workspace-content {
  padding: 40px 28px;
}

.workspace-welcome {
  display: block;
  width: 43%;
  height: 16px;
  margin-bottom: 30px;
  background: var(--ink);
}

.workspace-stat {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.workspace-stat i {
  height: 70px;
  border-top: 3px solid var(--blue-deep);
  background: #fff;
}

.workspace-requests {
  padding: 12px;
  background: #fff;
}

.workspace-requests span {
  display: block;
  height: 31px;
  border-bottom: 1px solid #d5dfe4;
}

/* Closing/footer */
.closing-cta {
  padding: 110px 0;
  color: #c7d9e4;
  background: var(--ink);
}

.closing-grid {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr auto;
  gap: 5vw;
  align-items: center;
}

.closing-grid .kicker {
  margin: 0;
  color: var(--blue-bright);
}

.closing-grid h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(43px, 5vw, 74px);
}

.site-footer {
  color: #aabfcd;
  background: var(--ink-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.65fr 1fr;
  gap: 5vw;
  padding: 76px 0 64px;
}

.footer-brand img {
  width: 246px;
  margin-bottom: 22px;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  font-size: 14px;
}

.footer-column,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column > span,
.footer-contact > span {
  margin-bottom: 22px;
  color: #66859a;
}

.footer-column a {
  margin-bottom: 10px;
  color: #d5e0e7;
  font-size: 14px;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--blue-bright);
}

.footer-contact > a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--blue-bright);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer-contact small {
  margin-top: 17px;
  color: #7893a4;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(151, 194, 219, 0.15);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--blue-bright);
}

/* Page heroes */
.page-hero {
  min-height: 590px;
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 8vw;
  align-items: end;
  padding: 180px 0 85px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(56px, 6vw, 95px);
}

.page-hero-lede {
  max-width: 490px;
  margin: 0 0 10px;
  color: #c8d9e4;
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.55;
}

/* About */
.story-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 11vw;
  align-items: center;
}

.story-mark {
  position: relative;
  max-width: 540px;
  overflow: hidden;
  border: 1px solid rgba(139, 197, 255, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, #031224 0%, #020916 100%);
  box-shadow: 0 28px 70px rgba(0, 8, 17, 0.24);
  aspect-ratio: 3 / 2;
}

.story-mark::before,
.story-mark::after {
  position: absolute;
  content: "";
}

.story-mark::before {
  inset: 16px;
  border: 1px solid rgba(139, 197, 255, 0.18);
  border-radius: 18px;
}

.story-mark::after {
  right: 24px;
  bottom: 28px;
  width: 94px;
  height: 4px;
  background: linear-gradient(90deg, #8bc5ff 0%, #155cff 100%);
}

.story-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-mark span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 18px 12px;
  color: #d8e7f4;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 9, 22, 0.82) 100%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
}

.story-copy h2 {
  max-width: 730px;
  margin-bottom: 35px;
  font-size: clamp(42px, 5vw, 74px);
}

.story-copy > p:not(.kicker) {
  max-width: 690px;
  color: var(--muted);
}

.story-copy .lead-copy {
  color: var(--text) !important;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 290px;
  padding: 42px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.principle-grid article > span {
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.principle-grid h3 {
  margin: 60px 0 16px;
  font-size: 30px;
}

.principle-grid p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
}

.founder-copy > p {
  max-width: 650px;
  color: #aec2d0;
}

.founder-copy .lead-copy {
  color: #fff;
}

.founder-signoff {
  display: flex;
  margin-top: 60px;
  gap: 40px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.founder-signoff span:first-child {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.fit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10vw;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 22px 10px 22px 50px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

.check-list li:first-child {
  border-top: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  top: 24px;
  left: 11px;
  color: var(--blue-deep);
  content: "↳";
  font-family: var(--mono);
  font-weight: 700;
}

/* Services page */
.services-hero {
  padding-bottom: 0;
}

.services-hero .page-hero-grid {
  min-height: 550px;
  padding-bottom: 55px;
}

.service-jump {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.service-jump a {
  padding: 22px 20px;
  border-right: 1px solid var(--line-dark);
  color: #aac1d0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
}

.service-jump a:first-child {
  border-left: 1px solid var(--line-dark);
}

.service-jump a:hover {
  color: var(--ink);
  background: var(--blue-bright);
}

.service-detail {
  padding: 130px 0;
  background: #fff;
}

.service-detail-dark {
  color: #afc4d2;
  background: var(--ink-deep);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 0.38fr 1.62fr;
  gap: 9vw;
}

.service-stamp {
  display: flex;
  width: 180px;
  height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.service-detail-dark .service-stamp {
  border-color: var(--line-dark);
}

.service-stamp span {
  color: var(--blue-deep);
  font-family: var(--display);
  font-size: 55px;
  font-weight: 800;
  line-height: 1;
}

.service-detail-dark .service-stamp span {
  color: var(--blue-bright);
}

.service-stamp i {
  width: 28px;
  height: 1px;
  margin: 13px 0 10px;
  background: currentColor;
}

.service-stamp small {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.service-main h2 {
  max-width: 920px;
  margin-bottom: 36px;
  font-size: clamp(45px, 5vw, 78px);
}

.service-detail-dark .service-main h2 {
  color: #fff;
}

.service-main > p:not(.kicker):not(.plan-note) {
  max-width: 760px;
  color: var(--muted);
}

.service-detail-dark .service-main > p:not(.kicker) {
  color: #a9bfcc;
}

.service-main > .lead-copy {
  color: var(--text) !important;
}

.service-detail-dark .service-main > .lead-copy {
  color: #fff !important;
}

.deliverables-grid {
  display: grid;
  margin-top: 60px;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.deliverables-grid h3 {
  margin-bottom: 22px;
  font-size: 24px;
}

.deliverables-grid ul,
.plan-grid ul {
  padding: 0;
  margin: 0;
  color: var(--muted);
  list-style: none;
}

.deliverables-grid li,
.plan-grid li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid rgba(203, 214, 220, 0.75);
  font-size: 14px;
}

.deliverables-grid li::before,
.plan-grid li::before {
  position: absolute;
  left: 1px;
  color: var(--blue-deep);
  content: "+";
}

.capability-list {
  display: grid;
  margin-top: 60px;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
}

.capability-list span {
  padding: 18px 18px 18px 25px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  color: #d5e1e8;
  font-size: 15px;
}

.capability-list span::before {
  margin-right: 14px;
  color: var(--blue-bright);
  content: "↳";
  font-family: var(--mono);
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 31px;
  align-items: center;
  margin-top: 38px;
  color: #7592a5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.stack-line small {
  color: var(--blue-bright);
}

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

.plan-grid article {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.plan-grid .plan-featured {
  border-top: 4px solid var(--blue-deep);
  background: #fff;
}

.plan-grid h3 {
  margin: 24px 0 13px;
  font-size: 25px;
}

.plan-grid article > p:not(.micro-label) {
  min-height: 78px;
  color: var(--muted);
  font-size: 14px;
}

.plan-grid ul {
  margin-top: 24px;
}

.plan-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.engagement-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10vw;
}

.engagement-list article {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.engagement-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.engagement-list > article > span {
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 12px;
}

.engagement-list h3 {
  margin: -3px 0 9px;
  font-size: 27px;
}

.engagement-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-section {
  background: #fff;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary span {
  position: relative;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.faq-list summary span::before,
.faq-list summary span::after {
  position: absolute;
  top: 12px;
  left: 7px;
  width: 11px;
  height: 1px;
  content: "";
  background: var(--blue-deep);
}

.faq-list summary span::after {
  transform: rotate(90deg);
  transition: transform 180ms ease;
}

.faq-list details[open] summary span::after {
  transform: rotate(0);
}

.faq-list details p {
  max-width: 720px;
  padding: 0 50px 27px 0;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Contact */
.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 9vw;
  align-items: start;
}

.contact-aside {
  position: sticky;
  top: 130px;
}

.contact-aside ol {
  padding: 0;
  margin: 0 0 50px;
  list-style: none;
}

.contact-aside li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-aside li:first-child {
  border-top: 1px solid var(--line);
}

.contact-aside li span {
  color: var(--blue-deep);
  font-family: var(--mono);
  font-size: 11px;
}

.contact-aside li p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
  text-decoration: none;
}

.contact-direct span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}

.contact-direct strong {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--blue-deep);
  color: var(--ink);
  font-size: 16px;
}

.contact-note {
  padding: 23px;
  border-left: 3px solid var(--blue-deep);
  background: var(--paper);
}

.contact-note strong {
  color: var(--ink);
  font-size: 14px;
}

.contact-note p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-wrap {
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid var(--line);
  background: var(--paper-warm);
}

.form-heading {
  margin-bottom: 45px;
}

.form-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(39px, 4vw, 59px);
}

.form-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-heading > p:last-child span {
  color: var(--blue-deep);
}

.project-form,
.auth-card form,
.request-dialog form:not(.dialog-close-form) {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.field-grid {
  display: grid;
  gap: 24px;
}

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

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.field label,
.field legend,
.service-fieldset legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field label span,
.service-fieldset legend span {
  color: var(--blue-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b9c7cf;
  border-radius: 0;
  color: var(--ink);
  outline: 0;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(22, 137, 196, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.service-fieldset {
  min-width: 0;
  padding: 0;
  margin: 2px 0 0;
  border: 0;
}

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

.choice-grid label {
  position: relative;
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-grid span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px 10px 42px;
  border: 1px solid #b9c7cf;
  color: var(--text);
  background: #fff;
  font-size: 13px;
}

.choice-grid span::before {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  border: 1px solid #94a8b4;
  content: "";
}

.choice-grid input:checked + span {
  border-color: var(--blue-deep);
  color: var(--ink);
  background: #eaf7fd;
}

.choice-grid input:checked + span::before {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  box-shadow: inset 0 0 0 3px #fff;
}

.choice-grid input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.field-meta {
  display: flex;
  min-height: 18px;
  justify-content: space-between;
}

.field-error {
  min-height: 1em;
  color: var(--error) !important;
  font-size: 11px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.consent-field input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue-deep);
}

.consent-field a {
  color: var(--ink);
}

.form-submit {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}

.form-submit p {
  max-width: 185px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-status,
.portal-message {
  padding: 14px 16px;
  border-left: 3px solid var(--blue-deep);
  color: var(--text);
  background: #eaf5fa;
  font-size: 13px;
}

.form-status.is-error,
.portal-message.is-error {
  border-left-color: var(--error);
  color: #742525;
  background: #fbecec;
}

.form-status.is-success,
.portal-message.is-success {
  border-left-color: var(--success);
  color: #145640;
  background: #e9f6f1;
}

.form-result-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  color: #c9d9e4;
  background: var(--ink);
}

.form-result {
  width: min(590px, 100%);
  padding: clamp(30px, 7vw, 62px);
  border: 1px solid var(--line-dark);
  background: var(--ink-soft);
}

.form-result h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(43px, 8vw, 66px);
}

.form-result > p:not(.kicker) {
  margin-bottom: 30px;
}

/* Legal and 404 */
.legal-hero {
  padding: 190px 0 90px;
}

.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(58px, 7vw, 100px);
}

.legal-content {
  padding: 100px 0 130px;
  background: #fff;
}

.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 9vw;
  justify-content: center;
}

.legal-grid aside {
  position: sticky;
  top: 130px;
  display: flex;
  align-self: start;
  flex-direction: column;
  padding-top: 8px;
}

.legal-grid aside > span {
  margin-bottom: 17px;
  color: var(--blue-deep);
}

.legal-grid aside a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-grid aside a:hover {
  color: var(--ink);
}

.legal-grid article h2 {
  margin: 55px 0 18px;
  font-size: 31px;
  scroll-margin-top: 130px;
}

.legal-grid article h2:first-of-type {
  margin-top: 45px;
}

.legal-grid article p {
  color: var(--muted);
}

.legal-grid article a {
  color: var(--blue-deep);
}

.legal-intro {
  color: var(--text) !important;
  font-size: 24px;
  line-height: 1.5;
}

.not-found {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.not-found-grid {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: 1fr 0.8fr;
  gap: 8vw;
  align-items: center;
  padding: 90px 0;
}

.not-found h1 {
  font-size: clamp(58px, 7vw, 100px);
}

.not-found p:not(.eyebrow) {
  margin-bottom: 32px;
  color: #b0c4d1;
}

.error-map {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(139, 216, 255, 0.24) 1px, transparent 1px);
  background-size: 18px 18px;
}

.error-map b {
  color: rgba(139, 216, 255, 0.13);
  font-family: var(--display);
  font-size: 190px;
  letter-spacing: -0.08em;
}

.error-map i {
  position: absolute;
  right: 25px;
  bottom: 22px;
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.error-line {
  position: absolute;
  display: block;
  height: 1px;
  background: var(--blue);
  transform-origin: left;
}

.line-one {
  top: 22%;
  left: 0;
  width: 75%;
  transform: rotate(19deg);
}

.line-two {
  top: 50%;
  left: 28%;
  width: 90%;
  transform: rotate(-35deg);
}

.line-three {
  bottom: 18%;
  left: 8%;
  width: 44%;
  transform: rotate(-8deg);
}

/* Client portal auth */
.portal-page {
  color-scheme: only light;
  background: var(--paper);
}

.portal-page #main-content,
.portal-shell {
  min-height: 100vh;
}

.portal-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  color: var(--muted);
  background: var(--paper);
}

.portal-shell [hidden] {
  display: none !important;
}

.portal-loading img {
  margin-bottom: 18px;
}

.portal-loading p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-auth {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(440px, 0.92fr) minmax(520px, 1.08fr);
}

.portal-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 45px clamp(40px, 6vw, 100px) 50px;
  overflow: hidden;
  color: #bdd0dc;
  background: var(--ink);
}

.portal-auth-brand::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  opacity: 0.45;
  background-image: linear-gradient(rgba(92, 155, 192, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 155, 192, 0.09) 1px, transparent 1px);
  background-size: 65px 65px;
  mask-image: linear-gradient(135deg, transparent, #000);
}

.portal-auth-brand > * {
  position: relative;
  z-index: 1;
}

.portal-back {
  align-self: flex-start;
  color: #a9bfcc;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.portal-auth-brand h1 {
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(56px, 6vw, 90px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.portal-auth-brand h1 em {
  color: var(--blue-bright);
  font-family: var(--serif);
  font-weight: 400;
}

.portal-auth-brand > div > p:last-child {
  max-width: 520px;
  font-size: 18px;
}

.auth-feature-list {
  display: flex;
  gap: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
}

.auth-feature-list span {
  display: flex;
  gap: 9px;
  align-items: center;
}

.auth-feature-list i {
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.portal-auth-panel {
  display: grid;
  place-items: center;
  padding: 60px;
  background: var(--paper);
}

.auth-card {
  width: min(430px, 100%);
  padding: 48px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 48, 65, 0.08);
}

.auth-card > img {
  width: 225px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  padding: 10px;
  margin-bottom: 54px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 21, 30, 0.25);
}

.auth-card > img[src*="brand-mark"] {
  width: 54px;
}

.auth-card h2 {
  margin-bottom: 12px;
  font-size: 39px;
}

.auth-card > p:not(.micro-label):not(.auth-help) {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.auth-card form {
  gap: 21px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row label {
  margin: 0;
}

.inline-action {
  padding: 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
}

.auth-return {
  margin-top: 25px;
}

.auth-help {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-help a {
  color: var(--blue-deep);
}

.mfa-card {
  width: min(500px, 100%);
}

.mfa-card > img[src*="brand-mark"] {
  margin-bottom: 32px;
}

.mfa-enrollment {
  padding: 18px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.mfa-qr-wrap {
  display: grid;
  width: min(240px, 100%);
  aspect-ratio: 1;
  place-items: center;
  padding: 12px;
  margin: 0 auto 14px;
  background: #fff;
}

.mfa-qr-wrap img {
  width: 100%;
  height: 100%;
}

.mfa-enrollment > p,
.mfa-enrollment details {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mfa-enrollment details {
  margin-top: 12px;
}

.mfa-enrollment summary {
  color: var(--blue-deep);
  cursor: pointer;
  font-weight: 800;
}

.mfa-enrollment code {
  display: block;
  padding: 10px;
  margin-top: 6px;
  overflow-wrap: anywhere;
  border: 1px dashed var(--blue-mid);
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

#mfa-code {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
}

.portal-demo-link {
  display: flex;
  min-height: 49px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #9fb4c6;
  color: var(--ink);
  background: #f6f8fa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.portal-demo-link:hover {
  border-color: var(--blue);
  background: #eaf2fb;
  transform: translateY(-1px);
}

.request-control-note {
  margin: -4px 0 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue-deep);
  color: var(--muted);
  background: #edf3f8;
  font-size: 11px;
  line-height: 1.55;
}

.contact-availability {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.contact-availability legend {
  padding: 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contact-availability > p {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.availability-group {
  display: grid;
  gap: 8px;
}

.availability-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.availability-options {
  display: grid;
  gap: 7px;
}

.availability-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

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

.availability-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.availability-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.availability-options span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #aebfca;
  color: var(--ink);
  background: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.availability-times span {
  min-height: 66px;
  flex-direction: column;
  gap: 4px;
  font-family: inherit;
}

.availability-times strong {
  font-size: 12px;
}

.availability-times small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.availability-options input:checked + span {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16);
}

.availability-options input:checked + span small {
  color: #dceeff;
}

.availability-options input:focus-visible + span {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}

.availability-options label:hover span {
  border-color: var(--blue-deep);
}

/* Dashboard */
.portal-dashboard {
  min-height: 100vh;
  padding-left: 260px;
  background: var(--paper);
}

.dashboard-sidebar {
  position: fixed;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 260px;
  flex-direction: column;
  padding: 30px 22px;
  color: #afc4d1;
  background: var(--ink);
}

.dashboard-logo {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 65px;
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.94;
  text-decoration: none;
}

.dashboard-logo img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 15, 30, 0.3);
}

.dashboard-logo small {
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.11em;
}

.dashboard-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-nav {
  display: flex;
  min-height: 54px;
  gap: 13px;
  align-items: center;
  padding: 10px 13px;
  border: 0;
  color: #9eb5c4;
  background: transparent;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.dashboard-nav span {
  width: 20px;
  color: var(--blue-bright);
  font-size: 21px;
  font-weight: 400;
  text-align: center;
}

.dashboard-nav:hover,
.dashboard-nav.is-active {
  color: #fff;
  background: rgba(139, 216, 255, 0.11);
}

.dashboard-side-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.dashboard-side-bottom a,
.dashboard-side-bottom button {
  padding: 8px 3px;
  border: 0;
  color: #93acbc;
  background: transparent;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
}

.dashboard-side-bottom a:hover,
.dashboard-side-bottom button:hover {
  color: var(--blue-bright);
}

.dashboard-main {
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 clamp(28px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.dashboard-header > div {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.dashboard-header .micro-label {
  margin: 0;
  font-size: 14px;
}

.dashboard-header strong {
  color: var(--ink);
  font-size: 16px;
}

.workspace-role-badge {
  padding: 7px 10px;
  border: 1px solid #0757e8;
  color: #fff;
  background: #0757e8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.portal-dashboard.is-admin-workspace .dashboard-sidebar {
  background: #03172b;
  box-shadow: inset -3px 0 0 #1478ff;
}

.portal-dashboard.is-admin-workspace .dashboard-header {
  border-bottom-color: rgba(20, 120, 255, 0.35);
  background: rgba(238, 246, 255, 0.92);
}

.portal-dashboard.is-admin-workspace #admin-panel > .dashboard-welcome {
  padding: clamp(28px, 4vw, 54px);
  margin: 0 0 28px;
  color: #fff;
  background: linear-gradient(120deg, #03172b, #073b70 64%, #0757e8);
}

.portal-dashboard.is-admin-workspace #admin-panel > .dashboard-welcome h1,
.portal-dashboard.is-admin-workspace #admin-panel > .dashboard-welcome p {
  color: inherit;
}

.portal-dashboard.is-admin-workspace #admin-panel > .dashboard-welcome .kicker {
  color: #8bd8ff;
}

.portal-dashboard .kicker,
.portal-dashboard .micro-label {
  font-size: 16px;
}

.portal-dashboard .dashboard-header .micro-label {
  font-size: 14px;
}

.account-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--blue-bright);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-menu {
  display: none;
}

.dashboard-message {
  max-width: 1200px;
  margin: 22px auto -10px;
}

.dashboard-panel {
  max-width: 1340px;
  padding: 66px clamp(28px, 5vw, 70px) 90px;
  margin: 0 auto;
}

.dashboard-welcome,
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.dashboard-welcome h1,
.panel-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 4vw, 60px);
}

.dashboard-welcome > div > p:last-child,
.panel-heading > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.dashboard-stats {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

#admin-panel .dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats article {
  position: relative;
  display: flex;
  min-height: 155px;
  flex-direction: column;
  padding: 25px 27px;
  border: 1px solid var(--line);
  background: #fff;
}

.dashboard-stats article::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  content: "";
  background: var(--blue-deep);
}

.dashboard-stats article > span,
.request-filter span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.dashboard-stats strong {
  margin: auto 0 1px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 41px;
  line-height: 1;
}

.dashboard-stats .stat-plan {
  font-size: 24px;
}

.dashboard-stats small {
  color: var(--muted);
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.dashboard-card {
  padding: 29px;
  border: 1px solid var(--line);
  background: #fff;
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.owner-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 920px;
}

.owner-setting-copy h2 {
  margin: 7px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.owner-setting-copy > p:not(.micro-label) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.owner-setting-copy .owner-setting-note {
  margin-top: 16px;
  font-size: 14px;
}

.owner-setting-control {
  min-width: 225px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.owner-setting-switch {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.owner-setting-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.owner-setting-switch span {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid #8299a8;
  border-radius: 999px;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.owner-setting-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6e8492;
  content: "";
  transition: transform 160ms ease, background-color 160ms ease;
}

.owner-setting-switch input:checked + span {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.owner-setting-switch input:checked + span::after {
  background: #fff;
  transform: translateX(20px);
}

.owner-setting-switch input:focus-visible + span {
  outline: 3px solid var(--blue-soft);
  outline-offset: 3px;
}

.owner-setting-control p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.card-heading,
.request-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.card-heading .micro-label {
  margin-bottom: 5px;
  font-size: 16px;
}

.card-heading h2 {
  margin: 0;
  font-size: 25px;
}

.card-heading button {
  padding: 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.inbox-filters button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-warm);
  font: 600 15px/1.4 var(--body);
  cursor: pointer;
}

.inbox-filters button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.site-list,
.request-list {
  display: flex;
  flex-direction: column;
}

.site-item {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e1e7ea;
}

.site-item:last-child {
  border-bottom: 0;
}

.site-item-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue-deep);
  background: #eaf5fa;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.site-item strong,
.request-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-item small,
.request-item small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-item a {
  color: var(--blue-deep);
  font-size: 17px;
  text-decoration: none;
}

.site-item-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-record-dialog .button-danger,
.admin-request-controls .button-danger {
  margin-top: 10px;
}

.site-review-button {
  padding: 7px 10px;
  border: 1px solid #b8c8d3;
  color: var(--blue-deep);
  background: #f5f8fa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-review-button:hover {
  border-color: var(--blue-deep);
  background: #e9f2f9;
}

.request-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #e1e7ea;
}

.request-item:last-child {
  border-bottom: 0;
}

.request-date {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.request-list-full .request-item {
  grid-template-columns: 1fr auto auto;
  min-height: 72px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: #4c6473;
  background: #eaf0f3;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge[data-status="in_progress"] {
  color: #0b618b;
  background: #e1f3fc;
}

.status-badge[data-status="completed"] {
  color: #176f54;
  background: #e5f5ef;
}

.status-badge[data-status="needs_input"] {
  color: #8a5d0d;
  background: #fff3d9;
}

.empty-state {
  padding: 28px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.request-filter {
  margin-bottom: 0;
}

.request-filter strong {
  color: var(--ink);
  font-size: 16px;
}

.current-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px;
  margin-bottom: 46px;
  border-top: 4px solid var(--blue-deep);
  color: #b9ccd8;
  background: var(--ink);
}

.current-plan-card h2 {
  margin: 5px 0 12px;
  color: #fff;
  font-size: 34px;
}

.current-plan-card p:not(.micro-label) {
  max-width: 570px;
  margin: 0;
  font-size: 13px;
}

.current-plan-card > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.current-plan-card > div:last-child strong {
  color: #fff;
  font-size: 30px;
}

.current-plan-card > div:last-child span {
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.plan-options-label {
  margin-bottom: 17px;
}

.portal-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: 14px;
}

.portal-plan {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--line);
  background: #fff;
}

.portal-plan h3 {
  margin: 14px 0 6px;
  font-size: 24px;
}

.portal-plan-price {
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
}

.portal-plan-price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.portal-plan p {
  color: var(--muted);
  font-size: 12px;
}

.portal-plan ul {
  padding: 0;
  margin: 8px 0 24px;
  list-style: none;
}

.portal-plan li {
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
}

.portal-plan li::before {
  margin-right: 7px;
  color: var(--blue-deep);
  content: "+";
}

.portal-plan .button {
  min-height: 43px;
  margin-top: auto;
  font-size: 11px;
}

.portal-plan-change {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.portal-plan .portal-plan-change .button {
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.35;
}

.portal-plan .portal-plan-change p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.billing-security {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--blue-deep);
  background: #e6edf1;
}

.billing-security span {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.billing-security p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.portal-invoice-card {
  max-width: 760px;
  margin-top: 28px;
}

.billing-organization-control {
  display: grid;
  max-width: 760px;
  gap: 8px;
  padding: 18px 20px;
  margin: -20px 0 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.billing-organization-control label,
.admin-record-group h3 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.billing-organization-control p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.admin-record-group + .admin-record-group {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.admin-record-group h3 {
  margin: 0 0 10px;
}

.admin-command-center {
  margin: 28px 0;
}

.admin-command-center > .card-heading {
  align-items: end;
}

.admin-command-center > .card-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.admin-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.admin-operation {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-operation summary {
  display: flex;
  min-height: 64px;
  padding: 20px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}

.admin-operation summary::-webkit-details-marker {
  display: none;
}

.admin-operation summary span {
  color: var(--blue-deep);
  font-family: var(--mono);
}

.admin-operation[open] summary {
  color: #fff;
  background: var(--ink);
}

.admin-operation[open] summary span {
  color: var(--blue-soft);
  transform: rotate(45deg);
}

.admin-operation form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-top: 1px solid var(--line);
}

.invoice-line-items {
  display: grid;
  gap: 8px;
}

.invoice-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 110px 34px;
  gap: 7px;
}

.invoice-line-row input {
  min-width: 0;
}

.invoice-line-remove {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 18px;
}

.invoice-line-add {
  justify-self: start;
  margin-top: 8px;
}

.meeting-dialog {
  width: min(600px, calc(100vw - 40px));
}

.request-detail-dialog {
  width: min(1080px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  padding: 40px;
  overflow: auto;
  border: 0;
  color: var(--text);
  background: #f7f8f6;
  box-shadow: 0 30px 90px rgba(0, 10, 20, .38);
}

.request-detail-dialog::backdrop {
  background: rgba(3, 16, 26, .82);
  backdrop-filter: blur(3px);
}

.request-detail-heading {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 52px 25px 0;
  border-bottom: 1px solid var(--line);
}

.request-detail-heading h2 {
  margin: 5px 0 7px;
  font-size: clamp(30px, 3.2vw, 47px);
}

.request-detail-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.request-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr);
  gap: 30px;
  padding-top: 28px;
}

.request-original,
.request-quote-card,
.admin-request-controls,
.annotation-detail {
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.annotation-record-preview {
  position: relative;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfe7ec;
}

.annotation-record-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  pointer-events: none;
}

.annotation-record-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #1467ff;
  box-shadow: 0 5px 18px rgba(0, 21, 56, .42);
  font-family: var(--mono);
  font-size: 10px;
  transform: translate(-50%, -50%);
}

.request-original {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.annotation-detail {
  position: relative;
  min-height: 120px;
  margin-top: 16px;
  border-left: 4px solid var(--blue-deep);
}

.annotation-detail h3,
.request-quote-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.annotation-detail p,
.request-quote-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.annotation-coordinate {
  display: inline-flex;
  padding: 5px 8px;
  color: var(--blue-deep);
  background: #eaf2f8;
  font-family: var(--mono);
  font-size: 9px;
}

.request-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}

.request-message {
  max-width: 88%;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.request-message[data-direction="outbound"] {
  align-self: flex-end;
  border-color: #b7d8ee;
  background: #eaf5fb;
}

.request-message[data-direction="internal"] {
  border-style: dashed;
  background: #fff5d9;
}

.request-message strong,
.request-message time {
  display: block;
  font-size: 10px;
}

.request-message time {
  margin-top: 8px;
  color: var(--muted);
}

.request-message p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
}

#request-reply-form,
.admin-request-controls {
  display: grid;
  gap: 14px;
}

.admin-request-controls {
  margin-top: 16px;
}

.internal-note-control {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.internal-note-control input {
  width: 16px;
  height: 16px;
}

.quote-actions {
  display: flex;
  gap: 9px;
  margin-top: 16px;
}

.request-item-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.request-item-button:hover strong,
.request-item-button:focus-visible strong {
  color: var(--blue-deep);
}

/* Request dialog */
.request-dialog {
  width: min(650px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 46px;
  overflow: auto;
  border: 0;
  color: var(--text);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 10, 20, 0.32);
}

.request-dialog::backdrop {
  background: rgba(3, 16, 26, 0.76);
  backdrop-filter: blur(3px);
}

.dialog-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
}

.dialog-close-form button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 23px;
}

.dialog-heading {
  margin-bottom: 31px;
}

.dialog-heading h2 {
  margin-bottom: 11px;
  font-size: 37px;
}

.dialog-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.annotation-dialog {
  width: min(1120px, calc(100vw - 34px));
  max-height: calc(100dvh - 34px);
  padding: 36px;
  overflow: auto;
  border: 0;
  color: var(--text);
  background: #f7f8f6;
  box-shadow: 0 30px 90px rgba(0, 10, 20, .38);
}

.annotation-dialog::backdrop {
  background: rgba(3, 16, 26, .82);
  backdrop-filter: blur(3px);
}

.annotation-heading {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  padding-right: 50px;
  margin-bottom: 22px;
}

.annotation-heading h2 {
  margin: 5px 0 8px;
  font-size: clamp(29px, 3.2vw, 44px);
}

.annotation-heading p:last-child,
.annotation-help {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.annotation-heading a {
  flex: none;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
}

.annotation-heading-actions {
  display: flex;
  flex: none;
  gap: 14px;
  align-items: center;
}

.annotation-heading-actions .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 11px;
}

.annotation-preview {
  position: relative;
  height: auto;
  min-height: 0;
  margin: 20px 0 14px;
  overflow: hidden;
  border: 1px solid #91a8b8;
  background: #dfe7ec;
}

.annotation-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: #fff;
}

.annotation-surface {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: crosshair;
  background: transparent;
}

.annotation-surface[hidden] {
  display: none;
}

/* Picture messages use the same private conversation in client and admin views. */
.request-conversation { min-width: 0; }
.message-composer-row { display: flex; gap: 12px; align-items: flex-end; }
.message-composer-row .field { flex: 1; min-width: 0; margin: 0; }
.message-composer-row textarea { min-height: 72px; max-height: 180px; resize: vertical; }
.message-composer-row > button { min-width: 88px; min-height: 48px; }
.message-composer-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.message-attach-button {
  display: inline-flex; gap: 6px; align-items: center; min-height: 44px;
  padding: 6px 12px; border: 1px solid #cbd7e3; border-radius: 10px;
  background: #fff; color: #244e76; font: 600 16px/1.4 var(--body); cursor: pointer;
}
.message-attach-button:disabled { opacity: .55; cursor: default; }
#message-attachment-help { flex: 1 1 220px; color: #53667a; font: 14px/1.4 var(--body); }
.message-attachment-drafts { display: flex; flex-wrap: wrap; gap: 12px; }
.message-attachment-draft { position: relative; width: 92px; min-width: 0; }
.message-attachment-draft img { display: block; width: 92px; height: 70px; object-fit: contain; border: 1px solid #d3e0eb; border-radius: 8px; background: #f0f5fa; }
.message-attachment-draft small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px/1.4 var(--body); }
.message-attachment-draft button {
  position: absolute; top: -8px; right: -8px; width: 32px; height: 32px;
  border: 1px solid #bdccdb; border-radius: 50%; background: #fff; color: #163b60;
  font-size: 22px; cursor: pointer;
}
.message-pictures { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.message-picture { display: block; width: min(340px, 100%); overflow-wrap: anywhere; color: inherit; }
.message-picture img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; border-radius: 10px; background: #eff3f7; }
.message-picture span { display: block; padding-top: 6px; font: 14px/1.4 var(--body); text-decoration: underline; }
.picture-unavailable::before { content: 'Picture unavailable. Open to try again.'; display: block; padding: 16px; font-size: 15px; }

.annotation-preview[hidden],
.annotation-dialog button[hidden] {
  display: none;
}

.annotation-instructions {
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: #eef5fb;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.annotation-instructions p { margin: 6px 0; }

.annotation-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 18px 0;
}

.annotation-tools .field {
  flex: 1 1 280px;
  min-width: 0;
}

.annotation-tools input { max-width: 100%; }

.annotation-surface:focus-visible {
  outline: 4px solid #1467ff;
  outline-offset: -4px;
}

.annotation-record-preview > p { padding: 16px; }

.annotation-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #1467ff;
  box-shadow: 0 5px 18px rgba(0, 21, 56, .42);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.annotation-marker[hidden] {
  display: none;
}

.annotation-help {
  padding: 10px 0 18px;
}

.annotation-dialog #annotation-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.annotation-dialog #annotation-form > .field {
  grid-column: 1 / -1;
}

.annotation-dialog #annotation-form[hidden] {
  display: none;
}

.annotation-dialog #annotation-form .field,
.annotation-dialog #annotation-form .request-control-note {
  grid-column: 1;
}

.annotation-dialog #annotation-form > .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
}

/* Responsive */
@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 64px, 1100px);
  }

  .header-inner {
    grid-template-columns: 210px 1fr auto;
  }

  .brand {
    width: 210px;
  }

  .desktop-nav {
    gap: 24px;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.8fr);
    gap: 5vw;
  }

  .hero-copy h1 {
    font-size: clamp(56px, 6.7vw, 80px);
  }

  .board-canvas {
    min-height: 370px;
  }

  .work-grid {
    grid-template-columns: 1fr 0.72fr;
  }

  .visual-marketing {
    padding-inline: 27px;
  }

  .work-meta {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .work-meta .circle-link {
    display: none;
  }

  .portal-auth {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .portal-auth-panel {
    padding: 35px;
  }

  .portal-auth-brand {
    padding-inline: 45px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 78px;
    --shell: min(100% - 46px, 820px);
  }

  .section {
    padding: 95px 0;
  }

  .site-header {
    height: var(--header-height);
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .brand {
    width: 202px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    background: transparent;
  }

  .menu-toggle i {
    width: 19px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] i:first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i:last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    z-index: 99;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px max(23px, calc((100vw - min(100% - 46px, 820px)) / 2));
    background: #031224;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav > a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line-dark);
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-nav > a[aria-current="page"] {
    color: var(--blue-bright);
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 10px;
    margin-top: auto;
  }

  .mobile-nav .mobile-demo,
  .mobile-nav .mobile-portal {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-nav .mobile-demo {
    justify-content: center;
    border: 1px solid rgba(139, 197, 255, 0.7);
    color: var(--blue-bright);
  }

  .mobile-nav .mobile-portal {
    background: linear-gradient(135deg, #a9d6ff 0%, #69aaff 100%);
    box-shadow: 0 10px 24px rgba(17, 70, 160, 0.3);
    color: var(--ink);
  }

  .mobile-nav .mobile-portal span {
    line-height: 1;
  }

  .hero-home {
    min-height: 0;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 68px;
    padding: 140px 0 90px;
  }

  .hero-copy h1 {
    max-width: 720px;
    font-size: clamp(59px, 10vw, 86px);
  }

  .build-board {
    width: min(620px, 100%);
    justify-self: end;
  }

  .proof-grid > div {
    padding-inline: 18px;
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading {
    margin-bottom: 50px;
  }

  .service-row {
    grid-template-columns: 48px minmax(210px, 0.8fr) 1fr 45px;
    gap: 18px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .work-visual,
  .work-card:not(.work-card-wide) .work-visual {
    min-height: 500px;
  }

  .work-meta-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .work-meta-stack .text-link {
    margin-top: 0;
    justify-self: start;
  }

  .process-layout,
  .portal-callout-grid,
  .story-grid,
  .founder-grid,
  .fit-grid,
  .service-detail-grid,
  .engagement-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .process-intro,
  .contact-aside {
    position: static;
  }

  .portal-callout-grid {
    gap: 65px;
  }

  .closing-grid {
    grid-template-columns: 1fr auto;
  }

  .closing-grid .kicker {
    grid-column: 1 / -1;
  }

  .footer-main {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    padding-top: 34px;
    border-top: 1px solid var(--line-dark);
  }

  .page-hero-grid {
    min-height: 570px;
    grid-template-columns: 1fr;
    gap: 40px;
    align-content: end;
  }

  .page-hero-lede {
    max-width: 650px;
  }

  .story-mark {
    width: min(430px, 85%);
    justify-self: center;
  }

  .service-stamp {
    width: 125px;
    height: 125px;
  }

  .service-stamp span {
    font-size: 40px;
  }

  .plan-grid,
  .portal-plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid article > p:not(.micro-label) {
    min-height: 0;
  }

  .legal-grid {
    grid-template-columns: 180px 1fr;
    gap: 6vw;
  }

  .portal-auth {
    grid-template-columns: 1fr;
  }

  .portal-auth-brand {
    min-height: 520px;
    padding: 35px 8vw 45px;
  }

  .portal-auth-brand h1 {
    font-size: clamp(55px, 10vw, 85px);
  }

  .portal-auth-panel {
    min-height: 620px;
    padding: 65px 25px;
  }

  .portal-dashboard {
    padding-left: 0;
  }

  .dashboard-sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .portal-dashboard.menu-visible .dashboard-sidebar {
    transform: none;
    box-shadow: 20px 0 60px rgba(0, 10, 20, 0.2);
  }

  .dashboard-header {
    justify-content: space-between;
  }

  .dashboard-menu {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
  }

  .dashboard-menu span {
    width: 18px;
    height: 1px;
    background: var(--ink);
  }

  .dashboard-header > div {
    margin-left: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  #admin-panel .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 36px);
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 76px 0;
  }

  .brand {
    width: 180px;
  }

  .eyebrow {
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 35px;
  }

  .eyebrow span:first-child::after {
    display: none;
  }

  .eyebrow span {
    width: 100%;
  }

  .hero-grid {
    gap: 55px;
    padding-top: 122px;
  }

  .hero-copy h1,
  .page-hero h1,
  .not-found h1 {
    font-size: clamp(50px, 16vw, 69px);
  }

  .button-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .board-canvas {
    min-height: 300px;
  }

  .browser-block {
    top: 70px;
    width: 79%;
  }

  .browser-page {
    min-height: 180px;
  }

  .board-note-two,
  .board-footer span:nth-child(2),
  .board-footer span:nth-child(3) {
    display: none;
  }

  .board-note-three {
    bottom: 18px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
    padding: 20px 0;
  }

  .proof-grid > div,
  .proof-grid > div:first-child,
  .proof-grid > div:last-child {
    min-height: 68px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .proof-grid > div:last-child {
    border-bottom: 0;
  }

  .split-heading h2,
  .process-intro h2,
  .portal-callout h2,
  .fit-grid h2,
  .engagement-grid h2,
  .faq-grid h2,
  .founder-grid h2,
  .service-main h2,
  .story-copy h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .service-row {
    min-height: 130px;
    grid-template-columns: 35px 1fr 40px;
    gap: 11px;
    padding: 22px 0;
  }

  .service-row:hover {
    padding-inline: 8px;
  }

  .service-description {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .service-arrow {
    width: 38px;
    height: 38px;
  }

  .work-visual,
  .work-card:not(.work-card-wide) .work-visual {
    min-height: 355px;
  }

  .visual-marketing,
  .visual-portal {
    padding: 50px 15px 0;
  }

  .site-preview,
  .portal-preview {
    height: 320px;
  }

  .preview-hero {
    height: 175px;
  }

  .preview-hero strong {
    font-size: 26px;
  }

  .work-meta-stack {
    display: flex;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
    gap: 13px;
  }

  .workspace-body {
    min-height: 260px;
    grid-template-columns: 25% 75%;
  }

  .workspace-content {
    padding: 25px 15px;
  }

  .closing-cta {
    padding: 80px 0;
  }

  .closing-grid {
    grid-template-columns: 1fr;
  }

  .closing-grid h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .closing-grid .button {
    justify-self: start;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px 24px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 25px 0;
  }

  .page-hero,
  .page-hero-grid {
    min-height: 570px;
  }

  .page-hero-grid {
    padding: 145px 0 72px;
  }

  .principle-grid,
  .deliverables-grid,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 250px;
    padding: 30px;
  }

  .principle-grid h3 {
    margin-top: 45px;
  }

  .founder-signoff {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .service-jump {
    grid-template-columns: 1fr;
  }

  .service-jump a,
  .service-jump a:first-child {
    padding: 15px;
    border-right: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    border-left: 1px solid var(--line-dark);
  }

  .service-detail {
    padding: 80px 0;
  }

  .service-detail-grid {
    gap: 40px;
  }

  .service-stamp {
    width: 105px;
    height: 105px;
  }

  .plan-grid article {
    padding: 28px 23px;
  }

  .engagement-list article {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .contact-grid {
    gap: 52px;
  }

  .form-wrap {
    width: calc(100% + 20px);
    margin-left: -10px;
  }

  .field-grid-two,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .form-submit {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero {
    padding: 150px 0 70px;
  }

  .legal-content {
    padding: 70px 0 90px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid aside {
    display: none;
  }

  .not-found-grid {
    grid-template-columns: 1fr;
  }

  .error-map {
    min-height: 280px;
  }

  .error-map b {
    font-size: 130px;
  }

  .portal-auth-brand {
    min-height: 600px;
    padding: 28px 24px 35px;
  }

  .auth-feature-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .portal-auth-panel {
    min-height: 570px;
    padding: 45px 18px;
  }

  .auth-card {
    padding: 34px 25px;
  }

  .auth-card > img {
    margin-bottom: 42px;
  }

  .dashboard-header {
    padding: 0 17px;
  }

  .dashboard-panel {
    padding: 45px 17px 70px;
  }

  .dashboard-welcome,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  #admin-panel .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stats article {
    min-height: 125px;
  }

  .request-list-full .request-item {
    grid-template-columns: 1fr auto;
  }

  .request-list-full .request-item time {
    display: none;
  }

  .current-plan-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 23px;
  }

  .current-plan-card > div:last-child {
    align-items: flex-start;
    text-align: left;
  }

  .billing-security {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .request-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    padding: 52px 22px 30px;
    margin: 0;
  }

  .contact-availability {
    padding: 16px 12px;
  }

  .availability-options {
    gap: 5px;
  }

  .availability-days span {
    min-height: 38px;
    padding: 5px 2px;
    font-size: 9px;
  }

  .availability-times {
    grid-template-columns: 1fr;
  }
}

/* Capability-led brand refinement */
.hero::before {
  opacity: 0.18;
  background-size: 120px 120px;
}

.hero-rule {
  width: 30%;
  height: 3px;
}

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

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-brand img {
  width: min(270px, 100%);
}

.heading-accent {
  display: block;
  color: var(--blue-bright);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(52px, 5.4vw, 84px);
  line-height: 0.96;
}

.capability-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 28px 26px;
  border: 1px solid rgba(139, 197, 255, 0.24);
  color: #d8e6ef;
  background: rgba(4, 21, 43, 0.88);
  box-shadow: 0 24px 50px rgba(0, 8, 17, 0.2);
}

.capability-panel::after {
  display: none;
}

.capability-panel-kicker {
  margin-bottom: 14px;
  color: var(--blue-bright);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.capability-panel h2 {
  max-width: 510px;
  margin: 0 0 28px;
  font-size: clamp(27px, 2.5vw, 39px);
  line-height: 1.05;
}

.capability-panel .capability-compact {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.capability-panel .capability-compact li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid rgba(139, 197, 255, 0.18);
}

.capability-panel .capability-compact li strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
}

.capability-panel .capability-compact li span {
  color: #9eb6c7;
  font-size: 11px;
  line-height: 1.35;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
}

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

.work-visual,
.work-card:not(.work-card-wide) .work-visual {
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid rgba(139, 197, 255, 0.24);
  background: #07162a;
}

.visual-marketing::before {
  content: none;
}

.work-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 320ms ease, filter 320ms ease;
}

.work-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 8, 21, 0.2), transparent 35%, rgba(2, 8, 21, 0.35));
}

.work-visual:hover .work-screenshot {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.018);
}

.visual-label,
.visual-portal .visual-label {
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(3, 18, 36, 0.9);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-visit {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  color: #fff;
  background: rgba(3, 18, 36, 0.92);
  font-size: 11px;
  font-weight: 700;
}

.work-visit i {
  color: var(--blue-bright);
  font-size: 15px;
  font-style: normal;
}

.work-meta,
.work-meta-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 22px;
  padding-top: 24px;
}

.work-meta > p {
  max-width: 580px;
  grid-column: 1 / -1;
}

.work-meta > a {
  align-self: center;
  grid-column: 2;
  grid-row: 1;
}

.portal-loading img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

@media (max-width: 1120px) {
  .capability-panel {
    width: min(640px, 100%);
    justify-self: end;
  }
}

@media (max-width: 920px) {
  .capability-panel {
    width: min(680px, 100%);
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .work-visual,
  .work-card:not(.work-card-wide) .work-visual {
    min-height: 0;
    padding: 0;
  }
}

@media (max-width: 600px) {
  .hero-copy h1 {
    font-size: clamp(45px, 13.5vw, 62px);
    line-height: 0.98;
  }

  .page-hero h1,
  .not-found h1 {
    font-size: clamp(38px, 10vw, 46px);
    line-height: 1;
  }

  .capability-panel {
    padding: 22px 20px 18px;
  }

  .capability-panel .capability-compact {
    grid-template-columns: 1fr;
  }

  .work-visual,
  .work-card:not(.work-card-wide) .work-visual {
    min-height: 0;
    padding: 0;
  }

  .work-meta,
  .work-meta-stack {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-meta > a {
    display: none;
  }

  .visual-label,
  .visual-portal .visual-label {
    top: 10px;
    left: 10px;
  }

  .work-visit {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Capability-first visual system */
.brand-text {
  display: inline-flex;
  align-items: center;
  color: var(--ink, #f7f9fc);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.footer-brand strong {
  display: block;
  margin-bottom: 1rem;
  color: var(--paper, #f7f9fc);
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
}

.concept-grid figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0b1627;
  border: 1px solid rgba(10, 25, 49, .16);
}

.concept-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.concept-grid figcaption {
  padding: .75rem .85rem .85rem;
  color: #2a3a50;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hosting-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(19, 43, 76, .22);
  background: #fff;
}

.hosting-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #1c2c40;
  font-size: .94rem;
}

.hosting-table th,
.hosting-table td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(19, 43, 76, .12);
  text-align: left;
  vertical-align: middle;
}

.hosting-table thead th {
  background: #071a35;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hosting-table tbody th {
  width: 32%;
  font-weight: 700;
}

.hosting-table tbody td:not(:first-child) {
  font-weight: 600;
}

.hosting-table tbody tr:first-child th,
.hosting-table tbody tr:first-child td,
.hosting-table tbody tr:nth-child(2) th,
.hosting-table tbody tr:nth-child(2) td {
  background: #eef5ff;
  color: #071a35;
  font-weight: 700;
}

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

.hosting-note {
  max-width: 46rem;
  margin: 1.5rem 0 2rem;
  color: #506176;
}
@media (max-width: 600px) {
  .concept-grid { gap: .65rem; }
  .concept-grid figcaption { padding: .6rem; font-size: .62rem; }
}

@media (min-width: 901px) {
  .story-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 7vw;
  }
}

.website-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.website-service-cards article {
  min-height: 390px;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.website-service-cards .service-card-number {
  display: block;
  margin-bottom: 2.25rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .12em;
}

.website-service-cards .kicker {
  margin-bottom: .9rem;
}

.website-service-cards h3 {
  max-width: 18rem;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.website-service-cards article > p:not(.kicker) {
  color: var(--muted);
}

.website-service-cards ul {
  display: grid;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: .86rem;
}

.website-service-cards li::before {
  margin-right: .55rem;
  color: var(--accent);
  content: "✓";
}

.website-service-cards a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.website-investment {
  border-top: 1px solid var(--line);
}

.website-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.website-pricing-grid article {
  display: flex;
  min-height: 500px;
  padding: 2rem;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .54);
}

.website-pricing-grid .website-pricing-featured {
  background: #fff;
  box-shadow: inset 0 4px 0 var(--accent);
}

.website-pricing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.website-pricing-heading p {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.website-price {
  display: grid;
  gap: .25rem;
  margin: 3rem 0 1.35rem;
}

.website-price small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.website-price strong {
  color: var(--text);
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.website-pricing-fit {
  min-height: 6.25rem;
  color: var(--muted);
}

.website-pricing-grid ul {
  display: grid;
  gap: .75rem;
  margin: auto 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text);
  font-size: .9rem;
}

.website-pricing-grid li::before {
  margin-right: .6rem;
  color: var(--accent);
  content: "+";
}

.website-pricing-note {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 7rem);
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.website-pricing-note p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.website-pricing-note .kicker {
  color: var(--text);
}

.services-work {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.work-grid-vertical {
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.work-grid-vertical .work-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .9fr);
  gap: 2.5rem;
  align-items: center;
}

.work-grid-vertical .work-visual {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.work-grid-vertical .work-meta,
.work-grid-vertical .work-meta-stack {
  display: block;
  padding: 0;
}

.work-grid-vertical .work-meta h3 {
  margin-bottom: .85rem;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
}

.work-grid-vertical .work-meta > p {
  margin: 0 0 1.5rem;
}

@media (max-width: 760px) {
  .admin-operation-grid {
    grid-template-columns: 1fr;
  }

  .invoice-line-row {
    grid-template-columns: minmax(0, 1fr) 64px 96px 34px;
  }

  .admin-command-center > .card-heading {
    align-items: flex-start;
  }

  .admin-command-center > .card-heading > p {
    text-align: left;
  }

  .work-grid-vertical .work-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .annotation-dialog {
    width: calc(100vw - 18px);
    padding: 24px 16px;
  }

  .request-detail-dialog {
    width: calc(100vw - 18px);
    padding: 30px 16px;
  }

  .request-detail-layout {
    grid-template-columns: 1fr;
  }

  .request-detail-heading {
    display: block;
    padding-right: 38px;
  }

  .annotation-heading {
    display: block;
    padding-right: 38px;
  }

  .annotation-heading a {
    display: inline-block;
    margin-top: 0;
  }

  .annotation-heading-actions {
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .annotation-preview {
    height: auto;
    min-height: 0;
  }

  .annotation-dialog #annotation-form {
    grid-template-columns: 1fr;
  }

  .annotation-dialog #annotation-form > .button {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .website-service-cards {
    grid-template-columns: 1fr;
  }

  .website-service-cards article {
    min-height: 0;
  }

  .website-pricing-grid {
    grid-template-columns: 1fr;
  }

  .website-pricing-grid article {
    min-height: 0;
  }

  .website-pricing-fit {
    min-height: 0;
  }

  .website-pricing-grid ul {
    margin-top: 1.5rem;
  }

  .website-pricing-note {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Warm, approachable public-site theme

   The public website and client portal share these type and color tokens.
   Public layout rules stay scoped away from .portal-page; the client portal
   has its own scoped layout below. Administrator screens retain their UI.
   -------------------------------------------------------------------------- */

body:not(.portal-page),
body.portal-page.client-portal {
  --ink: #09213f;
  --ink-deep: #06162c;
  --ink-soft: #0d2a4d;
  --blue: #1f6fdb;
  --blue-bright: #9dccff;
  --blue-deep: #145fca;
  --paper: #f3f6fa;
  --paper-warm: #faf9f6;
  --white: #ffffff;
  --text: #18324f;
  --muted: #536981;
  --line: #d7e0ea;
  --line-dark: rgba(143, 179, 218, 0.25);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --accent: var(--blue-deep);
  color: var(--text);
  background: var(--paper-warm);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.68;
}

body:not(.portal-page) h1,
body:not(.portal-page) h2,
body:not(.portal-page) h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.032em;
  line-height: 1.02;
  text-wrap: balance;
}

body:not(.portal-page) h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}

body:not(.portal-page) p,
body:not(.portal-page) li {
  text-wrap: pretty;
}

body:not(.portal-page) .section {
  padding: clamp(82px, 8vw, 116px) 0;
}

body:not(.portal-page) .section-paper {
  background: #dfeaf7;
}

body:not(.portal-page) .section-services-preview,
body:not(.portal-page) .faq-section,
body:not(.portal-page) .contact-section,
body:not(.portal-page) .service-detail {
  background: var(--paper-warm);
}

body:not(.portal-page) .kicker,
body:not(.portal-page) .micro-label,
body:not(.portal-page) .eyebrow,
body:not(.portal-page) .visual-label,
body:not(.portal-page) .footer-column > span,
body:not(.portal-page) .footer-contact > span,
body:not(.portal-page) .legal-grid aside > span,
body:not(.portal-page) .service-number,
body:not(.portal-page) .service-card-number,
body:not(.portal-page) .website-pricing-heading,
body:not(.portal-page) .website-price small,
body:not(.portal-page) .engagement-list > article > span,
body:not(.portal-page) .principle-grid article > span,
body:not(.portal-page) .founder-signoff,
body:not(.portal-page) .story-mark span,
body:not(.portal-page) .footer-bottom {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.4;
  text-transform: none;
}

body:not(.portal-page) .kicker,
body:not(.portal-page) .micro-label {
  margin-bottom: 18px;
}

body:not(.portal-page) .kicker::before {
  width: 30px;
  height: 2px;
}

body:not(.portal-page) .eyebrow {
  gap: 8px;
  margin-bottom: 32px;
}

body:not(.portal-page) .eyebrow span:first-child::after {
  width: 34px;
  margin-inline: 14px;
  background: currentColor;
  opacity: 0.35;
}

body:not(.portal-page) .lead-copy {
  font-size: clamp(21px, 2vw, 27px);
  letter-spacing: -0.015em;
  line-height: 1.52;
}

body:not(.portal-page) .button {
  min-height: 54px;
  gap: 16px;
  padding: 14px 23px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0;
  box-shadow: none;
}

body:not(.portal-page) .button-primary {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 12px 30px rgba(20, 95, 202, 0.2);
}

body:not(.portal-page) .button-primary:hover {
  color: #fff;
  background: #0d4da9;
}

body:not(.portal-page) .button-dark {
  color: #fff;
  background: var(--ink);
}

body:not(.portal-page) .button-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

body:not(.portal-page) .text-link {
  gap: 11px;
  padding-bottom: 3px;
  font-size: 16px;
  font-weight: 750;
}

body:not(.portal-page) .return-to-top {
  min-height: 50px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.portal-page) .return-to-top b {
  border-radius: 50%;
}

/* Public header and service dropdown */
body:not(.portal-page) .site-header,
body:not(.portal-page) .site-header.is-sticky {
  color: #fff;
  background: rgba(6, 22, 44, 0.98);
  border-bottom-color: rgba(185, 215, 245, 0.18);
  box-shadow: 0 8px 30px rgba(6, 22, 44, 0.12);
  backdrop-filter: blur(16px);
}

body:not(.portal-page) .header-inner {
  grid-template-columns: minmax(205px, 0.9fr) auto minmax(230px, 0.9fr);
  gap: clamp(22px, 3vw, 48px);
}

body:not(.portal-page) .brand {
  width: min(236px, 100%);
}

body:not(.portal-page) .desktop-nav {
  gap: clamp(22px, 2.25vw, 36px);
}

body:not(.portal-page) .desktop-nav > a,
body:not(.portal-page) .nav-dropdown > summary,
body:not(.portal-page) .header-demo,
body:not(.portal-page) .header-portal {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body:not(.portal-page) .header-demo,
body:not(.portal-page) .header-portal {
  min-height: 38px;
  padding: 9px 16px;
}

body:not(.portal-page) .nav-dropdown {
  position: relative;
  height: 100%;
}

body:not(.portal-page) .nav-dropdown > summary {
  position: relative;
  display: flex;
  height: 100%;
  gap: 7px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

body:not(.portal-page) .nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

body:not(.portal-page) .nav-dropdown > summary::before {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue-bright);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

body:not(.portal-page) .nav-dropdown > summary::after {
  content: "▾";
  color: var(--blue-bright);
  font-size: 12px;
  transition: transform 180ms ease;
}

body:not(.portal-page) .nav-dropdown[open] > summary::before,
body:not(.portal-page) .nav-dropdown.is-current > summary::before,
body:not(.portal-page) .nav-dropdown > summary[aria-current="page"]::before {
  transform: scaleX(1);
}

body:not(.portal-page) .nav-dropdown[open] > summary::after {
  transform: rotate(180deg);
}

body:not(.portal-page) .nav-dropdown-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% - 8px);
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 22px 55px rgba(7, 31, 63, 0.2);
  transform: translateX(-50%);
}

body:not(.portal-page) .nav-dropdown-panel a,
body:not(.portal-page) .nav-dropdown-link {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

body:not(.portal-page) .nav-dropdown-panel a::after {
  content: none;
}

body:not(.portal-page) .nav-dropdown-panel a:hover,
body:not(.portal-page) .nav-dropdown-panel a[aria-current="page"] {
  color: var(--ink);
  background: #eef5fd;
}

body:not(.portal-page) .nav-dropdown-panel strong {
  font-size: 16px;
  font-weight: 750;
}

body:not(.portal-page) .nav-dropdown-panel small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
}

/* Current server markup uses service-menu; nav-dropdown aliases above are kept
   for compatibility with any progressively enhanced navigation variant. */
body:not(.portal-page) .service-menu-desktop {
  position: relative;
  height: 100%;
}

body:not(.portal-page) .service-menu-desktop > summary {
  position: relative;
  display: flex;
  height: 100%;
  gap: 7px;
  align-items: center;
  color: inherit;
  cursor: pointer;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

body:not(.portal-page) .service-menu-desktop > summary::-webkit-details-marker,
body:not(.portal-page) .service-menu-mobile > summary::-webkit-details-marker {
  display: none;
}

body:not(.portal-page) .service-menu-desktop > summary::before {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue-bright);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

body:not(.portal-page) .service-menu-desktop > summary i,
body:not(.portal-page) .service-menu-mobile > summary i {
  color: var(--blue-bright);
  font-size: 12px;
  font-style: normal;
  transition: transform 180ms ease;
}

body:not(.portal-page) .service-menu-desktop[open] > summary::before,
body:not(.portal-page) .service-menu-desktop.is-current > summary::before {
  transform: scaleX(1);
}

body:not(.portal-page) .service-menu[open] > summary i {
  transform: rotate(180deg);
}

body:not(.portal-page) .service-menu-desktop .service-menu-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% - 8px);
  left: 50%;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 22px 55px rgba(7, 31, 63, 0.2);
  transform: translateX(-50%);
}

body:not(.portal-page) .service-menu-panel a {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

body:not(.portal-page) .desktop-nav .service-menu-panel a::after {
  content: none;
}

body:not(.portal-page) .service-menu-panel a:hover,
body:not(.portal-page) .service-menu-panel a[aria-current="page"] {
  color: var(--ink);
  background: #eef5fd;
}

body:not(.portal-page) .service-menu-panel strong {
  font-size: 16px;
  font-weight: 750;
}

body:not(.portal-page) .service-menu-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.35;
}

/* Light, welcoming public heroes */
body:not(.portal-page) .hero-home,
body:not(.portal-page) .page-hero {
  --muted: #465f79;
  --blue-deep: #1056bb;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 18%, rgba(107, 169, 238, 0.16), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(190, 214, 243, 0.4), transparent 36%),
    linear-gradient(135deg, #e5eef9 0%, #dce9f7 100%);
}

body:not(.portal-page) .hero::before,
body:not(.portal-page) .page-hero::before {
  opacity: 1;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 55%);
  mask-image: none;
}

body:not(.portal-page) .hero-home {
  min-height: 710px;
}

body:not(.portal-page) .hero-grid {
  min-height: 618px;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: clamp(56px, 7vw, 108px);
  padding: 92px 0 78px;
}

body:not(.portal-page) .hero-copy h1,
body:not(.portal-page) .page-hero h1,
body:not(.portal-page) .not-found h1 {
  max-width: 850px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(54px, 5.5vw, 84px);
  font-weight: 650;
  line-height: 0.98;
}

body:not(.portal-page) .heading-accent,
body:not(.portal-page) .hero-copy h1 em,
body:not(.portal-page) .page-hero h1 em,
body:not(.portal-page) .not-found h1 em {
  color: var(--blue-deep);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

body:not(.portal-page) .hero-lede,
body:not(.portal-page) .page-hero-lede {
  color: var(--muted);
  font-size: clamp(19px, 1.65vw, 23px);
  line-height: 1.58;
}

body:not(.portal-page) .hero-home .eyebrow,
body:not(.portal-page) .page-hero .eyebrow {
  color: var(--blue-deep);
}

body:not(.portal-page) .hero-rule {
  width: 32%;
  height: 4px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #8abdf5, var(--blue-deep));
}

body:not(.portal-page) .capability-panel {
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(20, 95, 202, 0.15);
  border-radius: 24px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 70px rgba(9, 33, 63, 0.12);
}

body:not(.portal-page) .capability-panel-kicker {
  color: var(--blue-deep);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
}

body:not(.portal-page) .capability-panel h2 {
  color: var(--ink);
  font-size: clamp(30px, 2.6vw, 42px);
}

body:not(.portal-page) .capability-panel .capability-compact li {
  padding: 16px 0;
  border-top-color: var(--line);
}

body:not(.portal-page) .capability-panel .capability-compact li strong {
  color: var(--ink);
  font-size: 17px;
}

body:not(.portal-page) .capability-panel .capability-compact li span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

body:not(.portal-page) .proof-strip {
  color: var(--text);
  background: #dfeaf7;
}

body:not(.portal-page) .proof-grid > div {
  border-color: rgba(20, 95, 202, 0.14);
}

body:not(.portal-page) .proof-grid strong {
  color: var(--blue-deep);
  font-family: var(--body);
  font-size: 15px;
}

body:not(.portal-page) .proof-grid span {
  font-size: 15px;
}

body:not(.portal-page) .page-hero,
body:not(.portal-page) .page-hero-grid {
  min-height: 540px;
}

body:not(.portal-page) .page-hero-grid {
  padding: 170px 0 76px;
}

/* Softer content modules */
body:not(.portal-page) .section-heading {
  margin-bottom: clamp(44px, 5vw, 68px);
}

body:not(.portal-page) .split-heading h2,
body:not(.portal-page) .process-intro h2,
body:not(.portal-page) .portal-callout h2,
body:not(.portal-page) .fit-grid h2,
body:not(.portal-page) .engagement-grid h2,
body:not(.portal-page) .faq-grid h2,
body:not(.portal-page) .founder-grid h2,
body:not(.portal-page) .service-main h2,
body:not(.portal-page) .story-copy h2 {
  font-size: clamp(40px, 4.7vw, 68px);
}

body:not(.portal-page) .split-heading > p,
body:not(.portal-page) .story-copy > p:not(.kicker),
body:not(.portal-page) .service-main > p:not(.kicker):not(.plan-note) {
  font-size: 18px;
  line-height: 1.65;
}

body:not(.portal-page) .service-index {
  display: grid;
  gap: 14px;
  border-top: 0;
}

body:not(.portal-page) .service-row {
  min-height: 118px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 32px rgba(9, 33, 63, 0.045);
}

body:not(.portal-page) .service-row:hover {
  padding-inline: 34px;
  border-color: rgba(20, 95, 202, 0.32);
  background: #fff;
  box-shadow: 0 16px 36px rgba(9, 33, 63, 0.09);
}

body:not(.portal-page) .service-name {
  font-family: var(--display);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 650;
}

body:not(.portal-page) .service-description {
  font-size: 16px;
}

body:not(.portal-page) .service-arrow {
  border-color: rgba(20, 95, 202, 0.25);
  background: #f3f7fc;
}

body:not(.portal-page) .plain-process-section {
  background: #fff;
}

body:not(.portal-page) .plain-process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  margin-bottom: 48px;
}

body:not(.portal-page) .plain-process-heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 4.5vw, 66px);
}

body:not(.portal-page) .plain-process-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
}

body:not(.portal-page) .plain-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body:not(.portal-page) .plain-process-grid article {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-warm);
}

body:not(.portal-page) .plain-process-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 35px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-deep);
  font-size: 15px;
  font-weight: 750;
}

body:not(.portal-page) .plain-process-grid h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

body:not(.portal-page) .plain-process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

body:not(.portal-page) .trust-strip {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(20, 95, 202, 0.16);
  border-radius: 18px;
  background: #dfeaf7;
}

body:not(.portal-page) .trust-strip span {
  position: relative;
  padding: 20px 22px 20px 46px;
  border-right: 1px solid rgba(20, 95, 202, 0.14);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

body:not(.portal-page) .trust-strip span:last-child {
  border-right: 0;
}

body:not(.portal-page) .trust-strip span::before {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--blue-deep);
  content: "✓";
}

body:not(.portal-page) .principle-grid {
  gap: 16px;
  border: 0;
}

body:not(.portal-page) .principle-grid article {
  min-height: 260px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

body:not(.portal-page) .principle-grid h3 {
  margin-top: 38px;
}

body:not(.portal-page) .principle-grid p,
body:not(.portal-page) .engagement-list p,
body:not(.portal-page) .faq-list details p {
  font-size: 16px;
}

body:not(.portal-page) .check-list li {
  padding: 19px 14px 19px 48px;
  font-size: 18px;
}

body:not(.portal-page) .check-list li::before,
body:not(.portal-page) .capability-list span::before {
  font-family: var(--body);
  content: "✓";
}

/* Services and pricing */
body:not(.portal-page) .service-jump {
  gap: 10px;
  padding-bottom: 24px;
  border: 0;
}

body:not(.portal-page) .service-jump a,
body:not(.portal-page) .service-jump a:first-child {
  padding: 14px 16px;
  border: 1px solid rgba(20, 95, 202, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.portal-page) .service-jump a:hover {
  color: #fff;
  background: var(--blue-deep);
}

body:not(.portal-page) .website-service-cards,
body:not(.portal-page) .website-pricing-grid {
  gap: 18px;
  border: 0;
}

body:not(.portal-page) .website-service-cards article,
body:not(.portal-page) .website-pricing-grid article {
  min-height: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(9, 33, 63, 0.05);
}

body:not(.portal-page) .website-service-cards .service-card-number {
  margin-bottom: 34px;
  color: var(--blue-deep);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}

body:not(.portal-page) .website-service-cards h3 {
  font-size: clamp(26px, 2.4vw, 35px);
}

body:not(.portal-page) .website-service-cards article > p:not(.kicker),
body:not(.portal-page) .website-service-cards ul,
body:not(.portal-page) .website-pricing-grid ul,
body:not(.portal-page) .website-pricing-fit {
  font-size: 16px;
}

body:not(.portal-page) .website-pricing-grid .website-pricing-featured {
  border-color: rgba(20, 95, 202, 0.4);
  background: #fff;
  box-shadow: inset 0 5px 0 var(--blue-deep), 0 18px 44px rgba(9, 33, 63, 0.09);
}

body:not(.portal-page) .website-pricing-heading {
  color: var(--blue-deep);
  font-size: 14px;
}

body:not(.portal-page) .website-pricing-heading p {
  font-family: var(--body);
  font-size: 15px;
}

body:not(.portal-page) .website-price {
  margin: 38px 0 22px;
}

body:not(.portal-page) .website-price strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(45px, 4.4vw, 66px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

body:not(.portal-page) .website-flex-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 6px;
  padding: 13px 15px;
  border: 1px solid rgba(20, 95, 202, 0.2);
  border-radius: 12px;
  color: var(--blue-deep);
  background: rgba(139, 197, 255, 0.16);
}

body:not(.portal-page) .website-flex-price span {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:not(.portal-page) .website-flex-price strong {
  font-size: 17px;
  line-height: 1.25;
  text-align: right;
}

body:not(.portal-page) .website-flex-meta {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

body:not(.portal-page) .website-pricing-note {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

body:not(.portal-page) .plan-grid {
  gap: 18px;
}

body:not(.portal-page) .plan-grid article {
  padding: 32px;
  border-radius: 18px;
  background: #fff;
}

body:not(.portal-page) .plan-grid article > p:not(.micro-label),
body:not(.portal-page) .plan-grid li,
body:not(.portal-page) .deliverables-grid li,
body:not(.portal-page) .plan-note {
  min-height: 0;
  font-size: 16px;
}

body:not(.portal-page) .engagement-list article {
  grid-template-columns: 52px 1fr;
  padding: 28px 0;
}

body:not(.portal-page) .faq-list details {
  border-color: var(--line);
}

body:not(.portal-page) .faq-list summary {
  min-height: 88px;
  font-family: var(--body);
  font-size: 19px;
  font-weight: 700;
}

/* Work remains a high-contrast visual anchor, with readable supporting type. */
body:not(.portal-page) .section-work,
body:not(.portal-page) .services-work {
  color: #d7e5f1;
  background: linear-gradient(180deg, var(--ink-deep), #03101f);
}

body:not(.portal-page) .section-work h2,
body:not(.portal-page) .section-work h3,
body:not(.portal-page) .services-work h2,
body:not(.portal-page) .services-work h3 {
  color: #fff;
}

body:not(.portal-page) .work-grid,
body:not(.portal-page) .work-grid-home-three {
  gap: clamp(26px, 3vw, 42px);
}

body:not(.portal-page) .work-visual,
body:not(.portal-page) .work-card:not(.work-card-wide) .work-visual {
  overflow: hidden;
  border: 1px solid rgba(157, 204, 255, 0.24);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 8, 17, 0.24);
}

body:not(.portal-page) .visual-label,
body:not(.portal-page) .visual-portal .visual-label {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

body:not(.portal-page) .work-visit {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 14px;
}

body:not(.portal-page) .work-meta h3,
body:not(.portal-page) .work-grid-vertical .work-meta h3 {
  font-size: clamp(28px, 2.5vw, 38px);
}

body:not(.portal-page) .work-meta > p {
  color: #b9cddd;
  font-size: 16px;
}

body:not(.portal-page) .work-demo-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  margin-top: clamp(52px, 7vw, 88px);
  border: 1px solid rgba(157, 204, 255, 0.26);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

body:not(.portal-page) .work-demo-cta h3 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-size: clamp(29px, 3vw, 43px);
}

body:not(.portal-page) .work-demo-cta p:last-child {
  max-width: 780px;
  margin: 0;
  color: #b9cddd;
  font-size: 17px;
}

body:not(.portal-page) .work-demo-cta .button {
  white-space: nowrap;
}

body:not(.portal-page) .section-work .text-link-light,
body:not(.portal-page) .services-work .text-link-light,
body:not(.portal-page) .closing-cta .text-link-light {
  color: #fff;
}

body:not(.portal-page) .hero-home .text-link-light {
  color: #071b31;
}

body:not(.portal-page) .hero-home .text-link-light:hover {
  color: var(--blue);
}

/* Hosting table and contact form */
body:not(.portal-page) .hosting-table-wrap {
  overflow: hidden;
  overflow-x: auto;
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(9, 33, 63, 0.06);
}

body:not(.portal-page) .hosting-table {
  font-size: 16px;
}

body:not(.portal-page) .hosting-table thead th {
  background: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}

body:not(.portal-page) .hosting-table th,
body:not(.portal-page) .hosting-table td {
  padding: 17px 19px;
}

body:not(.portal-page) .contact-aside li span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-deep);
  font-family: var(--body);
  font-size: 14px;
}

body:not(.portal-page) .contact-aside li p,
body:not(.portal-page) .contact-note p {
  font-size: 16px;
}

body:not(.portal-page) .contact-note,
body:not(.portal-page) .form-wrap {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(9, 33, 63, 0.06);
}

body:not(.portal-page) .form-heading > p:last-child,
body:not(.portal-page) .field label,
body:not(.portal-page) .field legend,
body:not(.portal-page) .service-fieldset legend,
body:not(.portal-page) .choice-grid span,
body:not(.portal-page) .consent-field,
body:not(.portal-page) .form-submit p {
  font-size: 15px;
}

body:not(.portal-page) .field input,
body:not(.portal-page) .field select,
body:not(.portal-page) .field textarea,
body:not(.portal-page) .choice-grid span {
  border-color: #bdcbd9;
  border-radius: 10px;
}

body:not(.portal-page) .field input,
body:not(.portal-page) .field select {
  min-height: 56px;
}

body:not(.portal-page) .field small,
body:not(.portal-page) .field-error {
  font-size: 13px;
}

/* Closing/footer */
body:not(.portal-page) .closing-cta {
  padding: clamp(78px, 8vw, 108px) 0;
  background: linear-gradient(135deg, var(--ink) 0%, #0f3d72 100%);
}

body:not(.portal-page) .closing-grid h2 {
  font-size: clamp(40px, 4.7vw, 66px);
}

body:not(.portal-page) .site-footer {
  color: #b9cad8;
  background: #041327;
}

body:not(.portal-page) .footer-brand p,
body:not(.portal-page) .footer-column a,
body:not(.portal-page) .footer-contact small {
  font-size: 15px;
}

body:not(.portal-page) .footer-column > span,
body:not(.portal-page) .footer-contact > span {
  color: var(--blue-bright);
}

body:not(.portal-page) .footer-bottom {
  font-size: 13px;
  letter-spacing: 0;
}

@media (max-width: 1040px) {
  body:not(.portal-page) {
    --header-height: 78px;
    --shell: min(100% - 46px, 880px);
  }

  body:not(.portal-page) .site-header {
    height: var(--header-height);
  }

  body:not(.portal-page) .header-inner {
    display: flex;
    justify-content: space-between;
  }

  body:not(.portal-page) .brand {
    width: 205px;
  }

  body:not(.portal-page) .desktop-nav,
  body:not(.portal-page) .header-actions {
    display: none;
  }

  body:not(.portal-page) .menu-toggle {
    display: flex;
    width: 48px;
    height: 48px;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
  }

  body:not(.portal-page) .mobile-nav {
    position: fixed;
    z-index: 150;
    top: var(--header-height);
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px max(23px, calc((100vw - min(100% - 46px, 880px)) / 2)) 30px;
    color: #fff;
    background: #06162c;
    box-shadow: 0 20px 50px rgba(2, 10, 22, 0.35);
  }

  body:not(.portal-page) .mobile-nav[hidden] {
    display: none;
  }

  body:not(.portal-page) .mobile-nav > a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(157, 204, 255, 0.18);
    color: #fff;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    text-decoration: none;
  }

  body:not(.portal-page) .mobile-nav > a[aria-current="page"] {
    color: var(--blue-bright);
  }

  body:not(.portal-page) .mobile-nav-group {
    display: grid;
    gap: 2px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(157, 204, 255, 0.18);
  }

  body:not(.portal-page) .mobile-nav-group > span {
    margin-bottom: 8px;
    color: var(--blue-bright);
    font-size: 14px;
    font-weight: 750;
  }

  body:not(.portal-page) .mobile-nav-group a {
    padding: 6px 0;
    color: #fff;
    font-family: var(--display);
    font-size: 23px;
    font-weight: 600;
    text-decoration: none;
  }

  body:not(.portal-page) .mobile-nav-group a[aria-current="page"] {
    color: var(--blue-bright);
  }

  body:not(.portal-page) .service-menu-mobile {
    padding: 17px 0;
    border-bottom: 1px solid rgba(157, 204, 255, 0.18);
  }

  body:not(.portal-page) .service-menu-mobile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    cursor: pointer;
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    list-style: none;
  }

  body:not(.portal-page) .service-menu-mobile.is-current > summary {
    color: var(--blue-bright);
  }

  body:not(.portal-page) .service-menu-mobile .service-menu-panel {
    display: grid;
    gap: 2px;
    padding-top: 12px;
  }

  body:not(.portal-page) .service-menu-mobile .service-menu-panel a {
    padding: 10px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
  }

  body:not(.portal-page) .service-menu-mobile .service-menu-panel a:hover,
  body:not(.portal-page) .service-menu-mobile .service-menu-panel a[aria-current="page"] {
    color: #fff;
    background: rgba(157, 204, 255, 0.13);
  }

  body:not(.portal-page) .service-menu-mobile .service-menu-panel span {
    color: #a9bfd2;
    font-size: 14px;
  }

  body:not(.portal-page) .mobile-actions {
    margin-top: auto;
    padding-top: 28px;
  }

  body:not(.portal-page) .mobile-nav .mobile-demo,
  body:not(.portal-page) .mobile-nav .mobile-portal {
    min-height: 46px;
    align-items: center;
    font-family: var(--body);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
  }

  body:not(.portal-page) .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 118px 0 80px;
  }

  body:not(.portal-page) .capability-panel {
    width: min(720px, 100%);
    justify-self: start;
  }

  body:not(.portal-page) .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: end;
  }

  body:not(.portal-page) .plain-process-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body:not(.portal-page) .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.portal-page) .trust-strip span:nth-child(2) {
    border-right: 0;
  }

  body:not(.portal-page) .trust-strip span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(20, 95, 202, 0.14);
  }

  body:not(.portal-page) .website-pricing-grid,
  body:not(.portal-page) .website-service-cards {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .work-grid-home-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:not(.portal-page) {
    --shell: calc(100% - 36px);
    font-size: 17px;
  }

  body:not(.portal-page) .section {
    padding: 72px 0;
  }

  body:not(.portal-page) .brand {
    width: 180px;
  }

  body:not(.portal-page) .hero-copy h1,
  body:not(.portal-page) .page-hero h1,
  body:not(.portal-page) .not-found h1 {
    font-size: clamp(43px, 13vw, 62px);
    line-height: 1;
  }

  body:not(.portal-page) .hero-grid {
    gap: 42px;
    padding-top: 112px;
  }

  body:not(.portal-page) .hero-lede,
  body:not(.portal-page) .page-hero-lede {
    font-size: 19px;
  }

  body:not(.portal-page) .capability-panel {
    padding: 24px 20px;
    border-radius: 18px;
  }

  body:not(.portal-page) .capability-panel .capability-compact {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .proof-grid > div,
  body:not(.portal-page) .proof-grid > div:first-child,
  body:not(.portal-page) .proof-grid > div:last-child {
    padding: 15px 0;
  }

  body:not(.portal-page) .plain-process-grid,
  body:not(.portal-page) .principle-grid {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .plain-process-grid article,
  body:not(.portal-page) .principle-grid article {
    min-height: 0;
    padding: 27px;
  }

  body:not(.portal-page) .plain-process-grid article > span {
    margin-bottom: 24px;
  }

  body:not(.portal-page) .trust-strip {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .trust-strip span,
  body:not(.portal-page) .trust-strip span:nth-child(2),
  body:not(.portal-page) .trust-strip span:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 95, 202, 0.14);
  }

  body:not(.portal-page) .trust-strip span:last-child {
    border-bottom: 0;
  }

  body:not(.portal-page) .service-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 22px;
  }

  body:not(.portal-page) .service-row:hover {
    padding-inline: 22px;
  }

  body:not(.portal-page) .service-number {
    grid-column: 1 / -1;
  }

  body:not(.portal-page) .service-description {
    grid-column: 1 / -1;
  }

  body:not(.portal-page) .service-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  body:not(.portal-page) .service-jump {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.portal-page) .service-jump a,
  body:not(.portal-page) .service-jump a:first-child {
    padding: 12px 10px;
  }

  body:not(.portal-page) .website-service-cards article,
  body:not(.portal-page) .website-pricing-grid article,
  body:not(.portal-page) .website-pricing-note,
  body:not(.portal-page) .plan-grid article {
    padding: 25px;
  }

  body:not(.portal-page) .website-pricing-note,
  body:not(.portal-page) .work-demo-cta,
  body:not(.portal-page) .closing-grid,
  body:not(.portal-page) .contact-grid {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .website-flex-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body:not(.portal-page) .website-flex-price strong {
    text-align: left;
  }

  body:not(.portal-page) .work-demo-cta .button {
    width: fit-content;
    white-space: normal;
  }

  body:not(.portal-page) .work-grid-vertical .work-card {
    gap: 24px;
  }

  body:not(.portal-page) .work-visual,
  body:not(.portal-page) .work-card:not(.work-card-wide) .work-visual {
    border-radius: 12px;
  }

  body:not(.portal-page) .work-meta,
  body:not(.portal-page) .work-meta-stack {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .work-meta > a {
    display: inline-flex;
    grid-column: 1;
    grid-row: auto;
  }

  body:not(.portal-page) .hosting-table {
    min-width: 860px;
  }

  body:not(.portal-page) .form-wrap {
    width: 100%;
    padding: 26px 20px;
    margin-left: 0;
  }

  body:not(.portal-page) .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.portal-page) .footer-brand,
  body:not(.portal-page) .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 460px) {
  body:not(.portal-page) .mobile-actions,
  body:not(.portal-page) .service-jump,
  body:not(.portal-page) .footer-main {
    grid-template-columns: 1fr;
  }

  body:not(.portal-page) .button-row {
    width: 100%;
    gap: 16px;
  }

  body:not(.portal-page) .button-row .button {
    width: 100%;
  }

  body:not(.portal-page) .return-to-top span {
    display: none;
  }

  body:not(.portal-page) .return-to-top {
    width: 52px;
    padding: 6px;
    justify-content: center;
  }
}

/* Client overview: clear starting points, with every client action in reach. */
.client-start-options { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; margin-bottom: 28px; }
.client-start-card { position: relative; display: flex; flex-direction: column; align-items: start; min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid #cfdee5; border-radius: 20px; background: #fffefb; box-shadow: 0 6px 24px #16364b06; }
.client-start-card.client-start-featured { background: linear-gradient(135deg, #edf7f7, #f8fbff); border-color: #a9cbd2; }
.client-start-card h2 { font: 650 clamp(27px, 2.5vw, 36px)/1.2 var(--serif); margin: 8px 0 16px; }
.client-start-card > p:not(.micro-label) { margin: 0 0 24px; font-size: 18px; line-height: 1.6; }
.client-start-card > .button { margin-top: auto; min-width: 210px; }
.client-start-card > small { display: block; margin-top: 14px; color: #526674; font-size: 15px; line-height: 1.5; }
.client-action-icon { position: absolute; top: 20px; right: 20px; display: grid; place-content: center; width: 36px; height: 36px; border-radius: 10px; background: #dfedf0; color: #215d7b; font-size: 22px; }
.client-start-card > .micro-label { padding-right: 36px; }
.client-review-choice { width: 100%; margin-bottom: 18px; }
.client-review-choice label { display: block; margin-bottom: 6px; font-weight: 650; }
.client-review-choice select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #acbdc8; border-radius: 8px; background: white; color: var(--ink); }
.client-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.client-quick-links button { display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 22px; border: 1px solid #cfdee5; border-radius: 14px; background: #fffefb; color: var(--ink); }
.client-quick-links button:hover { background: #edf4f7; border-color: #8cabbc; }
.client-quick-links strong { width: 100%; display: flex; justify-content: space-between; gap: 10px; font-size: 18px; }
.client-quick-links button > span { font-size: 16px; line-height: 1.5; color: #526674; }
.request-pictures { padding: 20px; border: 1px solid #cfdee5; border-radius: 12px; background: #f4f8fa; margin: 24px 0; min-width: 0; }
.request-pictures h3 { font-size: 19px; margin: 0 0 16px; }
.request-pictures h3 span { font-size: 16px; font-weight: 400; }
.request-pictures p { font-size: 15px; line-height: 1.5; margin: 12px 0 0; }
.request-pictures .message-attachment-drafts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.request-pictures .message-attachment-draft { width: 100px; }
.client-portal .dashboard-sidebar { background: #fffefb; border-right: 1px solid #d5e1e8; }
.client-portal .dashboard-sidebar :is(.dashboard-logo, .dashboard-nav, .dashboard-side-bottom a, .dashboard-side-bottom button) { color: #16364b; }
.client-portal .dashboard-sidebar .dashboard-nav.is-active { background: #e2eef4; color: #17496a; }
.client-portal .dashboard-sidebar .dashboard-nav:hover { background: #eef5f8; color: #17496a; }
.client-portal .dashboard-sidebar .dashboard-logo small { color: #526674; }
.client-portal .dashboard-side-bottom { border-color: #d5e1e8; }
@media (max-width: 1180px) { .client-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .client-start-options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .client-quick-links { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .client-start-card > .button { min-width: 0; width: 100%; }
}

/* Client portal: the public site's friendly type, with practical app layouts.
   .client-portal is set only for client sessions and shared sign-in screens.
   Keep these rules scoped so owner operations and Site Studio are unchanged. */
body.client-portal {
  --mono: var(--body);
  line-height: 1.55;
}

.client-portal :is(h1, h2, h3) {
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.client-portal :is(.dashboard-welcome h1, .panel-heading h1, .auth-card h2, .request-dialog h2, .request-detail-heading h2, .annotation-heading h2) {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(32px, 3.6vw, 50px);
  overflow-wrap: anywhere;
}

.client-portal :is(.kicker, .micro-label, .eyebrow, .availability-label) {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.5;
  text-transform: none;
  color: var(--blue-deep);
}

.client-portal :is(.button, .site-review-button, .portal-demo-link) {
  min-height: 48px;
  border-radius: 9px;
  font: 650 17px/1.35 var(--body);
  letter-spacing: 0;
  text-transform: none;
}

.client-portal .button-dark {
  background: var(--ink);
}

.client-portal .button-dark:hover {
  background: var(--ink-soft);
}

.client-portal :is(.button-light, .button-outline) {
  color: var(--ink);
}

.client-portal :is(.field label, .field legend, .contact-availability legend, .billing-organization-control label) {
  font-size: 17px;
  font-weight: 650;
}

.client-portal :is(.field input, .field select, .field textarea, .billing-organization-control select) {
  font: 400 17px/1.5 var(--body);
  border-color: #94a7ba;
  border-radius: 9px;
}

.client-portal :is(.field small, .auth-help, .availability-label, .contact-availability > p, .billing-organization-control p) {
  font-size: 15px;
  line-height: 1.5;
}

.client-portal :is(.inline-action, .portal-back) {
  font-size: 16px;
  text-underline-offset: 3px;
}

.client-portal :is(.portal-message, .request-control-note) {
  border-radius: 0 9px 9px 0;
  font-size: 16px;
  line-height: 1.55;
}

.client-portal :focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
}

.client-portal .portal-auth-brand::before {
  display: none;
}

.client-portal .portal-auth-brand h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.035em;
}

.client-portal .portal-auth-brand :is(.eyebrow, .portal-back) {
  color: #c5e1ff;
}

.client-portal .auth-feature-list {
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 16px;
}

.client-portal :is(.portal-auth-panel, .portal-dashboard) {
  background: var(--paper-warm);
}

.client-portal .auth-card {
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
}

.client-portal .auth-card > img {
  margin-bottom: 24px;
  padding: 0;
  box-shadow: none;
}

.client-portal .auth-card > p:not(.micro-label):not(.auth-help) {
  font-size: 17px;
}

.client-portal .dashboard-sidebar {
  padding: 30px 18px;
}

.client-portal .dashboard-logo {
  gap: 12px;
  font-family: var(--body);
  font-size: 20px;
  letter-spacing: 0.015em;
  line-height: 1.3;
  margin-bottom: 40px;
}

.client-portal .dashboard-logo small {
  font-size: 15px;
  letter-spacing: 0;
}

.client-portal .dashboard-nav {
  border-radius: 9px;
  font: 600 18px/1.5 var(--body);
  min-height: 54px;
  color: #d7e7f7;
}

.client-portal .dashboard-nav.is-active {
  color: #fff;
  background: #214565;
}

.client-portal .dashboard-side-bottom :is(a, button) {
  min-height: 44px;
  padding-block: 10px;
  font-size: 17px;
  color: #d7e7f7;
}

.client-portal .dashboard-header {
  padding-inline: clamp(20px, 3.5vw, 48px);
  background: #fff;
}

.client-portal .dashboard-header :is(strong, .account-avatar) {
  font-size: 17px;
}

.client-portal .dashboard-header .micro-label {
  font-size: 15px;
}

.client-portal .dashboard-menu {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.client-portal .dashboard-panel {
  max-width: 1460px;
  padding: 42px clamp(24px, 3.5vw, 48px) 64px;
}

.client-portal :is(.dashboard-welcome, .panel-heading) {
  gap: 24px;
  margin-bottom: 30px;
}

.client-portal :is(.dashboard-welcome, .panel-heading) > div > p:last-child {
  max-width: 680px;
  font-size: 18px;
}

.client-portal :is(.dashboard-welcome, .panel-heading) > .button {
  flex-shrink: 0;
}

.client-portal .client-request-guide {
  margin-bottom: 26px;
  padding: 26px 28px;
  border: 1px solid #cbddef;
  border-radius: 16px;
  background: #edf4fb;
}

.client-portal .client-request-guide h2 {
  margin: 4px 0 8px;
  font: 650 28px/1.2 var(--body);
}

.client-portal .client-request-guide .micro-label {
  margin-bottom: 6px;
}

.client-portal .client-request-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.client-portal .client-request-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: request-step;
}

.client-portal .client-request-steps li {
  position: relative;
  padding-left: 38px;
  counter-increment: request-step;
}

.client-portal .client-request-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #245f9d;
  font: 650 15px/1 var(--body);
  content: counter(request-step);
}

.client-portal .client-request-steps strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
  color: var(--ink);
}

.client-portal .dashboard-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-portal .dashboard-stats article {
  min-height: 136px;
  padding: 20px 24px;
  border-radius: 14px;
}

.client-portal .dashboard-stats article::before {
  display: none;
}

.client-portal .dashboard-stats article > span {
  font-size: 16px;
  letter-spacing: 0;
}

.client-portal .dashboard-stats strong {
  margin: 10px 0 5px;
  font-family: var(--body);
  font-size: 34px;
  line-height: 1.15;
}

.client-portal .dashboard-stats .stat-plan {
  font-size: 23px;
}

.client-portal .dashboard-stats small {
  font-size: 15px;
}

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

.client-portal :is(.dashboard-card, .portal-plan) {
  min-width: 0;
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(9, 33, 63, 0.025);
}

.client-portal :is(.card-heading, .request-filter) {
  flex-wrap: wrap;
  gap: 12px;
}

.client-portal :is(.card-heading h2, .portal-plan h3) {
  font: 650 26px/1.2 var(--body);
}

.client-portal .card-heading .micro-label {
  font-size: 15px;
}

.client-portal .card-heading button {
  min-height: 44px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.client-portal .client-card-help {
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 17px;
}

.client-portal .site-item {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding-block: 20px;
}

.client-portal .site-item-icon {
  border-radius: 10px;
  font-size: 18px;
}

.client-portal .site-item-actions {
  grid-column: 2;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.client-portal :is(.site-item strong, .request-item strong) {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.client-portal :is(.site-item small, .request-item small) {
  margin-top: 4px;
  font-size: 15px;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

.client-portal .site-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-portal .site-item > a {
  grid-column: 2;
  justify-self: start;
}

.client-portal .request-item {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding-block: 20px;
}

.client-portal .request-item-button {
  min-width: 0;
  min-height: 44px;
}

.client-portal .request-date {
  display: block;
  font-size: 14px;
}

.client-portal .status-badge {
  width: fit-content;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
}

.client-portal .request-item .status-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.client-portal .status-badge[data-status="client_review"] {
  color: #18578b;
  background: #e5f1ff;
}

.client-portal :is(.empty-state, .request-filter span) {
  font-size: 16px;
  letter-spacing: 0;
}

.client-portal .client-request-help {
  padding: 18px 24px;
  margin-bottom: 24px;
  border: 1px solid #cbddef;
  border-radius: 12px;
  background: #edf4fb;
  font-size: 17px;
}

.client-portal .client-request-help summary {
  min-height: 30px;
  padding-block: 6px;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}

.client-portal .client-request-help p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
}

.client-portal .current-plan-card {
  padding: 28px;
  border: 0;
  border-radius: 16px;
  margin-bottom: 28px;
}

.client-portal .current-plan-card :is(.micro-label, p) {
  color: #c8def4;
}

.client-portal .current-plan-card :is(p:not(.micro-label), #billing-plan-status) {
  font-size: 17px;
  letter-spacing: 0;
}

.client-portal #billing-plan-status {
  text-transform: capitalize;
}

.client-portal :is(.portal-plan-grid, .portal-invoice-card, .billing-organization-control) {
  max-width: none;
}

.client-portal .portal-plan-grid {
  grid-template-columns: 1fr;
}

.client-portal .portal-plan :is(p, li, .portal-plan-price small, .portal-plan-change p) {
  font-size: 17px;
}

.client-portal .portal-plan .portal-plan-change .button {
  width: fit-content;
  min-height: 48px;
  font-size: 17px;
}

.client-portal .billing-security {
  align-items: start;
  flex-direction: column;
  gap: 8px;
  border-radius: 0 12px 12px 0;
  background: #edf4fb;
}

.client-portal .billing-security :is(span, p) {
  font-size: 17px;
  letter-spacing: 0;
}

.client-portal :is(.request-dialog, .request-detail-dialog, .annotation-dialog) {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  color: var(--text);
  background: var(--paper-warm);
}

.client-portal :is(.request-dialog h2, .request-detail-heading h2, .annotation-heading h2) {
  padding-right: 40px;
}

.client-portal .dialog-close-form button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 24px;
}

.client-portal :is(.dialog-heading > p, .request-detail-heading p:last-child, .request-quote-card p, .annotation-heading p, .annotation-help, .annotation-instructions p, .annotation-detail p) {
  font-size: 17px;
  line-height: 1.55;
}

.client-portal :is(.request-original, .request-message, .request-quote-card) {
  padding: 20px;
  border-radius: 12px;
  font-size: 17px;
}

.client-portal :is(.request-message strong, .request-message time, .annotation-coordinate) {
  font-size: 14px;
}

.client-portal :is(.request-message p, .request-quote-card h3) {
  font-family: var(--body);
  font-size: 18px;
}

.client-portal .annotation-heading-actions .button {
  min-height: 48px;
  font-size: 17px;
}

.client-portal .contact-availability {
  padding: 18px;
  border-radius: 12px;
}

.client-portal .availability-options span {
  min-height: 46px;
  padding: 8px 5px;
  border-radius: 8px;
  font-size: 15px;
}

.client-portal .availability-times strong {
  font-size: 16px;
}

.client-portal .availability-times small {
  font-size: 14px;
  white-space: normal;
}

.client-portal .availability-options input:focus-visible + span {
  outline-color: var(--blue-deep);
}

@media (max-width: 1150px) {
  .client-portal .dashboard-grid,
  .client-portal .client-request-steps {
    grid-template-columns: 1fr;
  }

  .client-portal .client-request-steps {
    gap: 18px;
  }

  .client-portal :is(.dashboard-welcome, .panel-heading) {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .client-portal .portal-auth-panel {
    order: -1;
    min-height: 0;
    padding: 32px 18px;
  }

  .client-portal .portal-auth-brand {
    min-height: 0;
  }

  .client-portal .dashboard-panel {
    padding: 28px 18px 48px;
  }

  .client-portal :is(.dashboard-card, .portal-plan, .client-request-guide, .client-request-help) {
    padding: 20px;
  }

  .client-portal .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .client-portal .dashboard-stats article {
    min-height: 0;
    padding: 16px 20px;
  }

  .client-portal .request-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .client-portal .site-item-actions {
    grid-column: 1 / -1;
  }

  .client-portal :is(.request-dialog, .request-detail-dialog, .annotation-dialog) {
    padding: 28px 18px;
    border-radius: 14px;
  }

  .client-portal .current-plan-card {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
  }

  .client-portal .current-plan-card > div:last-child {
    align-items: start;
    text-align: left;
  }

  .client-portal .availability-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .client-portal .availability-times {
    grid-template-columns: 1fr;
  }

  .client-portal .availability-times span {
    min-height: 58px;
  }
}

/* Client conversations: familiar texting layout, with no internal work controls. */
.client-portal .client-conversations { padding: 10px 26px; }
.client-portal .client-conversations .request-filter { padding: 18px 0; }
.client-portal .request-item-button small {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.client-portal .request-item { padding-block: 20px; }
.client-portal .request-item-button strong { color: #173d65; }
.client-portal .request-item-button:hover strong { text-decoration: underline; }
.client-portal .request-detail-dialog {
  width: min(1060px, calc(100vw - 36px)); height: min(860px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px); padding: 0; overflow: hidden;
  background: #f1f6fb; border: 1px solid #d5e1ed; border-radius: 20px;
}
.client-portal .request-detail-dialog[open] { display: flex; flex-direction: column; }
.client-portal .request-detail-dialog .dialog-close-form { z-index: 2; }
.client-portal .request-detail-heading {
  flex: 0 0 auto; padding: 22px 76px 18px 26px; gap: 12px;
  align-items: center; background: #fff; border-color: #dbe5ee;
}
.client-portal .request-detail-heading > div { min-width: 0; }
.client-portal .request-detail-heading h2 {
  padding: 0; margin: 2px 0 4px; font: 650 clamp(20px, 2vw, 28px)/1.2 var(--body);
  letter-spacing: -.02em; overflow-wrap: anywhere;
}
.client-portal .request-detail-heading :is(.micro-label, p:last-child) { font-size: 15px; margin: 0; line-height: 1.4; }
.client-portal .request-detail-heading .micro-label { color: #376b9a; font-weight: 650; }
.client-portal .request-detail-heading .status-badge { flex-shrink: 0; }
.client-portal .request-detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0; padding: 0; flex: 1; min-height: 0;
}
.client-portal .request-detail-layout:has(> aside[hidden]) { grid-template-columns: minmax(0, 1fr); }
.client-portal .request-detail-layout > aside {
  padding: 20px; overflow-y: auto; border-left: 1px solid #dbe5ee; background: #f8fafc;
}
.client-portal .request-conversation { display: flex; flex-direction: column; min-height: 0; }
.client-portal .request-conversation-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 24px; scrollbar-gutter: stable;
}
.client-portal .request-original,
.client-portal .request-message {
  width: fit-content; max-width: 86%; padding: 14px 18px;
  border: 1px solid #d6e2ee; border-radius: 18px 18px 18px 5px;
  background: #fff; color: #173c60; white-space: normal; overflow-wrap: anywhere;
  box-shadow: 0 2px 4px rgba(25, 58, 90, .03);
}
.client-portal .request-message[data-direction="outbound"] { align-self: flex-start; background: #fff; border-color: #d6e2ee; }
.client-portal .request-original,
.client-portal .request-message[data-direction="inbound"] {
  align-self: flex-end; margin-left: auto; border-color: #235c92;
  border-radius: 18px 18px 5px 18px; background: #235c92; color: #fff;
}
.client-portal .request-original :is(p, time, strong),
.client-portal .request-message[data-direction="inbound"] :is(p, strong, time) { color: #fff; }
.client-portal .request-original :is(time, strong),
.client-portal .request-message :is(strong, time) { display: block; font: 14px/1.4 var(--body); }
.client-portal .request-original strong,
.client-portal .request-message strong { font-weight: 650; }
.client-portal .request-original p,
.client-portal .request-message p { margin: 7px 0; font: 17px/1.55 var(--body); white-space: pre-wrap; }
.client-portal .request-original time,
.client-portal .request-message time { margin-top: 8px; }
.client-portal .request-original details { padding-top: 8px; font-size: 14px; }
.client-portal .request-original details p { font-size: 14px; }
.client-portal .request-original summary { cursor: pointer; }
.client-portal .request-thread { gap: 16px; margin: 18px 0 0; }
.client-portal .request-thread .empty-state { padding: 20px 4px; font-size: 15px; }
.client-portal #request-reply-form {
  flex: 0 0 auto; gap: 8px; padding: 16px 20px; border-top: 1px solid #dbe5ee;
  background: #fff; max-height: 45%; overflow-y: auto;
}
.client-portal .message-composer-row textarea {
  min-height: 66px; max-height: 150px; padding: 12px 14px; margin: 0;
  border: 1px solid #c6d5e4; border-radius: 14px; background: #f8fafc; font-size: 17px;
}
.client-portal .message-composer-row > button {
  min-width: 82px; min-height: 48px; padding: 12px 16px; gap: 8px;
  border-radius: 14px; background: #235c92; color: #fff; font-size: 17px;
}
.client-portal .request-quote-card { padding: 0; border: 0; background: transparent; }
.client-portal .request-quote-card .micro-label { font-size: 14px; }
.client-portal .request-quote-card h3 { font: 650 18px/1.3 var(--body); }
.client-portal .request-quote-card p { font-size: 15px; }
.client-portal .request-quote-card .button { min-height: 44px; margin-top: 10px; padding: 10px 12px; font-size: 15px; }
.client-portal .request-quote-card .quote-actions { flex-direction: column; gap: 0; }
.client-portal #request-detail-message { margin: 0; padding: 8px 12px; font-size: 15px; border-radius: 8px; }
.client-portal #request-detail-message.is-success { padding: 0 2px; border: 0; background: transparent; color: #36634f; }
.client-portal .message-attachment-draft button { min-width: 32px; min-height: 32px; }

@media (max-width: 720px) {
  .client-portal .request-detail-dialog {
    width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px;
  }
  .client-portal .request-detail-heading { flex-direction: column; align-items: start; padding: 16px 60px 12px 16px; gap: 6px; }
  .client-portal .request-detail-heading :is(.micro-label, p:last-child, .status-badge) { font-size: 14px; }
  .client-portal .request-detail-heading .status-badge { padding: 3px 10px; }
  .client-portal .request-detail-layout { display: flex; flex-direction: column; }
  .client-portal .request-detail-layout > aside {
    order: -1; flex: 0 0 auto; max-height: 24%; border: 0; border-bottom: 1px solid #dbe5ee; padding: 12px 16px;
  }
  .client-portal .request-conversation { flex: 1; }
  .client-portal .request-conversation-scroll { padding: 16px 12px; }
  .client-portal .request-original,
  .client-portal .request-message { max-width: 94%; padding: 12px 14px; }
  .client-portal #request-reply-form { padding: 12px; max-height: 55%; }
  .client-portal .message-composer-row { gap: 8px; }
  .client-portal .message-composer-row > button { min-width: 66px; padding: 10px; }
  .client-portal .message-composer-tools { gap: 4px; }
  .client-portal .message-composer-tools small { flex-basis: 100%; font-size: 13px; }
  .client-portal .request-quote-card .micro-label { display: none; }
  .client-portal .request-quote-card .quote-actions { flex-direction: row; gap: 8px; }
  .client-portal .request-quote-card h3 { display: inline-block; margin: 0 10px 3px 0; }
}

@media (max-width: 720px) {
  .owner-settings-card { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .owner-setting-control { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .owner-setting-switch span,
  .owner-setting-switch span::after { transition: none; }
}
