/* Targeted live-site refinements, 13 August 2026. */
:root {
  --section-rule-gap: 32px;
}

.section-heading > .eyebrow,
.contact-panel > .eyebrow,
.page-intro > .eyebrow,
.site-footer .eyebrow {
  display: none;
}

body {
  line-height: 1.58;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
  white-space: nowrap;
}

.hero h1 span {
  display: inline;
}

.hero {
  padding: 124px 0 94px;
}

.hero-kicker {
  text-transform: none;
  letter-spacing: normal;
}

.hero-role {
  margin: -10px 0 24px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.contact-panel h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.project-card h2,
.letter-card h2 {
  font-size: clamp(24px, 2.5vw, 33px);
  line-height: 1.08;
}

.work-row .card-title,
.letter-row .card-title {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.page-intro h1 {
  max-width: 700px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
}

.article h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
}

.article h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.08;
}

.hero-copy {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.48;
}

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

.services-grid .service-row {
  display: block;
  min-height: 220px;
  padding: 24px;
  background: var(--paper);
}

.services-grid .row-index {
  display: block;
  margin-bottom: 48px;
  padding: 0;
}

.services-grid .service-row h3 {
  margin-bottom: 10px;
}

.overview-panel {
  padding: 0 0 82px;
}

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

.overview-item {
  min-height: 174px;
  padding: 24px 28px;
}

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

.overview-label {
  margin: 0 0 42px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overview-text {
  max-width: 450px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(23px, 2.25vw, 31px);
  line-height: 1.05;
}

.selected-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 90px;
  border: 1px solid var(--line);
}

.selected-link {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--section-rule-gap) 28px 26px;
  font-family: var(--display);
  font-size: clamp(27px, 2.7vw, 34px);
  line-height: 1.08;
  transition: background-color 0.16s ease, color 0.16s ease;
}

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

.selected-link__arrow {
  align-self: flex-end;
  color: var(--accent);
  font-family: var(--body);
  font-size: 24px;
  line-height: 1;
}

.selected-link:hover {
  background: var(--paper-deep);
  color: var(--accent);
}

.business-panel {
  padding: 0 0 112px;
}

.business-panel__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 40px;
  margin-bottom: 28px;
}

.business-panel h2 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 0.98;
}

.business-panel__intro > p {
  max-width: 510px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

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

.business-point {
  margin: 0;
}

.business-point__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 650;
}

.business-point__copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

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

.letters-grid .letter-row {
  display: flex;
  min-height: 216px;
  flex-direction: column;
  gap: 0;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.letters-grid .letter-row + .letter-row {
  border-left: 1px solid var(--line);
}

.letters-grid .row-index {
  padding: 0;
  margin-bottom: 42px;
}

.letters-grid .letter-row h3 {
  margin-bottom: 10px;
}

.letters-grid .letter-row .card-title {
  margin-bottom: 10px;
}

.letters-grid .row-arrow {
  margin-top: auto;
  align-self: flex-end;
}

.location-panel {
  padding: 0 0 120px;
}

.location-panel__content {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 40px;
  align-items: start;
  padding-top: var(--section-rule-gap);
  border-top: 1px solid var(--line);
}

.location-panel h2 {
  max-width: 480px;
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.location-panel p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.location-map {
  display: block;
  width: 100%;
  min-height: 310px;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(0.88);
}

.site-footer .footer-meta {
  display: none;
}

.contact-panel {
  padding: var(--section-rule-gap) 0 54px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.contact-details .footer-links {
  justify-content: flex-end;
}

.site-footer {
  margin-top: 120px;
  padding-top: var(--section-rule-gap);
}

.project-card,
.letter-card,
.article-row,
.service-row,
.work-row,
.letter-row {
  padding-top: var(--section-rule-gap);
  padding-bottom: var(--section-rule-gap);
}

.empty-state {
  padding-top: var(--section-rule-gap);
}

.footer-email {
  font-size: clamp(25px, 2.4vw, 34px);
}

.blog-note {
  max-width: 620px;
  padding: var(--section-rule-gap) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.blog-note strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .hero {
    padding: 82px 0 68px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 50px);
  }

  .hero-role {
    margin: -6px 0 20px;
    font-size: 12px;
  }

  .section-heading h2 {
    font-size: clamp(26px, 7.5vw, 32px);
  }

  .contact-panel h2 {
    font-size: clamp(26px, 7.5vw, 32px);
  }

  .page-intro h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .article h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .article h2 {
    font-size: 28px;
  }

  .services-grid,
  .letters-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-row {
    min-height: 0;
    padding: 22px 18px;
  }

  .business-panel {
    padding-bottom: 78px;
  }

  .overview-panel {
    padding-bottom: 58px;
  }

  .overview-grid,
  .selected-links {
    grid-template-columns: 1fr;
  }

  .overview-item {
    min-height: 0;
    padding: 20px 0;
  }

  .overview-item + .overview-item,
  .selected-link + .selected-link {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .overview-label {
    margin-bottom: 22px;
  }

  .overview-text {
    font-size: 25px;
  }

  .selected-links {
    margin-bottom: 72px;
    border-right: 0;
    border-left: 0;
  }

  .selected-link {
    min-height: 146px;
    padding: var(--section-rule-gap) 0 20px;
    font-size: 29px;
  }

  .business-panel__intro,
  .business-points {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .business-panel__intro {
    margin-bottom: 24px;
  }

  .business-panel h2 {
    font-size: clamp(26px, 7.5vw, 32px);
  }

  .business-points {
    gap: 0;
    padding: 0;
  }

  .business-point {
    padding: 18px 0;
  }

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

  .services-grid .row-index,
  .letters-grid .row-index {
    margin-bottom: 28px;
  }

  .letters-grid .letter-row {
    min-height: 0;
    padding: 20px 0;
  }

  .letters-grid .letter-row + .letter-row {
    border-left: 0;
  }

  .location-panel {
    padding: 0 0 96px;
  }

  .location-panel__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .location-map {
    min-height: 250px;
  }

  .contact-panel {
    padding: var(--section-rule-gap) 0 42px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .contact-details .footer-links {
    justify-content: flex-start;
  }

  .site-footer {
    margin-top: 96px;
  }
}

/* Light interaction feedback and the B2B note. */
:where(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wordmark,
.desktop-nav a,
.mobile-nav a,
.text-link,
.footer-email,
.footer-links a,
.theme-toggle,
.mobile-nav > summary {
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.text-link svg,
.footer-links svg {
  transition: transform 0.18s ease;
}

.project-card,
.letter-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
  .wordmark:hover,
  .desktop-nav a:hover,
  .footer-email:hover,
  .footer-links a:hover,
  .text-link:hover {
    color: var(--accent);
  }

  .text-link:hover svg,
  .footer-links a:hover svg {
    transform: translate(2px, -2px);
  }

  .project-card:hover,
  .letter-card:hover {
    border-color: var(--ink-muted);
    box-shadow: 0 14px 30px rgb(25 24 20 / 0.06);
    transform: translateY(-3px);
  }
}

.text-link:active,
.theme-toggle:active,
.mobile-nav > summary:active,
.b2b-note-trigger:active {
  transform: scale(0.96);
}

.b2b-note-trigger {
  display: inline-grid;
  width: 1.45em;
  height: 1.45em;
  margin-left: 0.12em;
  place-items: center;
  vertical-align: super;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.56em;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .b2b-note-trigger:hover {
    background: var(--accent);
    color: var(--paper);
    transform: translateY(-1px);
  }
}

.b2b-note-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(25 24 20 / 0.24);
}

.b2b-note-dialog::backdrop {
  background: rgb(25 24 20 / 0.42);
  backdrop-filter: blur(3px);
}

.b2b-note-dialog[open] {
  animation: b2b-dialog-in 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.b2b-note-dialog__inner {
  position: relative;
  padding: 34px;
}

.b2b-note-dialog h2 {
  max-width: 430px;
  margin: 0 40px 18px 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
}

.b2b-note-dialog p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.b2b-note-dialog p + p {
  margin-top: 14px;
}

.b2b-note-dialog__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .b2b-note-dialog__close:hover {
    background: var(--ink);
    color: var(--paper);
  }
}

.b2b-note-dialog__close:active {
  transform: scale(0.94);
}

@keyframes b2b-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .b2b-note-dialog__inner {
    padding: 28px 24px;
  }

  .b2b-note-dialog h2 {
    margin-right: 34px;
    font-size: 30px;
  }
}

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

/* One visual language for every contact method. */
.contact-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 44px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-details .footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 26px;
  flex-wrap: wrap;
}

.contact-details .footer-email,
.contact-details .footer-links a {
  display: inline-flex;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.35;
  text-decoration: none;
}

.contact-details .footer-links svg {
  display: none;
}

@media (hover: hover) {
  .contact-details .footer-email:hover,
  .contact-details .footer-links a:hover {
    color: var(--accent);
  }
}

@media (max-width: 720px) {
  .contact-details {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 34px;
    padding: 18px 0;
  }

  .contact-details .footer-links {
    justify-content: flex-start;
    gap: 12px 20px;
  }
}

/* Refined mobile menu: a dark backdrop and exit motion. */
.b2b-note-trigger {
  border-color: var(--ink-muted);
  color: var(--ink-muted);
}

@media (hover: hover) {
  .b2b-note-trigger:hover {
    background: var(--ink-muted);
    color: var(--paper);
  }
}

@media (max-width: 720px) {
  .mobile-nav[open]::before {
    background: rgb(0 0 0 / 0.56);
    backdrop-filter: none;
    animation: mobile-menu-backdrop-in 0.2s ease-out both;
  }

  .mobile-nav.is-closing::before {
    animation: mobile-menu-backdrop-out 0.18s ease-in both;
  }

  .mobile-nav.is-closing > nav {
    pointer-events: none;
    animation: mobile-menu-out 0.18s cubic-bezier(0.4, 0, 1, 1) both;
  }

  .mobile-nav.is-closing > summary {
    transform: rotate(0deg);
  }

  @keyframes mobile-menu-out {
    from {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    to {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
  }

  @keyframes mobile-menu-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes mobile-menu-backdrop-out {
    from { opacity: 1; }
    to { opacity: 0; }
  }
}

/* Home and navigation refinement, 13 August 2026. */
.hero h1,
.page-intro h1,
.article h1 {
  max-width: 700px;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.98;
}

.hero h1 {
  white-space: normal;
}

.hero {
  padding: 142px 0 116px;
}

.section-heading h2,
.contact-panel h2,
.location-panel h2,
.business-panel h2,
.article h2,
.project-card h2,
.letter-card h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.selected-link {
  min-height: 232px;
}

.selected-link__arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  align-self: flex-end;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.selected-link:hover .selected-link__arrow {
  transform: translate(3px, -3px);
}

@media (max-width: 720px) {
  .hero {
    padding: 94px 0 76px;
  }

  .hero h1,
  .page-intro h1,
  .article h1 {
    font-size: clamp(40px, 12vw, 52px);
  }

  .section-heading h2,
  .contact-panel h2,
  .location-panel h2,
  .business-panel h2,
  .article h2,
  .project-card h2,
  .letter-card h2 {
    font-size: clamp(26px, 7.5vw, 32px);
  }

  .selected-link {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
  }

  .selected-link__arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-self: auto;
    font-size: 22px;
  }

  .mobile-nav {
    position: relative;
  }

  .mobile-nav > summary {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .mobile-nav > summary::-webkit-details-marker,
  .mobile-nav > summary::marker {
    display: none;
  }

  .mobile-nav > summary svg {
    transition: transform 0.28s ease;
  }

  .mobile-nav[open] > summary {
    position: relative;
    z-index: 3;
    background: var(--ink);
    color: var(--paper);
    transform: rotate(90deg);
  }

  .mobile-nav[open]::before {
    position: fixed;
    z-index: 1;
    inset: 0;
    background: color-mix(in srgb, var(--ink) 18%, transparent);
    content: "";
  }

  .mobile-nav > nav {
    position: fixed;
    z-index: 2;
    top: 76px;
    right: 16px;
    left: 16px;
    width: auto;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 18%, transparent);
    transform-origin: top right;
    animation: mobile-menu-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .mobile-nav > nav a {
    padding: 18px 20px;
    font-family: var(--display);
    font-size: 28px;
    line-height: 1;
  }

  .mobile-nav > nav a + a {
    border-top: 1px solid var(--line);
  }

  .mobile-nav > nav a:last-child {
    color: var(--accent);
  }

  @keyframes mobile-menu-in {
    from {
      opacity: 0;
      transform: translateY(-12px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* Final mobile-menu overrides must follow its original rules. */
.b2b-note-trigger {
  border-color: var(--ink-muted);
  color: var(--ink-muted);
}

@media (hover: hover) {
  .b2b-note-trigger:hover {
    background: var(--ink-muted);
    color: var(--paper);
  }
}

@media (max-width: 720px) {
  .mobile-nav[open]::before {
    background: rgb(0 0 0 / 0.56);
    backdrop-filter: none;
    animation: mobile-menu-backdrop-in 0.2s ease-out both;
  }

  .mobile-nav.is-closing::before {
    animation: mobile-menu-backdrop-out 0.18s ease-in both;
  }

  .mobile-nav.is-closing > nav {
    pointer-events: none;
    animation: mobile-menu-out 0.18s cubic-bezier(0.4, 0, 1, 1) both;
  }

  .mobile-nav.is-closing > summary {
    transform: rotate(0deg);
  }
}

/* Contact details: one primary action, a readable e-mail and copy control. */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contact-details .footer-email {
  border: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.08;
}

.email-copy {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
  .email-copy:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
  }
}

.email-copy:active {
  transform: scale(0.96);
}

.contact-details .footer-links {
  gap: 0;
}

.b2b-note-dialog h2 {
  line-height: 1.08;
}

.b2b-note-dialog p {
  line-height: 1.58;
}

@media (max-width: 720px) {
  .contact-email {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    gap: 8px;
  }

  .contact-details .footer-email {
    min-width: 0;
    font-size: clamp(21px, 6vw, 27px);
    overflow-wrap: anywhere;
  }

  .email-copy {
    padding: 7px 9px;
    font-size: 11px;
  }
}
