/* Final cross-page polish */
html {
  scroll-padding-top: 24px;
}

body {
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--espresso-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: #f7d2c3;
}

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

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

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

.manifesto a:focus-visible,
.contact-section a:focus-visible,
.contact-section button:focus-visible,
.contact-section input:focus-visible,
.contact-section select:focus-visible,
.contact-section textarea:focus-visible {
  outline-color: #f7d2c3;
}

::selection {
  background: rgba(201, 135, 112, .28);
}

.main-nav a,
.button,
.text-link,
.card-link {
  transition: opacity .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.text-link:hover,
.card-link:hover,
.footer-links a:hover {
  opacity: .64;
}

/* Keep Safari from reintroducing native rounded form controls. */
.contact-form-refined input,
.contact-form-refined select,
.contact-form-refined textarea,
.contact-preview-button {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font-size: 16px;
}

.contact-form-refined select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--espresso) 50%),
    linear-gradient(135deg, var(--espresso) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.process-path,
.process-path > li {
  list-style: none;
}

.process-path > li::marker {
  content: '';
}

/* The legacy process stylesheet adds a duplicated closing sentence. */
.process::after {
  display: none !important;
  content: none !important;
}

/* The contact stylesheet also adds the kicker as a pseudo element. Keep the real text only once. */
.contact-copy::before {
  display: none !important;
  content: none !important;
}

/* The live form no longer needs a technical/status badge below its heading. */
.contact-status {
  display: none !important;
}

/* Remove the repetitive divider-line look. Space, tone and typography do the grouping instead. */
.site-header,
.trust-line,
.audience-grid,
.audience-card-refined,
.audience-card-refined + .audience-card-refined,
.audience-card-topline,
.audience-footer,
.manifesto-body,
.manifesto-note,
.brand-principles-refined,
.brand-principles-refined article + article,
.about-visual-refined,
.about-story,
.about-credentials,
.about-credentials > div + div,
.process-step,
.process-step-topline,
.process-step-note,
.process-bottomline,
.contact-promises,
.contact-promises div + div,
.contact-card,
.contact-card-head,
.contact-form-footer,
.contact-status,
.site-footer.footer-refined {
  border: 0;
}

.hero::before,
.portrait-frame::after,
.about-visual-refined::before,
.process-refined::before {
  display: none;
}

.about-photo-kicker,
.text-link,
.card-link,
.audience-footer .card-link {
  border-bottom: 0;
  text-decoration: none;
}

.footer-links a {
  text-decoration: none;
}

.topic-chips span {
  border: 0;
  background: rgba(201, 135, 112, .12);
  padding-inline: 13px;
}

.professional-card .topic-chips span {
  background: rgba(89, 59, 44, .07);
}

.audience-grid-refined {
  gap: 22px;
}

.audience-card-refined {
  box-shadow: 0 18px 46px rgba(53, 38, 31, .045);
}

.brand-principles-refined {
  gap: 18px;
}

.brand-principles-refined article {
  padding: 28px;
  background: rgba(255,255,255,.035);
}

.brand-principles-refined article + article {
  padding-left: 28px;
}

.manifesto-body {
  padding-left: 0;
}

.manifesto-note {
  padding-top: 8px;
}

.about-story {
  gap: 38px;
  padding-block: 10px 18px;
}

.about-credentials {
  gap: 14px;
}

.about-credentials > div {
  padding: 20px 22px;
  background: rgba(201, 135, 112, .07);
}

.about-credentials > div + div {
  padding-left: 22px;
}

.about-closing {
  border-left: 0;
  padding-left: 0;
  color: var(--espresso);
}

.process-path {
  gap: 20px;
}

.process-step {
  background: rgba(255, 253, 249, .72);
  box-shadow: 0 16px 42px rgba(53, 38, 31, .045);
}

.process-step:nth-child(2),
.process-step:nth-child(3) {
  background: #f0e7e0;
}

.process-step-topline {
  padding-bottom: 10px;
}

.process-step-note {
  padding-top: 10px;
}

.process-bottomline {
  padding-top: 12px;
}

.contact-promises {
  gap: 8px;
}

.contact-promises div {
  padding: 11px 0;
}

.contact-card {
  box-shadow: 0 26px 70px rgba(53,38,31,.12);
}

.contact-card-head {
  padding-bottom: 0;
}

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

/* Treat every label + field as one visual unit. The larger gap sits between units. */
.contact-form-refined {
  display: grid;
  gap: 0;
}

.form-row-refined {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.contact-form-refined > .form-row-refined ~ .form-row-refined {
  margin-top: 30px;
}

.form-row-refined label {
  margin: 0;
  line-height: 1.3;
}

.form-row-refined small {
  display: block;
  margin: 2px 0 0;
  line-height: 1.5;
}

.form-row-refined input,
.form-row-refined select,
.form-row-refined textarea {
  border: 0;
  border-radius: 6px;
  background-color: rgba(89,59,44,.055);
  padding: 13px 14px;
}

.form-row-refined input:focus,
.form-row-refined select:focus,
.form-row-refined textarea:focus {
  border: 0;
  background-color: rgba(201,135,112,.12);
}

.contact-form-footer {
  margin-top: 30px;
  padding-top: 8px;
}

@media (max-width: 980px) {
  .main-nav {
    box-shadow: 0 20px 50px rgba(53, 38, 31, .08);
  }

  .contact-card {
    max-width: 760px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    min-height: 88px;
    align-items: center;
  }

  .brand-lockup {
    padding-top: 2px;
  }

  .brand-lockup .wordmark {
    font-size: 2.15rem !important;
    line-height: .95;
    letter-spacing: .055em;
  }

  .brand-meta {
    display: block !important;
    margin-top: 7px;
    font-size: .58rem;
    line-height: 1.2;
    letter-spacing: .14em;
    color: var(--terracotta-dark);
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero .eyebrow {
    margin-bottom: 18px;
  }

  .orientation {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 11.9vw, 3.75rem);
    line-height: .99;
  }

  .hero-text,
  .audience-lead,
  .manifesto-body,
  .about-story,
  .process-step-copy,
  .contact-lead {
    font-size: 1rem;
  }

  .topic-chips span {
    min-height: 36px;
  }

  .audience-card-topline {
    gap: 12px;
  }

  .about-number {
    display: none;
  }

  .about-heading-row {
    justify-content: flex-start;
  }

  /* Keep the end of the profile and the process start visually connected. */
  .about-refined {
    gap: 34px;
    padding-block: 68px 44px;
  }

  /* The profile should feel personal rather than like a second hero on phones. */
  .about-copy-refined h2 {
    max-width: none;
    font-size: clamp(2.8rem, 13vw, 4.1rem);
    line-height: .99;
  }

  .about-intro {
    max-width: 32ch;
    font-size: clamp(1.3rem, 5.8vw, 1.65rem);
    line-height: 1.38;
  }

  .about-closing {
    margin: 22px 0 0;
  }

  /* Keep the manifesto expressive, but less monumental on a phone. */
  .manifesto-layout {
    padding-block: 76px 72px;
  }

  .manifesto-refined h2 {
    max-width: 10.5ch;
    font-size: clamp(2.25rem, 9.3vw, 3.05rem);
    line-height: 1;
    overflow-wrap: normal;
  }

  .manifesto-signature {
    max-width: 13ch;
    font-size: clamp(1.6rem, 7.3vw, 2.2rem);
    line-height: 1.08;
  }

  .manifesto-lead {
    font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  }

  .brand-principles-refined {
    gap: 10px;
  }

  .brand-principles-refined article,
  .brand-principles-refined article + article {
    padding: 22px 20px;
  }

  /* Compact, even mobile rhythm for the four advisory steps. */
  .process {
    padding-block: 48px 72px;
  }

  .process-heading {
    margin-bottom: 30px;
  }

  .process-heading .eyebrow {
    margin-bottom: 12px;
  }

  .process-heading h2 {
    margin-bottom: 18px;
  }

  .process-intro {
    margin-bottom: 0;
  }

  .process-path {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .process-step {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 22px 20px 24px;
    border: 0;
  }

  .process-step-topline {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 22px;
    padding: 0;
  }

  .process-step-topline p {
    margin: 0;
  }

  .process-step-number {
    flex: 0 0 auto;
  }

  .process-step-copy {
    margin: 0;
    padding: 0;
  }

  .process-step h3 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 9vw, 2.65rem);
    line-height: 1.05;
  }

  .process-step-copy p {
    margin: 0;
  }

  .process-step-note {
    margin: 18px 0 0;
    padding: 0;
  }

  .process-bottomline {
    margin-top: 26px;
    padding-top: 0;
  }

  /* Contact becomes one calm, contained card instead of inheriting Safari controls. */
  .contact-shell-refined {
    width: min(calc(100% - 32px), var(--max));
    gap: 42px;
    padding-block: 78px 72px;
  }

  .contact-copy-refined h2 {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 4rem);
    line-height: .98;
    overflow-wrap: anywhere;
  }

  .contact-promises {
    max-width: none;
  }

  .contact-card {
    width: 100%;
    max-width: none;
    padding: 26px 20px 24px;
    background: var(--cream);
    color: var(--espresso-deep);
  }

  .contact-card-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 24px;
  }

  .contact-card-head h3 {
    margin: 0;
    font-size: clamp(1.85rem, 8.8vw, 2.55rem);
  }

  .contact-form-refined {
    width: 100%;
    min-width: 0;
    gap: 0;
  }

  .form-row-refined {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contact-form-refined > .form-row-refined ~ .form-row-refined {
    margin-top: 32px;
  }

  .form-row-refined input,
  .form-row-refined select,
  .form-row-refined textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    border-radius: 6px;
    background-color: rgba(89,59,44,.055);
    color: var(--espresso-deep);
  }

  .form-row-refined textarea {
    min-height: 120px;
  }

  .contact-form-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .contact-preview-button {
    width: 100%;
    border-radius: 0;
  }

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

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .button,
  .text-link,
  .card-link {
    transition: none;
  }
}
