:root {
  --paper: #eceeef;
  --paper-2: #e3e6e7;
  --surface: #f8f9f8;
  --ink: #1e252a;
  --ink-soft: #626b72;
  --line: #c9ced0;
  --accent: #4f6878;
  --accent-dark: #354b59;
  --accent-soft: #b9c6cd;
  --danger: #9d463b;
  --success: #35715e;
  --shadow: 0 22px 70px rgba(23, 33, 38, 0.1);
  --shadow-soft: 0 12px 36px rgba(23, 33, 38, 0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Aptos", "Trebuchet MS", sans-serif;
  --industrial: "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

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

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

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

button {
  border: 0;
}

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

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

h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.3vw, 5.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.4vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 6px;
  color: white;
  background: var(--accent-dark);
  transform: translateY(-150%);
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(760px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: color-mix(in srgb, var(--paper), transparent 7%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  width: 124px;
  height: auto;
}

.site-nav,
.header-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 24px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.header-actions {
  gap: 14px;
}

.lang-switch {
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  width: 34px;
  height: 28px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.lang-switch button.active {
  color: white;
  background: var(--accent);
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.button,
.button-secondary,
.button-quiet,
.button-danger {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button {
  color: white;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(79, 104, 120, 0.18);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 12px 30px rgba(79, 104, 120, 0.25);
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface), transparent 20%);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-quiet:hover,
.button-quiet:focus-visible {
  background: var(--surface);
}

.button-quiet {
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: transparent;
}

.button-danger {
  color: var(--danger);
  background: #f4e5e1;
}

.button.small,
.button-secondary.small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 0.78rem;
}

.public-shell h1,
.public-shell h2,
.public-shell .field-card h3,
.public-shell .problem-card h3 {
  font-family: var(--industrial);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.public-shell .button,
.public-shell .button-secondary {
  border-radius: 3px;
}

.button-arrow::after {
  content: "↗";
  font-size: 1.05em;
}

.hero {
  --decision-x: 0px;
  --decision-y: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 7vw, 105px) 0 90px;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(30, 37, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 37, 42, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.decision-field {
  position: absolute;
  inset: -12%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(var(--decision-x), var(--decision-y), 0);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.decision-field span {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.decision-light {
  border-radius: 50%;
  filter: blur(52px);
}

.decision-light-one {
  top: -35%;
  right: -12%;
  width: 72%;
  height: 92%;
  background: radial-gradient(ellipse, rgba(79, 104, 120, 0.3), rgba(79, 104, 120, 0.1) 42%, transparent 72%);
  animation: decision-drift-one 18s ease-in-out infinite alternate;
}

.decision-light-two {
  bottom: -34%;
  left: -14%;
  width: 58%;
  height: 76%;
  background: radial-gradient(ellipse, rgba(30, 37, 42, 0.17), rgba(185, 198, 205, 0.15) 46%, transparent 72%);
  animation: decision-drift-two 22s ease-in-out infinite alternate;
}

.decision-focus {
  inset: -90px;
  background-image:
    linear-gradient(rgba(79, 104, 120, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 104, 120, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 68% 42%, #000 0, rgba(0, 0, 0, 0.72) 28%, transparent 62%);
  mask-image: radial-gradient(ellipse at 68% 42%, #000 0, rgba(0, 0, 0, 0.72) 28%, transparent 62%);
  animation: decision-focus-drift 20s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: clamp(44px, 7vw, 90px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-domains span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-domains b {
  color: var(--accent);
  font-size: 0.66rem;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 6.2vw, 6.25rem);
  line-height: 0.92;
}

.hero-copy .lead {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.diagnostic-card {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  color: white;
  background: var(--ink);
  box-shadow: 18px 18px 0 rgba(79, 104, 120, 0.13);
}

.diagnostic-card::before {
  display: none;
}

.diagnostic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.diagnostic-kicker {
  margin-bottom: 30px;
  color: #c2cccf;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.diagnostic-top .diagnostic-kicker {
  margin-bottom: 28px;
}

.diagnostic-live {
  margin-bottom: 28px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--accent-soft);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.87rem;
}

.signal-index {
  color: var(--accent-soft);
  font-family: var(--industrial);
  font-size: 1.15rem;
}

.signal-state {
  color: #9eafb4;
  font-size: 0.72rem;
}

.diagnostic-note {
  margin: 22px 0 0;
  padding: 18px;
  border-left: 2px solid var(--accent);
  color: #c2cccf;
  background: rgba(255, 255, 255, 0.055);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.45;
}

.impact-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

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

.impact-item {
  min-height: 150px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}

.impact-item:first-child {
  padding-left: 0;
}

.impact-item:last-child {
  border-right: 0;
}

.impact-number {
  margin-bottom: 16px;
  font-family: var(--industrial);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.impact-label {
  max-width: 190px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-label span {
  color: currentColor;
  font-size: 0.66rem;
  opacity: 0.62;
}

.section-label-light {
  color: #b9c7ca;
}

.section {
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-dark {
  color: var(--surface);
  background: var(--ink);
}

.section-dark .section-label {
  color: var(--accent-soft);
}

.section-dark .eyebrow,
.section-dark .muted {
  color: #b8c4c6;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.problem-card {
  min-height: 320px;
  padding: 34px 30px 28px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.problem-card + .problem-card {
  padding-left: 30px;
}

.problem-card:last-child {
  border-right: 0;
}

.problem-no {
  margin-bottom: 70px;
  color: #9aa7ad;
  font-family: var(--industrial);
  font-size: 1.15rem;
}

.problem-card h3 {
  max-width: 260px;
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.problem-card p {
  max-width: 300px;
  margin-bottom: 0;
  color: #b8c4c6;
  font-size: 0.92rem;
}

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

.field-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(251, 250, 246, 0.62);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.field-icon {
  margin-bottom: 66px;
  color: var(--accent);
  font-family: var(--industrial);
  font-size: 1rem;
  opacity: 0.72;
}

.field-card h3 {
  font-size: 1.75rem;
}

.field-card p {
  color: var(--ink-soft);
}

.field-result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: 90px;
}

.method-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.method-intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.method-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 33px 0;
  border-top: 1px solid var(--line);
}

.step-number {
  color: var(--accent);
  font-family: var(--industrial);
  font-size: 1.4rem;
}

.method-step h3 {
  font-size: 1.05rem;
}

.method-step p {
  margin: 0;
  color: var(--ink-soft);
}

.cases-section {
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.cases-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 54px;
}

.cases-head h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.cases-intro p {
  color: #b9c7ca;
}

.case-controls {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.case-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: transparent;
  cursor: pointer;
}

.case-controls button:hover,
.case-controls button:focus-visible {
  color: var(--ink);
  background: white;
}

.case-rail {
  display: grid;
  grid-auto-columns: minmax(310px, 0.73fr);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

.case-card {
  display: flex;
  min-height: 470px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #171e22;
  scroll-snap-align: start;
  transition: border-color 180ms ease, background 180ms ease;
}

.case-card:nth-child(2n) {
  background: #222c32;
}

.case-card:hover {
  border-color: var(--accent-soft);
  background: #253139;
}

.case-meta,
.case-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #9eafb4;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-sector {
  margin-top: 54px;
  color: #c4d0d2;
  font-size: 0.82rem;
}

.case-impact,
.case-detail-impact {
  margin-top: 16px;
  font-family: var(--industrial);
  font-size: clamp(3.1rem, 6vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.case-card:last-child .case-impact {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.case-result {
  margin-top: 12px;
  color: var(--accent-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.case-card > p {
  margin: 26px 0 30px;
  color: #b9c7ca;
  font-size: 0.87rem;
}

.case-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding: 15px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.case-dialog {
  width: min(920px, calc(100% - 28px));
  border-radius: 2px;
}

.case-dialog-close {
  position: sticky;
  top: 18px;
  z-index: 2;
  float: right;
  display: grid;
  width: 38px;
  height: 38px;
  margin: 18px 18px 0 0;
  place-items: center;
  color: white;
  background: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

.case-detail-content {
  padding: clamp(32px, 6vw, 74px);
}

.case-detail-head {
  padding-right: 55px;
  color: var(--ink-soft);
}

.case-detail-impact {
  margin: 50px 0 10px;
  color: var(--accent-dark);
}

.case-detail-content h2 {
  max-width: 700px;
  margin-bottom: 54px;
  font-family: var(--industrial);
  font-weight: 650;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.case-detail-grid > div {
  padding: 24px 20px 0 0;
}

.case-detail-grid > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.case-detail-grid strong {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-detail-grid p {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.fee-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 100px;
  align-items: center;
}

.fee-quote {
  position: relative;
  min-height: 430px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: white;
  background: var(--accent-dark);
  display: grid;
  align-items: end;
}

.fee-quote::before {
  position: absolute;
  top: 34px;
  left: 38px;
  color: var(--accent-soft);
  content: "↗";
  font-family: var(--industrial);
  font-size: 3.5rem;
}

.fee-quote p {
  max-width: 390px;
  margin: 0;
  font-family: var(--industrial);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 650;
  line-height: 1.08;
}

.fee-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}


.contact-band {
  overflow: hidden;
  padding: 90px 0;
  color: white;
  background: var(--ink);
}

.contact-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}

.contact-band h2 {
  max-width: 850px;
  margin: 0;
}

.contact-band .button {
  color: var(--ink);
  background: var(--accent-soft);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-copy {
  max-width: 420px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.page-hero {
  padding: 100px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 950px;
  font-size: clamp(3.3rem, 7vw, 6.3rem);
}

.page-hero p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.legal-hero {
  padding-bottom: 52px;
}

.legal-section {
  padding-top: 72px;
}

.legal-copy {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-copy h2 {
  margin: 52px 0 14px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

.legal-copy a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 100px;
  padding: 80px 0 120px;
}

.contact-note {
  padding: 26px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  background: rgba(251, 250, 246, 0.6);
  font-family: var(--display);
  font-size: 1.25rem;
}

.form-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

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

.field,
.field-full {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

label,
.label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fbfcfb;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 130px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 104, 120, 0.12);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}

.form-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.portal-page {
  min-height: 100vh;
  background: var(--paper);
}

.portal-login {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 8vw, 110px);
  background: var(--surface);
}

.login-panel .brand {
  position: absolute;
  top: 34px;
}

.login-lang {
  position: absolute;
  top: 34px;
  right: 34px;
}

.login-panel h1 {
  margin: 22px 0 14px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.login-panel > p {
  max-width: 470px;
  color: var(--ink-soft);
}

.login-form {
  max-width: 470px;
  margin-top: 28px;
}

.login-form .field {
  margin-bottom: 16px;
}

.login-form .button {
  width: 100%;
  margin-top: 8px;
}

.login-error {
  min-height: 24px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.78rem;
}

.login-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  padding: 50px;
  color: white;
  background: var(--accent-dark);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.login-visual::before {
  width: 680px;
  height: 680px;
}

.login-visual::after {
  width: 430px;
  height: 430px;
}

.visual-thought {
  position: relative;
  z-index: 1;
  width: min(570px, 92%);
}

.visual-thought blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.05;
}

.visual-thought p {
  max-width: 430px;
  margin-top: 30px;
  color: var(--accent-soft);
}

.portal-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 244px 1fr;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 27px 20px;
  color: white;
  background: var(--ink);
}

.portal-sidebar .brand {
  padding: 0 10px 30px;
}

.portal-sidebar .brand-logo {
  width: 155px;
  filter: grayscale(1) brightness(0) invert(1);
}

.portal-nav {
  display: grid;
  gap: 5px;
}

.portal-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 8px;
  color: #adbabc;
  font-size: 0.84rem;
}

.portal-nav a.active,
.portal-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.portal-sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-user {
  margin-bottom: 13px;
  color: #adbabc;
  font-size: 0.75rem;
}

.sidebar-user strong {
  display: block;
  color: white;
  font-size: 0.82rem;
}

.portal-main {
  min-width: 0;
  padding: 32px clamp(24px, 5vw, 62px) 70px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
}

.portal-topbar-note {
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.portal-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.portal-title-row h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.portal-title-row p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

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

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-label {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.stat-value {
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: 1;
}

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

.portal-card,
.demo-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-card {
  padding: 28px;
}

.portal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-card-head h3 {
  margin: 0;
}

.demo-list {
  display: grid;
  gap: 11px;
}

.demo-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.demo-row:first-child {
  border-top: 0;
}

.demo-symbol {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: var(--display);
}

.demo-row strong,
.demo-row small {
  display: block;
}

.demo-row small {
  color: var(--ink-soft);
}

.status-pill,
.type-pill,
.access-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.status-active {
  color: var(--success);
  background: #dfede7;
}

.status-off {
  color: #7a7770;
  background: #ebe9e3;
}

.type-pill {
  color: var(--accent-dark);
  background: #e2e8eb;
}

.access-pill {
  color: var(--accent-dark);
  background: #e2e8eb;
}

button.access-pill {
  cursor: pointer;
}

button.access-pill:hover,
button.access-pill:focus-visible {
  outline: 2px solid rgba(79, 104, 120, 0.22);
  outline-offset: 2px;
}

.access-popover {
  inset: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
}

.access-popover strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.access-popover ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-popover li {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.access-popover p {
  margin: 0;
  color: var(--ink-soft);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--ink-soft);
  background: var(--paper-2);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.person-cell strong,
.person-cell small {
  display: block;
}

.person-cell small {
  color: var(--ink-soft);
}

.password-cell {
  min-width: 180px;
}

.password-cell code {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 0.76rem;
  white-space: nowrap;
}

.password-cell .button-quiet {
  padding: 0;
  font-size: 0.72rem;
}

.search {
  width: min(300px, 100%);
}

.search input {
  background: var(--surface);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #bfc5c8;
  cursor: pointer;
  transition: background 160ms ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  content: "";
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.toggle[aria-checked="true"] {
  background: var(--success);
}

.toggle[aria-checked="true"]::after {
  transform: translateX(20px);
}

.demo-admin-grid,
.customer-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-admin-card,
.demo-tile {
  padding: 26px;
}

.demo-admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.demo-admin-top,
.demo-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.demo-admin-card h3,
.demo-tile h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
}

.demo-admin-card p,
.demo-tile p {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.demo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.demo-tile {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.demo-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.demo-tile .button {
  align-self: flex-start;
  margin-top: auto;
}

.empty-state {
  padding: 60px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

dialog {
  width: min(650px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 120px rgba(15, 25, 30, 0.3);
}

dialog::backdrop {
  background: rgba(15, 25, 30, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0;
}

.dialog-body {
  padding: 28px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}

.close-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.check-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  min-height: auto;
  height: 18px;
  accent-color: var(--accent);
}

.time-loading {
  padding: 80px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-align: center;
}

.time-title-actions,
.time-title-actions div {
  display: flex;
  gap: 10px;
}

.time-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.time-toolbar label {
  display: grid;
  gap: 6px;
}

.time-toolbar input {
  width: 175px;
  background: var(--surface);
}

.time-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.time-stat-grid .stat-card {
  min-width: 0;
  padding: 20px;
}

.time-stat-grid .stat-label {
  margin-bottom: 14px;
}

.time-stat-grid .stat-value {
  overflow: hidden;
  font-size: clamp(1.65rem, 2.2vw, 2.1rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-stat-grid small,
.time-table small,
.project-master-row small {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.time-stat-primary {
  color: white;
  background: var(--accent-dark);
}

.time-stat-primary .stat-label,
.time-stat-primary small {
  color: var(--accent-soft);
}

.negative {
  color: var(--danger);
}

.time-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.time-table {
  min-width: 1020px;
}

.time-table td {
  vertical-align: top;
}

.time-table td:first-child {
  min-width: 145px;
}

.time-table sup {
  color: var(--accent);
  font-size: 0.62rem;
}

.text-link {
  display: block;
  margin-top: 8px;
  padding: 0;
  color: var(--accent);
  font-size: 0.7rem;
  cursor: pointer;
}

.project-chip-list {
  display: grid;
  gap: 6px;
}

.project-chip {
  display: grid;
  min-width: 150px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.69rem;
}

.project-chip b {
  font-size: 0.74rem;
}

.status-partial {
  color: #8a641f;
  background: #f4e9ca;
}

.time-projects {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.project-master-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.project-master-row span {
  min-width: 0;
}

.project-master-row strong,
.project-master-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-dialog {
  width: min(980px, calc(100% - 32px));
}

.time-form-body {
  display: grid;
  gap: 16px;
  background: var(--paper);
}

.time-form-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.time-form-section h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.94rem;
}

.time-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.time-section-head > span {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
}

.compact-check {
  min-height: 46px;
  padding: 8px 11px;
}

.compact-check span,
.compact-check strong,
.compact-check small {
  display: block;
}

.compact-check small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.geo-note {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.45;
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.allowance-grid {
  margin-top: 14px;
}

.help-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--paper);
  font-weight: 800;
  cursor: pointer;
}

.allowance-popover {
  width: min(430px, calc(100% - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.allowance-popover p {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
}

.allocation-list {
  display: grid;
  gap: 9px;
}

.allocation-row {
  position: relative;
  display:  grid;
  grid-template-columns: minmax(230px, 1fr) 130px 130px 30px;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
}

.allocation-row:not(:has(.allocation-remove)) {
  grid-template-columns: minmax(230px, 1fr) 130px 130px;
}

.allocation-remove {
  height: 46px;
  color: var(--danger);
  background: transparent;
  cursor: pointer;
}

.time-form-section textarea[name="journalMarkdown"] {
  min-height: 260px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.55;
}

.time-details summary {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
}

.time-details[open] summary {
  margin-bottom: 18px;
}

.journal-view {
  margin: 0;
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.84rem;
  line-height: 1.65;
}

.dialog-actions {
  align-items: center;
  justify-content: space-between;
}

.dialog-actions > div {
  display: flex;
  gap: 10px;
}

.invite-preview {
  margin-top: 20px;
  padding: 18px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: #e2e8eb;
}

.invite-preview code {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(380px, calc(100% - 48px));
  padding: 14px 18px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.demo-preview-page {
  min-height: 100vh;
  padding: 30px;
  background: var(--paper);
}

.demo-preview-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.demo-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.preview-dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.preview-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.preview-panel.wide {
  grid-column: span 3;
}

.preview-panel.tall {
  grid-row: span 2;
}

.preview-kpi {
  font-family: var(--display);
  font-size: 2.5rem;
}

.mini-bars {
  display: flex;
  height: 190px;
  align-items: end;
  gap: 13px;
  padding-top: 20px;
}

.mini-bars span {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--accent-soft);
}

.mini-bars span:nth-child(3n) {
  background: var(--accent);
}

.muted {
  color: var(--ink-soft);
}

.tiny {
  font-size: 0.72rem;
}

.hidden {
  display: none !important;
}

@keyframes decision-drift-one {
  from { transform: translate3d(-2%, -1%, 0) scale(0.98); }
  to { transform: translate3d(6%, 5%, 0) scale(1.06); }
}

@keyframes decision-drift-two {
  from { transform: translate3d(2%, 3%, 0) scale(1.04); }
  to { transform: translate3d(-6%, -4%, 0) scale(0.98); }
}

@keyframes decision-focus-drift {
  from { transform: translate3d(-2%, -1%, 0); }
  to { transform: translate3d(3%, 2%, 0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: reveal 620ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 160ms; }
.reveal-delay-3 { animation-delay: 240ms; }

@media (max-width: 1000px) {
  .time-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.open {
    display: grid;
    gap: 18px;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
  }

  .header-actions > .button-secondary {
    display: none;
  }

  .hero-grid,
  .section-head,
  .method-layout,
  .cases-head,
  .fee-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 70px;
  }

  .diagnostic-card {
    width: min(560px, 100%);
  }

  .method-intro {
    position: static;
  }

  .impact-grid,
  .field-grid,
  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card:nth-child(2) {
    border-right: 0;
  }

  .problem-card:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

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

  .login-visual {
    min-height: 560px;
  }

  .portal-shell {
    grid-template-columns: 82px 1fr;
  }

  .portal-sidebar {
    padding-inline: 12px;
  }

  .portal-nav span:last-child,
  .portal-sidebar-bottom {
    display: none;
  }

  .portal-sidebar .brand-logo {
    width: 52px;
  }

  .portal-sidebar .brand,
  .portal-nav a {
    justify-content: center;
    padding-inline: 0;
  }

  .preview-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-panel.wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .time-title-row,
  .time-title-actions,
  .dialog-actions,
  .dialog-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .time-title-actions .button,
  .time-title-actions .button-secondary,
  .dialog-actions .button,
  .dialog-actions .button-secondary,
  .dialog-actions .button-danger {
    width: 100%;
  }

  .time-stat-grid,
  .meal-grid,
  .allocation-row,
  .allocation-row:not(:has(.allocation-remove)) {
    grid-template-columns: 1fr;
  }

  .allocation-remove {
    height: 32px;
  }

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

  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .lang-switch button {
    width: 27px;
    height: 25px;
  }

  .header-actions {
    gap: 7px;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero {
    padding-top: 75px;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .button-secondary {
    width: 100%;
  }

  .impact-grid,
  .field-grid,
  .problem-grid,
  .form-grid,
  .stat-grid,
  .portal-grid,
  .demo-admin-grid,
  .customer-demo-grid,
  .preview-dashboard {
    grid-template-columns: 1fr;
  }

  .impact-item,
  .impact-item:first-child {
    min-height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .problem-card,
  .problem-card + .problem-card,
  .problem-card:nth-child(3) {
    min-height: auto;
    padding: 30px 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .problem-no {
    margin-bottom: 30px;
  }

  .case-rail {
    grid-auto-columns: minmax(280px, 88vw);
  }

  .case-card {
    min-height: 440px;
  }

  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .case-detail-grid > div,
  .case-detail-grid > div + div {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .fee-section {
    gap: 60px;
  }

  .fee-quote {
    min-height: 360px;
    padding: 30px;
  }

  .contact-band-inner,
  .footer-grid,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .login-panel {
    min-height: 100vh;
    padding: 100px 24px 50px;
  }

  .login-lang {
    top: 32px;
    right: 24px;
  }

  .login-visual {
    display: none;
  }

  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: sticky;
    z-index: 20;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
  }

  .portal-sidebar .brand {
    padding: 0 12px 0 0;
  }

  .portal-nav {
    display: flex;
    margin-left: auto;
  }

  .portal-nav a {
    width: 42px;
  }

  .portal-nav .nav-dot {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #c7d1d2;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0;
  }

  .portal-nav .nav-dot::after {
    content: attr(data-short);
    font-size: 0.72rem;
    font-weight: 750;
  }

  .portal-main {
    padding: 24px 14px 60px;
  }

  .portal-topbar {
    margin-bottom: 36px;
  }

  .portal-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-title-row .button {
    align-self: flex-start;
  }

  .preview-panel.wide {
    grid-column: auto;
  }
}

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