@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --ink: #001d3d;
  --muted: #52617b;
  --cream: #ffffff;
  --paper: #ffffff;
  --gold: #d5e1f6;
  --wine: #ba0608;
  --line: #dbe2ed;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
}
h1 {
  font-size: clamp(54px, 5.8vw, 89px);
  letter-spacing: -3px;
  margin-bottom: 27px;
}
h2 {
  font-size: clamp(34px, 3.6vw, 53px);
  letter-spacing: -1.5px;
  margin-bottom: 25px;
}
h3 {
  font-size: 25px;
}
em {
  font-weight: 400;
  color: var(--wine);
}
p {
  margin-bottom: 22px;
}
.topbar {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 9px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.topbar button {
  border: 0;
  background: none;
  color: var(--gold);
  margin-left: 12px;
  padding: 3px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
header {
    padding: 0px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    position: relative;
    z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 3px;
  margin-top: 7px;
}
.brand-mark {
  position: relative;
  font-size: 49px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -6px;
  padding-right: 12px;
}
.brand-mark span {
  font-size: 16px;
  position: absolute;
  right: -3px;
  top: 6px;
  letter-spacing: 0;
  color: var(--wine);
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
}
nav a:hover,
footer a:hover {
  color: #aa762e;
}
.btn {
  border: 1px solid var(--ink);
  padding: 15px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.3px;
  background: transparent;
  transition:
    background 0.25s,
    transform 0.25s;
}
.btn:hover {
  transform: translateY(-3px);
  background: #e9eff9;
}
.btn.primary {
  background: var(--ink);
  color: white;
}
.btn.primary:hover {
  background: #143d80;
}
.btn.light {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn.small {
  padding: 11px 20px;
  gap: 24px;
}
.text-link {
  border: 0;
  background: none;
  padding: 0 0 5px;
  border-bottom: 1px solid #ffffff;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 710px;
  overflow: hidden;
}
.hero-copy {
  padding: 74px 10% 45px 12%;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.3px;
  font-weight: 700;
  margin-bottom: 26px;
}
.intro {
  max-width: 420px;
  color: #52617b;
  font-size: 15px;
  line-height: 1.8;
}
.actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #000000;
  margin-top: 55px;
  line-height: 1.5;
  font-weight: 600;
}
.tiny-star {
  font-size: 28px;
  color: var(--wine);
}
.hero-art {
  position: relative;
  background: #eaf0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 680px;
  background-image: radial-gradient(
    ellipse at center,
    #f7f9ff,
    transparent 65%
  );
}
.halo {
  position: absolute;
  width: 430px;
  height: 430px;
  border: none;
  border-radius: 50%;
  box-shadow: none;
}
.book-stack {
  position: relative;
  width: 400px;
  height: 425px;
  margin-top: -20px;
  perspective: 900px;
}
.book-stack img {
  position: absolute;
  width: 245px;
  box-shadow: 12px 23px 30px #001d3d38;
  border-left: 5px solid #ffffff22;
  animation: float 7s ease-in-out infinite;
  height: 350px;
}
.front-book {
  top: 38px;
  left: 8px;
  transform: rotate(-12deg);
  z-index: 2;
}
.back-book {
  top: -7px;
  right: -4px;
  transform: rotate(12deg);
  animation-delay: -3s !important;
}
.orbit-label {
  position: absolute;
  top: 45px;
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: 600;
}
.art-caption {
  position: absolute;
  bottom: 25px;
  text-align: center;
}
.art-caption span {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}
.art-caption p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 21px;
  margin-top: 8px;
}
.art-star {
  position: absolute;
  right: 35px;
  bottom: 135px;
  font-size: 73px;
  font-weight: 200;
  color: var(--wine);
  animation: rotate 35s linear infinite;
}
.genre-ribbon {
  padding: 22px 5%;
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  flex-wrap: wrap;
}
.genre-ribbon i {
  color: var(--wine);
  font-style: normal;
}
.section {
  padding: 95px 7%;
}
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9%;
}
.split p {
  font-size: 14px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  margin-bottom: 35px;
}
.section-heading p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.section-heading h2 {
  margin-bottom: 0;
}
.services {
  background: #f1f5fc;
}
.service-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: 8%;
}
.service-aside {
  padding: 25px 32px 30px;
  background: var(--ink);
  color: var(--cream);
  align-self: start;
}
.service-aside h3 {
  font-size: 34px;
  line-height: 1.2;
}
.service-aside h3 em {
  color: var(--gold);
}
.service-aside p {
  font-size: 12px;
  color: #d3ddf0;
}
.large-quote {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 85px;
  line-height: 1;
}
.service-row {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  gap: 16px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid #cbd6e9;
  background: none;
  padding: 22px 0;
  align-items: center;
  transition:
    padding 0.25s,
    background 0.25s;
}
.service-row:last-child {
  border-bottom: 1px solid #cbd6e9;
}
.service-row:hover {
  padding-left: 13px;
  background: #e4ecfa;
}
.row-number {
  font-size: 10px;
  color: #61779b;
}
.service-row strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}
.service-row small {
  font-size: 11px;
  color: var(--muted);
}
.row-arrow {
  font-size: 26px;
  font-weight: 300;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.filters button {
  background: none;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 11px;
}
.filters button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 45px;
}
.book-card {
  transition: transform 0.3s;
}
.book-card:hover {
  transform: translateY(-9px);
}
.book-card img {
  width: 100%;
  box-shadow: 8px 14px 19px #001d3d20;
  aspect-ratio: 2/3;
  height: 420px;
}
.book-card > div {
  padding-top: 20px;
}
.book-card span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.book-card h3 {
  font-size: 20px;
  margin: 8px 0 0;
}
.book-card[hidden] {
  display: none;
}
.demo-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 30px;
}
.process {
  background: var(--ink);
  color: var(--cream);
}
.process em {
  color: var(--gold);
}
.process .text-link {
  border-color: var(--gold);
  color: var(--gold);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 60px;
}
.steps article {
  border-top: 1px solid #ffffff45;
  padding-top: 23px;
}
.steps span {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.steps h3 {
  font-size: 23px;
  margin: 28px 0 17px;
}
.steps p {
  font-size: 12px;
  color: #d3ddf0;
  margin-bottom: 0;
}
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: center;
}
.editorial p {
  font-size: 14px;
  color: var(--muted);
}
.editorial-art {
  background: #e4ebf8;
  min-height: 440px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.paper {
  background: var(--paper);
  width: 70%;
  padding: 45px 35px;
  box-shadow: 7px 12px 20px #001d3d20;
  transform: rotate(-6deg);
}
.paper > span:first-child {
  font-size: 8px;
  letter-spacing: 3px;
}
.paper h3 {
  font-size: 37px;
  margin: 28px 0;
}
.paper-lines {
  height: 80px;
  background: repeating-linear-gradient(transparent 0 10px, #cbd6e9 10px 11px);
  margin-bottom: 25px;
}
.signature {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--wine);
}
.faq {
  display: grid;
  grid-template-columns: 0.75fr 1.4fr;
  gap: 10%;
  border-top: 1px solid var(--line);
}
details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 20px;
  line-height: 1;
}
details[open] summary:after {
  content: "−";
}
details p {
  font-size: 13px;
  color: var(--muted);
  margin: 17px 0 0;
}
.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  background: #001d3d;
  color: white;
  isolation: isolate;
}
.flag-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.flag {
  position: absolute;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  opacity: 0.2;
  filter: blur(0.4px);
  animation: flagwave 9s ease-in-out infinite;
  transform-origin: 0 50%;
}
.flag-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #001d3d00, #001d3d00),
    linear-gradient(0deg, #001d3d00, transparent);
}
.contact-copy em {
  color: var(--gold);
}
.contact-copy p:not(.eyebrow) {
  color: #d3ddf0;
  font-size: 14px;
}
.contact-star {
  font-size: 80px;
  color: var(--gold);
}
.contact-panel {
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
}
.contact-panel h3 {
  margin-bottom: 9px;
  font-size: 27px;
}
.contact-panel > p {
  font-size: 11px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
label {
  font-size: 10px;
  font-weight: 600;
  display: block;
  margin-bottom: 16px;
}
label span {
  font-weight: 400;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  display: block;
  border: 1px solid #cbd6e9;
  background: #ffffff;
  padding: 11px 12px;
  color: var(--ink);
  margin-top: 6px;
  font-size: 12px;
  border-radius: 0;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #3167b9;
  outline-offset: 2px;
}
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--muted);
}
.consent input {
  margin: 3px 0;
}
.consent a {
  text-decoration: underline;
}
.enquiry-form .btn {
  width: 100%;
}
.form-note {
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  margin: 9px 0 0;
}
.form-status {
  font-size: 12px;
  margin: 12px 0 0;
}
.form-status.error {
  color: #9b2525;
}
.form-status.success {
  color: #185a38;
}
.trap {
  position: absolute;
  left: -9999px;
}
.form-grid label {
  margin-bottom: 0;
}
.form-grid {
  margin-bottom: 16px;
}
footer {
  padding: 64px 7% 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr 1fr;
  gap: 45px;
}
footer h3 {
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 23px;
}
footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
footer .footer-grid > div > a:not(.brand),
footer .footer-grid > div > button:not(.btn):not(.text-link) {
  display: block;
  border: 0;
  background: none;
  text-align: left;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
footer .footer-grid > div > button:hover {
  color: #ffffff;
}
.footer-brand {
  font-size: 15px;
  gap: 10px;
}
.footer-brand small {
  font-size: 8px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 60px;
  padding-top: 20px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  width: min(580px, calc(100% - 30px));
  padding: 42px;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 25px 80px #0004;
}
dialog::backdrop {
  background: #001d4daa;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 34px;
  letter-spacing: -1px;
}
dialog > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}
dialog .eyebrow {
  margin-top: 10px;
  margin-bottom: 17px;
}
.dialog-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 29px;
  line-height: 1;
  padding: 7px;
}
dialog ul {
  padding-left: 20px;
  font-size: 13px;
  margin: 25px 0 32px;
}
.menu-toggle {
  display: none;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #ba0608;
  outline-offset: 5px;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.legal {
  max-width: 900px;
  margin: auto;
  padding: 70px 25px;
}
.legal h1 {
  font-size: 45px;
}
.legal h2 {
  font-size: 26px;
  margin-top: 30px;
}
.legal a {
  text-decoration: underline;
}
@keyframes float {
  50% {
    translate: 0 -12px;
  }
}
@keyframes rotate {
  to {
    rotate: 360deg;
  }
}
@keyframes flagwave {
  0%,
  100% {
    transform: translate(-3%, 0) skewY(-2deg) scale(1.04);
    filter: brightness(0.9);
  }
  50% {
    transform: translate(0, -3%) skewY(2deg) scale(1.1);
    filter: brightness(1.25);
  }
}
@media (min-width: 1500px) {
  .section {
    padding-inline: calc((100vw - 1280px) / 2);
  }
  header {
     padding-inline: calc((100vw - 1290px) / 2);
  }
  .hero-copy {
    padding-left: calc((100vw - 1280px) / 2);
  }
}
@media (max-width: 1050px) {
  nav {
    gap: 18px;
  }
  .hero-copy {
    padding: 55px 9%;
  }
  .hero-art {
    min-height: 610px;
  }
  .hero {
    min-height: 610px;
  }
  .book-stack {
    scale: 0.85;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero-foot {
    margin-top: 32px;
  }
  .book-grid {
    gap: 25px;
  }
  .section {
    padding: 75px 6%;
  }
  .footer-grid {
    gap: 25px;
  }
  .service-layout {
    gap: 5%;
    grid-template-columns: 0.8fr 1.3fr;
  }
  .service-aside {
    padding: 25px;
  }
  .service-aside h3 {
    font-size: 29px;
  }
}
@media (max-width: 780px) {
  header {
    padding: 18px 6%;
  }
  .brand {
    font-size: 16px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    font-size: 40px;
  }
  .menu-toggle {
    display: block;
    border: 1px solid var(--line);
    background: none;
    font-size: 22px;
    padding: 4px 12px;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 25px #0001;
  }
  nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  nav a {
    padding: 8px 0;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 50px 6%;
    text-align: center;
  }
  .hero h1 {
    font-size: 67px;
  }
  .intro {
    margin-inline: auto;
  }
  .actions,
  .hero-foot {
    justify-content: center;
  }
  .hero-art {
    min-height: 530px;
  }
  .hero-art .book-stack {
    scale: 0.85;
  }
  .hero-foot {
    margin-top: 30px;
  }
  .genre-ribbon {
    justify-content: center;
    font-size: 8px;
    gap: 15px;
  }
  .genre-ribbon i:nth-of-type(3) {
    display: none;
  }
  .split,
  .editorial,
  .faq,
  .contact {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .section {
    padding: 60px 6%;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }
  .service-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .service-aside {
    display: none;
  }
  .service-row strong {
    font-size: 25px;
  }
  .service-row small {
    font-size: 10px;
  }
  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 35px;
  }
  .editorial-art {
    min-height: 370px;
  }
  .paper {
    width: 62%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .contact-star {
    display: none;
  }
  .contact-panel {
    padding: 25px;
  }
  .contact-copy {
    max-width: 500px;
  }
  .contact-copy h2 {
    font-size: 43px;
  }
  .faq h2 br {
    display: none;
  }
  .topbar {
    font-size: 9px;
  }
  .topbar button {
    margin-left: 3px;
  }
  .art-star {
    right: 16%;
    font-size: 55px;
    bottom: 110px;
  }
  dialog {
    padding: 32px 24px;
  }
  dialog h2 {
    font-size: 30px;
  }
}
@media (max-width: 400px) {
  .hero h1 {
    font-size: 56px;
  }
  .hero-art {
    min-height: 470px;
  }
  .book-stack {
    scale: 0.72 !important;
  }
  .section h2 {
    font-size: 33px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .book-grid {
    gap: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 14px;
  }
  .paper {
    width: 75%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* USA flag palette and service navigation */
.topbar {
  background: #001d3d;
}
.topbar button {
  color: #fff;
}
header {
  border-bottom: 3px solid #ba0608;
}
.hero-art {
  border-bottom: 6px solid #ba0608;
}
.btn.primary {
  background: #ba0608;
  border-color: #ba0608;
}
.btn.primary:hover {
  background: #8f1b2a;
  border-color: #8f1b2a;
}
.btn.light {
  background: #9b2525;
  border-color: #fff;
  color: #ffffff;
}
.process .text-link {
  color: #fff;
  border-color: #fff;
}
.genre-ribbon {
  background: #001d3d;
  color: #fff;
  border: none;
}
.genre-ribbon i {
  color: #ffb8c2;
}
.service-aside h3 em,
.process em,
.contact-copy em {
  color: #fff;
}
.tiny-star,
.large-quote,
.contact-star {
  color: #ba0608;
}
.nav-services {
  position: relative;
}
.services-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  background: none;
  border: 0;
  padding: 10px 0;
  font-size: 12px;
}
.services-toggle span {
  transition: transform 0.2s;
}
.services-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}
.services-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  left: -22px;
  width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dbe2ed;
  border-top: 3px solid #ba0608;
  box-shadow: 0 15px 35px #001d3d20;
  z-index: 20;
}
.nav-services.open .services-dropdown {
  display: block;
}
.services-dropdown a {
  display: block;
  padding: 10px 13px;
  font-size: 14px;
  border-bottom: 1px solid #eaf0fb;
}
.services-dropdown a:last-child {
  border: none;
}
.services-dropdown a:hover,
.services-dropdown a:focus-visible {
  background: #edf2fc;
  color: #aa762e;
}

button.dialog-close {
  background: #9b2525;
  color: #fff;
}

.services-dropdown .all-services {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #ba0608;
}
.service-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
  background: linear-gradient(110deg, #fff 60%, #edf2fc 60%);
  padding-top: 42px;
  padding-bottom: 60px;
}
.service-hero h1 {
  font-size: clamp(48px, 4.8vw, 73px);
}
.breadcrumb {
  font-size: 10px;
  color: #52617b;
  margin-bottom: 35px;
}
.breadcrumb a:hover {
  color: #ba0608;
  text-decoration: underline;
}
.service-hero .intro {
  max-width: 520px;
}
.service-hero-art {
  min-height: 480px;
  display: grid;
  place-items: center;
  position: relative;
}
.service-hero-art img {
  width: 230px;
  transform: rotate(7deg);
  box-shadow: 12px 18px 35px #001d3d25;
  animation: float 7s ease-in-out infinite;
  z-index: 1;
  height: 350px;
}
.service-watermark {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 270px;
  line-height: 1;
  color: #001d3d0c;
  right: 0;
  top: 0;
}
.service-art-note {
  position: absolute;
  bottom: -10px;
  text-align: center;
}
.service-art-note span {
  font-size: 8px;
  letter-spacing: 1.7px;
}
.service-art-note p {
  font-family: Georgia, serif;
  font-size: 20px;
  margin: 8px 0;
}
.service-values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px;
  background: #001d3d;
  color: white;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.service-values i {
  color: #ffb8c2;
  font-style: normal;
}
.service-included {
  background: #f1f5fc;
}
.deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.deliverable {
  border-top: 3px solid #ba0608;
  padding: 23px 0;
}
.deliverable > span {
  font-size: 11px;
  color: #ba0608;
}
.deliverable h3 {
  font-size: 23px;
  margin: 25px 0 18px;
}
.deliverable p {
  font-size: 13px;
  color: #52617b;
}
.audience {
  margin-top: 30px;
  border-top: 1px solid #cbd6e9;
  padding-top: 25px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
}
.audience p {
  font-size: 14px;
  color: #52617b;
}
.related-services {
  padding-top: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
}
.related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid #cbd6e9;
  padding: 18px 0;
  font-size: 13px;
}
.related-grid a:hover {
  color: #ba0608;
}
.related-grid span {
  font-size: 20px;
}
.topbar button:hover {
  color: #ffb8c2;
}
.art-caption p {
  color: #001d3d;
}
.hero-art .art-star {
  color: #ba0608;
}
.contact-star {
  color: #fff;
}
.brand-mark span {
  color: #ba0608;
}
.services .btn.light:hover {
  background: #e9eff9;
}
.filters button.active {
  background: #001d3d;
}
.paper {
  border-bottom: 3px solid #ba0608;
}
.service-hero .eyebrow {
  color: #ba0608;
}
@media (max-width: 1050px) {
  .deliverables {
    grid-template-columns: 1fr 1fr;
  }
  .service-hero {
    gap: 4%;
  }
  .service-hero-art img {
    width: 210px;
  }
  .service-hero-art {
    min-height: 440px;
  }
}
@media (max-width: 780px) {
  .nav-services {
    width: 100%;
  }
  .services-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .services-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: #f1f5fc;
    padding: 5px 10px;
  }
  .services-dropdown a {
    padding: 12px !important;
  }
  .service-hero {
    grid-template-columns: 1fr;
    background: linear-gradient(#fff 60%, #edf2fc 60%);
    padding-top: 28px;
  }
  .service-hero-art {
    min-height: 430px;
    margin-top: 10px;
  }
  .service-hero h1 {
    font-size: 54px;
  }
  .service-watermark {
    font-size: 230px;
    right: 10%;
  }
  .service-values {
    gap: 18px;
    font-size: 8px;
  }
  .service-values i {
    display: none;
  }
  .deliverables {
    gap: 22px;
  }
  .audience {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-art-note {
    bottom: 0;
  }
}
@media (max-width: 400px) {
  .deliverables,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .service-hero h1 {
    font-size: 45px;
  }
}

/* ===== TWO HOMEPAGE SECTIONS ===== */

.aph-genres,
.aph-craft {
  --aph-navy: #001d3d;
  --aph-red: #ba0608;
  --aph-white: #fff;
  padding: clamp(50px, 7vw, 100px) max(6%, calc((100% - 1320px) / 2));
  color: var(--aph-navy);
}

.aph-genres *,
.aph-craft * {
  box-sizing: border-box;
}

.aph-genres p,
.aph-craft p {
  font-size: 13px !important;
  color: #000 !important;
  line-height: 1.75;
}

.aph-label {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--aph-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.aph-section-heading {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
}

.aph-section-heading h2,
.aph-craft-copy > h2 {
  margin: 0 0 24px;
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.15;
}

.aph-section-heading em,
.aph-craft-copy em {
  color: var(--aph-red);
}

.aph-genres {
  background: #f3f6fc;
}

.aph-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.aph-genre-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: 30px 22px;
  background: #fff;
  border: 1px solid #dbe3f0;
  color: var(--aph-navy);
  text-decoration: none;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.aph-genre-card:hover {
  transform: translateY(-10px);
  border-color: var(--aph-red);
  box-shadow: 0 20px 40px #001d3d14;
}

.aph-card-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #637795;
  font-size: 14px;
}

.aph-mini-book {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 135px;
  height: 190px;
  margin: 16px auto 32px;
  padding: 25px 17px 18px;
  border-left: 5px solid #ffffff40;
  box-shadow:
    8px 12px 0 #001d3d10,
    12px 18px 25px #001d3d20;
  transform: rotate(-7deg);
  animation: aph-book-float 6s ease-in-out infinite;
}

.aph-mini-book::after {
  position: absolute;
  inset: 9px;
  border: 1px solid currentColor;
  opacity: 0.35;
  content: "";
  pointer-events: none;
}

.aph-mini-book > span {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.15;
}

.aph-mini-book i {
  font-size: 8px;
  font-style: normal;
  letter-spacing: 1.4px;
}

.aph-book-navy {
  background: #0095ff;
  color: #fff;
}

.aph-book-red {
  background: #175c00;
  color: #fff;
}

.aph-book-white {
  background: #fff;
  color: var(--aph-navy);
  border: 1px solid #cbd6e9;
  border-left: 5px solid var(--aph-red);
}

.aph-genre-card:nth-child(2) .aph-mini-book {
  animation-delay: -1.5s;
}

.aph-genre-card:nth-child(3) .aph-mini-book {
  animation-delay: -3s;
}

.aph-genre-card:nth-child(4) .aph-mini-book {
  animation-delay: -4.5s;
}

.aph-genre-card h3 {
  margin: 0 0 15px;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.aph-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid #dbe3f0;
  color: var(--aph-red);
  font-size: 12px;
  font-weight: 600;
}

.aph-card-link b {
  font-size: 22px;
  transition: transform 0.25s;
}

.aph-genre-card:hover .aph-card-link b {
  transform: translate(3px, -3px);
}

.aph-concept-note {
  display: block;
  margin-top: 25px;
  color: #52617b;
  text-align: center;
  font-size: 14px;
}

/* ===== EDITORIAL SHOWCASE ===== */

.aph-craft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8%;
  background: #fff;
}

.aph-craft-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  background: #edf2fc;
  isolation: isolate;
}

.aph-orbit {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px dashed #001d3d30;
  border-radius: 50%;
  z-index: -1;
}

.aph-orbit-one {
  animation: aph-orbit-spin 45s linear infinite;
}

.aph-orbit-two {
  width: 480px;
  height: 480px;
  border-color: #ba060820;
  animation: aph-orbit-spin 65s linear infinite reverse;
}

.aph-manuscript {
  position: relative;
  width: min(66%, 320px);
  padding: 40px 30px 25px;
  background: #fff;
  border-bottom: 5px solid var(--aph-red);
  box-shadow: 15px 25px 45px #001d3d20;
  animation: aph-paper-float 7s ease-in-out infinite;
}

.aph-paper-label {
  color: var(--aph-red);
  font-size: 9px;
  letter-spacing: 1.8px;
}

.aph-manuscript h3 {
  margin: 28px 0;
  font-family: Georgia, serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
}

.aph-writing-lines {
  display: grid;
  gap: 13px;
  margin-bottom: 35px;
}

.aph-writing-lines span {
  height: 3px;
  background: #cbd6e9;
  transform-origin: left;
  animation: aph-line-write 5s ease-in-out infinite;
}

.aph-writing-lines span:nth-child(2) {
  animation-delay: 0.15s;
}
.aph-writing-lines span:nth-child(3) {
  animation-delay: 0.3s;
}
.aph-writing-lines span:nth-child(4) {
  animation-delay: 0.45s;
}
.aph-writing-lines span:nth-child(5) {
  width: 65%;
  animation-delay: 0.6s;
}

.aph-paper-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e4ebf8;
  font-size: 7px;
  letter-spacing: 1px;
}

.aph-floating-tag {
  position: absolute;
  max-width: 85%;
  padding: 13px 17px;
  background: #fff;
  border: 1px solid #dbe3f0;
  box-shadow: 0 8px 25px #001d3d12;
  color: var(--aph-navy);
  font-size: 12px;
  animation: aph-tag-float 5s ease-in-out infinite;
}

.aph-tag-one {
  top: 65px;
  left: 20px;
}

.aph-tag-two {
  top: 260px;
  right: 14px;
  color: var(--aph-red);
  animation-delay: -1.7s;
}

.aph-tag-three {
  bottom: 55px;
  left: 35px;
  animation-delay: -3.3s;
}

.aph-craft-copy {
  min-width: 0;
}

.aph-craft-list {
  padding: 0;
  margin: 30px 0;
  list-style: none;
}

.aph-craft-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #dbe3f0;
}

.aph-craft-list li > span {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid #dbe3f0;
  border-radius: 50%;
  color: var(--aph-red);
  font-size: 11px;
}

.aph-craft-list h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.aph-craft-list p {
  margin: 0;
}

.aph-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 15px 23px;
  border: 1px solid var(--aph-red);
  background: var(--aph-red);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.aph-section-button:hover {
  background: #8f1b2a;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #ba060825;
}

.aph-genre-card:focus-visible,
.aph-section-button:focus-visible {
  outline: 3px solid var(--aph-navy);
  outline-offset: 5px;
}

/* ===== ANIMATIONS ===== */

@keyframes aph-book-float {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg);
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
  }
}

@keyframes aph-paper-float {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-9px) rotate(-2deg);
  }
}

@keyframes aph-tag-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes aph-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes aph-line-write {
  0%,
  12% {
    transform: scaleX(0.15);
    opacity: 0.4;
  }
  35%,
  85% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.15);
    opacity: 0.4;
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .aph-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aph-craft {
    gap: 5%;
  }

  .aph-craft-visual {
    min-height: 520px;
  }

  .aph-manuscript {
    width: 72%;
    padding: 30px 22px 22px;
  }

  .aph-floating-tag {
    font-size: 11px;
    padding: 11px 13px;
  }
}

@media (max-width: 760px) {
  .aph-craft {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .aph-craft-visual {
    min-height: 510px;
  }

  .aph-manuscript {
    width: min(65%, 320px);
  }

  .aph-manuscript h3 {
    font-size: 37px;
  }
}

@media (max-width: 480px) {
  .aph-genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .aph-genre-card {
    padding: 28px 24px;
  }

  .aph-craft-visual {
    min-height: 470px;
  }

  .aph-manuscript {
    width: 72%;
    padding: 30px 20px 20px;
  }

  .aph-manuscript h3 {
    font-size: 30px;
  }

  .aph-tag-one {
    top: 35px;
    left: 10px;
  }
  .aph-tag-two {
    top: 250px;
    right: 8px;
  }
  .aph-tag-three {
    bottom: 30px;
    left: 12px;
  }

  .aph-craft-list li {
    gap: 12px;
  }

  .aph-section-button {
    width: 100%;
    gap: 15px;
  }
}

@media (hover: none) {
  .aph-genre-card:hover,
  .aph-section-button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-genres *,
  .aph-craft * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== NEW HOMEPAGE SECTIONS ===== */

.aph-formats,
.aph-launch {
  --aph-blue: #001d3d;
  --aph-red: #ba0608;
  --aph-border: #dbe3f0;
  padding: clamp(50px, 7vw, 100px) max(6%, calc((100% - 1320px) / 2));
  color: var(--aph-blue);
}

.aph-formats *,
.aph-launch * {
  box-sizing: border-box;
}

.aph-formats p,
.aph-launch p {
  color: #000 !important;
  font-size: 15px !important;
  line-height: 1.75;
}

.aph-new-label {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--aph-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.aph-new-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.aph-new-heading h2,
.aph-launch-intro h2 {
  margin: 0 0 24px;
  font:
    400 clamp(34px, 4vw, 54px)/1.15 Georgia,
    serif;
}

.aph-new-heading em,
.aph-launch-intro em {
  color: var(--aph-red);
}

.aph-formats {
  background: #fff;
}

.aph-format-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.6fr);
  gap: 35px;
  align-items: start;
}

.aph-format-tabs {
  display: grid;
  gap: 14px;
}

.aph-format-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 100px;
  padding: 22px;
  border: 1px solid var(--aph-border);
  border-left: 4px solid transparent;
  background: #fff;
  color: var(--aph-blue);
  text-align: left;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
}

.aph-format-tab:hover {
  background: #f3f6fc;
  transform: translateX(4px);
}

.aph-format-tab[aria-selected="true"] {
  background: var(--aph-blue);
  color: #fff;
  border-color: var(--aph-blue);
  border-left-color: var(--aph-red);
}

.aph-format-number {
  font-size: 11px;
  opacity: 0.7;
}

.aph-format-tab strong {
  display: block;
  font: 400 24px/1.3 poppins;
}

.aph-format-tab small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.aph-format-tab > span:last-child {
  margin-left: auto;
  font-size: 22px;
}

.aph-format-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--aph-border);
  background: #fff;
}

.aph-format-panel[hidden] {
  display: none;
}

.aph-format-panel.aph-panel-enter {
  animation: aph-panel-arrive 0.45s ease both;
}

.aph-format-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 410px;
  padding: 35px 18px;
  overflow: hidden;
  background: #edf2fc;
}

.aph-art-caption {
  text-align: center;
  color: var(--aph-blue);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 1.5px;
}

.aph-device {
  width: min(180px, 90%);
  padding: 27px 18px;
  border: 9px solid var(--aph-blue);
  border-radius: 15px;
  background: #fff;
  box-shadow: 12px 18px 30px #001d3d20;
  animation: aph-format-float 6s ease-in-out infinite;
}

.aph-device > span,
.aph-device i {
  display: block;
  color: var(--aph-red);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 1px;
}

.aph-device strong {
  display: block;
  margin: 22px 0;
  font:
    400 25px/1.2 Georgia,
    serif;
}

.aph-device-lines {
  height: 66px;
  margin-bottom: 24px;
  background: repeating-linear-gradient(transparent 0 10px, #cbd6e9 10px 12px);
}

.aph-print-book {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(175px, 90%);
  height: 250px;
  padding: 28px 20px;
  border-left: 7px solid #ffffff45;
  background: var(--aph-red);
  color: #fff;
  box-shadow:
    9px 12px 0 #001d3d15,
    14px 20px 30px #001d3d20;
  animation: aph-format-float 6s ease-in-out infinite;
}

.aph-print-book span,
.aph-print-book i {
  font-size: 8px;
  font-style: normal;
  letter-spacing: 1px;
}

.aph-print-book strong {
  font:
    400 29px/1.2 Georgia,
    serif;
}

.aph-audio-disc {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  border: 18px solid var(--aph-blue);
  border-radius: 50%;
  background: #fff;
  outline: 1px solid #001d3d30;
  outline-offset: 12px;
  box-shadow: 0 15px 30px #001d3d18;
  animation: aph-format-float 6s ease-in-out infinite;
}

.aph-audio-disc span {
  text-align: center;
  font:
    400 18px/1.4 Georgia,
    serif;
}

.aph-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
}

.aph-audio-wave i {
  width: 5px;
  height: 32px;
  border-radius: 4px;
  background: var(--aph-red);
  animation: aph-wave-pulse 1.3s ease-in-out infinite alternate;
}

.aph-audio-wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.aph-audio-wave i:nth-child(3n) {
  animation-delay: -0.7s;
}
.aph-audio-wave i:nth-child(4n) {
  animation-delay: -1s;
}

.aph-format-description {
  align-self: center;
  min-width: 0;
  padding: 30px;
}

.aph-format-description h3 {
  margin: 0 0 20px;
  font:
    400 29px/1.2 Georgia,
    serif;
}

.aph-format-description ul {
  padding-left: 18px;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.8;
}

.aph-format-description li {
  margin-bottom: 8px;
}

.aph-new-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 44px;
  border-bottom: 1px solid var(--aph-red);
  color: var(--aph-red);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.6;
}

/* ===== LAUNCH CHECKLIST ===== */

.aph-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8%;
  align-items: center;
  background: #f3f6fc;
}

.aph-launch-intro,
.aph-launch-checklist {
  min-width: 0;
}

.aph-progress-card {
  margin: 30px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--aph-border);
}

.aph-progress-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
}

.aph-progress-heading output {
  color: var(--aph-red);
}

.aph-progress-card progress {
  display: block;
  width: 100%;
  height: 9px;
  margin-bottom: 18px;
  appearance: none;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #e4ebf8;
}

.aph-progress-card progress::-webkit-progress-bar {
  background: #e4ebf8;
  border-radius: 10px;
}

.aph-progress-card progress::-webkit-progress-value {
  background: var(--aph-red);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.aph-progress-card progress::-moz-progress-bar {
  background: var(--aph-red);
  border-radius: 10px;
}

.aph-progress-card p {
  margin: 0;
}

.aph-launch-checklist {
  display: grid;
  gap: 14px;
}

.aph-check-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 25px;
  align-items: start;
  gap: 16px;
  margin: 0;
  padding: 23px;
  border: 1px solid var(--aph-border);
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.aph-check-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #001d3d0c;
}

.aph-check-item.is-checked {
  border-color: var(--aph-blue);
  box-shadow: inset 4px 0 0 var(--aph-red);
}

.aph-check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
}

.aph-custom-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border: 1px solid #aebed8;
  border-radius: 50%;
  background: #fff;
  transition:
    background 0.25s,
    border-color 0.25s;
}

.aph-check-item input:checked + .aph-custom-check {
  background: var(--aph-blue);
  border-color: var(--aph-blue);
}

.aph-check-item input:checked + .aph-custom-check::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  animation: aph-check-pop 0.25s ease;
}

.aph-check-item input:focus-visible + .aph-custom-check {
  outline: 3px solid var(--aph-red);
  outline-offset: 4px;
}

.aph-check-copy strong {
  display: block;
  margin-bottom: 8px;
  color: var(--aph-blue);
  font:
    400 21px/1.3 Georgia,
    serif;
}

.aph-check-copy > span {
  display: block;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.aph-check-number {
  padding-top: 4px;
  color: #61779b;
  font-size: 10px;
}

.aph-check-reset {
  justify-self: start;
  min-height: 44px;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--aph-red);
  font-size: 12px;
  cursor: pointer;
}

.aph-new-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 48px;
  padding: 15px 23px;
  border: 1px solid var(--aph-red);
  background: var(--aph-red);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.aph-new-button:hover {
  transform: translateY(-3px);
  background: #8f1b2a;
  box-shadow: 0 10px 25px #ba060820;
}

.aph-format-tab:focus-visible,
.aph-format-panel:focus-visible,
.aph-new-button:focus-visible,
.aph-new-link:focus-visible,
.aph-check-reset:focus-visible {
  outline: 3px solid var(--aph-blue);
  outline-offset: 4px;
}

/* ===== ANIMATION KEYFRAMES ===== */

@keyframes aph-format-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes aph-wave-pulse {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes aph-panel-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aph-check-pop {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .aph-format-layout {
    grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1.4fr);
    gap: 24px;
  }

  .aph-format-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .aph-format-art {
    min-height: 340px;
  }

  .aph-launch {
    gap: 5%;
  }
}

@media (max-width: 760px) {
  .aph-format-layout,
  .aph-launch {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .aph-format-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .aph-format-tab {
    justify-content: center;
    min-height: 85px;
    padding: 14px 8px;
    text-align: center;
  }

  .aph-format-number,
  .aph-format-tab small,
  .aph-format-tab > span:last-child {
    display: none;
  }

  .aph-format-tab strong {
    font-size: 20px;
  }

  .aph-format-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .aph-format-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .aph-format-tab {
    min-height: 64px;
  }

  .aph-format-tab strong {
    font-size: 18px;
  }

  .aph-format-description {
    padding: 25px 20px;
  }

  .aph-format-description h3 {
    font-size: 27px;
  }

  .aph-check-item {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 17px;
  }

  .aph-check-number {
    display: none;
  }

  .aph-progress-card {
    padding: 20px;
  }

  .aph-new-button {
    width: 100%;
  }
}

@media (hover: none) {
  .aph-format-tab:hover,
  .aph-check-item:hover,
  .aph-new-button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-formats *,
  .aph-launch *,
  .aph-formats *::after,
  .aph-launch *::after {
    animation: none !important;
    transition: none !important;
  }
}

.flag-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.flag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  filter: blur(0.2px);
  animation: none;
}

.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: 130px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .brand-logo {
    width: 80px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    width: 145px;
  }
}

.hero.hero-with-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.hero-with-video .hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-with-video .hero-video-bg video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero-with-video .hero-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 11%),
    rgb(255 255 255 / 21%) 50%,
    rgb(255 255 255 / 45%)
  );
}

.hero-with-video .hero-copy,
.hero-with-video .hero-art {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero-with-video .hero-art {
  background-image: none;
  border-bottom: none;
}

.hero-with-video p {
  font-size: 15px !important;
  color: #ffffff !important;
}

.hero-with-video h1 {
  color: #ffffff;
  text-shadow: 3px 3px black;
}

a.text-link {
  color: #9b2525;
}

.hero-with-video h1 em {
  color: #9b2525;
}

.hero-with-video .hero-foot,
.hero-with-video .orbit-label,
.hero-with-video .art-caption {
  color: #ffffff;
}

@media (max-width: 700px) {
  .hero-with-video .hero-video-shade {
    background: linear-gradient(
      180deg,
      #071d505c,
      #071d5054 55%,
      rgb(255 255 255 / 44%)
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-with-video .hero-video-bg video {
    display: none;
  }
}

/* ===== SCROLL-LINKED BOOK SHOWCASE ===== */

.aph-scroll-books {
  --aph-cover-width: clamp(165px, 20vw, 300px);
  --aph-cover-gap: 14px;
  padding-inline: 0 !important;
  padding-bottom: 0;
  overflow: hidden;
  background: #f3f6fc;
}

.aph-scroll-books *,
.aph-brand-story *,
.aph-brand-strip * {
  box-sizing: border-box;
}

.aph-books-heading {
  max-width: 800px;
  margin: 0 auto 45px;
  padding: 0 24px;
  text-align: center;
}

.aph-books-heading h2 {
  color: #002868;
  font-family: Georgia, serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
}

.aph-books-heading h2 em {
  color: #9b2525;
}

.aph-books-heading p {
  color: #000 !important;
  font-size: 15px !important;
  line-height: 1.75;
}

.aph-books-heading > p:last-child {
  max-width: 590px;
  margin: auto;
}

.aph-scroll-window {
  width: 100%;
  margin-bottom: var(--aph-cover-gap);
  overflow: hidden;
}

.aph-scroll-track {
  display: flex;
  gap: var(--aph-cover-gap);
  width: max-content;
  animation: none !important;
  transition: none !important;
}

.aph-scroll-track img {
  display: block;
  flex: 0 0 var(--aph-cover-width);
  width: var(--aph-cover-width);
  max-width: none;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: 0 7px 13px #00286825;
}

.aph-cover-disclaimer {
  display: block;
  padding: 30px 20px 0px;
  color: #000000;
  text-align: center;
  font-size: 18px;
  text-transform: capitalize;
}

.aph-brand-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #9b2525;
  color: #fff;
}

.aph-brand-story-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: auto;
}

.aph-brand-story .eyebrow {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 15px;
  background: #fff;
  color: #000 !important;
  font-size: 14px !important;
  line-height: 1.5;
  border-radius: 30px;
}

.aph-story-statement {
  max-width: 780px;
  margin: 0 0 30px;
  color: #fff;
  font:
    400 clamp(27px, 3.4vw, 46px)/1.2 Georgia,
    serif;
  letter-spacing: -0.5px;
}

.aph-story-symbol {
  position: absolute;
  top: -20px;
  right: 10%;
  z-index: 0;
  color: #ffffff2e;
  font:
    700 clamp(350px, 45vw, 650px)/1 Georgia,
    serif;
  pointer-events: none;
}

.aph-brand-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 55px;
  text-align: center;
}

.aph-brand-features > div {
  min-width: 0;
}

.aph-feature-symbol {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #fff;
  color: #9b2525;
  font-size: 45px;
}

.aph-brand-features strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font:
    600 clamp(20px, 2vw, 29px)/1.25 Arial,
    sans-serif;
}

.aph-brand-features > div > span:last-child {
  display: block;
  color: #fff;
  font:
    400 15px/1.6 Arial,
    sans-serif;
}

/* ===== WHITE SHOWCASE STRIP ===== */

.aph-brand-strip {
  padding: 100px 6% 100px;
  background: #fff;
}

.aph-brand-strip h2 {
  margin: 0 0 28px;
  color: #002868;
  text-align: center;
  font:
    600 40px/1.5 Arial,
    sans-serif;
  letter-spacing: 1.2px;
}

.aph-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 35px;
  align-items: center;
  max-width: 1080px;
  margin: auto;
}

.aph-strip-grid a {
  display: block;
  padding: 12px;
  color: #002868;
  text-align: center;
  text-decoration: none;
  font:
    400 clamp(21px, 2vw, 29px)/1.1 Georgia,
    serif;
  transition: transform 0.3s ease;
}

.aph-strip-grid a em {
  color: #9b2525;
}

.aph-strip-grid a:hover {
  transform: translateY(-5px);
}

.aph-strip-grid a:focus-visible {
  outline: 3px solid #9b2525;
  outline-offset: 5px;
}

/* ===== SCROLL ENTRANCE EFFECT ===== */

.aph-brand-story.aph-reveal-ready .aph-story-statement,
.aph-brand-story.aph-reveal-ready .aph-brand-features {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.aph-brand-story.aph-reveal-ready.is-visible .aph-story-statement,
.aph-brand-story.aph-reveal-ready.is-visible .aph-brand-features {
  opacity: 1;
  transform: translateY(0);
}

.aph-brand-story .aph-story-statement:nth-of-type(1) {
  transition-delay: 0.1s;
}

.aph-brand-story .aph-brand-features {
  transition-delay: 0.2s;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 760px) {
  .aph-brand-features,
  .aph-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .aph-brand-features {
    margin-top: 35px;
  }

  .aph-story-symbol {
    right: -8%;
  }
}

@media (max-width: 420px) {
  .aph-scroll-books {
    --aph-cover-width: 155px;
    --aph-cover-gap: 10px;
  }

  .aph-books-heading {
    padding-inline: 18px;
  }

  .aph-books-heading h2 {
    font-size: 33px;
  }

  .aph-story-statement {
    font-size: 28px;
  }

  .aph-brand-features strong {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-scroll-track {
    transform: none !important;
  }

  .aph-scroll-track [data-cover-copy] {
    display: none;
  }

  .aph-scroll-window {
    overflow-x: auto;
  }

  .aph-brand-story.aph-reveal-ready .aph-story-statement,
  .aph-brand-story.aph-reveal-ready .aph-brand-features {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aph-strip-grid a {
    transition: none;
  }
}

/* ===== SCROLL-STACKING PROCESS SECTION ===== */

.process.section.aph-stack-process {
  --stack-top: 105px;
  position: relative;
  overflow: visible;
  background: #9b2525;
  color: #fff;
  padding-bottom: 0;
}

.aph-stack-process * {
  box-sizing: border-box;
}

.aph-stack-heading {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.aph-stack-heading h2 {
  color: #fff;
  font:
    400 clamp(34px, 4vw, 54px)/1.15 Georgia,
    serif;
}

.aph-stack-heading h2 em {
  color: #fff;
}

.aph-stack-process .aph-stack-heading p {
  color: #000 !important;
  font-size: 14px !important;
  line-height: 1.75;
  background: #fff;
  padding: 12px 18px;
  border-radius: 4px;
}

.aph-stack-heading .eyebrow {
  display: inline-block;
}

.aph-stack-stage {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

/* Stage indicator stays above the stacked cards */

.aph-step-navigation {
  position: sticky;
  top: 15px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 15px 35px;
  background: #9b2525;
}

.aph-step-navigation::before {
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 1px;
  background: #ffffff45;
  content: "";
}

.aph-step-navigation li {
  position: relative;
  z-index: 1;
  text-align: center;
}

.aph-step-navigation li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: auto;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #9b2525;
  color: #fff;
  font-size: 12px;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.aph-step-navigation small {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 11px;
}

.aph-step-navigation .is-active > span,
.aph-step-navigation .is-complete > span {
  background: #fff;
  color: #9b2525;
  border-color: #fff;
}

.aph-step-navigation .is-active > span {
  box-shadow: 0 0 0 5px #ffffff15;
}

/* The spacing creates room for the scroll-driven overlap */
.aph-stacking-cards {
  display: grid;
  gap: 25vh;
  padding-top: 20px;
  padding-bottom: 35vh;
}

.aph-stack-card {
  position: sticky;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  min-height: 340px;
  border: 1px solid #dbe3f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  color: #002868;
  box-shadow: 0 18px 45px #55071325;
}

.aph-stack-first {
  top: var(--stack-top);
  z-index: 1;
}

.aph-stack-second {
  top: calc(var(--stack-top) + 18px);
  z-index: 2;
}

.aph-stack-third {
  top: calc(var(--stack-top) + 36px);
  z-index: 3;
}

.aph-stack-image {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 25px;
  background: #edf2fc;
}

.aph-stack-image img {
  display: block;
  width: auto;
  max-width: 85%;
  height: 280px;
  object-fit: contain;
  box-shadow: 8px 12px 20px #00286820;
  transform: rotate(-5deg);
}

.aph-stack-second .aph-stack-image img {
  transform: rotate(4deg);
}

.aph-stack-third .aph-stack-image img {
  transform: rotate(-3deg);
}

.aph-stack-content {
  align-self: center;
  min-width: 0;
  padding: 38px;
}

.aph-stack-label {
  display: inline-block;
  margin-bottom: 18px;
  padding: 5px 9px;
  background: #edf2fc;
  color: #9b2525;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.aph-stack-content h3 {
  margin: 0 0 20px;
  color: #002868;
  font:
    400 clamp(26px, 2.5vw, 36px)/1.2 Georgia,
    serif;
}

.aph-stack-process .aph-stack-content p {
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
  color: #000 !important;
  font-size: 15px !important;
  line-height: 1.75;
}

.aph-stack-process .aph-stack-content .text-link {
  color: #9b2525;
  border-color: #9b2525;
  background: transparent;
  min-height: 44px;
}

/* ===== TABLET ===== */

@media (max-width: 900px) {
  .aph-stack-content {
    padding: 28px;
  }

  .aph-stack-image {
    padding: 20px;
  }

  .aph-stack-image img {
    height: 250px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .process.section.aph-stack-process {
    --stack-top: 95px;
    padding-inline: 5%;
  }

  .aph-stack-heading {
    margin-bottom: 25px;
  }

  .aph-step-navigation {
    top: 8px;
    padding-inline: 18px;
  }

  .aph-step-navigation::before {
    left: 33px;
    right: 33px;
  }

  .aph-stack-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    border-radius: 9px;
  }

  .aph-stack-image {
    height: 175px;
    padding: 12px;
  }

  .aph-stack-image img {
    height: 150px;
    max-width: 80%;
  }

  .aph-stack-content {
    padding: 22px;
  }

  .aph-stack-content h3 {
    font-size: 27px;
    margin-bottom: 14px;
  }

  .aph-stack-label {
    margin-bottom: 12px;
  }

  .aph-stacking-cards {
    gap: 22vh;
    padding-bottom: 25vh;
  }

  .aph-stack-second {
    top: calc(var(--stack-top) + 10px);
  }

  .aph-stack-third {
    top: calc(var(--stack-top) + 20px);
  }
}

/* Short screens and landscape: keep all content accessible */
@media (max-height: 650px) {
  .aph-step-navigation,
  .aph-stack-card {
    position: relative;
    top: auto;
  }

  .aph-stacking-cards {
    gap: 28px;
    padding-bottom: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-step-navigation,
  .aph-stack-card {
    position: relative;
    top: auto;
  }

  .aph-stacking-cards {
    gap: 28px;
    padding-bottom: 45px;
  }

  .aph-step-navigation li > span {
    transition: none;
  }
}

/* ===== COLOUR-CHANGING BOOK SLIDER ===== */

.aph-book-slider {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #aa762e;
  transition: background-color 0.7s ease;
  touch-action: pan-y;
}

.aph-book-slider *,
.aph-book-slider *::before,
.aph-book-slider *::after {
  box-sizing: border-box;
}

.aph-book-slider.is-gold {
  background-color: #9b2525;
}

.aph-book-slider.is-navy {
  background-color: #003a7a;
}

.aph-book-slider.is-red {
  background-color: #ff8100;
}

/* Large subtle circle, similar to the recording */
.aph-slider-circle {
  position: absolute;
  top: -420px;
  left: 12%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: #0000000c;
  pointer-events: none;
  transition: transform 0.8s ease;
}

.is-navy .aph-slider-circle {
  transform: translateX(70px);
}

.is-red .aph-slider-circle {
  transform: translateX(-40px);
}

.aph-slider-slides {
  position: relative;
  max-width: 1150px;
  height: 560px;
  margin: auto;
}

.aph-book-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 70px;
  padding: 55px 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s ease,
    visibility 0.55s;
}

.aph-book-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.aph-slider-cover {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  opacity: 0;
  transform: translateX(-35px) rotate(-3deg);
  transition:
    opacity 0.6s ease,
    transform 0.7s ease;
}

.aph-slider-cover img {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  box-shadow: -20px 25px 35px #00000045;
}

.aph-book-slide.is-active .aph-slider-cover {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.aph-slider-copy {
  min-width: 0;
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.6s ease 0.08s,
    transform 0.7s ease 0.08s;
}

.aph-book-slide.is-active .aph-slider-copy {
  opacity: 1;
  transform: translateX(0);
}

.aph-slider-kicker {
  display: block;
  margin-bottom: 22px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
}

.aph-slider-intro {
  margin-bottom: 24px;
  color: #fff;
  font:
    italic 400 clamp(22px, 2vw, 29px)/1.35 Georgia,
    serif;
}

.aph-slider-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font:
    400 clamp(28px, 3vw, 40px)/1.15 Georgia,
    serif;
}

/* Retains your 15px black paragraph styling */
.aph-book-slider .aph-slider-copy p {
  max-width: 420px;
  margin: 0 0 20px;
  padding: 13px 16px;
  border-radius: 4px;
  background: #fff;
  color: #000 !important;
  font-size: 15px !important;
  line-height: 1.75;
}

.aph-book-slider .aph-slider-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  color: #fff;
  border-color: #ffffff80;
  background: transparent;
  font-size: 12px;
}

.aph-slider-copy small {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 10px;
}

.aph-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #001d3d;
  font-size: 23px;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 0.25s,
    color 0.25s;
}

.aph-slider-arrow:hover {
  background: #001d3d;
  color: #fff;
}

.aph-slider-prev {
  left: 20px;
}

.aph-slider-next {
  right: 20px;
}

.aph-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 3;
  display: flex;
  transform: translateX(-50%);
}

.aph-slider-dots button {
  position: relative;
  width: 44px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.aph-slider-dots button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  transition:
    background 0.25s,
    width 0.25s;
}

.aph-slider-dots button.is-active::after {
  width: 22px;
  border-radius: 10px;
  background: #fff;
}

.aph-book-slider button:focus-visible,
.aph-book-slider a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.aph-slider-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ===== TABLET ===== */

@media (max-width: 900px) {
  .aph-book-slide {
    gap: 35px;
    padding-inline: 75px;
  }

  .aph-slider-cover img {
    width: 220px;
  }

  .aph-slider-circle {
    left: -120px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 650px) {
  .aph-slider-slides {
    height: 790px;
  }

  .aph-book-slide {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 28px;
    padding: 35px 55px 65px;
    text-align: center;
  }

  .aph-slider-cover {
    justify-content: center;
  }

  .aph-slider-cover img {
    width: 170px;
  }

  .aph-slider-kicker {
    margin-bottom: 12px;
    letter-spacing: 1px;
  }

  .aph-slider-intro {
    margin-bottom: 16px;
    font-size: 23px;
  }

  .aph-slider-copy h2 {
    font-size: 29px;
  }

  .aph-book-slider .aph-slider-copy p {
    margin-inline: auto;
    padding: 12px;
  }

  .aph-slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .aph-slider-prev {
    left: 8px;
  }

  .aph-slider-next {
    right: 8px;
  }

  .aph-slider-circle {
    top: -350px;
    left: -230px;
    width: 750px;
    height: 750px;
  }
}

@media (max-width: 380px) {
  .aph-slider-slides {
    height: 850px;
  }

  .aph-book-slide {
    padding-inline: 48px;
  }

  .aph-slider-cover img {
    width: 150px;
  }

  .aph-slider-copy h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-book-slider,
  .aph-book-slider * {
    transition: none !important;
  }

  .aph-slider-cover,
  .aph-slider-copy {
    transform: none;
  }
}

.services-toggle span {
  margin-top: -9px !important;
}

/* Desktop: open dropdown on hover or keyboard focus */
@media (min-width: 1081px) {
  .nav-services:hover .services-dropdown,
  .nav-services:focus-within .services-dropdown {
    display: block;
  }

  .nav-services:hover .services-toggle span,
  .nav-services:focus-within .services-toggle span {
    transform: rotate(180deg);
  }

  /* Hover gap ko cover karta hai, taake submenu close na ho */
  .nav-services::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -22px;
    width: 260px;
    height: 12px;
  }
}

/* Americans Publishers Hub — Genre Grid */
.aph-genres {
  padding: 80px 100px 0px 100px;
  background: #f5f7fb;
}

.aph-genres,
.aph-genres * {
  box-sizing: border-box;
}

.aph-genres-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.aph-genres-heading {
  margin-bottom: 40px;
  text-align: center;
}

.aph-genres-heading > span {
  color: #aa762e;
  font:
    700 12px/1.5 Arial,
    sans-serif;
  letter-spacing: 2px;
}

.aph-genres-heading h2 {
  margin: 12px 0 0;
  color: #001d3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.2;
}

.aph-genres-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.aph-genre-card {
  position: relative;
  min-width: 0;
  padding: 34px 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe2ed;
  border-top: 4px solid #001d3d;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 29, 61, 0.05);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.aph-genre-card:nth-child(3n + 2) {
  border-top-color: #c20405;
}

.aph-genre-card:nth-child(3n) {
  border-top-color: #aa762e;
}

.aph-genre-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  background: #eef2f8;
  color: #001d3d;
  border-radius: 10px;
  font:
    700 17px/1 Arial,
    sans-serif;
}

.aph-genre-card:nth-child(3n + 2) .aph-genre-number {
  background: #fff0f0;
  color: #c20405;
}

.aph-genre-card:nth-child(3n) .aph-genre-number {
  background: #f7f0e6;
  color: #aa762e;
}

.aph-genre-card h3 {
  margin: 0 0 16px;
  color: #001d3d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.25;
}

.aph-genre-card p {
  margin: 0;
  color: #000 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px !important;
  line-height: 1.8;
}

@media (hover: hover) {
  .aph-genre-card:hover {
    transform: translateY(-6px);
    border-color: #aa762e;
    box-shadow: 0 18px 36px rgba(0, 29, 61, 0.12);
  }
}

@media (max-width: 960px) {
  .aph-genres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .aph-genres {
    padding: 50px 20px;
  }

  .aph-genres-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .aph-genre-card {
    padding: 28px 24px;
  }

  .aph-genres-heading {
    margin-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-genre-card {
    transition: none;
  }

  .aph-genre-card:hover {
    transform: none;
  }
}

/* Publishing flow */
.aph-publish-flow {
  --flow-navy: #002868;
  --flow-red: #9b2525;
  --flow-paper: #f7f7f0;

  position: relative;
  isolation: isolate;
  padding: 65px 24px 0;
  overflow: clip;

  background:
    radial-gradient(ellipse at 75% 30%, #ffffff15, transparent 60%),
    linear-gradient(140deg, #9b2525, #d94752);

  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.aph-publish-flow *,
.aph-publish-flow *::before,
.aph-publish-flow *::after {
  box-sizing: border-box;
}

.aph-publish-flow .aph-flow-heading {
  max-width: 760px;
  margin: 0 auto 35px;
  text-align: center;
}

.aph-publish-flow .aph-flow-eyebrow {
  margin: 0 0 15px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.aph-publish-flow .aph-flow-heading h2 {
  margin: 0 0 20px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.aph-publish-flow .aph-flow-heading h2 em {
  color: #fff;
  font-weight: 400;
}

.aph-publish-flow .aph-flow-heading > p:last-child {
  max-width: 620px;
  margin: 0 auto;
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
}

/* Default readable layout before JavaScript initializes */
.aph-publish-flow .aph-flow-stage {
  position: relative;
  width: 100%;
  max-width: 1050px;
  height: auto;
  margin: 0 auto;
}

.aph-publish-flow .aph-flow-deck {
  position: relative;
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 45px;
}

/* Stage navigation */
.aph-publish-flow .aph-flow-navigation {
  --aph-flow-progress: 0;

  position: relative;
  display: flex;
  justify-content: space-between;
  width: min(100%, 780px);
  margin: 0 auto 30px;
  padding: 0;
  list-style: none;
}

.aph-flow-navigation::before,
.aph-flow-navigation::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 18px;
  right: 18px;
  height: 1px;
  pointer-events: none;
}

.aph-flow-navigation::before {
  background: #ffffff45;
}

.aph-flow-navigation::after {
  background: #fff;
  transform: scaleX(var(--aph-flow-progress));
  transform-origin: left center;
}

.aph-publish-flow .aph-flow-navigation li {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: center;
}

.aph-flow-step-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.aph-publish-flow .aph-flow-navigation li span {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;
  margin: 0;
  border: 1px solid #ffffff88;
  border-radius: 50%;

  background: #ba3344;
  color: #ffffffbb;
  font-size: 12px;

  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.aph-publish-flow .aph-flow-navigation li small {
  color: #ffffffbb;
  font-size: 11px;
}

.aph-publish-flow .aph-flow-navigation li.is-current span,
.aph-publish-flow .aph-flow-navigation li.is-complete span {
  background: #fff;
  border-color: #fff;
  color: var(--flow-red);
}

.aph-publish-flow .aph-flow-navigation li.is-current span {
  box-shadow: 0 0 0 5px #ffffff15;
}

.aph-publish-flow .aph-flow-navigation li.is-current small {
  color: #fff;
}

.aph-flow-step-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 4px;
}

/* Cards */
.aph-publish-flow .aph-flow-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  gap: 0;

  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;

  overflow: hidden;
  border: 1px solid #e1e6dc;
  border-radius: 11px;
  background: var(--flow-paper);
  box-shadow: 0 15px 45px #611a2320;

  color: var(--flow-navy);
  transform: none;
}

.aph-publish-flow .aph-flow-image {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 330px;
  padding: 25px;

  background: radial-gradient(circle at 50% 45%, #fff, #e9ecdf);
}

.aph-publish-flow .aph-flow-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 290px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 13px 15px #17213725);
}

.aph-publish-flow .aph-flow-content {
  align-self: center;
  min-width: 0;
  padding: 40px;
}

.aph-publish-flow .aph-flow-label {
  display: inline-block;
  margin: 0 0 18px;
  color: #8b7457;
  font-size: 10px;
  letter-spacing: 0.13em;
}

.aph-publish-flow .aph-flow-content h3 {
  margin: 0 0 18px;
  color: var(--flow-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.aph-publish-flow .aph-flow-content p {
  margin: 0 0 22px;
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}

.aph-publish-flow .aph-flow-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 7px 0;

  border: 0;
  border-bottom: 1px solid #9b252560;
  background: transparent;
  color: var(--flow-red);

  font:
    600 13px/1.5 Arial,
    Helvetica,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.aph-publish-flow .aph-flow-link:focus-visible {
  outline: 3px solid var(--flow-red);
  outline-offset: 4px;
}

/* Enabled only after the JavaScript creates the sticky wrapper */
.aph-publish-flow.aph-flow-enhanced .aph-flow-stage {
  height: var(--aph-flow-stage-height);
}

.aph-flow-pin {
  position: sticky;
  top: var(--aph-flow-top, 90px);

  display: flex;
  flex-direction: column;

  width: 100%;
  height: var(--aph-flow-pin-height);
  padding: 20px 0 25px;

  overflow: hidden;
}

.aph-flow-enhanced .aph-flow-pin .aph-flow-navigation {
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.aph-flow-enhanced .aph-flow-pin .aph-flow-deck {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  perspective: 1200px;
}

.aph-flow-enhanced .aph-flow-deck .aph-flow-card {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 100%;
  max-height: calc(100% - 15px);
  margin: 0;
  overflow-y: auto;

  transform-origin: center top;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: none;
}

/* Tablet */
@media (max-width: 900px) {
  .aph-publish-flow {
    padding: 50px 24px 0;
  }

  .aph-publish-flow .aph-flow-content {
    padding: 28px;
  }

  .aph-publish-flow .aph-flow-image {
    min-height: 280px;
    padding: 20px;
  }

  .aph-publish-flow .aph-flow-image img {
    height: 245px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .aph-publish-flow {
    padding: 38px 18px 0;
  }

  .aph-publish-flow .aph-flow-heading {
    margin-bottom: 20px;
  }

  .aph-publish-flow .aph-flow-heading h2 {
    font-size: 34px;
  }

  .aph-publish-flow .aph-flow-navigation {
    width: calc(100% - 12px);
  }

  .aph-publish-flow .aph-flow-card {
    grid-template-columns: 1fr;
    border-radius: 9px;
  }

  .aph-publish-flow .aph-flow-image {
    min-height: 0;
    padding: 17px;
  }

  .aph-publish-flow .aph-flow-image img {
    height: 135px;
  }

  .aph-publish-flow .aph-flow-content {
    padding: 22px;
  }

  .aph-publish-flow .aph-flow-label {
    margin-bottom: 10px;
    font-size: 9px;
  }

  .aph-publish-flow .aph-flow-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .aph-publish-flow .aph-flow-content p {
    margin-bottom: 12px;
    line-height: 1.65;
  }

  .aph-flow-pin {
    padding-top: 12px;
    padding-bottom: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-publish-flow * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Featured notebook carousel */
.notebook-slider {
  --nb-paper: var(--paper, #f7f3e9);
  --nb-ink: var(--ink, #263d2c);
  --nb-accent: var(--orange, #ad4e2f);

  padding: 75px 24px;
  background: var(--nb-paper);
  color: var(--nb-ink);
  overflow: hidden;
}

.notebook-heading {
  max-width: 680px;
  margin: 0 auto 38px;
  text-align: center;
}

.notebook-heading h2 {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.notebook-heading h2 em {
  color: var(--nb-accent);
  font-weight: 400;
}

.notebook-heading p,
.notebook-copy p {
  font-size: 15px;
  color: #000;
  line-height: 1.8;
}

.notebook-heading p {
  margin: 0;
}

.notebook-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 75px 35px;
}

.notebook-window {
  overflow: hidden;
  touch-action: pan-y;
}

.notebook-track {
  display: flex;
  transition: transform 850ms cubic-bezier(0.22, 0.68, 0.2, 1);
  will-change: transform;
}

.notebook-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: 0;
}

.notebook-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e6ebdf;
}

.notebook-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.notebook-copy {
  padding: 20px 0;
  min-width: 0;
}

.notebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.notebook-tags span {
  display: inline-block;
  padding: 4px 8px;
  background: #e9e2d3;
  color: var(--nb-ink);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notebook-copy h3 {
  margin: 0 0 17px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 2.5vw, 35px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.notebook-copy p {
  max-width: 470px;
  margin: 0 0 22px;
}

.notebook-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--nb-ink);
  background: transparent;
  color: var(--nb-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}

.notebook-link:hover {
  background: var(--nb-ink);
  color: #fffdf7;
}

.notebook-arrow {
  position: absolute;
  top: calc(50% - 35px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dcded0;
  border-radius: 50%;
  background: #fffdf7;
  color: var(--nb-ink);
  font-size: 20px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.notebook-prev {
  left: 0;
}

.notebook-next {
  right: 0;
}

.notebook-arrow:hover {
  background: var(--nb-ink);
  border-color: var(--nb-ink);
  color: #fffdf7;
}

.notebook-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  gap: 1px;
  transform: translateX(-50%);
}

.notebook-dots button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.notebook-dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdd2c3;
  transition:
    background 0.25s,
    transform 0.25s;
}

.notebook-dots button.is-active::after {
  background: var(--nb-accent);
  transform: scale(1.2);
}

.notebook-carousel :focus-visible {
  outline: 3px solid var(--nb-accent);
  outline-offset: 4px;
}

.notebook-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tablet */
@media (max-width: 900px) {
  .notebook-carousel {
    padding-right: 55px;
    padding-left: 55px;
  }

  .notebook-slide {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 25px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .notebook-slider {
    padding: 48px 18px;
  }

  .notebook-heading {
    margin-bottom: 28px;
  }

  .notebook-carousel {
    padding: 0 0 65px;
  }

  .notebook-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 22px;
  }

  .notebook-image {
    width: min(100%, 260px);
    margin: 0 auto;
  }

  .notebook-copy {
    padding: 0 5px;
    text-align: center;
  }

  .notebook-tags {
    justify-content: center;
  }

  .notebook-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .notebook-arrow {
    top: auto;
    bottom: 0;
  }

  .notebook-prev {
    left: calc(50% - 105px);
  }

  .notebook-next {
    right: calc(50% - 105px);
  }

  .notebook-dots {
    bottom: 7px;
  }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  .notebook-track,
  .notebook-carousel * {
    transition: none;
  }
}

/* Slider movement and touch support */
.notebook-window {
  overflow: hidden;
  touch-action: pan-y;
}

.notebook-track {
  display: flex;
  gap: 0;
  width: 100%;
  transition: transform 700ms cubic-bezier(0.22, 0.68, 0.2, 1);
  will-change: transform;
}

.notebook-track > .notebook-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.notebook-image img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Publishing checklist — scoped to the existing aph-craft section */
.aph-craft {
  --craft-navy: #002868;
  --craft-red: #9b2525;
  --craft-white: #ffffff;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(35px, 6vw, 90px);

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 70px max(24px, calc((100% - 1180px) / 2));

  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 110%, #9b2525 0%, transparent 48%),
    radial-gradient(ellipse at 0% 0%, #720d26 0%, transparent 42%),
    linear-gradient(125deg, #081b46, #002868 65%, #132451);

  font-family: Arial, Helvetica, sans-serif;
}

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

/* Light panel with an angled inner edge */
.aph-craft::before {
  content: "";
  position: absolute;
  inset: 0 0 0 51%;
  z-index: -1;
  background: linear-gradient(145deg, #ffffff, #edf2f9);

  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8% 76%, 0 48%);
}

.aph-craft .aph-craft-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
}

.aph-craft .aph-label {
  display: block;
  margin-bottom: 13px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.aph-craft-divider {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 18px;
  background: #ffffffa6;
}

.aph-craft .aph-craft-copy h2 {
  margin: 0 0 19px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.aph-craft .aph-craft-copy h2 em {
  color: #ffffff;
  font-weight: 400;
}

.aph-craft .aph-craft-copy h2 em span {
  color: #ee5264;
}

.aph-craft .aph-craft-copy > p {
  max-width: 510px;
  margin: 0 0 25px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.8;
}

/* White progress card */
.aph-craft .aph-manuscript {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 520px;
  min-height: 0;
  margin: 0 0 21px;
  padding: 20px;

  transform: none;
  animation: none;
  background: #ffffff;
  border: 1px solid #e0e7ef;
  border-radius: 7px;
  box-shadow: 0 12px 28px #00000016;
}

.aph-paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
}

.aph-craft .aph-paper-label {
  color: #27354b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
}

.aph-check-count {
  flex-shrink: 0;
  color: #526174;
  font-size: 11px;
  line-height: 1.4;
}

/* Native accessible progress bar */
.aph-craft .aph-writing-lines {
  display: block;
  width: 100%;
  height: 7px;
  margin: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 20px;
  background: #e7edf3;
}

.aph-writing-lines::-webkit-progress-bar {
  background: #e7edf3;
  border-radius: 20px;
}

.aph-writing-lines::-webkit-progress-value {
  background: linear-gradient(90deg, #002868, #9b2525);
  border-radius: 20px;
  transition: width 0.35s ease;
}

.aph-writing-lines::-moz-progress-bar {
  background: linear-gradient(90deg, #002868, #9b2525);
  border-radius: 20px;
}

.aph-craft .aph-paper-bottom {
  display: block;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.aph-craft .aph-paper-bottom p {
  margin: 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.6;
}

/* Existing popup button */
.aph-craft .aph-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  min-height: 48px;
  padding: 13px 22px;

  border: 1px solid #9b2525;
  border-radius: 4px;
  background: #9b2525;
  color: #ffffff;

  font:
    600 14px/1.4 Arial,
    Helvetica,
    sans-serif;
  text-decoration: none;
  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.aph-craft .aph-section-button:hover {
  transform: translateY(-3px);
  background: #961c2b;
  box-shadow: 0 9px 24px #00000024;
}

.aph-craft .aph-section-button span {
  font-size: 23px;
  line-height: 1;
}

.aph-craft .aph-section-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* Right checklist */
.aph-craft .aph-craft-visual {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: none;
}

.aph-craft .aph-craft-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aph-craft .aph-craft-list > li {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.aph-check-row {
  position: relative;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 15px;

  width: 100%;
  padding: 17px 18px;
  border: 1px solid #b6bfcd;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 4px 12px #0028680b;

  cursor: pointer;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hide only the native appearance; retain keyboard and screen-reader access */
.aph-check-row > input {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 23px;
  height: 23px;
  margin: 0;
  opacity: 0;
}

.aph-check-row:hover {
  transform: translateX(3px);
  border-color: #9b2525;
  box-shadow: 0 5px 17px #9b252514;
}

.aph-check-row:focus-within {
  outline: 3px solid #002868;
  outline-offset: 3px;
}

.aph-check-indicator {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;

  border: 1px solid #9b2525;
  border-radius: 50%;
  background: #ffffff;
  color: transparent;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.aph-check-row > input:checked + .aph-check-indicator {
  background: #9b2525;
  color: #ffffff;
}

.aph-craft .aph-check-copy h3 {
  margin: 0 0 6px;
  color: #172b46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.aph-craft .aph-check-copy p {
  margin: 0;
  color: #000000;
  font-size: 15px;
  line-height: 1.55;
}

.aph-check-number {
  padding-top: 3px;
  color: #526174;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

.aph-craft-list > li.is-selected .aph-check-row {
  border-color: #9b2525;
  box-shadow:
    0 0 0 1px #9b252526,
    0 5px 14px #9b252512;
}

/* Decorative CSS book stack */
.aph-craft-books {
  position: absolute;
  left: -65px;
  bottom: -12px;
  z-index: -1;
  width: 300px;
  height: 260px;
  opacity: 0.4;
  transform: rotate(-10deg);
  pointer-events: none;
}

.aph-craft-books span {
  position: absolute;
  left: 0;
  width: 250px;
  height: 48px;
  border: 3px solid #151b3b;
  border-radius: 3px 8px 8px 3px;
  background: linear-gradient(
    180deg,
    #9b2525 0%,
    #70162a 20%,
    #c23a49 50%,
    #63192b 100%
  );
  box-shadow: 8px 8px 15px #00000026;
}

.aph-craft-books span::after {
  content: "";
  position: absolute;
  inset: 8px 10px 8px 20px;
  border-block: 1px solid #d9838d66;
  background: repeating-linear-gradient(#a64c59 0 2px, #711e32 2px 4px);
}

.aph-craft-books span:nth-child(1) {
  bottom: 20px;
  left: 15px;
}

.aph-craft-books span:nth-child(2) {
  bottom: 66px;
  left: -10px;
}

.aph-craft-books span:nth-child(3) {
  bottom: 112px;
  left: 10px;
}

.aph-craft-books span:nth-child(4) {
  bottom: 158px;
  left: -25px;
}

/* Tablet */
@media (max-width: 1000px) {
  .aph-craft {
    gap: 35px;
    padding: 55px 28px;
  }

  .aph-craft .aph-craft-copy h2 {
    font-size: 43px;
  }

  .aph-check-row {
    gap: 10px;
    padding: 16px 14px;
  }

  .aph-check-row > input {
    left: 14px;
  }

  .aph-craft .aph-check-copy h3 {
    font-size: 19px;
  }
}

/* Stacked layout */
@media (max-width: 760px) {
  .aph-craft {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 45px 24px;
  }

  .aph-craft::before {
    display: none;
  }

  .aph-craft .aph-craft-copy,
  .aph-craft .aph-craft-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .aph-craft .aph-manuscript {
    max-width: none;
  }

  .aph-craft .aph-craft-copy > p {
    max-width: none;
  }

  .aph-craft .aph-craft-copy h2 {
    font-size: clamp(37px, 7vw, 49px);
  }

  .aph-craft-books {
    opacity: 0.2;
  }

  .aph-check-row:hover {
    transform: none;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .aph-craft {
    padding: 38px 18px;
    gap: 28px;
  }

  .aph-craft .aph-craft-copy h2 {
    font-size: 35px;
  }

  .aph-craft .aph-manuscript {
    padding: 17px;
  }

  .aph-paper-top {
    align-items: flex-start;
    gap: 10px;
  }

  .aph-craft .aph-paper-label {
    font-size: 15px;
  }

  .aph-check-count {
    font-size: 10px;
  }

  .aph-check-row {
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 15px 12px;
  }

  .aph-check-row > input {
    left: 12px;
    top: 17px;
  }

  .aph-craft .aph-check-copy h3 {
    font-size: 18px;
  }

  .aph-craft .aph-section-button {
    width: 100%;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .aph-craft *,
  .aph-craft *::before,
  .aph-craft *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Default font for body text */
body {
  font-family: "Poppins", sans-serif !important;
}

/* Paragraphs and smaller text */
p,
small,
li,
label,
input,
textarea,
select,
button,
nav,
figcaption,
address,
blockquote,
td,
th,
legend,
summary {
  font-family: "Poppins", sans-serif !important;
}

/* Common small-text classes used throughout your website */
[class*="eyebrow"],
[class*="kicker"],
[class*="tagline"],
[class*="label"],
[class*="caption"],
[class*="badge"],
[class*="meta"],
[class*="note"],
[class*="status"],
[class*="text-link"],
[class*="intro"],
[class*="description"],
[class*="subtitle"],
[class*="number"] {
  font-family: "Poppins", sans-serif !important;
}

/* Links and spans inherit their surrounding text font */
p a,
p span,
small a,
small span,
li a,
label span,
button span,
nav a,
nav span {
  font-family: "Poppins", sans-serif !important;
}

.aph-publish-flow .aph-flow-heading p {
  color: #fff !important;
}

/* =========================================
   APH — BOOK FORMATS
   ========================================= */

.aph-formats {
  --aph-navy: #001d3d;
  --aph-red: #c20405;
  --aph-gold: #aa762e;
  --aph-border: rgba(0, 29, 61, 0.12);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(60px, 7vw, 110px) clamp(18px, 5vw, 80px);
  background: #f7f8fc;
  color: var(--aph-navy);
}

/* Decorative background */

.aph-formats::before,
.aph-formats::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(65px);
}

.aph-formats::before {
  top: -220px;
  right: -180px;
  background: rgba(194, 4, 5, 0.08);
}

.aph-formats::after {
  bottom: -240px;
  left: -180px;
  background: rgba(0, 29, 61, 0.09);
}

.aph-formats,
.aph-formats * {
  box-sizing: border-box;
}

.aph-formats .aph-new-heading {
  max-width: 760px;
  margin: 0 auto clamp(32px, 4vw, 58px);
  text-align: center;
}

.aph-formats .aph-new-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--aph-red);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.7;
}

.aph-formats .aph-new-label::before {
  content: "";
  width: 24px;
  height: 2px;
  flex-shrink: 0;
  background: currentColor;
}

.aph-formats .aph-new-heading h2 {
  margin: 0 0 20px;
  color: var(--aph-navy);
  font-size: clamp(32px, 4.3vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.aph-formats .aph-new-heading h2 em {
  color: var(--aph-red);
}

.aph-formats p {
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

.aph-formats .aph-new-heading > p {
  max-width: 590px;
  margin: 0 auto;
}

/* Main layout */

.aph-formats .aph-format-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
}

.aph-formats .aph-format-tabs {
  display: grid;
  gap: 14px;
}

/* Tab buttons */

.aph-formats .aph-format-tab {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 108px;
  margin: 0;
  padding: 22px 20px;
  overflow: hidden;
  border: 1px solid var(--aph-border);
  border-radius: 16px;
  background: #fff;
  color: var(--aph-navy);
  font-family: "Poppins", sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0, 29, 61, 0.025);

  transition:
    transform 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease,
    color 250ms ease,
    box-shadow 250ms ease;
}

.aph-formats .aph-format-tab::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--aph-red);
  transform: scaleY(0);
  transition: transform 250ms ease;
}

.aph-formats .aph-format-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--aph-border);
  border-radius: 50%;
  color: var(--aph-red);
  font-size: 12px;
  font-weight: 600;
  transition:
    background-color 250ms ease,
    color 250ms ease,
    border-color 250ms ease;
}

.aph-formats .aph-format-tab strong {
  display: block;
  margin-bottom: 5px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

.aph-formats .aph-format-tab small {
  display: block;
  color: #000;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.aph-formats .aph-format-tab > span:last-child {
  font-size: 23px;
  transition: transform 250ms ease;
}

.aph-formats .aph-format-tab[aria-selected="true"] {
  border-color: var(--aph-navy);
  background: var(--aph-navy);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 29, 61, 0.16);
}

.aph-formats .aph-format-tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

.aph-formats .aph-format-tab[aria-selected="true"] small {
  color: #fff;
}

.aph-formats .aph-format-tab[aria-selected="true"] .aph-format-number {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Panels */

.aph-formats .aph-format-panels {
  min-width: 0;
}

.aph-formats .aph-format-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--aph-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 29, 61, 0.07);
}

/* Prevent older styles from displaying hidden panels */

.aph-formats .aph-format-panel[hidden] {
  display: none !important;
}

.aph-formats .aph-format-panel.is-entering {
  animation: aphFormatPanelEnter 450ms ease both;
}

@keyframes aphFormatPanelEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Artwork background */

.aph-formats .aph-format-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-width: 0;
  min-height: 390px;
  padding: 40px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, #fff 0, transparent 60%),
    linear-gradient(145deg, #eaf0f8, #dce6f2);
}

.aph-formats .aph-format-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 29, 61, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(0, 29, 61, 0.025),
    0 0 0 56px rgba(0, 29, 61, 0.02);
  animation: aphFormatOrbit 7s ease-in-out infinite;
}

.aph-formats .aph-format-art::after {
  content: "✦";
  position: absolute;
  top: 28px;
  right: 25px;
  color: var(--aph-red);
  font-size: 34px;
  animation: aphFormatStar 7s ease-in-out infinite;
}

.aph-formats .aph-art-caption {
  position: relative;
  max-width: 220px;
  color: var(--aph-navy);
  font-family: "Poppins", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.8;
  text-align: center;
}

/* eBook illustration */

.aph-formats .aph-device {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 180px;
  height: 252px;
  padding: 27px 18px;
  border: 9px solid var(--aph-navy);
  border-bottom-width: 18px;
  border-radius: 17px;
  background: #fffdf6;
  color: var(--aph-navy);
  box-shadow:
    13px 18px 30px rgba(0, 29, 61, 0.18),
    inset 0 0 0 1px rgba(0, 29, 61, 0.08);
  animation: aphFormatFloat 5.5s ease-in-out infinite;
}

.aph-formats .aph-device::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.aph-formats .aph-device > span,
.aph-formats .aph-print-book > span {
  font-family: "Poppins", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.aph-formats .aph-device > strong {
  margin-top: 19px;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.12;
}

.aph-formats .aph-device-lines {
  height: 39px;
  margin-top: 20px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 29, 61, 0.2) 0 1px,
    transparent 1px 9px
  );
}

.aph-formats .aph-device > i {
  margin-top: auto;
  color: var(--aph-red);
  font-family: "Poppins", sans-serif;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* Print illustration */

.aph-formats #aph-panel-print .aph-format-art {
  background:
    radial-gradient(circle at 20% 20%, #fff, transparent 65%),
    linear-gradient(145deg, #f8e9e9, #ecd6da);
}

.aph-formats .aph-print-book {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 170px;
  height: 245px;
  padding: 25px 20px 25px 27px;
  border-radius: 3px 8px 8px 3px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 10%),
    linear-gradient(145deg, #c20405, #850c22);
  color: #fff;
  box-shadow:
    5px 0 0 #fff7e9,
    8px 0 0 #ded6cb,
    17px 20px 30px rgba(0, 29, 61, 0.2);
  animation: aphFormatFloat 6s ease-in-out infinite;
}

.aph-formats .aph-print-book::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.aph-formats .aph-print-book > strong {
  position: relative;
  margin-top: 42px;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.08;
  text-align: center;
}

.aph-formats .aph-print-book > i {
  margin-top: auto;
  font-family: "Poppins", sans-serif;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.1em;
}

/* Audio illustration */

.aph-formats #aph-panel-audio .aph-format-art {
  gap: 20px;
  background:
    radial-gradient(circle at 20% 20%, #fff, transparent 65%),
    linear-gradient(145deg, #f6eedf, #eaddc5);
}

.aph-formats .aph-audio-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  flex-shrink: 0;
  border: 8px solid var(--aph-navy);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #001d3d 0 4px, #0e3156 5px 7px);
  box-shadow: 10px 16px 28px rgba(0, 29, 61, 0.2);
  animation: aphFormatFloat 5.8s ease-in-out infinite;
}

.aph-formats .aph-audio-disc > span {
  display: grid;
  place-items: center;
  width: 95px;
  height: 95px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--aph-red);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-align: center;
}

.aph-formats .aph-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
}

.aph-formats .aph-audio-wave i {
  width: 5px;
  height: 32px;
  border-radius: 10px;
  background: var(--aph-red);
  transform-origin: center;
  animation: aphFormatWave 1.1s ease-in-out infinite alternate;
}

.aph-formats .aph-audio-wave i:nth-child(3n) {
  height: 22px;
  animation-delay: -0.4s;
}

.aph-formats .aph-audio-wave i:nth-child(2n) {
  height: 38px;
  animation-delay: -0.7s;
}

.aph-formats .aph-audio-wave i:nth-child(4n) {
  height: 16px;
  animation-delay: -0.2s;
}

/* Description */

.aph-formats .aph-format-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
}

.aph-formats .aph-format-description h3 {
  margin: 0 0 16px;
  color: var(--aph-navy);
  font-size: clamp(25px, 2.2vw, 27px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.aph-formats .aph-format-description p {
  margin: 0 0 20px;
}

.aph-formats .aph-format-description ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.aph-formats .aph-format-description li {
  position: relative;
  margin: 0;
  padding-left: 26px;
  color: #000;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

.aph-formats .aph-format-description li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(194, 4, 5, 0.08);
  color: var(--aph-red);
  font-size: 11px;
  font-weight: 700;
}

.aph-formats .aph-new-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  gap: 16px;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(194, 4, 5, 0.35);
  color: var(--aph-red);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.aph-formats .aph-new-link span {
  flex-shrink: 0;
  font-size: 21px;
  transition: transform 250ms ease;
}

.aph-formats .aph-format-tab:focus-visible,
.aph-formats .aph-new-link:focus-visible,
.aph-formats .aph-format-panel:focus-visible {
  outline: 3px solid var(--aph-gold);
  outline-offset: 5px;
}

/* Hover effects on devices with a mouse */

@media (hover: hover) and (pointer: fine) {
  .aph-formats .aph-format-tab:hover {
    transform: translateY(-3px);
    border-color: var(--aph-red);
    box-shadow: 0 12px 25px rgba(0, 29, 61, 0.09);
  }

  .aph-formats .aph-format-tab:hover > span:last-child,
  .aph-formats .aph-new-link:hover span {
    transform: translate(3px, -3px);
  }
}

/* Artwork motion */

@keyframes aphFormatFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-10px) rotate(-1deg);
  }
}

@keyframes aphFormatOrbit {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes aphFormatStar {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(90deg) scale(1.15);
  }
}

@keyframes aphFormatWave {
  from {
    transform: scaleY(0.35);
  }

  to {
    transform: scaleY(1);
  }
}

/* Pause decorative motion outside the viewport */

.aph-formats.aph-formats-paused *,
.aph-formats.aph-formats-paused *::before,
.aph-formats.aph-formats-paused *::after {
  animation-play-state: paused !important;
}

/* Tablet */

@media (max-width: 1100px) {
  .aph-formats .aph-format-layout {
    grid-template-columns: 1fr;
  }

  .aph-formats .aph-format-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .aph-formats .aph-format-tab {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    min-height: 100px;
    padding: 18px 15px;
  }

  .aph-formats .aph-format-number {
    width: 32px;
    height: 32px;
  }

  .aph-formats .aph-format-tab > span:last-child {
    display: none;
  }

  .aph-formats .aph-format-tab strong {
    font-size: 17px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .aph-formats {
    padding: 58px 18px;
  }

  .aph-formats .aph-new-label {
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .aph-formats .aph-format-tabs {
    gap: 8px;
  }

  .aph-formats .aph-format-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 12px 6px;
    border-radius: 12px;
    text-align: center;
  }

  .aph-formats .aph-format-tab::before {
    inset: auto 12px 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .aph-formats .aph-format-tab[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .aph-formats .aph-format-tab strong {
    margin: 0;
    font-size: 13px;
  }

  .aph-formats .aph-format-tab small {
    display: none;
  }

  .aph-formats .aph-format-number {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .aph-formats .aph-format-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .aph-formats .aph-format-art {
    min-height: 330px;
    gap: 20px;
    padding: 30px 18px;
  }

  .aph-formats .aph-device {
    width: 160px;
    height: 225px;
    padding: 22px 14px;
  }

  .aph-formats .aph-device > strong {
    margin-top: 15px;
    font-size: 25px;
  }

  .aph-formats .aph-print-book {
    width: 150px;
    height: 220px;
  }

  .aph-formats .aph-print-book > strong {
    margin-top: 32px;
    font-size: 29px;
  }

  .aph-formats .aph-audio-disc {
    width: 165px;
    height: 165px;
  }

  .aph-formats .aph-format-description {
    padding: 28px 22px 32px;
  }
}

/* Respect reduced motion preferences */

@media (prefers-reduced-motion: reduce) {
  .aph-formats *,
  .aph-formats *::before,
  .aph-formats *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================
   NOTEBOOK SLIDER — AMERICANS PUBLISHERS HUB
   ========================================= */

.notebook-slider {
  --nb-navy: #001d3d;
  --nb-red: #c20405;
  --nb-white: #ffffff;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(60px, 7vw, 100px) clamp(16px, 5vw, 75px);
  background: #f5f7fb;
  color: var(--nb-navy);
}

.notebook-slider,
.notebook-slider * {
  box-sizing: border-box;
}

.notebook-slider::before,
.notebook-slider::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
}

.notebook-slider::before {
  top: -240px;
  left: -150px;
  background: rgba(194, 4, 5, 0.09);
}

.notebook-slider::after {
  right: -200px;
  bottom: -230px;
  background: rgba(0, 29, 61, 0.12);
}

/* Heading */

.notebook-slider .notebook-heading {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.notebook-slider .notebook-heading::before {
  content: "A LITTLE INSPIRATION FOR YOUR NEXT CHAPTER";
  display: block;
  margin-bottom: 16px;
  color: var(--nb-red);
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.notebook-slider .notebook-heading h2 {
  margin: 0 0 18px;
  color: var(--nb-navy);
  font-size: clamp(32px, 4.3vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.notebook-slider .notebook-heading h2 em {
  color: var(--nb-red);
}

.notebook-slider p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

.notebook-slider .notebook-heading p {
  margin: 0;
  color: #000;
}

/* Carousel */

.notebook-slider .notebook-carousel {
  position: relative;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 56px 65px;
}

.notebook-slider .notebook-window {
  overflow: hidden;
  border: 1px solid rgba(0, 29, 61, 0.1);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 65px rgba(0, 29, 61, 0.1);
  touch-action: pan-y pinch-zoom;
}

.notebook-slider .notebook-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.notebook-slider .notebook-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

/* Illustration / cover area */

.notebook-slider .notebook-image {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 450px;
  padding: 45px 30px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 255, 255, 0.15),
      transparent 65%
    ),
    linear-gradient(145deg, #073467, #00152d);
}

.notebook-slider .notebook-slide:nth-child(2) .notebook-image {
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 255, 255, 0.18),
      transparent 65%
    ),
    linear-gradient(145deg, #c20405, #750f25);
}

.notebook-slider .notebook-slide:nth-child(3) .notebook-image {
  background:
    radial-gradient(
      ellipse at 30% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 65%
    ),
    linear-gradient(145deg, #aa762e, #654217);
}

.notebook-slider .notebook-image::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.035),
    0 0 0 60px rgba(255, 255, 255, 0.025);
  animation: notebookHalo 7s ease-in-out infinite;
}

.notebook-slider .notebook-image::after {
  content: "✦";
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 35px;
  animation: notebookSpark 6s ease-in-out infinite;
}

.notebook-slider .notebook-image img {
  position: relative;
  display: block;
  width: min(100%, 220px);
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  border-radius: 3px;
  filter: drop-shadow(15px 22px 15px rgba(0, 0, 0, 0.35));
  animation: notebookBookFloat 6s ease-in-out infinite;
}

/* Only animate the visible slide */

.notebook-slider .notebook-slide:not(.is-active) .notebook-image img,
.notebook-slider .notebook-slide:not(.is-active) .notebook-image::before,
.notebook-slider .notebook-slide:not(.is-active) .notebook-image::after {
  animation-play-state: paused;
}

/* Text area */

.notebook-slider .notebook-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 55px);
}

.notebook-slider .notebook-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.notebook-slider .notebook-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(0, 29, 61, 0.12);
  border-radius: 30px;
  background: #f5f7fb;
  color: var(--nb-navy);
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.notebook-slider .notebook-tags span:last-child {
  border-color: rgba(194, 4, 5, 0.12);
  background: rgba(194, 4, 5, 0.05);
  color: var(--nb-red);
}

.notebook-slider .notebook-copy h3 {
  margin: 0 0 20px;
  color: var(--nb-navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.notebook-slider .notebook-copy p {
  margin: 0 0 28px;
  color: #000;
}

.notebook-slider .notebook-copy .btn.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 13px 21px;
  border: 1px solid var(--nb-red);
  border-radius: 8px;
  background: var(--nb-red);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

/* Text entrance */

.notebook-slider .notebook-slide.is-active .notebook-copy > * {
  animation: notebookTextEnter 650ms ease both;
}

.notebook-slider .notebook-slide.is-active .notebook-copy > :nth-child(2) {
  animation-delay: 70ms;
}

.notebook-slider .notebook-slide.is-active .notebook-copy > :nth-child(3) {
  animation-delay: 140ms;
}

.notebook-slider .notebook-slide.is-active .notebook-copy > :nth-child(4) {
  animation-delay: 210ms;
}

/* Navigation */

.notebook-slider .notebook-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 32px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 29, 61, 0.15);
  border-radius: 50%;
  background: #fff;
  color: var(--nb-navy);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 5px 15px rgba(0, 29, 61, 0.06);
  transition:
    background-color 250ms ease,
    color 250ms ease,
    border-color 250ms ease;
}

.notebook-slider .notebook-prev {
  left: 0;
}

.notebook-slider .notebook-next {
  right: 0;
}

.notebook-slider .notebook-dots {
  position: absolute;
  bottom: 11px;
  left: 50%;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}

.notebook-slider .notebook-dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.notebook-slider .notebook-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 20px;
  background: #bec7d3;
  transition:
    width 300ms ease,
    background-color 300ms ease;
}

.notebook-slider .notebook-dots button.is-active::before {
  width: 27px;
  background: var(--nb-red);
}

/* Autoplay control added by JavaScript */

.notebook-slider .notebook-autoplay {
  display: block;
  min-height: 44px;
  margin: 5px auto 0;
  padding: 8px 14px;
  border: 1px solid rgba(0, 29, 61, 0.15);
  border-radius: 30px;
  background: #fff;
  color: var(--nb-navy);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  cursor: pointer;
}

.notebook-slider button:focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 4px;
}

.notebook-slider .notebook-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Hover effects */

@media (hover: hover) and (pointer: fine) {
  .notebook-slider .notebook-arrow:hover {
    border-color: var(--nb-navy);
    background: var(--nb-navy);
    color: #fff;
  }

  .notebook-slider .notebook-copy .btn.light:hover {
    transform: translateY(-3px);
    background: #9b0304;
    box-shadow: 0 10px 22px rgba(194, 4, 5, 0.2);
  }
}

/* Keyframes */

@keyframes notebookBookFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-12px) rotate(-2deg);
  }
}

@keyframes notebookHalo {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes notebookSpark {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(90deg);
  }
}

@keyframes notebookTextEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet */

@media (max-width: 900px) {
  .notebook-slider .notebook-carousel {
    padding-inline: 0;
    padding-bottom: 76px;
  }

  .notebook-slider .notebook-arrow {
    top: auto;
    bottom: 4px;
    transform: none;
  }

  .notebook-slider .notebook-prev {
    left: 0;
  }

  .notebook-slider .notebook-next {
    right: 0;
  }

  .notebook-slider .notebook-dots {
    bottom: 4px;
  }

  .notebook-slider .notebook-image {
    min-height: 410px;
    padding: 35px 20px;
  }

  .notebook-slider .notebook-image img {
    width: min(100%, 190px);
  }

  .notebook-slider .notebook-copy {
    padding: 30px 25px;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .notebook-slider {
    padding: 55px 16px;
  }

  .notebook-slider .notebook-heading {
    margin-bottom: 30px;
  }

  .notebook-slider .notebook-heading::before {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .notebook-slider .notebook-window {
    border-radius: 18px;
  }

  .notebook-slider .notebook-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 310px 1fr;
  }

  .notebook-slider .notebook-image {
    min-height: 0;
    padding: 30px;
  }

  .notebook-slider .notebook-image img {
    width: auto;
    max-width: 75%;
    max-height: 235px;
  }

  .notebook-slider .notebook-image::before {
    width: 220px;
    height: 220px;
  }

  .notebook-slider .notebook-copy {
    justify-content: flex-start;
    padding: 28px 22px 32px;
  }

  .notebook-slider .notebook-copy h3 {
    font-size: 29px;
  }

  .notebook-slider .notebook-copy .btn.light {
    width: 100%;
  }

  .notebook-slider .notebook-tags {
    margin-bottom: 16px;
  }
}

/* Motion accessibility */

@media (prefers-reduced-motion: reduce) {
  .notebook-slider *,
  .notebook-slider *::before,
  .notebook-slider *::after {
    animation: none !important;
    transition: none !important;
  }
}

p.eyebrow {
  font-size: 12px !important;
}

/* =====================================
   APH TIMES SQUARE — UNIQUE CLASSES
   ===================================== */

section.aphtsq86 {
  --tsq-red: #c20405;
  --tsq-navy: #001d3d;

  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: none;
  min-height: 850px;
  margin: 0;
  padding: 65px 24px 28px;
  overflow: hidden;
  background: #020812;
  color: #fff;
  text-align: center;
}

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

/* Background */

.aphtsq86 .aphtsq86-background {
  position: absolute;
  z-index: -4;
  inset: -35px;
  background: url("../img/billboard/outdoor-06.jpg") center 55% / cover
    no-repeat;

  transform: scale(1.04);
  will-change: transform;
}

.aphtsq86 .aphtsq86-shade {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(0, 29, 61, 0.32),
      rgba(0, 7, 17, 0.78) 72%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6),
      rgba(0, 10, 25, 0.46) 45%,
      #020812 100%
    );
}

/* Subtle screen texture */

.aphtsq86::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.018) 3px 4px
  );
  pointer-events: none;
}

.aphtsq86 .aphtsq86-particles {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Mouse glow */

.aphtsq86 .aphtsq86-pointer {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow:
    0 0 16px rgba(194, 4, 5, 0.8),
    inset 0 0 10px rgba(194, 4, 5, 0.4);
  transition: opacity 0.2s;
}

/* Main content */

.aphtsq86 .aphtsq86-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1050px);
  margin: 0 auto;
}

/* Top badge */

.aphtsq86 .aphtsq86-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 11px 21px;
  border: 1px solid rgba(194, 4, 5, 0.85);
  border-radius: 50px;
  background: rgba(0, 14, 33, 0.8);
  color: #fff;
  font:
    500 10px/1.7 "Poppins",
    sans-serif;
  letter-spacing: 0.12em;
  box-shadow:
    0 0 18px rgba(194, 4, 5, 0.45),
    inset 0 0 15px rgba(194, 4, 5, 0.12);
}

.aphtsq86 .aphtsq86-badge > span {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #ff4545;
  box-shadow: 0 0 12px #c20405;
  animation: aphtsq86-pulse 2s ease-in-out infinite;
}

/* Heading */

.aphtsq86 .aphtsq86-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: "Orbitron", Arial, sans-serif !important;
  font-size: clamp(48px, 6.8vw, 104px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.aphtsq86 .aphtsq86-title > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  font-family: inherit !important;
}

.aphtsq86 .aphtsq86-gradient {
  background: linear-gradient(
    110deg,
    #547caf 0%,
    #fff 35%,
    #f4a8a8 60%,
    #c20405 85%,
    #fff 100%
  );
  background-size: 230% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
  animation: aphtsq86-gradient 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(194, 4, 5, 0.2));
}

/* Glitch layers */

.aphtsq86 .aphtsq86-glitch {
  position: relative;
  isolation: isolate;
  color: #fff;
}

.aphtsq86 .aphtsq86-glitch::before,
.aphtsq86 .aphtsq86-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aphtsq86 .aphtsq86-glitch::before {
  color: #c20405;
  animation: aphtsq86-glitch-red 5s infinite;
}

.aphtsq86 .aphtsq86-glitch::after {
  color: #5689c8;
  animation: aphtsq86-glitch-blue 5s infinite;
}

.aphtsq86 .aphtsq86-intro {
  max-width: 530px;
  margin: 24px auto 0;
  padding: 0;
  color: #e0e6ee !important;
  font:
    400 15px/1.9 "Poppins",
    sans-serif;
}

/* Three stages */

.aphtsq86 .aphtsq86-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 490px);
  margin: 38px auto 0;
}

.aphtsq86 .aphtsq86-stages > div {
  min-width: 0;
  padding: 0 14px;
}

.aphtsq86 .aphtsq86-stages > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.aphtsq86 .aphtsq86-stages strong {
  display: block;
  color: #fff;
  font:
    800 43px/1.2 "Orbitron",
    sans-serif;
  text-shadow:
    -2px 0 #c20405,
    2px 0 #456b9b,
    0 0 20px rgba(194, 4, 5, 0.4);
}

.aphtsq86 .aphtsq86-stages span {
  display: block;
  margin-top: 13px;
  color: #b8c2d0;
  font:
    400 8px/1.8 "Poppins",
    sans-serif;
  letter-spacing: 0.15em;
}

/* Buttons */

.aphtsq86 .aphtsq86-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.aphtsq86 .aphtsq86-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 52px;
  max-width: 100%;
  margin: 0;
  padding: 15px 25px;
  border: 1px solid transparent;
  border-radius: 50px;
  appearance: none;
  color: #fff;
  font:
    700 10px/1.6 "Orbitron",
    Arial,
    sans-serif;
  letter-spacing: 0.025em;
  white-space: normal;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.aphtsq86 .aphtsq86-primary {
  border-color: #ff6666;
  background: linear-gradient(110deg, #8d0713, #c20405, #ee4040);
  box-shadow:
    0 0 20px rgba(194, 4, 5, 0.55),
    0 0 45px rgba(194, 4, 5, 0.22);
  animation: aphtsq86-button-glow 3s ease-in-out infinite;
}

.aphtsq86 .aphtsq86-secondary {
  border-color: #b6cde7;
  background: rgba(0, 20, 45, 0.8);
  box-shadow: 0 0 22px rgba(73, 120, 175, 0.35);
}

.aphtsq86 .aphtsq86-button > span {
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.aphtsq86 .aphtsq86-button::before,
.aphtsq86 .aphtsq86-button::after {
  content: none;
}

.aphtsq86 .aphtsq86-note {
  display: block;
  max-width: 520px;
  margin: 20px auto 0;
  color: #aab6c6;
  font:
    400 10px/1.7 "Poppins",
    sans-serif;
}

/* Scroll indicator */

.aphtsq86 .aphtsq86-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin: 38px auto 0;
  color: #fff;
  text-decoration: none;
}

.aphtsq86 .aphtsq86-scroll > span {
  font:
    400 8px/1.6 "Poppins",
    sans-serif;
  letter-spacing: 0.25em;
}

.aphtsq86 .aphtsq86-scroll > i {
  position: relative;
  display: block;
  width: 21px;
  height: 33px;
  border: 1px solid #abc4e2;
  border-radius: 14px;
  box-shadow: 0 0 15px rgba(73, 120, 175, 0.7);
}

.aphtsq86 .aphtsq86-scroll > i::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8px;
  width: 3px;
  height: 6px;
  border-radius: 5px;
  background: #ff4545;
  animation: aphtsq86-scroll-dot 1.7s ease-in-out infinite;
}

.aphtsq86 :is(button, a):focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
}

/* Animations */

@keyframes aphtsq86-gradient {
  from {
    background-position: 0% center;
  }
  to {
    background-position: 100% center;
  }
}

@keyframes aphtsq86-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes aphtsq86-button-glow {
  0%,
  100% {
    box-shadow:
      0 0 18px #c2040577,
      0 0 38px #c2040533;
  }
  50% {
    box-shadow:
      0 0 28px #c20405aa,
      0 0 55px #c2040555;
  }
}

@keyframes aphtsq86-glitch-red {
  0%,
  88%,
  100% {
    transform: translate(0);
    clip-path: inset(0);
    opacity: 0;
  }
  89%,
  91% {
    transform: translate(-7px, 2px);
    clip-path: inset(12% 0 52%);
    opacity: 0.8;
  }
  90%,
  92% {
    transform: translate(6px, -1px);
    clip-path: inset(61% 0 12%);
    opacity: 0.8;
  }
}

@keyframes aphtsq86-glitch-blue {
  0%,
  88%,
  100% {
    transform: translate(0);
    clip-path: inset(0);
    opacity: 0;
  }
  89%,
  91% {
    transform: translate(7px, -2px);
    clip-path: inset(55% 0 10%);
    opacity: 0.8;
  }
  90%,
  92% {
    transform: translate(-5px, 1px);
    clip-path: inset(8% 0 64%);
    opacity: 0.8;
  }
}

@keyframes aphtsq86-scroll-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  60% {
    transform: translateY(9px);
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .aphtsq86 .aphtsq86-button:hover {
    transform: translateY(-4px);
  }
}

/* Tablet */

@media (max-width: 900px) {
  section.aphtsq86 {
    min-height: 780px;
    padding-top: 55px;
  }

  .aphtsq86 .aphtsq86-title {
    font-size: clamp(48px, 9vw, 80px);
  }
}

/* Mobile */

@media (max-width: 600px) {
  section.aphtsq86 {
    min-height: 740px;
    padding: 48px 18px 28px;
  }

  .aphtsq86 .aphtsq86-badge {
    padding: 10px 14px;
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 26px;
  }

  .aphtsq86 .aphtsq86-title {
    font-size: clamp(32px, 9vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.06em;
  }

  .aphtsq86 .aphtsq86-intro {
    margin-top: 23px;
  }

  .aphtsq86 .aphtsq86-stages {
    margin-top: 28px;
  }

  .aphtsq86 .aphtsq86-stages > div {
    padding-inline: 7px;
  }

  .aphtsq86 .aphtsq86-stages strong {
    font-size: 31px;
  }

  .aphtsq86 .aphtsq86-stages span {
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .aphtsq86 .aphtsq86-actions {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 29px;
  }

  .aphtsq86 .aphtsq86-button {
    width: min(100%, 330px);
    min-height: 50px;
  }

  .aphtsq86 .aphtsq86-scroll {
    margin-top: 27px;
  }

  .aphtsq86 .aphtsq86-pointer {
    display: none;
  }
}

/* Pause decorative animations outside the viewport */

.aphtsq86.aphtsq86-paused *,
.aphtsq86.aphtsq86-paused *::before,
.aphtsq86.aphtsq86-paused *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .aphtsq86 *,
  .aphtsq86 *::before,
  .aphtsq86 *::after {
    animation: none !important;
    transition: none !important;
  }

  .aphtsq86 .aphtsq86-pointer {
    display: none;
  }
}

/* ======================================
   APH — PDF BOOK COVER LIBRARY
   ====================================== */

.aph-pdf-library {
  --aph-books-navy: #001d3d;
  --aph-books-red: #c20405;
  --aph-books-paper: #f7f8fb;

  width: 100%;
  padding: clamp(60px, 7vw, 100px) clamp(18px, 5vw, 75px);
  background: var(--aph-books-paper);
  color: var(--aph-books-navy);
}

.aph-pdf-library,
.aph-pdf-library *,
.aph-pdf-library *::before,
.aph-pdf-library *::after {
  box-sizing: border-box;
}

.aph-pdf-library [hidden] {
  display: none !important;
}

.aph-pdf-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 35px;
}

.aph-pdf-library-heading h2 {
  margin: 0;
  color: var(--aph-books-navy);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.aph-pdf-library-heading h2 em {
  color: var(--aph-books-red);
}

.aph-pdf-library-heading > p {
  max-width: 400px;
  margin: 0;
  color: #000;
  font:
    400 15px/1.8 "Poppins",
    sans-serif;
}

.aph-pdf-library .aph-pdf-eyebrow {
  margin: 0 0 14px;
  color: var(--aph-books-red);
  font:
    600 10px/1.7 "Poppins",
    sans-serif;
  letter-spacing: 0.15em;
}

/* Filters */

.aph-pdf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 22px;
}

.aph-pdf-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(0, 29, 61, 0.15);
  border-radius: 30px;
  background: #fff;
  color: var(--aph-books-navy);
  font:
    500 11px/1.5 "Poppins",
    sans-serif;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.aph-pdf-filters button.is-active {
  border-color: var(--aph-books-navy);
  background: var(--aph-books-navy);
  color: #fff;
}

.aph-pdf-filters button:hover {
  border-color: var(--aph-books-red);
  transform: translateY(-2px);
}

.aph-pdf-result-count {
  width: 100%;
  max-width: 1320px;
  min-height: 22px;
  margin: 0 auto 20px;
  color: #333;
  font:
    400 12px/1.7 "Poppins",
    sans-serif;
}

/* Grid */

.aph-pdf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.aph-pdf-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 29, 61, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 29, 61, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.aph-pdf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 29, 61, 0.13);
}

/* Cover area */

.aph-pdf-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e8edf4, #d8e1ec);
}

.aph-pdf-cover-link {
  color: inherit;
  text-decoration: none;
}

.aph-pdf-cover img,
.aph-pdf-cover canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.aph-pdf-cover img {
  transition: transform 0.45s ease;
}

.aph-pdf-card:hover .aph-pdf-cover img {
  transform: scale(1.04);
}

/* PDF canvas is hidden until rendering succeeds */

.aph-pdf-canvas {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.aph-pdf-cover.is-loaded .aph-pdf-canvas {
  opacity: 1;
}

.aph-pdf-placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--aph-books-navy);
  text-align: center;
}

.aph-pdf-placeholder strong {
  font:
    600 13px/1.5 "Poppins",
    sans-serif;
  letter-spacing: 0.08em;
}

.aph-pdf-placeholder small {
  font:
    400 11px/1.6 "Poppins",
    sans-serif;
}

.aph-pdf-cover.is-loaded .aph-pdf-placeholder {
  display: none;
}

.aph-pdf-open {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 30px;
  background: rgba(0, 29, 61, 0.9);
  color: #fff;
  font:
    500 10px/1.5 "Poppins",
    sans-serif;
}

/* Card text */

.aph-pdf-card-copy {
  padding: 17px 16px 20px;
}

.aph-pdf-card-copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--aph-books-red);
  font:
    600 10px/1.6 "Poppins",
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aph-pdf-card-copy h3 {
  margin: 0;
  color: var(--aph-books-navy);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Show more */

.aph-pdf-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.aph-pdf-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--aph-books-red);
  border-radius: 6px;
  background: var(--aph-books-red);
  color: #fff;
  font:
    600 12px/1.5 "Poppins",
    sans-serif;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.aph-pdf-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(194, 4, 5, 0.2);
}

.aph-pdf-more[hidden] {
  display: none !important;
}

.aph-pdf-empty,
.aph-pdf-note,
.aph-pdf-admin-note {
  max-width: 1320px;
  margin: 30px auto 0;
  font:
    400 12px/1.8 "Poppins",
    sans-serif;
  text-align: center;
}

.aph-pdf-empty,
.aph-pdf-admin-note {
  color: var(--aph-books-red);
}

.aph-pdf-note {
  color: #444;
}

.aph-pdf-library :is(button, a):focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 4px;
}

/* Laptop */

@media (max-width: 1100px) {
  .aph-pdf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet */

@media (max-width: 768px) {
  .aph-pdf-library-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  /*
     * Many category buttons remain accessible by horizontal scroll.
     */
  .aph-pdf-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 0 10px;
    scrollbar-width: thin;
  }

  .aph-pdf-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .aph-pdf-library {
    padding: 55px 16px;
  }

  .aph-pdf-grid {
    gap: 12px;
  }

  .aph-pdf-card {
    border-radius: 8px;
  }

  .aph-pdf-card-copy {
    padding: 13px 11px 16px;
  }

  .aph-pdf-card-copy h3 {
    font-size: 15px;
  }

  .aph-pdf-card-copy > span {
    font-size: 9px;
  }

  .aph-pdf-open {
    right: 7px;
    bottom: 7px;
    padding: 6px 9px;
    font-size: 9px;
  }
}

/* Very narrow screens */

@media (max-width: 320px) {
  .aph-pdf-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aph-pdf-library *,
  .aph-pdf-library *::before,
  .aph-pdf-library *::after {
    transition: none !important;
    animation: none !important;
  }

  .aph-pdf-card:hover,
  .aph-pdf-filters button:hover,
  .aph-pdf-more:hover,
  .aph-pdf-card:hover .aph-pdf-cover img {
    transform: none;
  }
}

/* =========================================
   APH — RESPONSIVE BOOK COVER LIBRARY
   ========================================= */

.aphg27-library {
  --aphg27-navy: #001d3d;
  --aphg27-red: #c20405;
  --aphg27-white: #ffffff;

  width: 100%;
  margin: 0;
  padding: clamp(60px, 7vw, 100px) clamp(18px, 5vw, 75px);
  overflow: hidden;
  background: #f7f8fb;
  color: var(--aphg27-navy);
}

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

.aphg27-library [hidden] {
  display: none !important;
}

.aphg27-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

/* Heading */

.aphg27-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 35px;
}

.aphg27-library .aphg27-eyebrow {
  margin: 0 0 14px;
  color: var(--aphg27-red) !important;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.15em;
}

.aphg27-heading h2 {
  margin: 0;
  color: var(--aphg27-navy);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.aphg27-heading h2 em {
  color: var(--aphg27-red);
}

.aphg27-library .aphg27-intro {
  max-width: 420px;
  margin: 0;
  color: #000 !important;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

/* Category buttons */

.aphg27-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.aphg27-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(0, 29, 61, 0.15);
  border-radius: 30px;
  background: #fff;
  color: var(--aphg27-navy);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.aphg27-filters button.is-active {
  border-color: var(--aphg27-navy);
  background: var(--aphg27-navy);
  color: #fff;
}

.aphg27-filters button:hover {
  border-color: var(--aphg27-red);
  transform: translateY(-2px);
}

/* Result count */

.aphg27-library .aphg27-count {
  min-height: 22px;
  margin: 0 0 20px;
  color: #333 !important;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

/* Covers grid */

.aphg27-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.aphg27-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 29, 61, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 29, 61, 0.05);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.aphg27-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 29, 61, 0.13);
}

/* Cover image */

.aphg27-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #e8edf4, #d8e1ec);
}

.aphg27-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.aphg27-card:hover .aphg27-image img {
  transform: scale(1.04);
}

/* Card text */

.aphg27-card-text {
  padding: 17px 16px 20px;
}

.aphg27-card-text > span {
  display: block;
  margin-bottom: 7px;
  color: var(--aphg27-red);
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aphg27-grid h3 {
  display: none;
}

.aphg27-card-text h3 {
  margin: 0;
  color: var(--aphg27-navy);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* Show more */

.aphg27-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.aphg27-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  margin: 0;
  padding: 12px 23px;
  border: 1px solid var(--aphg27-red);
  border-radius: 6px;
  background: var(--aphg27-red);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.aphg27-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(194, 4, 5, 0.2);
}

.aphg27-library .aphg27-empty,
.aphg27-library .aphg27-note,
.aphg27-library .aphg27-folder-note {
  max-width: 800px;
  margin: 28px auto 0;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.aphg27-library .aphg27-empty,
.aphg27-library .aphg27-folder-note {
  color: var(--aphg27-red) !important;
}

.aphg27-library .aphg27-note {
  color: #444 !important;
}

.aphg27-library button:focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 4px;
}

/* Laptop */

@media (max-width: 1100px) {
  .aphg27-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablet */

@media (max-width: 768px) {
  .aphg27-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .aphg27-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: thin;
  }

  .aphg27-filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Mobile */

@media (max-width: 480px) {
  .aphg27-library {
    padding: 55px 16px;
  }

  .aphg27-grid {
    gap: 12px;
  }

  .aphg27-card {
    border-radius: 8px;
  }

  .aphg27-card-text {
    padding: 13px 11px 16px;
  }

  .aphg27-card-text h3 {
    font-size: 15px;
  }

  .aphg27-card-text > span {
    font-size: 9px;
  }
}

/* Very small screens */

@media (max-width: 320px) {
  .aphg27-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aphg27-library *,
  .aphg27-library *::before,
  .aphg27-library *::after {
    transition: none !important;
    animation: none !important;
  }

  .aphg27-card:hover,
  .aphg27-filters button:hover,
  .aphg27-more:hover,
  .aphg27-card:hover .aphg27-image img {
    transform: none;
  }
}

/* Mobile: show all book category tabs */

@media (max-width: 768px) {
  .aphg27-library .aphg27-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 4px 0 10px;
  }

  .aphg27-library .aphg27-filters button {
    flex: 0 1 auto;
    min-height: 42px;
    max-width: 100%;
    padding: 9px 13px;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
}

/* =====================================
   FULL-WIDTH DOUBLE BOOK LOOP
   ===================================== */

section.aphloop30 {
  --loop-cover: 180px;
  --loop-gap: 24px;
  --loop-navy: #001d3d;
  --loop-red: #c20405;

  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(55px, 6vw, 90px) 0;
  overflow: hidden;
  background: #f7f8fb;
  color: var(--loop-navy);
}

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

/* Heading */

.aphloop30 .aphloop30-heading {
  width: min(800px, calc(100% - 36px));
  margin: 0 auto 40px;
  text-align: center;
}

.aphloop30 .aphloop30-eyebrow {
  margin: 0 0 15px;
  color: var(--loop-red);
  font:
    600 10px/1.7 "Poppins",
    sans-serif;
  letter-spacing: 0.15em;
}

.aphloop30 .aphloop30-heading h2 {
  margin: 0 0 20px;
  color: var(--loop-navy);
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.aphloop30 .aphloop30-heading h2 em {
  color: var(--loop-red);
}

.aphloop30 .aphloop30-heading > p:last-child {
  max-width: 600px;
  margin: 0 auto;
  color: #000;
  font:
    400 15px/1.85 "Poppins",
    sans-serif;
}

/* Each row spans the whole section */

.aphloop30 .aphloop30-row {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 42px;
}

.aphloop30 .aphloop30-row + .aphloop30-row {
  margin-top: 15px;
}

.aphloop30 .aphloop30-window {
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding: 14px 0 22px;
}

/* Groups are created automatically by JS */

.aphloop30 .aphloop30-track,
.aphloop30 .aphloop30-group {
  display: flex;
  align-items: flex-start;
  gap: var(--loop-gap);
  width: max-content;
  margin: 0;
  padding: 0;
}

.aphloop30 .aphloop30-track {
  animation: none;
  transition: none;
  will-change: transform;
}

.aphloop30 .aphloop30-group {
  flex: 0 0 auto;
}

.aphloop30 .aphloop30-track img {
  display: block;
  flex: 0 0 var(--loop-cover);
  width: var(--loop-cover);
  min-width: var(--loop-cover);
  max-width: none;
  height: auto;
  aspect-ratio: 2 / 3;
  margin: 0;
  border-radius: 4px;
  object-fit: contain;
  background: #e3e8ef;
  box-shadow: 5px 10px 16px rgba(0, 29, 61, 0.16);
  animation: none;
}

/* Separate side arrows for each row */

.aphloop30 .aphloop30-arrow {
  position: absolute;
  z-index: 4;
  top: calc((100% - 42px) / 2);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 29, 61, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--loop-navy);
  font:
    26px/1 Arial,
    sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 5px 20px rgba(0, 29, 61, 0.2);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.aphloop30 .aphloop30-prev {
  left: 16px;
}

.aphloop30 .aphloop30-next {
  right: 16px;
}

.aphloop30 .aphloop30-arrow::before,
.aphloop30 .aphloop30-arrow::after {
  content: none;
}

/* Individual autoplay controls */

.aphloop30 .aphloop30-pause {
  position: absolute;
  right: 18px;
  bottom: 0;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid rgba(0, 29, 61, 0.18);
  border-radius: 25px;
  background: #fff;
  color: var(--loop-navy);
  font:
    500 10px/1.5 "Poppins",
    sans-serif;
  cursor: pointer;
}

.aphloop30 button:focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 4px;
}

@media (hover: hover) {
  .aphloop30 .aphloop30-arrow:hover {
    background: var(--loop-navy);
    color: #fff;
  }
}

@media (max-width: 1000px) {
  section.aphloop30 {
    --loop-cover: 160px;
    --loop-gap: 20px;
  }
}

@media (max-width: 600px) {
  section.aphloop30 {
    --loop-cover: clamp(120px, 36vw, 165px);
    --loop-gap: 14px;
    padding-block: 55px;
  }

  .aphloop30 .aphloop30-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    font-size: 24px;
  }

  .aphloop30 .aphloop30-prev {
    left: 8px;
  }

  .aphloop30 .aphloop30-next {
    right: 8px;
  }

  .aphloop30 .aphloop30-row + .aphloop30-row {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aphloop30 *,
  .aphloop30 *::before,
  .aphloop30 *::after {
    transition: none !important;
    animation: none !important;
  }
}



/* =====================================
   APHCAT92 — CATEGORY COVER SLIDER
   ===================================== */

.aphcat92-section {
  --cat92-navy: #001d3d;
  --cat92-red: #c20405;

  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(55px, 7vw, 100px) clamp(16px, 4vw, 65px);
  overflow: hidden;
  background: #f7f8fb;
  color: var(--cat92-navy);
}

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

.aphcat92-section [hidden] {
  display: none !important;
}

.aphcat92-container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

/* Heading */

.aphcat92-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 35px;
}

.aphcat92-section .aphcat92-eyebrow {
  margin: 0 0 14px;
  color: var(--cat92-red);
  font: 600 10px/1.7 "Poppins", sans-serif;
  letter-spacing: .15em;
}

.aphcat92-heading h2 {
  margin: 0;
  color: var(--cat92-navy);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.aphcat92-heading h2 em {
  color: var(--cat92-red);
}

.aphcat92-section .aphcat92-intro {
  max-width: 420px;
  margin: 0;
  color: #000;
  font: 400 15px/1.8 "Poppins", sans-serif;
}

/* Category navigation */

.aphcat92-navigation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(0, 29, 61, .09);
  border-radius: 45px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 29, 61, .04);
}

.aphcat92-rail {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 8px 0;

  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.aphcat92-rail::-webkit-scrollbar {
  display: none;
}

.aphcat92-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  margin: 0;
  padding: 11px 20px;
  border: 1px solid #d9dfe7;
  border-radius: 30px;
  background: #fff;
  color: var(--cat92-navy);
  font: 500 12px/1.5 "Poppins", sans-serif;
  text-align: center;
  white-space: nowrap;
  scroll-snap-align: center;
  cursor: pointer;

  transition:
    background-color .25s,
    border-color .25s,
    color .25s,
    box-shadow .25s;
}

.aphcat92-tab.is-active {
  border-color: var(--cat92-navy);
  background: var(--cat92-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 29, 61, .15);
}

.aphcat92-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9dfe7;
  border-radius: 50%;
  background: #f7f8fb;
  color: var(--cat92-navy);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.aphcat92-arrow span {
  font: 25px/1 Arial, sans-serif;
}

.aphcat92-arrow::before,
.aphcat92-arrow::after {
  content: none;
}

.aphcat92-arrow:disabled {
  opacity: .3;
  cursor: default;
}

.aphcat92-section .aphcat92-hint {
  margin: 10px 0 25px;
  color: #555;
  font: 400 11px/1.7 "Poppins", sans-serif;
  text-align: center;
}

/* Current category */

.aphcat92-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.aphcat92-results .aphcat92-selected {
  margin: 0;
  color: var(--cat92-navy);
  font-size: 23px;
  line-height: 1.3;
}

.aphcat92-section .aphcat92-count {
  margin: 0;
  color: #444;
  font: 400 12px/1.7 "Poppins", sans-serif;
}

/* Book grid */

.aphcat92-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.aphcat92-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 29, 61, .08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 29, 61, .05);
  transition: transform .3s, box-shadow .3s;
}

.aphcat92-image {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e8edf4;
}

.aphcat92-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform .45s;
}

.aphcat92-copy {
  padding: 17px 16px 20px;
}

.aphcat92-copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--cat92-red);
  font: 600 10px/1.6 "Poppins", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aphcat92-copy h3 {
  margin: 0;
  color: var(--cat92-navy);
  font-size: 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.aphcat92-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.aphcat92-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid var(--cat92-red);
  border-radius: 6px;
  background: var(--cat92-red);
  color: #fff;
  font: 600 12px/1.6 "Poppins", sans-serif;
  cursor: pointer;
}

.aphcat92-section .aphcat92-empty {
  margin: 30px 0;
  color: var(--cat92-red);
  font: 400 15px/1.8 "Poppins", sans-serif;
  text-align: center;
}

.aphcat92-section button:focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 3px;
}

@media (hover: hover) {
  .aphcat92-tab:hover {
    border-color: var(--cat92-red);
  }

  .aphcat92-arrow:not(:disabled):hover {
    background: var(--cat92-navy);
    color: #fff;
  }

  .aphcat92-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0, 29, 61, .13);
  }

  .aphcat92-card:hover img {
    transform: scale(1.035);
  }
}

@media (max-width: 1100px) {
  .aphcat92-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .aphcat92-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

@media (max-width: 600px) {
  .aphcat92-navigation {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    padding: 5px;
  }

  .aphcat92-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .aphcat92-tab {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 11px;
  }

  .aphcat92-rail {
    gap: 8px;
  }

  .aphcat92-copy {
    padding: 13px 11px 16px;
  }

  .aphcat92-copy h3 {
    font-size: 15px;
  }

  .aphcat92-copy > span {
    font-size: 9px;
  }

  .aphcat92-section .aphcat92-hint {
    font-size: 10px;
  }
}

@media (max-width: 340px) {
  .aphcat92-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aphcat92-section *,
  .aphcat92-section *::before,
  .aphcat92-section *::after {
    transition: none !important;
    animation: none !important;
  }
}


/* ========================================
   APHCAT92 — CATEGORY TABS RESPONSIVE FIX
   ======================================== */

.aphcat92-section .aphcat92-navigation {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 46px !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #e1e5eb;
  border-radius: 45px;
  background: #fff;
}

/* Scrollable category row */

.aphcat92-section .aphcat92-rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 12px !important;

  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding-block: 8px;
  box-sizing: border-box;

  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.aphcat92-section .aphcat92-rail::-webkit-scrollbar {
  display: none;
}

/* Stop buttons shrinking and text overlapping */

.aphcat92-section .aphcat92-rail > .aphcat92-tab {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  justify-content: center;

  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 12px 20px !important;
  box-sizing: border-box;

  border: 1px solid #d9dfe7;
  border-radius: 30px;
  background: #fff;
  color: #001d3d;

  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: normal;
  white-space: nowrap !important;
  text-align: center;
  text-indent: 0;

  scroll-snap-align: center;
  transform: none !important;
  cursor: pointer;
}

.aphcat92-section .aphcat92-rail > .aphcat92-tab.is-active {
  border-color: #001d3d;
  background: #001d3d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 29, 61, 0.15);
}

.aphcat92-section .aphcat92-tab::before,
.aphcat92-section .aphcat92-tab::after {
  content: none !important;
}

/* Arrows */

.aphcat92-section .aphcat92-navigation > .aphcat92-arrow {
  position: static !important;
  display: grid !important;
  place-items: center;
  flex: none;

  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;

  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d9dfe7;
  border-radius: 50%;
  background: #f7f8fb;
  color: #001d3d;
  transform: none !important;
  cursor: pointer;
}

.aphcat92-section .aphcat92-arrow span {
  font: 24px/1 Arial, sans-serif;
}

.aphcat92-section .aphcat92-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.aphcat92-section .aphcat92-navigation button:focus-visible {
  outline: 3px solid #aa762e;
  outline-offset: 3px;
}

/* Responsive section and covers */

.aphcat92-section,
.aphcat92-section .aphcat92-container {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.aphcat92-section .aphcat92-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aphcat92-section .aphcat92-card {
  min-width: 0;
}

@media (max-width: 1100px) {
  .aphcat92-section .aphcat92-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .aphcat92-section .aphcat92-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

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

/* Mobile */

@media (max-width: 600px) {
  .aphcat92-section {
    padding-inline: 16px;
  }

  .aphcat92-section .aphcat92-navigation {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 5px;
    padding: 5px;
    border-radius: 32px;
  }

  .aphcat92-section .aphcat92-rail {
    gap: 9px !important;
    padding-block: 6px;
  }

  .aphcat92-section .aphcat92-rail > .aphcat92-tab {
    max-width: calc(100vw - 160px) !important;
    min-height: 44px;
    padding: 10px 14px !important;
    font-size: 11px;
    line-height: 1.5;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .aphcat92-section .aphcat92-navigation > .aphcat92-arrow {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 340px) {
  .aphcat92-section .aphcat92-grid {
    grid-template-columns: 1fr;
  }
}


.aphcat92-section .aphcat92-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    text-align: center;
}

.aphcat92-section .aphcat92-heading > div {
    width: 100%;
    min-width: 0;
}

.aphcat92-section .aphcat92-eyebrow,
.aphcat92-section #aphcat92-title,
.aphcat92-section .aphcat92-intro {
    text-align: center;
    margin-inline: auto;
}

.aphcat92-section .aphcat92-intro {
    width: 100%;
    max-width: 600px;
    margin-block: 0;
}


/* SERVICES SECTION */
.aphsvc48-section,
.aphsvc48-section * {
    box-sizing: border-box;
}

.aphsvc48-section {
    --aphsvc48-navy: #001d3d;
    --aphsvc48-red: #c20405;

    padding: clamp(48px, 6vw, 90px) 20px;
    background: #f2f5fc;
    color: var(--aphsvc48-navy);
    scroll-margin-top: 100px;
}

.aphsvc48-section .aphsvc48-container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
}

/* Heading */
.aphsvc48-section .aphsvc48-heading {
    max-width: 850px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    text-align: center;
}

.aphsvc48-section .aphsvc48-eyebrow {
    margin: 0 0 16px;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: 0.14em;
}

.aphsvc48-section .aphsvc48-heading h2 {
    margin: 0;
    color: var(--aphsvc48-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.aphsvc48-section .aphsvc48-heading h2 em {
    color: var(--aphsvc48-red);
    font-weight: 400;
}

.aphsvc48-section .aphsvc48-intro {
    max-width: 600px;
    margin: 20px auto 0;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

/* Balanced desktop layout */
.aphsvc48-section .aphsvc48-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 2fr);
    align-items: stretch;
    gap: 24px;
}

/* Left panel */
.aphsvc48-section .aphsvc48-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-width: 0;
    padding: clamp(24px, 3vw, 40px);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(255, 255, 255, 0.09),
            transparent 65%
        ),
        var(--aphsvc48-navy);
    color: #fff;
}

.aphsvc48-section .aphsvc48-quote {
    display: block;
    height: 54px;
    color: #ef3839;
    font-family: Georgia, serif;
    font-size: 86px;
    line-height: 1;
}

.aphsvc48-section .aphsvc48-aside h3 {
    margin: 16px 0 22px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2.6vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.aphsvc48-section .aphsvc48-aside h3 em {
    display: block;
    color: #fff;
}

.aphsvc48-section .aphsvc48-aside p {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.85;
}

.aphsvc48-section .aphsvc48-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: var(--aphsvc48-red);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.aphsvc48-section .aphsvc48-button:hover {
    background: #a80304;
    transform: translateY(-2px);
}

/* Service cards */
.aphsvc48-section .aphsvc48-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.aphsvc48-section .aphsvc48-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: clamp(18px, 2vw, 26px);
    border: 1px solid #dce2ec;
    border-radius: 14px;
    background: #fff;
    color: var(--aphsvc48-navy);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 29, 61, 0.025);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.aphsvc48-section .aphsvc48-number {
    grid-column: 1;
    align-self: center;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--aphsvc48-red);
}

.aphsvc48-section .aphsvc48-copy {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.aphsvc48-section .aphsvc48-copy h3 {
    margin: 0 0 9px;
    color: var(--aphsvc48-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.aphsvc48-section .aphsvc48-copy p {
    margin: 0;
    color: #000;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.aphsvc48-section .aphsvc48-arrow {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f4fa;
    color: var(--aphsvc48-navy);
    font-size: 21px;
    line-height: 1;
    transition:
        background 220ms ease,
        color 220ms ease,
        transform 220ms ease;
}

.aphsvc48-section .aphsvc48-card:hover {
    transform: translateY(-4px);
    border-color: #c20405;
    box-shadow: 0 12px 26px rgba(0, 29, 61, 0.09);
}

.aphsvc48-section .aphsvc48-card:hover .aphsvc48-arrow {
    background: var(--aphsvc48-red);
    color: #fff;
    transform: rotate(45deg);
}

.aphsvc48-section .aphsvc48-card:focus-visible,
.aphsvc48-section .aphsvc48-button:focus-visible {
    outline: 3px solid #3477c7;
    outline-offset: 4px;
}

/* Tablets: horizontal introduction above cards */
@media (max-width: 1000px) {
    .aphsvc48-section .aphsvc48-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .aphsvc48-section .aphsvc48-aside {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
        align-items: center;
        gap: 28px;
    }

    .aphsvc48-section .aphsvc48-aside h3 {
        margin-bottom: 16px;
    }

    .aphsvc48-section .aphsvc48-aside h3 em {
        display: inline;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .aphsvc48-section {
        padding: 44px 16px;
    }

    .aphsvc48-section .aphsvc48-layout {
        gap: 18px;
    }

    .aphsvc48-section .aphsvc48-aside {
        display: flex;
        padding: 26px;
        gap: 22px;
    }

    .aphsvc48-section .aphsvc48-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .aphsvc48-section .aphsvc48-card {
        padding: 20px;
    }

    .aphsvc48-section .aphsvc48-eyebrow {
        font-size: 11px;
        letter-spacing: 0.1em;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .aphsvc48-section .aphsvc48-card,
    .aphsvc48-section .aphsvc48-arrow,
    .aphsvc48-section .aphsvc48-button {
        transition: none;
        transform: none;
    }
}


aside.aphsvc48-aside p {
    color: #fff !important;
}