:root {
  --ink: #0b2539;
  --ink-2: #17384f;
  --gold: #a98249;
  --gold-2: #c3a36c;
  --red: #b3261e;
  --red-2: #8f1d18;
  --paper: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef2f3;
  --line: #d9e0e3;
  --muted: #586872;
  --shadow: 0 20px 54px rgba(11, 37, 57, 0.12);
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0, #f8f9f7 360px, var(--paper) 100%);
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(11, 37, 57, 0.12);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px max(22px, calc((100vw - 1180px) / 2));
  box-shadow: 0 10px 28px rgba(11, 37, 57, 0.07);
  backdrop-filter: blur(14px);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0, var(--gold) 28%, var(--gold) 72%, transparent 100%);
  content: "";
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand img {
  width: 74px;
  height: 68px;
  border: 1px solid rgba(11, 37, 57, 0.12);
  border-radius: 6px;
  background: var(--surface);
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.brand__text strong {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.brand__text small {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 800;
}

nav a {
  border-radius: 999px;
  padding: 8px 11px;
}

nav a:hover,
nav a:focus {
  background: var(--surface-2);
  color: var(--ink);
}

nav a[href="#generator"] {
  background: var(--red);
  color: #ffffff;
}

nav a[href="#generator"]:hover,
nav a[href="#generator"]:focus {
  background: var(--red-2);
  color: #ffffff;
}

main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.5;
}

.hero__eyebrow {
  max-width: 760px;
  color: var(--ink-2);
  font-size: 1.05rem;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 4.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero__mark {
  width: 235px;
  margin: 24px 0 0;
}

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

.hero__actions .button {
  min-height: 56px;
  padding: 13px 26px;
  font-size: 1.16rem;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

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

.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.button--primary:hover,
.button--primary:focus {
  border-color: var(--gold);
  background: var(--gold);
}

.button--secondary,
.button--small {
  border-color: rgba(11, 37, 57, 0.18);
  background: var(--surface);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus,
.button--small:hover,
.button--small:focus {
  border-color: var(--gold);
  color: var(--gold);
}

.hero__actions .button--secondary[href="#generator"] {
  min-height: 68px;
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
  padding: 17px 32px;
  font-size: 1.28rem;
  box-shadow: 0 14px 28px rgba(179, 38, 30, 0.22);
}

.hero__actions .button--secondary[href="#generator"]:hover,
.hero__actions .button--secondary[href="#generator"]:focus {
  border-color: var(--red-2);
  background: var(--red-2);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.18), 0 16px 32px rgba(143, 29, 24, 0.24);
}

.button--small {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.9rem;
}

.hero__visual {
  position: relative;
  display: grid;
  align-self: center;
  justify-self: end;
  width: min(100%, 390px);
  border: 1px solid rgba(11, 37, 57, 0.14);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero__visual::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: -10px;
  width: 4px;
  background: var(--gold);
  content: "";
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 4.55;
  border-radius: 6px;
  object-fit: cover;
  object-position: center bottom;
}

.section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section--intro,
.contact,
.attorney {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 48px;
  align-items: start;
}

.section--intro {
  align-items: center;
  padding: 54px 0;
}

.section--intro p:last-child,
.contact p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section__heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section__heading p {
  color: var(--muted);
}

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

.service-grid article,
.activity-card,
.contact__cards a,
.contact-line,
.line-card {
  border: 1px solid rgba(11, 37, 57, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(11, 37, 57, 0.06);
}

.service-grid article {
  min-height: 186px;
  padding: 22px;
}

.service-grid article::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--gold);
  content: "";
}

.service-grid p,
.facts dd,
.fineprint,
.activity-card p {
  color: var(--muted);
}

.attorney {
  align-items: center;
}

.attorney__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(11, 37, 57, 0.12);
  border-radius: 8px;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: var(--shadow);
}

.attorney--compact {
  grid-template-columns: 384px minmax(0, 1fr);
}

.attorney__image--small {
  width: 100%;
}

.attorney__image--small img {
  aspect-ratio: 1 / 1.1;
}

.facts {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.facts div {
  border-left: 4px solid var(--gold);
  background: #ffffff;
  padding: 14px 16px;
}

.facts dt {
  color: var(--ink);
  font-weight: 900;
}

.facts dd {
  margin: 4px 0 0;
}

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

.activity-card {
  padding: 14px;
}

.activity-card__photo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
  margin-bottom: 14px;
}

.activity-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.activity-card h3 {
  margin-bottom: 6px;
}

.activity-card p {
  margin-bottom: 0;
}

.life-law {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(238, 242, 243, 0.64) 100%);
}

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

.knowledge-card {
  display: flex;
  min-height: 236px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(11, 37, 57, 0.12);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 14px 34px rgba(11, 37, 57, 0.06);
}

.knowledge-card span {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid rgba(169, 130, 73, 0.34);
  border-radius: 999px;
  background: #fbf8f1;
  color: #6f552d;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.knowledge-card h3 {
  margin: 18px 0 10px;
}

.knowledge-card p {
  color: var(--muted);
}

.knowledge-card p:last-child {
  margin-bottom: 0;
}

.knowledge-card--cta {
  border-color: rgba(179, 38, 30, 0.22);
  background: #fffafa;
}

.knowledge-card--feature {
  border-color: rgba(169, 130, 73, 0.34);
  background:
    linear-gradient(180deg, #fffdfa 0, #fff7e9 100%);
}

.slide-gallery {
  display: grid;
  gap: 22px;
}

.slide-card {
  margin: 0;
  border: 1px solid rgba(11, 37, 57, 0.12);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.slide-card img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.slide-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
}

.generator__layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1120px;
}

.tool-panel,
.template-panel {
  border: 1px solid rgba(11, 37, 57, 0.14);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.template-panel {
  position: sticky;
  top: 108px;
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.template-panel__heading p:last-child {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.template-list {
  display: grid;
  gap: 10px;
}

.template-option {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfb;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.template-option:hover,
.template-option:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 130, 73, 0.15);
}

.template-option strong {
  font-size: 0.98rem;
}

.template-option span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.draft-bar,
.download-flow {
  border: 1px solid rgba(169, 130, 73, 0.34);
  border-radius: 6px;
  background: #fbf8f1;
  padding: 12px 14px;
}

.draft-bar {
  margin-bottom: 20px;
  color: #6f552d;
  font-weight: 900;
}

.form-block {
  margin-bottom: 8px;
}

.form-block h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.download-flow {
  margin-top: 16px;
}

.download-flow strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.download-flow ol {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5da;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  min-height: 250px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(169, 130, 73, 0.16);
}

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

.tool-actions {
  margin-top: 10px;
}

.fineprint {
  margin: 16px 0 0;
  font-size: 0.92rem;
}

.copy-status {
  min-height: 1.5em;
  margin-bottom: 0;
  font-weight: 900;
}

.copy-status,
.copy-status[data-state="info"] {
  color: #285575;
}

.copy-status[data-state="success"] {
  color: #2d6734;
}

.copy-status[data-state="warning"] {
  color: #7c5b20;
}

.copy-status[data-state="error"] {
  color: #9a2d22;
}

.contact__cards {
  display: grid;
  gap: 12px;
}

.contact__cards a,
.contact-line {
  padding: 17px 18px;
  font-weight: 900;
}

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-line span {
  min-width: 0;
}

.contact-line .map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--red);
  color: #ffffff;
  box-shadow: none;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-line .map-link:hover,
.contact-line .map-link:focus {
  background: var(--red-2);
  color: #ffffff;
}

.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.line-card strong,
.line-card span {
  display: block;
}

.line-card span {
  margin-top: 4px;
  color: var(--muted);
}

.line-card img {
  width: 132px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.footer {
  padding: 26px 0 42px;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.footer__links a {
  border-radius: 0;
  color: var(--ink);
  font-weight: 800;
  padding: 0;
  text-decoration: none;
}

.footer__links a:hover,
.footer__links a:focus {
  background: transparent;
  color: var(--red);
}

@media (max-width: 1040px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .section--intro,
  .contact,
  .attorney,
  .generator__layout {
    grid-template-columns: 1fr;
  }

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

  .hero__visual {
    justify-self: start;
    max-width: 520px;
    width: min(100%, 520px);
  }

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

  .attorney--compact {
    grid-template-columns: 1fr;
  }

  .attorney__image--small {
    width: min(100%, 416px);
    max-width: 416px;
  }

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

  .template-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 178px;
  }

  main,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    gap: 12px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 62px;
    height: 58px;
  }

  .brand__text strong {
    font-size: 0.98rem;
  }

  .brand__text small {
    font-size: 0.66rem;
  }

  nav {
    gap: 4px;
    font-size: 0.88rem;
  }

  nav a {
    padding: 6px 8px;
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .hero {
    gap: 34px;
    padding: 42px 0 44px;
  }

  .hero__mark {
    width: min(100%, 205px);
  }

  .hero__visual {
    display: none;
  }

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

  .hero__actions .button {
    min-height: 58px;
    font-size: 1.16rem;
  }

  .service-grid,
  .activity-grid,
  .knowledge-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section--intro {
    padding: 44px 0;
  }

  .tool-panel,
  .template-panel {
    padding: 18px;
  }

  .line-card {
    grid-template-columns: 1fr;
  }
}

/* 2026 professional layout refresh */
:root {
  --ink: #182426;
  --ink-2: #2d3a3d;
  --gold: #9b7a43;
  --gold-2: #c4a15f;
  --red: #8d2f2a;
  --red-2: #6f2420;
  --paper: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #ece8de;
  --line: #ddd6ca;
  --muted: #667173;
  --shadow: 0 24px 60px rgba(24, 36, 38, 0.13);
}

body {
  background: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 36, 38, 0.96);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.utility-bar a:hover,
.utility-bar a:focus {
  color: #ffffff;
}

.topbar {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 0;
}

.topbar::after {
  display: none;
}

.brand img {
  width: 64px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

.brand__text strong,
.brand__text small,
.site-header nav {
  color: #ffffff;
}

.brand__text small {
  color: var(--gold-2);
}

.site-header nav a {
  border-radius: 0;
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 8px;
  white-space: nowrap;
}

.site-header nav a:hover,
.site-header nav a:focus {
  background: transparent;
  color: #ffffff;
}

.site-header nav a[href="#generator"] {
  border: 1px solid rgba(196, 161, 95, 0.48);
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  padding-inline: 14px;
}

main,
.footer {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 0;
  padding: 0;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(24, 36, 38, 0.92) 0%, rgba(24, 36, 38, 0.76) 43%, rgba(24, 36, 38, 0.32) 100%),
    linear-gradient(180deg, rgba(24, 36, 38, 0.08) 0%, rgba(24, 36, 38, 0.58) 100%);
  content: "";
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  min-height: 650px;
  margin: 0 auto;
  padding: 72px 0 96px;
  color: #ffffff;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: #182426;
  padding: 0;
  box-shadow: none;
}

.hero__visual::before {
  display: none;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}

.hero__eyebrow {
  margin-bottom: 16px;
  color: var(--gold-2);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  color: inherit;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 1.02;
}

.lead {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 800;
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__meta span::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold-2);
  content: "";
}

.hero__actions .button {
  width: auto;
  min-height: 52px;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 1rem;
}

.hero__actions .button--primary {
  border-color: var(--gold-2);
  background: var(--gold-2);
  color: #182426;
}

.hero__actions .button--secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1180px, calc(100% - 40px));
  margin: -58px auto 0;
  border: 1px solid rgba(221, 214, 202, 0.9);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(24, 36, 38, 0.12);
}

.quick-links a {
  display: grid;
  min-height: 138px;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 24px 22px;
}

.quick-links a:last-child {
  border-right: 0;
}

.quick-links span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.quick-links strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.quick-links small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  border-bottom-color: rgba(24, 36, 38, 0.12);
  padding: 86px 0;
}

.section-kicker,
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section--intro {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  padding-top: 92px;
}

.section--intro h2,
.section__heading h2,
.contact h2,
.attorney h2 {
  color: var(--ink);
}

.intro-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-stats div {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}

.intro-stats div:last-child {
  border-right: 0;
}

.intro-stats dt {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.intro-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 48px;
  max-width: none;
  margin-bottom: 34px;
}

.section__heading p {
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-grid article,
.knowledge-card,
.activity-card {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
}

.service-grid article {
  min-height: 210px;
  padding: 28px;
}

.service-grid article::before {
  width: 46px;
  height: 2px;
  background: var(--gold);
}

.button {
  border-radius: 4px;
}

.button--primary {
  border-color: var(--red);
  background: var(--red);
}

.button--primary:hover,
.button--primary:focus {
  border-color: var(--red-2);
  background: var(--red-2);
}

.attorney {
  width: 100%;
  max-width: none;
  border-bottom: 0;
  background: #ffffff;
  padding: 92px max(40px, calc((100vw - 1180px) / 2));
}

.attorney--compact {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.attorney__image img {
  border-radius: 0;
  box-shadow: none;
}

.facts div {
  border-left-color: var(--gold);
  background: #f8f6f1;
}

.activity-grid,
.knowledge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.activity-card {
  padding: 18px;
}

.activity-card__photo {
  border-radius: 0;
}

.life-law {
  width: 100%;
  max-width: none;
  background: #eee9df;
  padding-inline: max(40px, calc((100vw - 1180px) / 2));
}

.knowledge-card {
  min-height: 264px;
}

.knowledge-card span {
  border-radius: 4px;
  background: transparent;
}

.generator__layout {
  max-width: none;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.tool-panel,
.template-panel {
  border-radius: 0;
  box-shadow: none;
}

.contact {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
}

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

@media (max-width: 1040px) {
  .utility-bar,
  .topbar {
    width: min(100% - 32px, 1180px);
  }

  .quick-links,
  .section__heading,
  .section--intro,
  .contact,
  .attorney,
  .generator__layout {
    grid-template-columns: 1fr;
  }

  .quick-links {
    margin-top: 0;
  }

  .quick-links a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid,
  .activity-grid,
  .knowledge-grid,
  .intro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 154px;
  }

  .utility-bar {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .topbar {
    padding: 12px 0;
  }

  .site-header nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .hero,
  .hero__content {
    min-height: 610px;
  }

  .hero__content {
    width: min(100% - 28px, 1180px);
    padding: 58px 0 74px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(24, 36, 38, 0.88) 0%, rgba(24, 36, 38, 0.76) 100%);
  }

  .hero__actions .button {
    width: 100%;
  }

  .quick-links,
  .section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 62px 0;
  }

  .attorney,
  .life-law {
    padding-inline: 14px;
  }

  .service-grid,
  .activity-grid,
  .knowledge-grid,
  .intro-stats {
    grid-template-columns: 1fr;
  }

  .intro-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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