/* =========================================================
   Red Dot Advisory — site styles
   Brand palette:
     --ink:    #000000
     --paper:  #ffffff
     --red-1:  #ed3130   (accent)
     --red-2:  #9e2120   (deeper)
     --red-3:  #4f1010   (deepest)
   Typography:
     Headings — Atkinson Hyperlegible (700, oblique for emphasis)
     Body     — Inter
   ========================================================= */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --red-1: #ed3130;
  --red-2: #9e2120;
  --red-3: #4f1010;

  --bg: #ffffff;
  --fg: #0c0c0c;
  --muted: #5a5a5a;
  --line: #e8e8e8;
  --soft: #f6f5f3;

  --container: 1180px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-1); }

h1, h2, h3, .brand-name {
  font-family: "Atkinson Hyperlegible", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 5vw + .5rem, 4.25rem); }
h2 { font-size: clamp(1.75rem, 2.5vw + .8rem, 2.75rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

em { font-style: italic; color: var(--red-1); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--red-1);
  color: #fff;
  box-shadow: 0 8px 18px rgba(237,49,48,.28);
}
.btn-primary:hover { background: var(--red-2); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,.18);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link {
  padding: .85em 0;
  color: var(--ink);
}
.btn-link:hover { color: var(--red-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--ink);
  font-weight: 700;
}
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-mark.sm { width: 22px; height: 22px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 1.1rem;
  font-style: italic; /* oblique title style */
  margin: 0;
}
.brand-sub {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px;
}
.site-nav a {
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .55em .9em;
  border-radius: 999px;
}
.site-nav a:hover { background: var(--soft); color: var(--ink); }

.nav-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0; padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--ink); margin: 5px 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 85vh, 820px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(105%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 600px at 0% 100%, rgba(79,16,16,.55), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.7) 100%);
}
.hero-inner { padding: 96px 24px 120px; max-width: 980px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin: 0 0 1.25rem;
}
.eyebrow .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red-1);
  box-shadow: 0 0 0 4px rgba(237,49,48,.25);
}
.hero h1 {
  color: #fff;
  font-style: italic;
  letter-spacing: -0.015em;
  margin-bottom: .4em;
}
.hero h1 em {
  color: var(--red-1);
  font-style: italic;
}
.hero-lede {
  max-width: 640px;
  font-size: clamp(1.05rem, .6vw + 1rem, 1.2rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero-cta .btn-link { color: #fff; }
.hero-cta .btn-link:hover { color: var(--red-1); }

/* ---------- Section utilities ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.kicker {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--red-2);
  font-weight: 700;
  margin: 0 0 1rem;
}
.kicker.light { color: rgba(255,255,255,.85); }
.section-head .kicker::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-1); margin-right: 10px;
  vertical-align: middle;
}
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.about .lead {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.2em;
}
.pill-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45em 1em;
  font-size: .85rem;
  color: var(--fg);
  background: #fff;
}

/* ---------- Services ---------- */
.services { background: var(--soft); }
.service-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(237,49,48,.35);
}
.service-num {
  font-family: "Atkinson Hyperlegible", serif;
  font-style: italic;
  font-weight: 700;
  font-size: .95rem;
  color: var(--red-1);
  letter-spacing: .15em;
  margin-bottom: .75rem;
}
.service h3 {
  font-style: italic;
  margin-bottom: .25em;
}
.service-tag {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1em;
}
.service p { color: #2b2b2b; }
.service-list {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}
.service-list li {
  position: relative;
  padding: .35em 0 .35em 1.4em;
  font-size: .95rem;
  color: #333;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: .85em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-1);
}

/* ---------- Approach (dark band) ---------- */
.approach {
  position: relative;
  isolation: isolate;
  color: #fff;
  overflow: hidden;
}
.approach-media { position: absolute; inset: 0; z-index: -2; }
.approach-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.2) brightness(.6);
}
.approach-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(135deg, rgba(79,16,16,.85) 0%, rgba(0,0,0,.78) 60%, rgba(0,0,0,.85) 100%);
}
.approach h2 {
  color: #fff;
  font-style: italic;
  max-width: 22ch;
  margin-bottom: 2rem;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.approach-grid h3 {
  color: #fff;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: .35em;
}
.approach-grid h3::before {
  content: ""; display: inline-block;
  width: 18px; height: 2px;
  background: var(--red-1);
  margin-right: 10px; vertical-align: middle;
  transform: translateY(-4px);
}
.approach-grid p {
  color: rgba(255,255,255,.82);
  font-size: .98rem;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.contact-cards {
  display: grid;
  gap: 16px;
}
.contact-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-card:hover {
  border-color: var(--red-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.contact-label {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-value {
  font-family: "Atkinson Hyperlegible", serif;
  font-weight: 700;
  font-size: 1.15rem;
  font-style: italic;
}
.contact-cta { color: var(--red-1); font-weight: 600; }
.contact-card.primary {
  background: linear-gradient(135deg, #fff5f4, #ffffff);
  border-color: rgba(237,49,48,.35);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8d8d8;
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font-family: "Atkinson Hyperlegible", serif;
  font-weight: 700;
  font-style: italic;
}
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  justify-self: center;
}
.footer-nav a {
  color: #cfcfcf;
  font-size: .92rem;
  padding: .25em .35em;
}
.footer-nav a:hover { color: var(--red-1); }
.footer-meta {
  font-size: .82rem;
  color: #9a9a9a;
  margin: 0;
  justify-self: end;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer-nav, .footer-meta { justify-self: center; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul {
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 8px;
  }
  .hero-inner { padding-top: 72px; padding-bottom: 96px; }
  .contact-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .approach-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
