:root {
  --ivory: #e7dccd;
  --paper: #f1e8dc;
  --ink: #252622;
  --ink-soft: #54564f;
  --sage: #758174;
  --sage-pale: #c9cec4;
  --burgundy: #743b47;
  --burgundy-dark: #542b35;
  --line: #c2b3a1;
  --focus: #a76439;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  --shell: min(1120px, calc(100% - 40px));
  --shadow: 0 20px 55px rgba(45, 42, 36, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

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

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

::selection {
  background: var(--sage-pale);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: 0 8px 20px rgba(45, 42, 36, 0.08);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 5px rgba(119, 63, 73, 0.12);
}

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

.site-nav a {
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--burgundy);
}

.site-nav .nav-contact {
  margin-left: 7px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
}

.site-nav .nav-contact:hover,
.site-nav .nav-contact[aria-current="page"] {
  background: var(--burgundy);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8vw, 6.6rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--burgundy-dark);
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

.button-secondary {
  background: transparent;
  color: var(--burgundy);
}

.button-secondary:hover {
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--burgundy);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link:hover {
  color: var(--burgundy-dark);
}

.hero {
  padding: clamp(82px, 12vw, 150px) 0 clamp(76px, 10vw, 124px);
}

.hero-inner {
  max-width: 960px;
}

.hero h1 .quiet {
  display: block;
  color: var(--sage);
  font-style: italic;
  font-weight: 400;
}

.testimonial-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  background: var(--burgundy);
  color: var(--paper);
}

.testimonial-band-top {
  border-top: 0;
}

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

.testimonial-preview {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 253, 248, 0.2);
  color: inherit;
  text-decoration: none;
}

.testimonial-preview + .testimonial-preview {
  border-left: 0;
}

.testimonial-static .testimonial-preview .testimonial-card {
  width: auto;
  flex: 1;
  border-right: 0;
}

.testimonial-preview[href]:hover,
.testimonial-preview[href]:focus-visible {
  background: var(--burgundy-dark);
}

.testimonial-read {
  padding: 0 clamp(26px, 4vw, 44px) 24px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Two identical sets create a continuous loop; only the first set is keyboard-accessible. */
.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonial-scroll 54s linear infinite;
  will-change: transform;
}

.testimonial-set {
  display: flex;
  flex: none;
}

.testimonial-card {
  width: 50vw;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 27px clamp(26px, 4vw, 44px);
  border-right: 1px solid rgba(255, 253, 248, 0.2);
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
}

.testimonial-card figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: center;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.testimonial-card figcaption strong {
  color: var(--paper);
  font-weight: 800;
}

@keyframes testimonial-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.section {
  padding: clamp(76px, 10vw, 122px) 0;
}

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

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

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

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

.service-card {
  min-width: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: clamp(27px, 4vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.service-number {
  margin-bottom: 58px;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
}

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

.service-card .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.about-preview,
.about-hero,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.portrait-frame {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(37, 38, 34, 0.18);
  background: var(--sage-pale);
}

.portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.about-preview-copy p:not(.eyebrow),
.about-copy p,
.contact-copy p {
  color: var(--ink-soft);
}

.about-preview-copy .button {
  margin-top: 17px;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cta-strip h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.cta-strip .button {
  flex: 0 0 auto;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.cta-strip .button:hover {
  border-color: var(--sage-pale);
  background: var(--sage-pale);
}

.page-hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 90px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.portfolio-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: end;
}

.portfolio-hero-layout h1,
.portfolio-hero-layout .lead {
  margin-bottom: 0;
}

.portfolio-hero-layout .lead {
  max-width: 620px;
}

.portfolio-category {
  scroll-margin-top: 28px;
}

.portfolio-category + .portfolio-category {
  border-top: 1px solid var(--line);
}

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

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card-link {
  color: inherit;
  text-decoration: none;
}

a.project-card:hover,
a.project-card:focus-visible {
  border-color: var(--burgundy);
  transform: translateY(-3px);
}

.project-excerpt {
  margin: 8px 0 26px;
  padding-left: 18px;
  border-left: 2px solid var(--sage);
  font-family: var(--serif);
  font-size: 1.03rem;
  font-style: italic;
}

.project-card-unlinked {
  box-shadow: none;
}

.testimonials-list {
  display: grid;
  gap: clamp(38px, 5vw, 58px);
  max-width: 980px;
  margin-inline: auto;
}

.testimonials-heading {
  padding: clamp(72px, 9vw, 108px) 0 clamp(38px, 5vw, 58px);
  text-align: center;
}

.testimonials-heading h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

.testimonials-section {
  padding-top: 0;
}

.testimonial-feature {
  scroll-margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--burgundy);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: left;
}

.testimonial-feature-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  padding: clamp(24px, 4vw, 38px) clamp(26px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}

.testimonial-number {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.testimonial-feature-header h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.testimonial-feature-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-copy {
  margin: 0;
  padding: clamp(34px, 6vw, 64px) clamp(26px, 7vw, 72px);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
}

.testimonial-copy p {
  margin: 0;
}

.testimonial-copy p + p {
  margin-top: 1.4em;
}

.recommendation-letter {
  border-top: 0;
  background: #fbf7f0;
}

.letterhead-top {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  align-items: flex-start;
  padding: clamp(30px, 5vw, 54px) clamp(28px, 7vw, 72px) 18px;
}

.letterhead-logo {
  width: auto;
  object-fit: contain;
  object-position: right top;
}

.letterhead-logo-aginto {
  height: clamp(44px, 6vw, 64px);
}

.letterhead-logo-noble {
  height: clamp(42px, 6vw, 58px);
}

.recommendation-letter .testimonial-copy {
  padding-top: clamp(24px, 4vw, 42px);
  color: var(--ink);
}

.recommendation-letter-plain {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.recommendation-company {
  color: var(--burgundy);
  font-weight: 750;
  text-decoration-color: rgba(116, 53, 61, 0.38);
  text-underline-offset: 0.2em;
}

.recommendation-company:hover,
.recommendation-company:focus-visible {
  color: var(--burgundy-dark);
  text-decoration-color: currentColor;
}

.letterhead-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin: 0 clamp(26px, 7vw, 72px);
  padding: clamp(28px, 4vw, 42px) 0 clamp(34px, 5vw, 54px);
  border-top: 1px solid var(--line);
}

.recommendation-author {
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
  line-height: 1.5;
}

.recommendation-author strong {
  margin-top: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.document-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.document-link:hover {
  color: var(--burgundy-dark);
}

.back-link {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.klone-hero h1 {
  max-width: none;
}

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

.document-list {
  display: grid;
  gap: clamp(54px, 8vw, 92px);
}

.document-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.document-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  padding: clamp(26px, 5vw, 46px);
  border-bottom: 1px solid var(--line);
}

.document-panel-header h2 {
  max-width: 720px;
  margin: 7px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.document-index {
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.document-image-frame,
.original-document-frame {
  margin: 0;
  padding: clamp(14px, 3vw, 30px);
  background: var(--ink);
}

.document-image-frame img,
.original-document-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: white;
}

.document-page-stack {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(14px, 3vw, 30px);
  background: var(--ink);
}

.document-page-stack .document-image-frame {
  padding: 0;
  background: transparent;
}

.document-download-row {
  display: flex;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 34px);
  border-top: 1px solid var(--line);
}

.personal-writing-hero h1 {
  max-width: none;
}

.original-document-shell {
  max-width: 900px;
}

.original-document-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 44px;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.project-note {
  margin: auto 0 0;
  padding-top: 25px;
  color: var(--burgundy) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hero {
  align-items: start;
}

.about-profile {
  min-width: 0;
}

.about-hero .portrait-frame {
  min-height: 0;
}

.about-copy h1 {
  max-width: none;
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.about-copy p {
  font-size: 1rem;
}

.about-body {
  margin-top: 30px;
  max-width: 68ch;
}

.about-body p {
  margin: 0 0 1.15em;
  break-inside: avoid;
}

.inline-company-link {
  color: var(--burgundy);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-company-link:hover {
  color: var(--burgundy-dark);
}

.profile-links {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: rgba(241, 232, 220, 0.54);
}

.profile-links-title {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--burgundy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.profile-link {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px;
  color: var(--ink);
}

.profile-link + .profile-link {
  border-left: 1px solid var(--line);
}

a.profile-link:hover,
a.profile-link:focus-visible {
  background: var(--burgundy);
  color: var(--paper);
}

.profile-link span {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 700;
}

.profile-link small {
  overflow: hidden;
  color: inherit;
  font-size: 0.66rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-text-option {
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
}

.profile-text-option a {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-link-pending {
  color: var(--ink-soft);
}

@media (min-width: 1100px) {
  .about-hero {
    grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
    align-items: end;
    gap: clamp(54px, 6vw, 86px);
  }

  .about-profile,
  .about-copy {
    align-self: end;
  }
}

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

.detail-card {
  padding: clamp(27px, 4vw, 42px);
  border-top: 3px solid var(--sage);
  background: var(--paper);
}

.detail-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

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

.experience-item {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.75fr) minmax(110px, 0.35fr);
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.experience-place {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
}

.experience-place h3,
.experience-role,
.experience-years {
  margin: 0;
}

.experience-index {
  color: var(--sage);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
}

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

.experience-years {
  justify-self: end;
  color: var(--burgundy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.contact-grid {
  align-items: start;
}

.contact-copy h1 {
  font-size: clamp(3.1rem, 6vw, 5.5rem);
}

.direct-contact {
  display: block;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.direct-contact > small {
  display: block;
}

.direct-contact > small {
  margin-bottom: 5px;
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.direct-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 15px;
}

.direct-contact-actions .button {
  min-height: 46px;
}

.direct-contact-actions > span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-form {
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.form-intro {
  margin-bottom: 30px;
  color: var(--ink-soft);
}

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

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

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bcb7ae;
  border-radius: 0;
  background: #f8f1e7;
  color: var(--ink);
}

.field input,
.field select {
  min-height: 48px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 170px;
  padding: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--burgundy);
  outline: 3px solid rgba(167, 100, 57, 0.28);
  outline-offset: 1px;
}

.contact-form .button {
  margin-top: 24px;
  cursor: pointer;
}

.hidden-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.status-page {
  min-height: calc(100vh - 163px);
  display: grid;
  place-items: center;
  padding: 70px 0;
}

.status-card {
  max-width: 760px;
  padding: clamp(36px, 7vw, 76px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.status-card h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.site-footer {
  padding: 65px 0 28px;
  border-top: 1px solid var(--line);
  background: #d7c8b6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 50px;
}

.footer-intro {
  max-width: 410px;
  margin-top: 18px;
  color: var(--ink-soft);
}

.footer-label {
  margin-bottom: 14px;
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-nav a,
.footer-contact {
  color: var(--ink-soft);
  font-weight: 650;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact:hover {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid rgba(37, 38, 34, 0.15);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

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

  :root {
    --shell: min(100% - 32px, 680px);
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 16px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
    box-shadow: 0 18px 35px rgba(45, 42, 36, 0.12);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-contact {
    margin: 14px 0 0;
    border: 1px solid var(--burgundy);
    text-align: center;
  }

  .service-grid,
  .project-grid,
  .detail-grid,
  .about-preview,
  .about-hero,
  .contact-grid,
  .portfolio-hero-layout {
    grid-template-columns: 1fr;
  }

  .testimonial-static {
    grid-template-columns: 1fr;
  }

  .testimonial-preview + .testimonial-preview {
    border-top: 1px solid rgba(255, 253, 248, 0.2);
    border-left: 0;
  }

  .experience-item {
    grid-template-columns: 1fr 0.65fr auto;
  }

  .service-card {
    min-height: 300px;
  }

  .about-hero .about-profile {
    order: 2;
  }

  .about-body {
    margin-top: 24px;
    columns: 1;
  }

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

  .profile-link {
    min-height: 66px;
  }

  .profile-link + .profile-link {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .cta-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .letterhead-footer,
  .document-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .button-row,
  .button-row .button,
  .cta-strip .button,
  .direct-contact-actions .button {
    width: 100%;
  }

  .direct-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-card {
    min-height: 0;
  }

  .testimonial-card {
    width: 88vw;
  }

  .letterhead-top {
    flex-direction: column;
  }

  .letterhead-logo {
    align-self: flex-end;
    max-width: 76%;
  }

  .service-number {
    margin-bottom: 36px;
  }

  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .experience-role {
    padding-left: 54px;
  }

  .experience-years {
    justify-self: start;
    padding-left: 54px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .testimonial-track {
    /* Keep the short testimonial ticker moving, but slow it down for users who prefer reduced motion. */
    animation: testimonial-scroll 90s linear infinite !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
