/* ================================================================
   Automation HQ — Marketing & Advertising
   Design system + page styles
   ================================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper:        #f3efe6;
  --paper-2:      #ece6d8;
  --surface:      #fbfaf5;
  --ink:          #1b1a16;
  --ink-2:        #4c4940;
  --ink-3:        #837e70;
  --accent:       #d9481f;
  --accent-press: #b3380f;
  --accent-soft:  #f4d9cd;
  --pine:         #1f3a30;
  --pine-2:       #16291f;
  --line:         rgba(27, 26, 22, 0.14);
  --line-strong:  rgba(27, 26, 22, 0.32);
  --line-light:   rgba(243, 239, 230, 0.16);

  --shadow-sm: 0 1px 2px rgba(27,26,22,.06), 0 2px 6px rgba(27,26,22,.05);
  --shadow-md: 0 2px 4px rgba(27,26,22,.05), 0 10px 26px -8px rgba(27,26,22,.16);
  --shadow-lg: 0 4px 10px rgba(27,26,22,.06), 0 28px 56px -16px rgba(31,58,48,.30);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-display: clamp(2.85rem, 1.4rem + 5.2vw, 5.1rem);
  --fs-h1:      clamp(2.35rem, 1.5rem + 3vw, 3.55rem);
  --fs-h2:      clamp(1.95rem, 1.4rem + 2vw, 2.8rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.78rem;

  --container: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --radius: 7px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.bg-alt { background: var(--paper-2); }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 540;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
p { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
}
.eyebrow--muted { color: var(--ink-3); }
.eyebrow--muted::before { background: var(--line-strong); }
.eyebrow--light { color: var(--accent-soft); }
.eyebrow--light::before { background: var(--accent-soft); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.text-accent { color: var(--accent); }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease);
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn--accent { --bg: var(--accent); --fg: var(--paper); }
.btn--accent:hover { background: var(--accent-press); border-color: var(--accent-press); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--on-dark-ghost {
  --bg: transparent; --fg: var(--paper);
  border-color: var(--line-light);
}
.btn--on-dark-ghost:hover { background: var(--paper); color: var(--ink); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0% 2px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.textlink:hover { background-size: 100% 2px; color: var(--accent); }
.textlink .arrow { transition: transform .35s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(27,26,22,.4);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pine);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.brand__mark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  line-height: 1;
}
.brand__mark span::after {
  content: "";
  display: block;
  width: 5px; height: 5px;
  margin: 2px auto 0;
  border-radius: 50%;
  background: var(--accent);
}
.brand__tag {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-top: 1px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__links a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 5px;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.85rem; right: 0.85rem;
  bottom: 0.32rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta { padding: 0.7rem 1.2rem; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(-1.5px) translateX(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46rem 32rem at 88% -6%, rgba(217,72,31,0.12), transparent 62%),
    radial-gradient(40rem 30rem at -4% 108%, rgba(31,58,48,0.13), transparent 60%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.32fr 0.88fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: var(--fs-display);
  margin-block: 1.4rem 1.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero__lead { max-width: 46ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.hero__trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* hero side card */
.hero__card {
  position: relative;
  background: var(--pine);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(217,72,31,0.55), transparent 70%);
}
.hero__card-label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.hero__card-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 0;
}
.hero__card-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line-light);
}
.hero__card-list li:first-child { border-top: 0; padding-top: 0.4rem; }
.hero__card-list .n {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent-soft);
  flex: none;
  padding-top: 2px;
}
.hero__card-list .t { font-weight: 600; }
.hero__card-list .d {
  display: block;
  font-size: var(--fs-small);
  color: rgba(243,239,230,0.66);
  font-weight: 400;
}
.hero__card-foot {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-small);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6fbf73;
  box-shadow: 0 0 0 4px rgba(111,191,115,0.22);
  flex: none;
}

/* ---------- Section heading ---------- */
.s-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.2rem, 1.5rem + 2vw, 3.4rem);
}
.s-head h2 { margin-top: 0.85rem; }
.s-head p { color: var(--ink-2); }
.s-head__aside { max-width: 34ch; }

/* ---------- Service cards (home) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.svc-card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.svc-card__icon {
  width: 52px; height: 52px;
  margin: 1.3rem 0 1.3rem;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { margin-bottom: 0.6rem; }
.svc-card p { color: var(--ink-2); font-size: 1rem; }
.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.3rem 0 1.5rem;
}
.svc-card__tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.32rem 0.65rem;
  border-radius: 100px;
}
.svc-card .textlink { margin-top: auto; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 2.4rem;
  border-top: 2px solid var(--ink);
}
.step__n {
  position: absolute;
  top: -0.95rem;
  left: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: var(--paper);
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step__list {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.5rem;
}
.step__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.step__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

/* ---------- Value grid ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.value {
  padding: clamp(1.5rem, 1rem + 1.3vw, 2.2rem);
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.value:last-child { border-right: 0; }
.value:hover { background: var(--paper); }
.value__mark {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1;
}
.value h3 { font-size: 1.12rem; margin: 1rem 0 0.45rem; }
.value p { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Dark focus band ---------- */
.band {
  position: relative;
  background: var(--pine);
  color: var(--paper);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 26rem at 92% 8%, rgba(217,72,31,0.22), transparent 60%),
    radial-gradient(34rem 24rem at 4% 100%, rgba(243,239,230,0.07), transparent 62%);
  pointer-events: none;
}
.band h2 { color: var(--paper); margin-top: 0.95rem; }
.band__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.band__lead {
  margin-top: 1.4rem;
  color: rgba(243,239,230,0.78);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
}
.band__who {
  display: grid;
  gap: 0;
}
.band__who li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--line-light);
}
.band__who li:first-child { border-top: 0; }
.band__who .k {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-soft);
  flex: none;
  width: 2.4rem;
}
.band__who .v { font-weight: 500; }
.band__who .v small {
  display: block;
  font-size: var(--fs-small);
  font-weight: 400;
  color: rgba(243,239,230,0.6);
}

/* ---------- CTA section ---------- */
.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 2rem + 3vw, 4.6rem) var(--gutter);
  box-shadow: var(--shadow-md);
}
.cta .eyebrow { justify-content: center; }
.cta h2 { margin: 1rem auto 0.9rem; max-width: 18ch; }
.cta p { margin-inline: auto; color: var(--ink-2); }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 800px;
  margin-inline: auto;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__icon {
  flex: none;
  position: relative;
  width: 20px; height: 22px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 1px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.faq__icon::before { top: 10px; left: 2px; width: 16px; height: 2px; }
.faq__icon::after { top: 3px; left: 9px; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__item[open] .faq__q { color: var(--accent); }
.faq__a { padding: 0 0.25rem 1.5rem; }
.faq__a p { color: var(--ink-2); max-width: 66ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(2.8rem, 2rem + 3vw, 4.6rem);
  padding-bottom: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(42rem 26rem at 84% -20%, rgba(217,72,31,0.1), transparent 64%);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  margin: 1.2rem 0 1.1rem;
  max-width: 20ch;
}
.page-hero .lead { max-width: 56ch; }
.crumbs {
  display: flex;
  gap: 0.45rem;
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.crumbs a:hover { color: var(--accent); }

/* ---------- Detailed service blocks ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(1.8rem, 3vw, 3.8rem);
  align-items: start;
  padding-block: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  border-top: 1px solid var(--line);
}
.svc-detail:first-of-type { border-top: 0; }
.svc-detail__head { position: sticky; top: 110px; }
.svc-detail__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--pine);
  color: var(--paper);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
}
.svc-detail__icon svg { width: 28px; height: 28px; }
.svc-detail__head h2 { font-size: var(--fs-h2); }
.svc-detail__head p { color: var(--ink-2); margin-top: 0.8rem; }
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.deliverable {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.deliverable:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.deliverable__tick {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 0.7rem;
}
.deliverable__tick svg { width: 13px; height: 13px; }
.deliverable h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.deliverable p { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.25rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.portrait {
  position: relative;
  background: var(--pine);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  color: var(--paper);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 110px;
  overflow: hidden;
}
.portrait::after {
  content: "";
  position: absolute;
  left: -30px; bottom: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(217,72,31,0.5), transparent 70%);
}
.portrait__monogram {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
}
.portrait__photo {
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
}
.portrait h2 { color: var(--paper); font-size: 1.7rem; }
.portrait__role {
  color: var(--accent-soft);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.portrait__meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0;
  position: relative;
}
.portrait__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-top: 1px solid var(--line-light);
  font-size: var(--fs-small);
}
.portrait__meta li span:first-child { color: rgba(243,239,230,0.6); }
.portrait__meta li span:last-child { font-weight: 600; text-align: right; }

.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--fs-h2); }
.prose h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-top: 2rem;
}
.prose p { color: var(--ink-2); max-width: 64ch; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lead { color: var(--ink); }

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.about-values li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
}
.about-values strong { display: block; margin-bottom: 0.15rem; }
.about-values span { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.8rem, 3vw, 3.4rem);
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.42rem;
}
.field label .opt { color: var(--ink-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.97rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,72,31,0.15);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.form-card button { width: 100%; justify-content: center; margin-top: 0.4rem; }
.form-note {
  font-size: var(--fs-small);
  color: var(--ink-3);
  margin-top: 0.9rem;
  text-align: center;
}

.contact-side { display: grid; gap: 0.9rem; }
.contact-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.contact-tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.contact-tile__label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-tile__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-top: 0.45rem;
  color: var(--ink);
  word-break: break-word;
  transition: color .2s var(--ease);
}
a.contact-tile__value:hover { color: var(--accent); }
.contact-tile--dark a.contact-tile__value:hover,
.contact-tile--dark .contact-tile__value { color: var(--paper); }
.contact-tile p { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.3rem; }
.contact-tile--dark {
  background: var(--pine);
  color: var(--paper);
  border-color: var(--pine);
}
.contact-tile--dark .contact-tile__label { color: var(--accent-soft); }
.contact-tile--dark p { color: rgba(243,239,230,0.7); }

/* ---------- Legal pages ---------- */
.legal {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: clamp(1.6rem, 3vw, 3.4rem);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 110px;
  border-left: 2px solid var(--line);
  padding-left: 1.2rem;
}
.legal__toc-title {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.8rem;
}
.legal__toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 0.3rem 0;
  transition: color .2s var(--ease);
}
.legal__toc a:hover { color: var(--accent); }
.legal__body > section { padding-top: 2rem; }
.legal__body > section:first-child { padding-top: 0; }
.legal__body h2 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.legal__body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  margin: 1.3rem 0 0.4rem;
}
.legal__body p,
.legal__body li { color: var(--ink-2); }
.legal__body p + p,
.legal__body ul + p { margin-top: 0.85rem; }
.legal__body ul {
  margin: 0.7rem 0 0 0;
  display: grid;
  gap: 0.5rem;
}
.legal__body ul li {
  position: relative;
  padding-left: 1.3rem;
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent);
}
.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  margin-top: 1.1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand .brand { color: var(--paper); }
.footer__brand .brand__mark { background: var(--paper); }
.footer__brand .brand__mark span { color: var(--ink); }
.footer__brand p {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: rgba(243,239,230,0.66);
  max-width: 34ch;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1rem;
}
.footer__col a,
.footer__col li {
  display: block;
  font-size: 0.94rem;
  color: rgba(243,239,230,0.74);
  padding: 0.32rem 0;
}
.footer__col a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__col a:hover { color: var(--paper); padding-left: 4px; }
.footer__cta p { font-size: 0.94rem; color: rgba(243,239,230,0.66); margin: 0 0 1.2rem; padding: 0; }
.footer__cta .btn { width: 100%; max-width: 232px; justify-content: center; }
.footer__cta .btn:hover { padding-left: 1.6rem; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-block: 1.7rem;
  font-size: var(--fs-small);
  color: rgba(243,239,230,0.55);
}
.footer__bottom a:hover { color: var(--paper); }
.footer__legal-links { display: flex; gap: 1.3rem; flex-wrap: wrap; }

/* ---------- Reveal animation (one-time page-load reveal) ---------- */
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-reveal] { animation: reveal .7s var(--ease) both; }
[data-reveal="1"] { animation-delay: .08s; }
[data-reveal="2"] { animation-delay: .17s; }
[data-reveal="3"] { animation-delay: .26s; }
[data-reveal="4"] { animation-delay: .35s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .band__grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail__head { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; border-left: 0; border-top: 2px solid var(--line); padding-left: 0; padding-top: 1rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
}

@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .site-header.nav-open .nav__links {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem var(--gutter) 1.1rem;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .nav__links a {
    padding: 0.95rem 0.4rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .nav__links li:last-child a { border-bottom: 0; }
  .site-header.nav-open .nav__links a::after { display: none; }
  .s-head { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(1), .value:nth-child(2) { border-bottom: 1px solid var(--line); }
  .deliverables { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 460px) {
  .values { grid-template-columns: 1fr; }
  .value { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { animation: none; opacity: 1; transform: none; }
}
