:root {
  --ivory: #f8f3ea;
  --paper: #fffaf6;
  --linen: #ece1d0;
  --charcoal: #252321;
  --ink: #37322e;
  --muted: #756e66;
  --gold: #b69255;
  --plum: #70576e;
  --line: rgba(37, 35, 33, 0.14);
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 22px 52px rgba(37, 35, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.abelines {
  --ivory: #f4f6f7;
  --paper: #ffffff;
  --linen: #e3e8eb;
  --charcoal: #1f2933;
  --ink: #2f3b46;
  --muted: #697783;
  --gold: #9a7a42;
  --plum: #2f5f7d;
  --line: rgba(31, 41, 51, 0.14);
  background: #f4f6f7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 30;
  padding: 0.65rem 0.9rem;
  background: var(--charcoal);
  color: var(--paper);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: blur(18px);
}

.abelines .site-header {
  background: rgba(244, 246, 247, 0.94);
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.abelines .brand {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a,
.business-menu summary {
  color: var(--muted);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.business-menu summary:hover {
  color: var(--charcoal);
}

.business-menu {
  position: relative;
}

.business-menu summary {
  list-style: none;
}

.business-menu summary::-webkit-details-marker {
  display: none;
}

.business-menu summary::after {
  content: " +";
  color: var(--gold);
}

.business-menu[open] summary::after {
  content: " -";
}

.business-menu div {
  position: absolute;
  right: 0;
  top: 2rem;
  min-width: 230px;
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.business-menu div a {
  padding: 0.55rem 0.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.76rem 1.05rem;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--paper);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--gold);
}

.button.light {
  background: var(--paper);
  color: var(--charcoal);
  border-color: var(--paper);
}

.dark .button.secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 246, 0.46);
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(248, 243, 234, 0.98), rgba(248, 243, 234, 0.82) 43%, rgba(248, 243, 234, 0.08) 74%), url("assets/inessage-hero.jpg");
  background-position: center;
  background-size: cover;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  background-color: #151817;
  background-image: linear-gradient(90deg, rgba(16, 18, 20, 0.9) 0%, rgba(20, 21, 21, 0.76) 36%, rgba(20, 21, 21, 0.22) 66%), url("assets/ines-hero.jpg");
  background-position: center center;
}

.brand-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.brand-hero h1,
.brand-hero .hero-copy {
  color: var(--paper);
}

.brand-hero .hero-copy {
  color: rgba(255, 250, 246, 0.82);
}

.brand-hero .button {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--charcoal);
}

.brand-hero .button.secondary {
  background: rgba(255, 250, 246, 0.08);
  border-color: rgba(255, 250, 246, 0.42);
  color: var(--paper);
}

.abelines-hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  background-image: linear-gradient(90deg, rgba(244, 246, 247, 0.98), rgba(244, 246, 247, 0.86) 44%, rgba(244, 246, 247, 0.18) 76%), url("assets/abelines-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.abelines h1,
.abelines h2,
.abelines h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.8rem, 10vw, 8.2rem);
}

.abelines h1 {
  max-width: 830px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 750;
}

h2 {
  max-width: 860px;
  font-size: clamp(2.35rem, 5.7vw, 5rem);
}

.abelines h2 {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  font-weight: 750;
}

h3 {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
}

.abelines h3 {
  font-size: 1.15rem;
  font-weight: 750;
}

.hero-copy {
  max-width: 660px;
  margin-top: 1.3rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section.tint {
  background: var(--paper);
}

.section.dark {
  background: var(--charcoal);
  color: var(--paper);
}

.section.dark h2,
.section.dark h3 {
  color: var(--paper);
}

.lead {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.dark .lead {
  color: rgba(255, 250, 246, 0.82);
}

.quiet,
.card p,
.post p,
.proof p {
  color: var(--muted);
}

.intro-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.68fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.card-grid,
.post-grid,
.proof-grid,
.abelines-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.decode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.card,
.post,
.proof,
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 246, 0.72);
  padding: 1.35rem;
}

.abelines .card,
.abelines .proof,
.abelines .tile {
  background: #ffffff;
}

.section.dark .abelines-process-card {
  min-height: 238px;
  border-color: rgba(255, 255, 255, 0.18);
  background: #f8fafb;
  color: #1f2933;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.section.dark .abelines-process-card .tile-number {
  color: #9a7a42;
}

.section.dark .abelines-process-card h3 {
  color: #1f2933;
}

.section.dark .abelines-process-card p {
  margin-bottom: 0;
  color: #53616d;
}

.tile {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.card .button {
  align-self: flex-start;
  margin-top: auto;
}

.meta,
.tile-number {
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(3.3rem, 9vw, 7.5rem);
}

.about-portrait-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 250, 246, 0.96), rgba(236, 225, 208, 0.62)),
    var(--paper);
}

.about-portrait-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-portrait-grid h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.portrait-panel {
  position: relative;
  margin: 0;
  min-height: clamp(420px, 52vw, 640px);
  overflow: hidden;
  border: 1px solid rgba(37, 35, 33, 0.16);
  border-radius: var(--radius);
  background: #161817;
  box-shadow: var(--shadow);
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 17, 0.02), rgba(13, 15, 17, 0.18));
  pointer-events: none;
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 63% center;
  transform: scale(1.02);
}

.note-panel {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.3rem;
}

.rule-list {
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.rule-list span {
  color: var(--gold);
  font-weight: 800;
}

.podcast-band,
.disclaimer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 250, 246, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 246, 0.055);
}

.podcast-badge {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 246, 0.28);
  border-radius: var(--radius);
  text-align: center;
}

.podcast-badge strong {
  max-width: 280px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  line-height: 0.9;
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.market-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 2rem 0 0;
}

.market-list li {
  list-style: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--charcoal);
  font: inherit;
  padding: 0.85rem 0.9rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  background: #1f1d1b;
  color: var(--paper);
  padding: 3rem 0;
}

.abelines .site-footer {
  background: #17222b;
}

.site-footer .quiet {
  color: rgba(255, 250, 246, 0.68);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255, 250, 246, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .decode-grid,
  .card-grid,
  .post-grid,
  .proof-grid,
  .abelines-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .two-column,
  .podcast-band,
  .disclaimer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a,
  .business-menu summary {
    padding: 0.78rem 0;
  }

  .business-menu div {
    position: static;
    min-width: 0;
    padding: 0 0 0.4rem 1rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero,
  .abelines-hero {
    min-height: auto;
  }

  .hero {
    background-image: linear-gradient(180deg, rgba(248, 243, 234, 0.98), rgba(248, 243, 234, 0.88) 48%, rgba(248, 243, 234, 0.32)), url("assets/inessage-hero.jpg");
    background-position: 61% center;
  }

  .brand-hero {
    background-image: linear-gradient(180deg, rgba(17, 18, 20, 0.9) 0%, rgba(17, 18, 20, 0.72) 46%, rgba(17, 18, 20, 0.38) 100%), url("assets/ines-hero.jpg");
    background-position: 61% center;
  }

  .abelines-hero {
    background-image: linear-gradient(180deg, rgba(244, 246, 247, 0.98), rgba(244, 246, 247, 0.88) 50%, rgba(244, 246, 247, 0.36)), url("assets/abelines-hero.jpg");
    background-position: 62% center;
  }

  .hero-inner {
    padding: 5.5rem 0 3.5rem;
  }

  .about-portrait-grid {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    min-height: 430px;
    order: -1;
  }

  .portrait-panel img {
    object-position: 61% center;
  }

  .decode-grid,
  .card-grid,
  .post-grid,
  .proof-grid,
  .abelines-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

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