:root {
  color-scheme: light;
  --ink: #17130f;
  --ink-soft: #3c352e;
  --muted: #70695f;
  --paper: #f8f4ea;
  --paper-2: #eee6d8;
  --sheet: #fffdf7;
  --line: rgba(45, 38, 30, 0.17);
  --line-strong: rgba(45, 38, 30, 0.34);
  --gold: #a6813a;
  --gold-dark: #75581f;
  --black: #15120e;
  --gray: #d8d3ca;
  --max: 1180px;
  --chrome-height: 128px;
  --font-serif: Fraunces, Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: 112px;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 18, 14, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 18, 14, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: var(--font-sans);
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.9), rgba(248, 244, 234, 0.6) 35%, rgba(238, 230, 216, 0.72)),
    radial-gradient(circle at 78% 8%, rgba(166, 129, 58, 0.18), transparent 24rem);
}

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

h1,
h2,
h3,
p,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

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

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

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

[id] {
  scroll-margin-top: 148px;
}

.yaq-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.13);
  color: #f8f4ea;
  background: rgba(21, 18, 14, 0.94);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.yaq-strip a {
  color: #e2c377;
  white-space: nowrap;
}

.nt-header {
  position: fixed;
  top: 40px;
  left: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.nt-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.nt-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--black);
  color: var(--paper);
  background: var(--black);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 750;
}

.nt-brand strong,
.nt-brand small {
  display: block;
}

.nt-brand strong {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1;
}

.nt-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nt-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.nt-nav a,
.nt-header-cta,
.btn,
.service-grid a {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nt-nav a:hover,
.nt-nav a:focus-visible {
  color: var(--gold-dark);
}

.nt-header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--black);
  color: var(--paper);
  background: var(--black);
  font-weight: 800;
}

.hero {
  display: block;
  min-height: calc(100svh - var(--chrome-height));
  padding: clamp(12px, 2.5svh, 28px) 0 clamp(34px, 5svh, 64px);
}

.subpage-hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.subpage-hero .section-intro {
  max-width: 940px;
}

.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, min(5.2vw, 8.8svh), 5.9rem);
  font-weight: 650;
  line-height: 0.98;
}

.subpage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.page-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.case-file {
  position: relative;
  display: grid;
  min-height: min(690px, calc(100svh - var(--chrome-height) - 28px));
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(21, 18, 14, 0.82), rgba(21, 18, 14, 0.54) 44%, rgba(21, 18, 14, 0.2)),
    url("./novatax-office-building.png") center / cover no-repeat,
    var(--black);
}

.case-file::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 18, 14, 0.08), rgba(21, 18, 14, 0.48));
}

.case-meta,
.case-summary,
.case-actions,
.intake-head,
.intake-ledger dl {
  display: grid;
  align-items: center;
}

.case-meta {
  grid-template-columns: 1fr auto;
  gap: 18px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-title {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 820px;
  gap: clamp(18px, 3svh, 28px);
  align-content: end;
  padding: clamp(34px, 6vw, 70px);
}

.overline {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-intro h2,
.calculator-copy h2,
.final-inner h2 {
  font-family: var(--font-serif);
  font-weight: 650;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 1040px;
  font-size: clamp(3.1rem, min(5.35vw, 9.4svh), 6.1rem);
  line-height: 0.96;
}

.hero-lead {
  max-width: 620px;
  color: rgba(248, 244, 234, 0.82);
  font-size: clamp(1.02rem, 1.38vw, 1.18rem);
  line-height: 1.58;
}

.case-summary {
  grid-template-columns: minmax(0, 0.52fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 6vw, 92px);
  padding: 0 0 clamp(20px, 3.4svh, 34px);
}

.case-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
  list-style: none;
}

.case-notes li {
  min-width: 0;
  padding: clamp(12px, 2svh, 16px) 16px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.5);
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 780;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3svh, 28px);
}

.case-actions {
  width: fit-content;
  grid-template-columns: repeat(2, auto);
  gap: 12px;
  padding: 0;
}

.case-file .btn.primary {
  border-color: var(--paper);
  color: var(--black);
  background: var(--paper);
}

.case-file .btn.secondary {
  border-color: rgba(248, 244, 234, 0.72);
  color: var(--paper);
  background: rgba(21, 18, 14, 0.22);
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--black);
  font-weight: 850;
}

.btn.primary {
  color: var(--paper);
  background: var(--black);
}

.btn.secondary {
  color: var(--black);
  background: transparent;
}

.btn:hover,
.btn:focus-visible,
.nt-header-cta:hover,
.nt-header-cta:focus-visible,
.service-grid a:hover,
.service-grid a:focus-visible {
  transform: translateY(-2px);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: clamp(20px, 3.4svh, 30px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.trust-row li {
  min-width: 0;
  padding: clamp(10px, 1.7svh, 14px) 16px clamp(10px, 1.7svh, 14px) 0;
  color: var(--muted);
  font-size: clamp(0.86rem, 1vw, 0.94rem);
  font-weight: 700;
}

.trust-row li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.intake-ledger {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.62);
}

.intake-head {
  grid-template-columns: 1fr auto;
  gap: 18px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intake-head strong {
  color: var(--ink);
}

.intake-ledger dl {
  grid-template-columns: 1.1fr 0.9fr 1.1fr 0.75fr;
  margin: 0;
}

.intake-ledger div {
  min-width: 0;
  padding: clamp(14px, 2.2svh, 20px) 18px;
}

.intake-ledger div + div {
  border-left: 1px solid var(--line);
}

.intake-ledger dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intake-ledger dd {
  margin-top: 5px;
  font-size: clamp(1rem, 1.25vw, 1.24rem);
  font-weight: 900;
}

.ledger-board {
  position: relative;
  display: grid;
  gap: clamp(10px, 1.8svh, 16px);
  max-height: min(660px, calc(100svh - var(--chrome-height) - 44px));
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(238, 230, 216, 0.66)),
    var(--sheet);
  box-shadow: 0 34px 80px rgba(49, 39, 23, 0.13);
}

.ledger-top,
.client-card dl,
.mini-ledger tr,
.pipeline div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ledger-top {
  padding-bottom: clamp(10px, 1.6svh, 14px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ledger-top strong {
  color: var(--ink);
}

.client-card {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  background: var(--sheet);
}

.label {
  color: var(--gold-dark);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-card h2 {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, min(2.45vw, 4.2svh), 2.15rem);
  line-height: 1.02;
}

.client-card dl {
  margin-top: clamp(16px, 2.7svh, 22px);
}

.client-card div {
  min-width: 0;
}

.client-card dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-card dd {
  margin-top: 3px;
  font-weight: 850;
}

.document-stack {
  display: grid;
  gap: clamp(6px, 1svh, 8px);
}

.document-stack span {
  display: block;
  height: clamp(18px, 3.1svh, 26px);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--gray) 0 30%, transparent 30% 34%, var(--gray) 34% 68%, transparent 68%),
    var(--sheet);
}

.document-stack span:nth-child(2) {
  width: 88%;
}

.document-stack span:nth-child(3) {
  width: 72%;
}

.mini-ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  font-size: clamp(0.82rem, 0.95vw, 0.9rem);
}

.mini-ledger caption {
  padding: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.mini-ledger th,
.mini-ledger td {
  padding: clamp(7px, 1.4svh, 11px) 8px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.mini-ledger td:last-child {
  color: var(--gold-dark);
  font-weight: 850;
  text-align: right;
}

.split-section,
.calculator-section,
.human-section,
.workflow-section,
.lead-panel-section,
.trust-section,
.improvements-section {
  padding: clamp(76px, 10vw, 126px) 0;
  border-top: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.section-intro {
  display: grid;
  gap: 18px;
}

.section-intro.narrow {
  max-width: 780px;
  margin-bottom: clamp(30px, 5vw, 56px);
}

.section-intro h2,
.calculator-copy h2,
.final-inner h2 {
  font-size: clamp(2.15rem, min(4vw, 7.4svh), 4.35rem);
  line-height: 1;
}

.section-intro p:not(.overline),
.calculator-copy p:not(.overline),
.final-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.quote-form,
.calculator,
.lead-panel {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.74);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

fieldset {
  min-width: 0;
  padding: 18px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.56);
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

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

.quote-form label,
.calc-options label {
  cursor: pointer;
}

fieldset label,
.check-grid label,
.calc-options label {
  display: flex;
  gap: 9px;
  align-items: start;
  margin-top: 10px;
  color: var(--ink-soft);
  font-weight: 650;
  line-height: 1.35;
}

input[type="radio"],
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--black);
}

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

.contact-grid label,
.message-label,
.range-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  background: var(--sheet);
  outline: none;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
select {
  min-height: 48px;
  padding: 0 13px;
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.submit-btn {
  width: fit-content;
  cursor: pointer;
}

.form-success {
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  color: var(--ink);
  background: rgba(166, 129, 58, 0.12);
  font-weight: 750;
  line-height: 1.5;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.calculator {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.range-label {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.range-label strong {
  color: var(--ink);
  font-size: 1.1rem;
  text-transform: none;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--black);
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.calc-options label {
  min-height: 58px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--sheet);
}

.calc-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calc-result span {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calc-result strong {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.calc-result small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 1rem;
}

.human-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(300px, 0.42fr);
  gap: 1px;
  padding: clamp(54px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.office-building-section {
  position: relative;
  display: grid;
  min-height: clamp(420px, 48vw, 640px);
  align-items: end;
  margin-top: clamp(8px, 2vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--black);
}

.office-building-photo {
  position: absolute;
  inset: 0;
}

.office-building-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 18, 14, 0.04), rgba(21, 18, 14, 0.5));
}

.office-building-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
}

.office-building-card {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 520px;
  gap: 14px;
  margin: clamp(18px, 3vw, 34px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(248, 244, 234, 0.42);
  color: var(--paper);
  background: rgba(21, 18, 14, 0.78);
}

.office-building-card .overline {
  color: #e2c377;
}

.office-building-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, min(3vw, 5.6svh), 3rem);
  font-weight: 650;
  line-height: 1.02;
}

.office-building-card p:not(.overline) {
  color: rgba(248, 244, 234, 0.76);
  line-height: 1.58;
}

.human-photo,
.human-copy {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 247, 0.72);
}

.human-photo {
  overflow: hidden;
  height: clamp(360px, 38vw, 500px);
}

.human-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.02);
}

.human-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(28px, 5vw, 56px);
}

.human-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, min(3vw, 5.8svh), 3.2rem);
  font-weight: 650;
  line-height: 1.03;
}

.human-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.human-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 10px;
  border: 1px solid var(--line);
}

.human-facts div {
  min-width: 0;
  padding: 16px;
}

.human-facts div + div {
  border-left: 1px solid var(--line);
}

.human-facts dt {
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.human-facts dd {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.32;
}

.services-section {
  padding: clamp(76px, 10vw, 126px) 0;
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  background: var(--line);
  gap: 1px;
}

.service-grid article {
  display: grid;
  min-height: clamp(220px, 24vw, 260px);
  align-content: space-between;
  gap: 20px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 253, 247, 0.72);
}

.service-grid span,
.workflow-list span,
.pipeline span {
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-grid h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.75vw, 1.72rem);
  line-height: 1.1;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.service-grid a {
  width: fit-content;
  border-bottom: 1px solid var(--gold);
  color: var(--black);
  font-weight: 900;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  margin: clamp(30px, 5vw, 58px) 0 0;
  border: 1px solid var(--line-strong);
  list-style: none;
}

.workflow-list li {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 253, 247, 0.68);
}

.workflow-list li + li {
  border-left: 1px solid var(--line);
}

.workflow-list strong {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.78rem);
  line-height: 1.12;
}

.workflow-list p {
  color: var(--muted);
  line-height: 1.55;
}

.ksef-section {
  position: relative;
  overflow: hidden;
  margin: clamp(28px, 5vw, 54px) 0;
  padding: clamp(58px, 8vw, 96px) 0;
  color: var(--paper);
  background: var(--black);
}

.ksef-section::before {
  content: none;
}

.ksef-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: start;
}

.ksef-copy {
  display: grid;
  gap: 18px;
}

.ksef-copy .overline {
  color: #e2c377;
}

.ksef-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, min(4vw, 7svh), 4.2rem);
  font-weight: 650;
  line-height: 1;
}

.ksef-copy p,
.ksef-timeline p,
.ksef-note {
  color: rgba(248, 244, 234, 0.74);
  line-height: 1.62;
}

.ksef-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ksef-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 19px;
  width: 1px;
  background: linear-gradient(180deg, #e2c377, rgba(248, 244, 234, 0.18));
}

.ksef-timeline li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  padding: 0 0 clamp(24px, 3vw, 34px);
}

.ksef-timeline li:last-child {
  padding-bottom: 0;
}

.ksef-timeline span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(226, 195, 119, 0.72);
  color: #e2c377;
  background: #17130f;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.ksef-timeline strong {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.05;
}

.ksef-timeline div {
  min-width: 0;
  padding-top: 2px;
}

.ksef-note {
  grid-column: 1 / -1;
  max-width: 920px;
  padding-top: 22px;
  border-top: 1px solid rgba(248, 244, 234, 0.2);
  font-size: 0.95rem;
}

.lead-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(260px, 0.4fr);
  gap: 1px;
  margin-top: clamp(30px, 5vw, 58px);
  background: var(--line);
}

.pipeline,
.status-board {
  display: grid;
  gap: 0;
  background: rgba(255, 253, 247, 0.72);
}

.pipeline div {
  min-height: 88px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.pipeline div:last-child {
  border-bottom: 0;
}

.pipeline strong {
  max-width: 280px;
  text-align: right;
}

.status-board {
  align-content: start;
  padding: 18px;
}

.status {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.status::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
}

.status.is-active {
  color: var(--black);
}

.status.is-active::after {
  background: var(--gold);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.proof-grid article {
  min-height: 180px;
  padding: 26px;
  background: rgba(255, 253, 247, 0.76);
}

.proof-grid span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
}

.proof-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.specializations {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.specializations strong,
.specializations span {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.62);
}

.specializations span {
  color: var(--gold-dark);
  font-weight: 850;
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 22px;
  border: 1px solid var(--line-strong);
  background: var(--line);
}

.reviews blockquote {
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 253, 247, 0.72);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.28;
}

.reviews cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
}

.improvement-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  margin: clamp(30px, 5vw, 58px) 0 0;
  border: 1px solid var(--line-strong);
  background: var(--line);
  list-style: none;
}

.improvement-list li {
  min-height: 106px;
  padding: 24px;
  background: rgba(255, 253, 247, 0.7);
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 850;
}

.improvement-list li::before {
  content: "✓";
  display: block;
  margin-bottom: 12px;
  color: var(--gold-dark);
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(34px, 5vw, 70px);
  padding: clamp(70px, 9vw, 118px) 0;
  color: var(--paper);
  background: var(--black);
  border-top: 1px solid rgba(248, 244, 234, 0.14);
}

.light-beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  overflow: hidden;
}

.beam {
  position: absolute;
  right: -16vw;
  width: min(86vw, 980px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.04), transparent);
  filter: blur(0.4px);
  transform: rotate(-16deg);
  transform-origin: center;
  animation: beamDrift 9s linear infinite;
}

.beam-1 {
  top: 26%;
}

.beam-2 {
  top: 43%;
  animation-duration: 12s;
  animation-delay: -5s;
  opacity: 0.48;
}

.beam-3 {
  top: 62%;
  animation-duration: 15s;
  animation-delay: -9s;
  opacity: 0.34;
}

.beam-4 {
  top: 78%;
  animation-duration: 18s;
  animation-delay: -3s;
  opacity: 0.26;
}

.final-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  padding-top: clamp(28px, 5vw, 46px);
  border-top: 1px solid rgba(248, 244, 234, 0.24);
}

.final-inner .overline {
  color: #e2c377;
}

.final-inner h2 {
  max-width: 930px;
}

.final-inner p {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(248, 244, 234, 0.74);
}

.final-inner .btn.primary {
  border-color: var(--paper);
  color: var(--black);
  background: var(--paper);
}

.final-inner .btn.secondary {
  border-color: rgba(248, 244, 234, 0.36);
  color: var(--paper);
  background: transparent;
}

@keyframes beamDrift {
  0% {
    transform: translateX(-18vw) rotate(-16deg);
  }

  100% {
    transform: translateX(18vw) rotate(-16deg);
  }
}

.nt-footer {
  display: flex;
  width: min(calc(100% - 44px), var(--max));
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nt-footer a {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .nt-header-inner {
    grid-template-columns: 1fr auto;
  }

  .nt-nav {
    display: none;
  }

  .split-section,
  .calculator-section,
  .human-section,
  .ksef-inner,
  .lead-panel {
    grid-template-columns: 1fr;
  }

  .case-summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .intake-ledger dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .intake-ledger div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .intake-ledger div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .service-grid,
  .workflow-list,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-list li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .workflow-list li:nth-child(2) {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .workflow-list li:nth-child(4) {
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 981px) and (max-height: 850px) {
  .hero {
    padding-top: clamp(18px, 3.2svh, 32px);
    padding-bottom: 28px;
  }

  .case-file {
    min-height: calc(100svh - var(--chrome-height) - 60px);
  }

  .case-title {
    padding: clamp(24px, 4.4svh, 38px) clamp(32px, 4.2vw, 54px) clamp(16px, 2.7svh, 26px);
  }

  .hero h1 {
    max-width: 980px;
    font-size: clamp(3rem, min(4.65vw, 8.2svh), 5.05rem);
    line-height: 0.97;
  }

  .overline {
    font-size: 0.72rem;
  }

  .hero-lead {
    max-width: 600px;
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .case-summary {
    padding-bottom: clamp(14px, 2.5svh, 24px);
  }

  .case-actions {
    padding-bottom: clamp(16px, 2.8svh, 28px);
  }

  .intake-head {
    min-height: 38px;
  }

  .intake-ledger div {
    padding-block: 12px;
  }

  .btn {
    min-height: 46px;
    padding-inline: 18px;
  }

  .ledger-board {
    max-height: calc(100svh - var(--chrome-height) - 34px);
    padding: 18px;
  }

  .client-card {
    padding: 18px;
  }

  .client-card h2 {
    font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  }

  .client-card dl {
    margin-top: 16px;
  }

  .document-stack span {
    height: 18px;
  }

  .mini-ledger caption {
    padding-bottom: 7px;
  }

  .mini-ledger th,
  .mini-ledger td {
    padding-block: 7px;
  }

  .services-section {
    padding-top: clamp(54px, 8svh, 76px);
  }

  .section-intro.narrow {
    margin-bottom: clamp(24px, 4svh, 42px);
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 156px;
  }

  [id] {
    scroll-margin-top: 200px;
  }

  .yaq-strip {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .yaq-strip a {
    display: none;
  }

  .nt-header {
    top: 38px;
  }

  .nt-header-inner {
    width: calc(100% - 28px);
    gap: 12px;
  }

  .nt-header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .nt-mark {
    width: 40px;
    height: 40px;
  }

  .nt-brand strong {
    font-size: 1.05rem;
  }

  .nt-brand small {
    font-size: 0.63rem;
  }

  .section-frame,
  .nt-footer {
    width: calc(100% - 32px);
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .case-file {
    min-height: 520px;
  }

  .case-meta {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 0;
    line-height: 1.35;
  }

  .case-title {
    padding: 28px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .hero-actions,
  .case-actions,
  .subpage-actions,
  .page-link-row,
  .btn {
    width: 100%;
  }

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

  .case-notes {
    margin-top: 4px;
  }

  .intake-head,
  .intake-ledger dl {
    grid-template-columns: 1fr;
  }

  .intake-head {
    align-items: start;
    padding: 12px 16px;
  }

  .intake-ledger div + div,
  .intake-ledger div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-row,
  .form-grid,
  .check-grid,
  .contact-grid,
  .calc-options,
  .human-facts,
  .service-grid,
  .compact-services .service-grid,
  .workflow-list,
  .proof-grid,
  .reviews,
  .improvement-list {
    grid-template-columns: 1fr;
  }

  .trust-row li + li {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .human-photo {
    height: 260px;
  }

  .office-building-section {
    min-height: 430px;
  }

  .office-building-card {
    margin: 16px;
  }

  .human-facts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .client-card dl,
  .range-label,
  .calc-result,
  .pipeline div,
  .nt-footer {
    display: grid;
  }

  .pipeline strong {
    max-width: none;
    text-align: left;
  }

  .workflow-list li:nth-child(2),
  .workflow-list li:nth-child(4) {
    border-left: 0;
  }

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

@media (max-width: 430px) {
  .nt-header-inner {
    grid-template-columns: 1fr;
  }

  .nt-header-cta {
    width: 100%;
  }

  .ledger-board,
  .quote-form,
  .calculator {
    padding: 16px;
  }
}

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