/* ============================================================
   HRM AGENCY — design system
   Ink navy + warm stone + pine green, Fraunces / Work Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* colors — strict black / white / gray */
  --ink: #0d0d0d;
  --ink-soft: #55555a;
  --stone: #ffffff;
  --stone-deep: #e2e2e2;
  --surface: #fafafa;
  --pine: #0d0d0d;
  --pine-deep: #000000;
  --pine-tint: #ececec;
  --brass: #8a8a8a;
  --line: rgba(13, 13, 13, 0.14);
  --line-soft: rgba(13, 13, 13, 0.08);
  --white: #ffffff;

  /* type */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-body: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  /* layout */
  --wrap: 1160px;
  --gap: clamp(1.5rem, 3vw, 3rem);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--pine);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--stone);
}
.btn-primary:hover { background: var(--pine-deep); transform: translateY(-1px); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { border-color: var(--surface); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}
.logo strong { font-weight: 600; }
.logo span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--pine);
  text-transform: uppercase;
  align-self: center;
}

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--pine);
  transition: right 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: none; }
@media (min-width: 860px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  height: 1px; background: var(--ink); width: 100%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (min-width: 860px) { .nav-toggle { display: none; } }

.nav-links { display: none; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
}

.mobile-nav {
  position: fixed; inset: 84px 0 0 0;
  background: var(--stone);
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem);
}
.mobile-nav.open {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav a {
  display: block;
  font-family: var(--f-display);
  font-size: 2rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 860px) { .mobile-nav { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-copy h1 { margin-top: 0.9rem; }
.hero-copy .lede { margin-top: 1.4rem; max-width: 46ch; }

.hero-portrait {
  position: relative;
  justify-self: center;
  width: min(340px, 80vw);
}
.hero-portrait img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
  box-shadow: 0 30px 60px -30px rgba(13, 13, 13, 0.35);
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--pine);
  z-index: -1;
}
.hero-portrait .tag {
  position: absolute;
  left: -18px; bottom: -18px;
  background: var(--ink);
  color: var(--stone);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.7em 1em;
  max-width: 200px;
  line-height: 1.5;
}

/* signature: diverging path */
.path-wrap {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
/* the connecting line is calibrated to a wide canvas — its labels would
   shrink to unreadable size on phone widths, so it only appears once
   there is room for it to read correctly */
.path-svg { display: none; }
@media (min-width: 640px) {
  .path-svg { display: block; width: 100%; height: auto; overflow: visible; }
}
.path-line {
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2.2s ease-out forwards;
  animation-delay: 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .path-line { animation: none; stroke-dashoffset: 0; }
}
.path-node {
  fill: var(--stone);
  stroke: var(--pine);
  stroke-width: 1.4;
}
.path-dest {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  fill: var(--ink);
  text-transform: uppercase;
}

.path-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .path-ctas { grid-template-columns: 1fr 1fr; } }

.path-cta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.path-cta:hover { border-color: var(--pine); transform: translateY(-2px); }
.path-cta .eyebrow { font-size: 0.66rem; }
.path-cta strong { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; }
.path-cta em {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.trust-strip ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.4rem;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  justify-content: center;
}

/* ---------- sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 56ch;
  margin-bottom: clamp(2.4rem, 5vw, 3.5rem);
}
.section-head.center { align-items: center; text-align: center; margin-inline: auto; }

.on-ink { background: var(--ink); color: var(--stone); }
.on-ink .lede { color: rgba(255, 255, 255, 0.72); }
.on-ink .eyebrow { color: var(--brass); }
.on-ink .eyebrow::before { background: var(--brass); }

.on-pine { background: var(--pine); color: var(--stone); }
.on-pine .lede { color: rgba(255, 255, 255, 0.78); }

/* ---------- services (two-track) ---------- */
.tracks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 860px) { .tracks { grid-template-columns: 1fr 1fr; } }

.track {
  background: var(--surface);
  padding: clamp(1.8rem, 3vw, 2.6rem);
}
.track-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.track-head h3 { font-weight: 500; }
.track-count {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--pine);
  white-space: nowrap;
}

.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 1rem;
}
.service-list li:last-child { border-bottom: none; }
.service-list .num {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--brass);
  padding-top: 0.2rem;
  flex-shrink: 0;
  width: 1.6em;
}
.service-list .body strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.service-list .body span {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- about teaser / bio ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; } }

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.04);
}
.about-credentials {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.cred-block { margin-top: 2.2rem; }
.cred-block h4 {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pine);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.cred-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.cred-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.cred-list li:last-child { border: none; padding-bottom: 0; }
.cred-list b { font-weight: 600; }
.cred-list small { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- process ---------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 0);
  counter-reset: step;
}
@media (min-width: 780px) { .process-list { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  position: relative;
  padding: 1.6rem clamp(0, 2vw, 1.5rem) 0 0;
  counter-increment: step;
}
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.9rem;
}
@media (min-width: 780px) {
  .process-step:not(:last-child) { border-right: 1px solid var(--line); padding-right: 2rem; }
  .process-step:not(:first-child) { padding-left: 2rem; }
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.process-step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- quote / cta band ---------- */
.cta-band {
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-grid a { text-decoration: none; color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--stone); }
.footer-logo { font-family: var(--f-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer-subtitle {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
}
.footer-tag { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 32ch; line-height: 1.6; font-family: var(--f-display); font-style: italic; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--f-mono);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); text-decoration: underline; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding-top: clamp(2.6rem, 6vw, 4rem);
  padding-bottom: clamp(2.2rem, 5vw, 3rem);
}
.page-hero h1 { margin-top: 0.8rem; }
.page-hero .lede { margin-top: 1.2rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
.contact-item .eyebrow { margin-bottom: 0.6rem; }
.contact-item a, .contact-item p {
  font-family: var(--f-display);
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--ink);
}

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.field label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}

.inquiry-toggle { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.inquiry-option { position: relative; }
.inquiry-option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.inquiry-option span {
  display: inline-flex;
  align-items: center;
  padding: 0.75em 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.inquiry-option input:hover + span { border-color: var(--ink); }
.inquiry-option input:checked + span {
  background: var(--ink);
  color: var(--stone);
  border-color: var(--ink);
}
.inquiry-option input:focus-visible + span {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

/* ---------- misc ---------- */
.stack-sm { display: flex; flex-direction: column; gap: 0.5rem; }
.text-center { text-align: center; }
