/* Concept A: a quiet graphite canvas, one gold signal, and a warm agent section. */
.home-main {
  --a-ink: #08090b;
  --a-text: #f2f4f8;
  --a-muted: #b8b9b8;
  --a-line: #323337;
  --a-gold: #e5b454;
  --a-ivory: #eeece5;
  --a-gutter: clamp(22px, 6.5vw, 106px);
  --a-section: clamp(68px, 7.5vw, 124px);
  background: #0b0d10;
  color: var(--a-text);
}
.a-wrap { width: min(100% - 2 * var(--a-gutter), 1392px); margin-inline: auto; }
.a-label {
  color: var(--a-muted);
  font: 500 .75rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.a-label-gold { color: var(--a-gold); }
.a-gold { color: var(--a-gold); }
.a-title {
  margin-top: .38em;
  font-size: clamp(2.65rem, 4.8vw, 5rem);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -.061em;
  text-wrap: balance;
}
.a-lede {
  max-width: 51ch;
  margin-top: 1.2rem;
  color: var(--a-muted);
  font-size: clamp(1rem, 1.52vw, 1.3rem);
  line-height: 1.62;
}
.a-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.a-button, .a-text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; }
.a-button {
  min-height: 54px;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--a-gold);
  color: #101110;
  font-size: .94rem;
  font-weight: 680;
  line-height: 1.3;
  transition: background .18s ease, transform .18s ease;
}
.a-button:hover { background: #f0c66b; }
.a-button:active { transform: translateY(1px); }
.a-button:disabled { cursor: wait; opacity: .65; }
.a-button-dark { background: #141514; color: var(--a-ivory); }
.a-button-dark:hover { background: #343532; }
.a-button span, .a-text-link span { font-size: 1.05em; }
.a-text-link {
  color: inherit;
  font-size: .94rem;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .34em;
  transition: color .18s ease;
}
.a-text-link:hover { color: var(--a-gold); }

.a-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: 88px;
  background: var(--a-ink);
}
.a-hero-inner { position: relative; padding-top: clamp(69px, 7vw, 130px); }
.a-hero-copy { position: relative; z-index: 1; }
.a-hero h1 {
  margin: .46em 0 0 -.047em;
  color: var(--a-text);
  font-size: clamp(3.6rem, 6.34vw, 6.6rem);
  font-weight: 550;
  line-height: 1.015;
  letter-spacing: -.072em;
}
.a-hero h1 span { display: block; }
.a-hero-lede {
  max-width: 28em;
  margin-top: 1.55rem;
  color: #cacbc9;
  font-size: clamp(1.05rem, 1.58vw, 1.47rem);
  line-height: 1.58;
}
.a-hero .a-actions { margin-top: 1.9rem; }
.a-hero-art {
  position: absolute;
  z-index: -1;
  top: clamp(112px, 10vw, 180px);
  right: max(-180px, calc((100% - 1800px) / 2));
  width: min(76%, 1210px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%), linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%), linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
  mask-composite: intersect;
}
.a-hero-art img { width: 100%; height: auto; }
.a-trace {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: clamp(84px, 10.7vw, 173px);
  min-height: 66px;
  border-top: 1px solid var(--a-line);
  list-style: none;
}
.a-trace li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: clamp(8px, 1.65vw, 30px);
  padding-right: clamp(8px, 1.65vw, 30px);
  color: var(--a-muted);
  font: 500 .75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.a-trace li:not(:last-child)::after {
  content: "";
  height: 1px;
  flex: 1 1 12px;
  background: linear-gradient(90deg, #67502b 44%, #f0c66b 50%, #67502b 56%) 100% / 220% 100%;
}
.a-trace li:last-child { flex: 0 0 auto; color: var(--a-gold); padding-right: 0; }

.a-services { border-top: 1px solid #1c1e20; padding-block: clamp(32px, 4vw, 68px) clamp(46px, 5.5vw, 90px); }
.a-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(21px, 2.3vw, 36px); }
.a-service { display: block; padding: 8px clamp(19px, 3vw, 44px) 11px; }
.a-service:first-child { padding-left: 0; }
.a-service:last-child { padding-right: 0; }
.a-service + .a-service { border-left: 1px solid var(--a-line); }
.a-service h3, .a-proof-steps h3 {
  margin-top: .6em;
  color: var(--a-text);
  font-size: clamp(1.32rem, 2.24vw, 2rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -.039em;
}
.a-service h3 { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.a-service h3 span { margin-top: .09em; font-size: .65em; transition: color .18s ease, transform .18s ease; }
.a-service:hover h3 span { transform: translate(2px, -2px); color: var(--a-gold); }
.a-service > p:last-child, .a-proof-steps li > p:last-child { margin-top: .7em; color: var(--a-muted); line-height: 1.55; }

.a-agent {
  padding-block: var(--a-section);
  background: var(--a-ivory);
  color: #141514;
  color-scheme: light;
}
.a-agent-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 6.5vw, 104px); }
.a-agent .a-title { text-wrap: initial; }
.a-agent .a-label { color: #514a3b; }
.a-agent .a-lede { color: #53564f; }
.a-agent .a-text-link:hover { color: #784e10; }
.a-agent :focus-visible, .a-clients :focus-visible { outline-color: #936721; }
.a-checklist { display: grid; gap: 12px; margin: 24px 0 27px; list-style: none; }
.a-checklist li { position: relative; padding-left: 25px; line-height: 1.55; }
.a-checklist li::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 2px;
  width: 12px;
  height: 7px;
  border: solid #72521b;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.agent-workflow { min-width: 0; padding: clamp(20px, 3vw, 44px); border: 1px solid #ceccc2; border-radius: 3px; background: #faf9f5; }
.agent-workflow__header { border-bottom: 1px solid #dedcd3; padding-bottom: 19px; }
.agent-workflow__eyebrow, .agent-workflow__note {
  color: #5d6056;
  font: 500 .75rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.agent-workflow__title { margin-top: 9px; font-size: clamp(1.4rem, 2.6vw, 2.25rem); font-weight: 550; letter-spacing: -.045em; line-height: 1.15; }
.agent-workflow__choices { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.agent-workflow__choices[hidden] { display: none; }
.agent-workflow__choice {
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid #d8d5cb;
  border-radius: 2px;
  background: transparent;
  color: #343731;
  font-size: .875rem;
  font-weight: 550;
}
.agent-workflow__choice:hover { border-color: #a08243; }
.agent-workflow__choice[aria-pressed="true"] { border-color: #b69552; background: #eee3c9; color: #282219; }
.agent-workflow__steps { counter-reset: agent-step; margin: 13px 0 15px; }
.agent-workflow__step { position: relative; counter-increment: agent-step; padding: 14px 0 14px 34px; }
.agent-workflow__step + .agent-workflow__step { border-top: 1px solid #e6e3da; }
.agent-workflow__step::before {
  content: "0" counter(agent-step);
  position: absolute;
  left: 0;
  top: 16px;
  color: #77531b;
  font: 500 .75rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .075em;
}
.agent-workflow__label { font-size: 1rem; font-weight: 650; }
.agent-workflow__value { margin: 4px 0 0; color: #4d5149; font-size: .925rem; line-height: 1.52; }

.a-proof { padding-block: var(--a-section) clamp(54px, 6vw, 92px); }
.a-proof .a-title { font-size: clamp(2.55rem, 4.15vw, 4.5rem); text-wrap: initial; }
.a-proof-break { display: none; }
.a-proof-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.4vw, 48px); margin-block: 34px 16px; list-style: none; }
.a-proof-steps li { border-top: 1px solid var(--a-line); padding-top: 18px; }
.a-proof-steps li:nth-child(2) { border-color: #a37d42; }
.a-proof-steps h3 { font-size: clamp(1.2rem, 1.9vw, 1.66rem); }

.a-business-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 18px 50px; padding-block: clamp(35px, 5vw, 74px); border-top: 1px solid var(--a-line); }
.a-business h2 { margin-top: 8px; font-size: clamp(1.75rem, 2.8vw, 2.65rem); font-weight: 520; line-height: 1.12; letter-spacing: -.049em; }
.a-business-inner > div:last-child p { color: var(--a-muted); line-height: 1.62; }
.a-business .a-text-link { margin-top: 5px; }

.a-clients { background: #f7f6f1; color: #141514; padding-block: 23px 31px; }
.a-clients-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.a-clients .a-label { color: #5d6056; }
.a-logo-pause { min-height: 44px; padding-inline: 8px; border: 1px solid #d3d0c5; border-radius: 2px; background: transparent; color: #343731; font-size: .75rem; }
.a-logo-pause:hover { border-color: #a08243; }
.a-logo-pause[hidden] { display: none; }
.a-clients-window { margin-top: 12px; overflow: hidden; }
.a-client-logo-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; }
.a-client-logo {
  min-width: 0;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 9px 13px;
  background: #fff;
}
.a-client-logo img { width: auto; height: auto; max-height: 50px; max-width: 100%; object-fit: contain; }
.a-client-logo--afc img { max-height: 54px; }
.a-client-logo--crust { text-align: center; color: #201b16; }
.a-client-logo--crust strong { display: block; font: 500 1.42rem/1.05 Georgia, serif; }
.a-client-logo--crust small { display: block; margin-top: 3px; font-size: .64rem; font-weight: 550; }
.a-client-logo-list[aria-hidden="true"] { display: none; }

.a-contact { padding-block: var(--a-section); }
.a-contact-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 7vw, 112px); }
.a-contact .a-title { text-wrap: initial; }
.a-contact-email { margin-top: 18px; color: var(--a-muted); font-size: .94rem; }
.a-contact-email a { margin-left: .4em; color: var(--a-text); }
.a-contact .intake-form { position: relative; min-width: 0; padding: clamp(17px, 3vw, 40px); border: 1px solid var(--a-line); border-radius: 3px; background: #111316; box-shadow: none; }
.a-contact .field label { color: #cfcecb; font-size: .75rem; }
.a-contact .field input, .a-contact .field select, .a-contact .field textarea { min-height: 46px; border-color: #45474b; border-radius: 3px; font-size: 1rem; }
.a-contact .form-actions { flex-wrap: wrap; }
.a-contact .form-note a { color: var(--a-gold); }
.a-contact .field.trap { clip-path: inset(50%); left: 0; }

@media (prefers-reduced-motion: no-preference) {
  .a-hero-copy { animation: a-hero-settle .6s cubic-bezier(.22, 1, .36, 1) both; }
  .a-trace li:not(:last-child)::after { animation: a-signal 1.05s .36s ease-out both; }
  .a-trace li:nth-child(2)::after { animation-delay: .91s; }
  .a-trace li:nth-child(3)::after { animation-delay: 1.46s; }
  .a-reveal[data-entered] { animation: a-reveal .55s cubic-bezier(.22, 1, .36, 1) both; }
}
@keyframes a-hero-settle { from { transform: translateY(8px); opacity: .82; } to { transform: none; opacity: 1; } }
@keyframes a-signal { from { background-position: 100%; } to { background-position: 0; } }
@keyframes a-reveal { from { transform: translateY(10px); opacity: .86; } to { transform: none; opacity: 1; } }
@keyframes a-logo-scroll { to { transform: translateX(-50%); } }

@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
  .a-clients[data-motion] .a-clients-track { display: flex; width: max-content; animation: a-logo-scroll 38s linear infinite; }
  .a-clients[data-motion] .a-client-logo-list { display: flex; padding-right: 10px; }
  .a-clients[data-motion] .a-client-logo { width: clamp(156px, 15vw, 215px); }
  .a-clients[data-motion]:not([data-in-view]) .a-clients-track,
  .a-clients[data-paused] .a-clients-track,
  .a-clients-window:hover .a-clients-track { animation-play-state: paused; }
}
@media (max-width: 999px), (prefers-reduced-motion: reduce) {
  .a-clients [data-logo-pause] { display: none; }
}
@media (max-width: 1040px) {
  .a-hero-art {
    top: 155px;
    right: -17.5%;
    width: 78%;
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 60%), linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
    mask-image: linear-gradient(90deg, transparent 18%, #000 60%), linear-gradient(180deg, transparent, #000 10%, #000 78%, transparent);
  }
  .a-hero h1 { font-size: clamp(3.5rem, 7.3vw, 5.9rem); }
  .a-hero-lede { max-width: 28rem; }
}
@media (max-width: 760px) {
  .home-main { --a-gutter: clamp(20px, 5.9vw, 39px); --a-section: 62px; }
  .a-hero { padding-top: 74px; display: grid; }
  .a-hero-inner { display: contents; }
  .a-hero-copy, .a-trace { width: min(100% - 2 * var(--a-gutter), 1392px); margin-inline: auto; }
  .a-hero-copy { grid-row: 1; padding-top: clamp(34px, 7.8vw, 62px); }
  .a-hero h1 { font-size: clamp(2.14rem, 10.2vw, 4.8rem); margin-top: .44em; }
  .a-hero-lede { max-width: 32ch; margin-top: 1.12rem; }
  .a-hero .a-actions { margin-top: 1.35rem; }
  .a-hero-art {
    grid-row: 2;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: 8px;
    z-index: 0;
    aspect-ratio: 1.58;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 13%, #000 76%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 13%, #000 76%, transparent);
  }
  .a-hero-art img { height: 100%; object-fit: cover; object-position: 64% 51%; }
  .a-trace { grid-row: 3; margin-top: 0; min-height: 59px; }
  .a-trace li { font-size: .75rem; letter-spacing: .065em; }
  .a-trace li:last-child { flex: 1 1 0; }
  .a-service-grid, .a-agent-grid, .a-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .a-services { padding-block: 31px 44px; }
  .a-service-grid { margin-top: 12px; }
  .a-service, .a-service:first-child, .a-service:last-child { padding: 20px 0; border: 0; border-bottom: 1px solid var(--a-line); }
  .a-service h3 { font-size: 1.58rem; margin-top: .43em; }
  .a-service > p:last-child { margin-top: .55em; max-width: 44ch; }
  .a-agent-grid { gap: 31px; }
  .a-proof-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 29px; }
  .a-proof-break { display: initial; }
  .a-proof-steps li { padding-top: 14px; }
  .a-proof-steps h3 { margin-top: .35em; }
  .a-business-inner { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 480px) {
  .a-hero .a-actions { display: grid; gap: 6px; }
  .a-hero .a-text-link { justify-content: center; }
  .a-trace li { min-width: 0; line-height: 1.16; }
  .a-trace li:not(:last-child)::after { min-width: 5px; flex-basis: 5px; }
  .a-client-logo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-contact .form-grid { grid-template-columns: minmax(0, 1fr); }
  .a-contact .a-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .a-button, .a-text-link, .a-service h3 span { transition: none; }
}
