/* ==========================================================================
   Amnet Resources: Single Case Study Post Stylesheet
   Source: case-study inner page.html (Amnet ContentSource Thought Leadership System)
   Fidelity: 100% visual parity with Amnet Editorial Design System
   Hardened for Hostinger/mobile overflow (375px) & dynamic interaction
   ========================================================================== */

/* ---- Essential Cascade Guards & Overflow ---- */
[hidden] {
  display: none !important;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.ahg > *,
.csc-g > *,
.csj-g > *,
.mgrid > * {
  min-width: 0;
}

/* ---- Fixed Reading Progress Bar (.rprog) ---- */
.rprog {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: var(--accent, #ee5b42);
  z-index: 200;
  transition: width .1s linear;
}

/* ---- Hero Section (.ahero) ---- */
.ahero {
  background: var(--mist, #f2f4f7);
  border-bottom: 1px solid var(--line, #dbdee2);
  position: relative;
}

.ahero .wrap {
  padding-top: 28px !important;
  padding-bottom: 32px !important;
}

.ahero .crumbs {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--faint, #94969d);
  margin-bottom: 22px !important;
  text-transform: uppercase;
}

.ahero .crumbs a {
  color: var(--faint, #94969d);
  text-decoration: none;
  transition: color .2s ease;
}

.ahero .crumbs a:hover {
  color: var(--accent, #ee5b42);
}

.ahero .crumbs .here {
  color: var(--ink, #1d2024);
  font-weight: 500;
}

.ahg {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center !important;
}

.atag2 {
  display: inline-block;
  background: var(--accent, #ee5b42);
  color: #fff;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  padding: 5px 10px;
  margin: 0 0 14px !important;
  text-decoration: none;
  text-transform: uppercase;
}

.ahero h1 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 34px !important;
  line-height: 1.18 !important;
  letter-spacing: -.01em !important;
  margin: 0 0 20px !important;
  max-width: 26ch !important;
  text-wrap: balance;
  color: var(--ink, #1d2024);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.byl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line2, #cfd2d7);
}

.bdt {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted, #6b6e75);
  text-transform: uppercase;
}

/* ---- "How We Approach Every Case" Widget (.how) ---- */
.how {
  background: var(--ink, #1d2024);
  box-shadow: 0 24px 48px rgba(29, 32, 36, .2);
  border: 1px solid #3a3e45;
  border-top: 3px solid var(--accent, #ee5b42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: relative;
}

.howh {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent, #ee5b42);
  padding: 18px 24px;
  border-bottom: 1px solid #2a2d33;
  text-transform: uppercase;
}

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

.hw {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 28px 1fr;
  grid-template-rows: auto auto;
  gap: 0 14px;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #2a2d33;
  color: #a3a7ae;
  padding: 20px 24px;
  cursor: pointer;
  font: inherit;
  transition: background .3s ease, color .3s ease;
  box-sizing: border-box;
}

.hwl li:last-child .hw {
  border-bottom: none;
}

.hw:hover {
  background: rgba(255, 255, 255, .03);
  color: #fff;
}

.hw.on {
  background: rgba(238, 91, 66, .08);
  color: #fff;
}

.hw:focus-visible {
  outline: 2px solid var(--accent, #ee5b42);
  outline-offset: -2px;
}

.hwi {
  grid-row: 1/3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #4a4e56;
  display: grid;
  place-items: center;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
  flex-shrink: 0;
}

.hwi svg {
  width: 22px;
  height: 22px;
  fill: #a3a7ae;
  stroke: #a3a7ae;
  transition: fill .3s ease, stroke .3s ease;
}

.hw.on .hwi {
  background: var(--accent, #ee5b42);
  border-color: var(--accent, #ee5b42);
  transform: scale(1.06);
}

.hw.on .hwi svg {
  fill: #fff;
  stroke: #fff;
}

.hwn {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  color: #6b6e75;
}

.hw.on .hwn {
  color: #ffb3a4;
}

.hwt {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hwd {
  grid-column: 2/4;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 20px;
  line-height: 1.35;
  color: #e6e7ea;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s ease, opacity .35s ease, margin .35s ease;
}

.hw.on .hwd {
  max-height: 180px;
  opacity: 1;
  margin-top: 10px;
}

.hw > i {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent, #ee5b42);
  transition: width .05s linear;
}

/* ---- Client Profile & Social Share Section (.csc) ---- */
.csc.plain {
  padding: 56px 0 40px;
  background: #fff;
}

.csc-g {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 56px;
  align-items: end;
}

.csc-g .eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.csc-t {
  margin: 0;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 30px;
  line-height: 1.3;
  color: var(--ink, #1d2024);
  max-width: 34ch;
}

.csc-s {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--ink, #1d2024);
}

.csc-s .lb2 {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted, #6b6e75);
  padding: 12px 0 6px;
  text-transform: uppercase;
}

.csc-s a,
.csc-s button {
  font-family: var(--sans, 'Libre Franklin', sans-serif);
  font-size: 14px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line, #dbdee2);
  padding: 10px 0;
  color: var(--ink, #1d2024);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease;
}

.csc-s a:hover,
.csc-s button:hover {
  color: var(--blue, #0061a8);
}

.csc-s button:focus-visible,
.csc-s a:focus-visible {
  outline: 2px solid var(--blue, #0061a8);
  outline-offset: 2px;
}

/* ---- Dark Key Results Bar (.csf) ---- */
.csf.dark.rv {
  padding: 48px 0 52px;
  position: relative;
  overflow: hidden;
  background: var(--ink, #1d2024);
  color: #fff;
}

.csf::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(238, 91, 66, .3), rgba(238, 91, 66, 0) 62%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, transparent 1px 24px);
  pointer-events: none;
}

.csf .eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.csf-g {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-dark, #2d2f36);
}

.csf-i {
  padding: 26px 26px 6px 0;
  border-right: 1px solid var(--rule-dark, #2d2f36);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--d, 0ms), transform .6s var(--d, 0ms);
}

.csf-i:last-child {
  border-right: none;
}

.csf-i + .csf-i {
  padding-left: 26px;
}

.csf-i b {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 58px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.csf-i b i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.csf-i b svg {
  width: 34px;
  height: 34px;
  stroke: var(--accent, #ee5b42);
}

.csf-i span {
  display: block;
  margin-top: 12px;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .14em;
  color: #ffb3a4;
  text-transform: uppercase;
  line-height: 1.5;
}

.csf.in .csf-i {
  opacity: 1;
  transform: none;
}

/* ---- Structured 3-Act Story (.csj) ---- */
.csj.plain.rv {
  padding: 60px 0 56px;
  background: #fff;
}

.csj .eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.csj .h2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 40px;
  color: var(--ink, #1d2024);
}

.csj-g {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.csj-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  height: 2px;
  background: var(--line, #dbdee2);
  z-index: 0;
}

.csj-line i {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--accent, #ee5b42);
  transition: width 1.6s cubic-bezier(.6, 0, .3, 1);
}

.csj.in .csj-line i {
  width: 100%;
}

.csj-c {
  position: relative;
  background: #fff;
  border: 1px solid var(--line, #dbdee2);
  padding: 70px 26px 26px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--d, 0ms), transform .6s var(--d, 0ms), box-shadow .3s, border-color .3s;
  box-sizing: border-box;
  z-index: 1;
}

.csj.in .csj-c {
  opacity: 1;
  transform: none;
}

.csj-c:hover {
  border-color: var(--accent, #ee5b42);
  box-shadow: 0 18px 36px rgba(29, 32, 36, .1);
}

.csj-n {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--ink, #1d2024);
  color: #fff;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 13px;
  letter-spacing: .06em;
  transition: background .3s ease;
}

.csj-c:hover .csj-n {
  background: var(--accent, #ee5b42);
}

.csj-c h3 {
  margin: 0 0 14px;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--accent, #ee5b42);
  text-transform: uppercase;
}

.csj-c p {
  margin: 0;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 21px;
  line-height: 1.4;
  color: var(--ink, #1d2024);
}

.csj-c ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.csj-c li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body, #454850);
}

.csj-c li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent, #ee5b42);
}

/* Card 03: Inverted Titanium Dark Surface */
.csj-c:last-child {
  background: var(--ink, #1d2024);
  border-color: var(--ink, #1d2024);
}

.csj-c:last-child li {
  color: #e6e7ea;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 19px;
  line-height: 1.4;
}

.csj-c:last-child .csj-n {
  background: var(--accent, #ee5b42);
}

/* ---- Prev / Next Navigation (.pn) ---- */
nav.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--ink, #1d2024);
  margin-top: 44px;
}

nav.pn a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--ink, #1d2024);
  transition: padding .25s ease;
}

nav.pn a + a,
.pn-next {
  text-align: right;
  border-left: 1px solid var(--line, #dbdee2);
  padding-left: 20px;
}

nav.pn a:hover .ph2 {
  color: var(--blue, #0061a8);
}

.pn .pl {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted, #6b6e75);
  text-transform: uppercase;
}

.pn .ph2 {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 20px;
  line-height: 1.25;
  transition: color .2s ease;
  color: var(--ink, #1d2024);
}

/* ---- Related Case Studies (.dark.more) ---- */
.dark.more {
  padding: 56px 0;
  background: var(--ink, #1d2024);
  color: #fff;
}

.more .mhd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.more .eyebrow {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent, #ee5b42);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.more .h2 {
  color: #fff;
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
  margin: 0;
}

.more .tl2 {
  color: #ffb3a4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.more .tl2:hover {
  text-decoration: underline;
}

.mgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark, #2d2f36);
}

.mc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 22px 0;
  text-decoration: none;
  color: #c9ccd2;
  border-right: 1px solid var(--rule-dark, #2d2f36);
  transition: background .25s ease, padding .25s ease;
  box-sizing: border-box;
}

.mc + .mc {
  padding-left: 22px;
}

.mc:last-child {
  border-right: none;
}

.mc:hover {
  background: #2a2d33;
  padding-left: 22px;
}

.mt2 {
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #ffb3a4;
  text-transform: uppercase;
}

.mh {
  font-family: var(--serif, 'Newsreader', Georgia, serif);
  font-size: 21px;
  line-height: 1.25;
  color: #fff;
  margin: 0;
}

.mb {
  font-size: 13px;
  color: #a3a7ae;
  line-height: 1.45;
}

.mg {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* ---- Responsive Breakpoints ---- */
@media (max-width: 1360px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1100px) {
  .ahg {
    gap: 40px;
  }
}

@media (max-width: 1000px) {
  .ahg {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ahero h1 {
    font-size: 26px !important;
  }

  .hwd {
    font-size: 17px;
  }

  .hw {
    padding: 16px 18px;
  }

  .csc-g {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .csc-t {
    font-size: 24px;
  }

  .csf-i b {
    font-size: 42px;
  }

  .csj-g {
    grid-template-columns: 1fr;
  }

  .csj-line {
    display: none;
  }

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

  .mc,
  .mc + .mc {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-dark, #2d2f36);
  }

  .mc:hover {
    padding-left: 12px;
  }

  .more .mhd {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .pn {
    grid-template-columns: 1fr;
  }

  .pn a + a,
  .pn-next {
    text-align: left;
    border-left: none;
    border-top: 1px solid var(--line, #dbdee2);
    padding-left: 0;
  }

  .csf-i,
  .csf-i + .csf-i {
    border-right: none;
    border-bottom: 1px solid var(--rule-dark, #2d2f36);
    padding: 20px 0;
  }
}

@media (max-width: 375px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ahero h1 {
    font-size: 22px !important;
  }

  .csf-i b {
    font-size: 34px;
  }

  .csj-c {
    padding: 60px 18px 18px;
  }

  .csj-c p {
    font-size: 18px;
  }
}

/* ---- Accessibility / Motion Settings ---- */
@media (prefers-reduced-motion: reduce) {
  .csf-i,
  .csj-c,
  .csj-line i {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    width: 100% !important;
  }
  .hw > i {
    transition: none !important;
  }
}
