:root {
  --color-charcoal: #384040;
  --color-gold: #b89858;
  --color-ink: #111414;
  --color-paper: #f7f5ef;
  --color-surface: #ece8dd;
  --color-muted: #59615e;
  --color-rule: #d7d1c2;
  --color-white: #ffffff;
  --color-sage: #717d72;
  --color-clay: #9b624b;
  --color-brass: #8f7a4f;
  --color-linen: #f3efe6;
  --color-moss: #4b554d;
  --font-body: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-display: Newsreader, "Source Serif 4", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --container: min(1180px, calc(100% - 40px));
  --radius: 8px;
  --shadow: 0 24px 80px rgba(17, 20, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(155, 98, 75, 0.055), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(113, 125, 114, 0.09), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, var(--color-paper) 42%, #eee9dd 100%);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--color-brass);
  outline-offset: 4px;
}

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

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--color-paper);
  background: var(--color-charcoal);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(215, 209, 194, 0.82);
  background: rgba(247, 245, 239, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-charcoal);
}

.brand-lockup img {
  width: 66px;
  height: 36px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--color-ink);
  background: rgba(113, 125, 114, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-charcoal);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto 5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:not(.sr-only):last-of-type {
  margin-bottom: 0;
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.capabilities,
.service-index,
.method,
.casework,
.faq,
.contact {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-paper);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background:
    radial-gradient(circle at 14% 18%, rgba(155, 98, 75, 0.05), transparent 32%),
    radial-gradient(circle at 86% 68%, rgba(113, 125, 114, 0.1), transparent 34%);
  mix-blend-mode: multiply;
}

.hero::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(247, 245, 239, 0.9) 38%, rgba(247, 245, 239, 0.54) 66%, rgba(247, 245, 239, 0.18) 100%),
    linear-gradient(180deg, rgba(251, 250, 246, 0.42), transparent 48%, rgba(236, 232, 221, 0.26));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.32;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 32%, black 56%, black 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 32%, black 56%, black 100%);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(0.96);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shell {
  position: relative;
  z-index: 3;
  width: var(--container);
  min-height: inherit;
  margin: 0 auto;
  padding: 54px 0 44px;
  display: grid;
  align-content: space-between;
  gap: 28px;
}

.hero-rule {
  min-height: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(56, 64, 64, 0.2);
  border-bottom: 1px solid rgba(56, 64, 64, 0.1);
  color: rgba(56, 64, 64, 0.68);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
}

.hero-rule span:last-child {
  justify-self: end;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 1fr);
  align-items: end;
  gap: 38px;
}

.hero-copy {
  max-width: 660px;
  padding: 34px 0 30px;
}

.hero h1 {
  max-width: 650px;
  overflow-wrap: normal;
  font-size: 56px;
  line-height: 1.08;
  word-break: keep-all;
}

.hero h1 span {
  display: block;
}

.hero .eyebrow {
  color: var(--color-clay);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-charcoal);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 64px;
  font-weight: 850;
}

h2 {
  max-width: 760px;
  font-size: 42px;
  font-weight: 820;
}

h3 {
  font-size: 21px;
  font-weight: 780;
}

.hero-lead {
  max-width: 440px;
  margin: 22px 0 0;
  color: var(--color-charcoal);
  font-size: 18px;
  font-weight: 650;
}

.hero-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: var(--color-paper);
  background: var(--color-moss);
  box-shadow: 0 14px 36px rgba(56, 64, 64, 0.14);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(56, 64, 64, 0.18);
}

.button-secondary {
  color: var(--color-charcoal);
  border-color: var(--color-rule);
  background: rgba(247, 245, 239, 0.72);
  backdrop-filter: blur(10px);
}

.hero-facts {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 30px;
}

.hero-facts div {
  min-height: 92px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(56, 64, 64, 0.14);
  background: rgba(247, 245, 239, 0.56);
  backdrop-filter: blur(8px);
}

.hero-facts dt {
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.motion-frame {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 542px;
  overflow: hidden;
  pointer-events: none;
  display: grid;
  align-items: center;
}

.motion-plate-media {
  position: absolute;
  inset: 28px 0 28px 28px;
  z-index: 0;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(113, 125, 114, 0.2);
  opacity: 0.18;
  filter: saturate(0.72) contrast(0.94);
}

.motion-plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.motion-frame::before,
.motion-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.motion-frame::before {
  inset: 28px 0 28px 28px;
  z-index: 1;
  border: 1px solid rgba(113, 125, 114, 0.22);
  background: linear-gradient(180deg, rgba(247, 245, 239, 0.12), rgba(247, 245, 239, 0.02));
  box-shadow: inset 0 0 0 1px rgba(56, 64, 64, 0.07);
}

.motion-frame::after {
  display: none;
}

.proof-ledger {
  position: relative;
  z-index: 3;
  width: min(520px, calc(100% - 56px));
  margin-left: 54px;
  padding: 22px;
  border: 1px solid rgba(56, 64, 64, 0.14);
  border-radius: var(--radius);
  color: var(--color-charcoal);
  background: rgba(247, 245, 239, 0.9);
  box-shadow: 0 24px 70px rgba(56, 64, 64, 0.12);
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(56, 64, 64, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.4;
  text-transform: uppercase;
}

.ledger-head strong {
  color: var(--color-moss);
}

.ledger-metrics {
  margin: 0;
}

.ledger-metrics div {
  display: grid;
  grid-template-columns: minmax(104px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(56, 64, 64, 0.1);
}

.ledger-metrics dt,
.ledger-checks span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.4;
  text-transform: uppercase;
}

.ledger-metrics dt {
  color: var(--color-muted);
}

.ledger-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.35;
}

.ledger-checks {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ledger-checks li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ledger-checks span {
  color: var(--color-moss);
}

.ledger-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.ledger-routes span {
  padding: 5px 8px;
  border: 1px solid rgba(56, 64, 64, 0.12);
  border-radius: 999px;
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.44);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.domain-strip {
  width: 100%;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  background: rgba(236, 232, 221, 0.62);
}

.domain-strip {
  display: grid;
  grid-template-columns: minmax(160px, 0.24fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px max(20px, calc((100% - 1180px) / 2));
}

.strip-label {
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.6;
  text-transform: uppercase;
}

.domain-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.domain-strip li {
  padding: 6px 10px;
  border: 1px solid rgba(56, 64, 64, 0.12);
  border-radius: 999px;
  color: var(--color-charcoal);
  background: rgba(247, 245, 239, 0.72);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
}

.proof-band {
  width: 100%;
  border-top: 1px solid rgba(215, 209, 194, 0.82);
  border-bottom: 1px solid var(--color-rule);
  background:
    linear-gradient(180deg, rgba(247, 245, 239, 0.42), rgba(232, 228, 216, 0.78)),
    rgba(232, 228, 216, 0.78);
  color: var(--color-charcoal);
}

.proof-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: end;
  gap: 36px;
}

.proof-copy h2 {
  color: var(--color-charcoal);
  font-size: 30px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.proof-grid div {
  min-height: 124px;
  padding: 16px;
  border: 1px solid rgba(56, 64, 64, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.proof-grid dt {
  color: var(--color-brass);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 820;
  line-height: 1.1;
}

.proof-grid dd {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.capabilities,
.service-index,
.method,
.casework,
.faq {
  padding: 104px 0 0;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.56fr);
  align-items: end;
  gap: 44px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.capability-grid,
.service-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability-grid article,
.service-card,
.case-grid article {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.capability-grid article {
  min-height: 264px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.capability-grid span {
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.capability-grid h3 {
  margin-top: auto;
}

.capability-grid p,
.service-card p,
.case-grid h3 {
  margin: 14px 0 0;
  color: var(--color-muted);
}

.service-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  min-height: 278px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 125, 114, 0.5);
  box-shadow: 0 18px 44px rgba(17, 20, 20, 0.09);
}

.service-card .service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}

.service-card .service-name {
  color: var(--color-charcoal);
  font-size: 22px;
  line-height: 1.1;
}

.service-card .service-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--color-charcoal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.service-card .service-host {
  display: block;
  margin-top: 18px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
}

.service-card .service-link::after,
.case-grid a::after {
  content: " ->";
  color: var(--color-brass);
}

.service-loading,
.service-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius);
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.35);
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-rule);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-rule);
}

.method-list span {
  color: var(--color-charcoal);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 780;
}

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

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

.case-grid article {
  min-height: 238px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.case-grid p {
  margin: 0;
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.case-grid h3 {
  color: var(--color-charcoal);
}

.case-grid a {
  margin-top: auto;
  padding-top: 28px;
  color: var(--color-charcoal);
  font-weight: 780;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: rgba(247, 245, 239, 0.78);
}

.faq-grid p {
  margin: 14px 0 0;
  color: var(--color-muted);
}

.contact {
  margin-top: 104px;
  margin-bottom: 96px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(113, 125, 114, 0.36);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(75, 85, 77, 0.96), rgba(56, 64, 64, 0.94)),
    var(--color-moss);
  color: var(--color-paper);
  box-shadow: var(--shadow);
}

.contact h2,
.contact p {
  color: inherit;
}

.contact p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: rgba(247, 245, 239, 0.76);
}

.contact .button-primary {
  color: var(--color-charcoal);
  background: var(--color-paper);
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid var(--color-rule);
  background: var(--color-surface);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.footer-brand img {
  width: 90px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-sitemap div {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-sitemap h2 {
  margin: 0 0 6px;
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-sitemap a {
  color: var(--color-charcoal);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.4;
}

.footer-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(56, 64, 64, 0.12);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.detail-main {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.detail-hero {
  min-height: 56svh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: 48px;
  padding: 42px 0 58px;
  border-bottom: 1px solid var(--color-rule);
}

.detail-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.detail-panel {
  padding: 22px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
}

.detail-panel h2 {
  font-size: 22px;
}

.detail-panel dl {
  margin: 20px 0 0;
}

.detail-panel div + div {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-rule);
}

.detail-panel dt {
  color: var(--color-brass);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 780;
  text-transform: uppercase;
}

.detail-panel dd {
  margin: 4px 0 0;
  color: var(--color-charcoal);
  font-weight: 720;
}

.detail-section {
  padding-top: 76px;
}

.detail-grid,
.service-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-card,
.service-directory-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.detail-card p,
.service-directory-grid p {
  margin: 14px 0 0;
  color: var(--color-muted);
}

.service-directory-grid article {
  display: flex;
  flex-direction: column;
}

.service-directory-grid a {
  margin-top: auto;
  padding-top: 22px;
  color: var(--color-charcoal);
  font-weight: 780;
}

.service-directory-grid a::after {
  content: " ->";
  color: var(--color-brass);
}

.js-enabled .section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.2, 0.75, 0.34, 0.94), transform 700ms cubic-bezier(0.2, 0.75, 0.34, 0.94);
}

.js-enabled .section-reveal.is-visible,
.section-reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-12px, -8px, 0);
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero-media {
    opacity: 0.12;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(251, 250, 246, 0.97) 0%, rgba(247, 245, 239, 0.9) 48%, rgba(247, 245, 239, 0.26) 100%),
      linear-gradient(180deg, rgba(251, 250, 246, 0.42), transparent 44%, rgba(236, 232, 221, 0.16));
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-shell {
    padding: 42px 0 38px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-facts,
  .motion-frame {
    grid-column: auto;
    grid-row: auto;
  }

  .hero h1 {
    max-width: 760px;
    font-size: 50px;
  }

  .motion-frame {
    width: min(100%, 720px);
    min-height: 360px;
    justify-self: end;
  }

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 66px;
  }

  .brand-lockup span {
    font-size: 18px;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 20px;
    left: 20px;
    max-height: calc(100svh - 86px);
    overflow-y: auto;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--color-rule);
    border-radius: var(--radius);
    background: rgba(247, 245, 239, 0.98);
    box-shadow: 0 18px 48px rgba(17, 20, 20, 0.16);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: var(--radius);
    padding: 12px;
  }

  h1 {
    font-size: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .section-heading.split,
  .contact,
  .footer-inner,
  .footer-sitemap,
  .domain-strip,
  .proof-inner,
  .detail-hero,
  .detail-grid,
  .service-directory-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    gap: 18px;
  }

  .hero-rule {
    grid-template-columns: 1fr;
    padding: 8px 0;
  }

  .hero-rule span:last-child {
    justify-self: start;
  }

  .hero-facts,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .method-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    align-items: start;
  }

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

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  .brand-lockup {
    gap: 8px;
  }

  .brand-lockup img {
    width: 58px;
    height: 32px;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247, 245, 239, 0.98) 0%, rgba(247, 245, 239, 0.92) 47%, rgba(247, 245, 239, 0.22) 100%),
      linear-gradient(90deg, rgba(247, 245, 239, 0.95), rgba(247, 245, 239, 0.2));
  }

  .hero-shell {
    padding: 32px 0 34px;
    gap: 20px;
  }

  .hero-rule {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: auto;
    font-size: 10px;
  }

  .hero-copy {
    order: 1;
    padding: 18px 0 8px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.12;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 19px;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 16px;
  }

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

  .hero-actions {
    order: 2;
  }

  .motion-frame {
    order: 3;
    min-height: auto;
    margin-top: 10px;
  }

  .motion-frame::before {
    inset: 16px 0 16px 0;
    background: linear-gradient(180deg, rgba(247, 245, 239, 0.12), rgba(247, 245, 239, 0.02));
  }

  .motion-plate-media {
    inset: 16px 0;
    display: block;
  }

  .proof-ledger {
    width: 100%;
    margin: 0;
    padding: 16px;
  }

  .ledger-head {
    display: grid;
    gap: 4px;
  }

  .ledger-metrics div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 10px 0;
  }

  .ledger-metrics dd {
    font-size: 14px;
  }

  .hero-facts {
    order: 4;
  }

  .domain-strip {
    padding: 16px;
  }

  .domain-strip ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .capabilities,
  .service-index,
  .method,
  .casework,
  .faq {
    padding-top: 70px;
  }

  .capability-grid,
  .service-grid,
  .case-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .service-card,
  .case-grid article {
    min-height: auto;
  }

  .contact {
    margin-top: 72px;
    margin-bottom: 72px;
    padding: 24px;
  }

  .proof-inner {
    padding: 34px 0;
  }

  .detail-main {
    padding: 42px 0 72px;
  }

  .detail-hero {
    min-height: auto;
    padding: 28px 0 44px;
  }
}

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

  .section-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    animation: none !important;
    transform: none;
  }

  .button:hover {
    transform: none;
  }
}
