/* ==========================================================================
   Martin Levin & Co — site design system
   Palette: deep navy, warm ivory, muted brass
   ========================================================================== */

:root {
  --navy-950: #061725;
  --navy-900: #0a2236;
  --navy-800: #0e2c44;
  --navy-700: #16405e;
  --ink: #13202b;
  --muted: #56656f;
  --cream: #f8f4eb;
  --cream-2: #f0e9da;
  --paper: #fffdf8;
  --gold: #c3924a;
  --gold-dark: #a97a35;
  --gold-ink: #8a5f1f;
  --gold-light: #e7c995;
  --line: rgba(19, 32, 43, 0.13);
  --line-light: rgba(255, 255, 255, 0.14);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(10, 34, 54, 0.05), 0 8px 24px -12px rgba(10, 34, 54, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(6, 23, 37, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  flex: none;
}

img {
  height: auto;
}

a {
  color: var(--navy-700);
  text-decoration-color: rgba(22, 64, 94, 0.35);
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  color: var(--gold-ink);
  text-decoration-color: currentColor;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy-900);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

[id] {
  scroll-margin-top: 90px;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

::selection {
  background: var(--gold-light);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Buttons and eyebrow labels
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-950);
  box-shadow: 0 10px 24px -14px rgba(169, 122, 53, 0.9);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-950);
}

.btn-dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.btn-outline {
  border-color: rgba(19, 32, 43, 0.32);
  color: var(--navy-900);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--navy-900);
  background: rgba(10, 34, 54, 0.05);
  color: var(--navy-900);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.eyebrow--light {
  color: var(--gold-light);
}

.eyebrow--light::before {
  background: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
}

.topbar p {
  margin: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-links a:hover {
  color: var(--gold-light);
}

.topbar-links svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.masthead {
  background: var(--navy-900);
  color: #fff;
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 0;
}

.brand {
  display: inline-block;
  flex: none;
}

.brand img {
  width: auto;
  height: 58px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(231, 201, 149, 0.4);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.header-cta svg {
  width: 16px;
  height: 16px;
  color: var(--gold-light);
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold-light);
  color: #fff;
}

/* Navigation */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-nav.is-stuck {
  background: rgba(248, 244, 235, 0.97);
  box-shadow: 0 10px 30px -22px rgba(6, 23, 37, 0.7);
  backdrop-filter: blur(8px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 1.2rem 0.85rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  left: 0.85rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-list a:hover {
  color: var(--navy-700);
}

.nav-list a[aria-current="page"] {
  color: var(--navy-900);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
}

.nav-cta:hover {
  background: var(--navy-700);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
  border: 0;
  background: none;
  color: var(--navy-900);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bar {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-open .nav-toggle-bar {
  background: transparent;
}

.nav-open .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5.5rem);
  background: var(--cream);
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: 58vw;
  height: 58vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 146, 74, 0.16), rgba(195, 146, 74, 0) 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--gold-ink);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  max-width: 38em;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  color: var(--gold-ink);
  flex: none;
}

.hero-figure {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 440px);
}

.portrait-stack {
  position: relative;
}

.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.7;
  border-radius: 240px 240px var(--radius) var(--radius);
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 34, 54, 0) 30%, rgba(10, 34, 54, 0.5) 100%),
    linear-gradient(0deg, rgba(195, 146, 74, 0.16), rgba(195, 146, 74, 0.16));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  filter: grayscale(1) contrast(1.06) brightness(1.04);
  transform: scale(1.38);
  transform-origin: 64% 42%;
}

.portrait-frame {
  position: absolute;
  inset: -14px -14px 14px 14px;
  border: 1px solid rgba(195, 146, 74, 0.55);
  border-radius: 254px 254px var(--radius) var(--radius);
  pointer-events: none;
}

.portrait-card {
  position: absolute;
  bottom: -1.75rem;
  left: -1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  max-width: 280px;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.portrait-card strong {
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.portrait-card span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.portrait-caption {
  margin: 2.9rem 0 0;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.7rem 1.75rem;
  border-left: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--gold-ink);
  flex: none;
}

.trust-item strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.trust-item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(3.75rem, 7vw, 6.5rem) 0;
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.section-head h2 {
  max-width: 16ch;
  margin-bottom: 0;
}

.section-head__aside {
  max-width: 38em;
  color: var(--muted);
  font-size: 1rem;
}

.section-head__aside .text-link {
  margin-top: 1.25rem;
}

.section-head--center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section-head--center p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 32, 43, 0.25);
  padding-bottom: 0.2rem;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover {
  color: var(--gold-ink);
  border-color: var(--gold);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.75rem 1.75rem;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 146, 74, 0.45);
  box-shadow: var(--shadow-sm);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.35rem;
  background: var(--cream-2);
  border-radius: 50%;
  color: var(--navy-800);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.service-card p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-900);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.service-card .card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.service-card .card-link:hover {
  color: var(--gold-ink);
}

.service-card .card-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.about-figure {
  position: relative;
  max-width: 400px;
  margin: 0;
}

.about-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 34, 54, 0) 45%, rgba(10, 34, 54, 0.45) 100%);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.about-figure::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid rgba(195, 146, 74, 0.5);
  border-radius: var(--radius);
  pointer-events: none;
}

.about-badge {
  position: absolute;
  right: -1rem;
  bottom: -1rem;
  padding: 0.8rem 1.1rem;
  background: var(--navy-900);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.about-copy h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

.about-copy > p {
  max-width: 42em;
  color: var(--muted);
}

.about-quote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 2px solid var(--gold);
}

.about-quote p {
  margin: 0;
  color: var(--navy-800);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.about-stat strong {
  display: block;
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.about-stat span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   ABC band
   -------------------------------------------------------------------------- */

.abc-band {
  position: relative;
  overflow: hidden;
  padding: clamp(3.75rem, 6vw, 5.5rem) 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.76);
}

.abc-band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 146, 74, 0.2), rgba(195, 146, 74, 0) 65%);
  pointer-events: none;
}

.abc-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.abc-band h2 {
  max-width: 18ch;
  margin-bottom: 1.1rem;
  color: #fff;
}

.abc-band p {
  max-width: 40em;
  font-size: 1.02rem;
}

.abc-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

.abc-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.abc-points svg {
  width: 15px;
  height: 15px;
  color: var(--gold-light);
  flex: none;
}

.abc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.abc-book-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2.5rem;
  border: 1px solid rgba(231, 201, 149, 0.3);
}

.abc-book-wrap::before {
  content: "FREE TO CLIENTS";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0.85rem;
  background: var(--navy-900);
  color: var(--gold-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.abc-book {
  width: min(100%, 260px);
  padding: 1rem;
  background: var(--cream);
  transform: rotate(-2.5deg);
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.6);
}

.abc-book img {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Insights / newsletters
   -------------------------------------------------------------------------- */

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.insight-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(195, 146, 74, 0.5);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.insight-year {
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.insight-card h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.1rem;
}

.insight-card p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.insight-card .card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 600;
}

.insight-card .card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.insight-card:hover .card-link svg {
  transform: translateX(3px);
}

.insight-foot {
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel::before {
  content: "";
  position: absolute;
  right: -15%;
  bottom: -60%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 146, 74, 0.22), rgba(195, 146, 74, 0) 65%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-copy h2 {
  max-width: 15ch;
  color: #fff;
}

.contact-copy p {
  max-width: 36em;
  margin-bottom: 2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.contact-details li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-details svg {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  color: var(--gold-light);
}

.contact-details a {
  color: #fff;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--gold-light);
}

.contact-details span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  padding-bottom: 2.75rem;
}

.footer-brand img {
  width: auto;
  height: 46px;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 30em;
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.65;
}

.footer-contact li {
  margin-bottom: 0.55rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 3rem;
  }

  .nav-list a {
    padding-inline: 0.7rem;
    font-size: 0.86rem;
  }

  .nav-list a::after {
    right: 0.7rem;
    left: 0.7rem;
  }

  .nav-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    justify-content: center;
    min-height: 38px;
  }

  .topbar-note {
    display: none;
  }

  .topbar-links {
    gap: 1.25rem;
  }

  .nav-inner {
    justify-content: space-between;
    min-height: 58px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* No-JS fallback: keep the links reachable as a wrapped row. */
  .nav-list {
    flex-wrap: wrap;
  }

  .js .nav-list {
    display: none;
  }

  .nav-open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.5rem 1.5rem 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(6, 23, 37, 0.8);
  }

  .nav-open .nav-list a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
  }

  .nav-open .nav-list a::after {
    display: none;
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .js .nav-open .nav-list {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .hero-figure {
    justify-self: start;
    width: min(100%, 380px);
  }

  .portrait {
    aspect-ratio: 4 / 4.3;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .trust-item:nth-child(even) {
    padding-right: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-head h2 {
    max-width: 20ch;
  }

  .service-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .abc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-figure {
    max-width: 400px;
  }

  .abc-book-wrap {
    max-width: 420px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: calc(100% - 2rem);
  }

  .masthead-inner {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.1rem 0;
  }

  .brand img {
    height: 44px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-points {
    gap: 0.5rem 1.25rem;
  }

  .portrait-card {
    bottom: -1.25rem;
    left: -0.75rem;
    max-width: 240px;
    padding: 0.85rem 1rem;
  }

  .portrait-caption {
    margin-top: 2.25rem;
    padding-left: 0;
  }

  .portrait-frame {
    inset: -10px -10px 10px 10px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:nth-child(even) {
    padding: 1.1rem 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .trust-item:first-child {
    border-top: 0;
  }

  .service-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    gap: 1.5rem;
  }

  .about-figure::before {
    inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  }

  .abc-band .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-panel {
    margin-inline: -1rem;
    padding: 2rem 1.25rem;
  }

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .topbar-links a[href^="mailto:"] {
    display: none;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .page-masthead h1 {
    font-size: 2.1rem;
  }

  .portrait-card strong {
    font-size: 1.6rem;
  }

  .footer-brand img {
    height: 40px;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
