@font-face {
  font-family: 'SST';
  src: url('../fonts/SST/SST-Bold.otf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'SST';
  src: url('../fonts/SST/SST-Light.otf') format('truetype');
  font-weight: 300;
}
@font-face {
  font-family: 'SST';
  src: url('../fonts/SST/SST-Medium.otf') format('truetype');
  font-weight: 500;
}
@font-face {
  src: url('../fonts/SST/SST-BoldItalic.otf') format('truetype');
  font-family: 'SST';
  font-weight: bold;
  font-style: italic;
}
@font-face {
  src: url('../fonts/SST/SST-Italic.otf') format('truetype');
  font-family: 'SST';
  font-weight: normal;
  font-style: italic;
}
@font-face {
  src: url('../fonts/SST/SST-LightItalic.otf') format('truetype');
  font-family: 'SST';
  font-weight: 300;
  font-style: italic;
}
@font-face {
  src: url('../fonts/SST/SST-MediumItalic.otf') format('truetype');
  font-family: 'SST';
  font-weight: 500;
  font-style: italic;
}
@font-face {
  src: url('../fonts/SST/SST-Heavy.otf') format('truetype');
  font-family: 'SST Heavy';
  font-weight: normal;
  font-style: normal;
}
@font-face {
  src: url('../fonts/SST/SST-HeavyItalic.otf') format('truetype');
  font-family: 'SST Heavy Italic';
  font-weight: normal;
}
@font-face {
  src: url('../fonts/SST/SST-Condensed.otf') format('truetype');
  font-family: 'SST Condensed';
  font-weight: normal;
}
@font-face {
  src: url('../fonts/SST/SST-CondensedBd.otf') format('truetype');
  font-family: 'SST Condensed Bold';
  font-weight: bold;
}
@font-face {
  src: url('../fonts/SST/SST-CondensedMd.otf') format('truetype');
  font-family: 'SST Condensed Medium';
  font-weight: 500;
}
@font-face {
  src: url('../fonts/SST/SST-Roman.otf') format('truetype');
  font-family: 'SST';
  font-weight: normal;
  font-style: normal;
}

/* =========================
   2) Variables & Theme
   ========================= */
:root {
  --sony-orange: #d1410c;
  --nav-height: 56px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

[data-bs-theme="grey"] {
  --bs-body-bg: #f8f8fa;
  --bs-body-bg-rgb: 248, 248, 250;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
}

/* =========================
   3) Base Typography
   ========================= */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'SST', sans-serif !important;
  scroll-padding-top: 100px;
}
p, h1, h2, h3, h4, h5, h6 {
  font-family: 'SST', sans-serif !important;
  letter-spacing: 0px !important;
}
h2 {
  font-size: 2.5em;
  font-weight: 400 !important;
  letter-spacing: 0px !important;
}

/* =========================
   4) Product Header
   ========================= */
.product-header {
  position: relative;
  z-index: 10;
  background: #000;
  height: auto;
  display: flex;
  align-items: center;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  will-change: transform, opacity;
  padding-top: 1rem;
  border-top: .0625rem solid #333333;
}
.product-header.hide {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 100%;
  transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}
.header-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.header-model {
  font-size: 0.8em;
  color: #aaa;
  margin-bottom: 0.2rem;
}
.header-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.header-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* =========================
   5) Header Buy Button
   ========================= */
.header-buy {
  background: var(--sony-orange);
  color: #fff;
  border: .0625rem solid rgba(255, 255, 255, .4);
  border-radius: .0625rem;
  background-color: #d24615;
  -webkit-transition: background-color .25s;
  transition: background-color .25s;
  font-family: 'SST Roman', sans-serif; /* as in original */
  -webkit-font-smoothing: subpixel-antialiased;
  line-height: 1.2;
  padding: .6875rem 1.5rem;
  font-size: .8125rem;
  min-width: 6.25rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  order: 3; /* mobile reordering section keeps this as default */
}
.header-buy:hover {
  background: #b93a0a;
  color: #fff !important;
}

/* =========================
   6) Sticky Nav & Inner
   ========================= */
.sticky-nav {
  top: 0;
  z-index: 9999;
  background: #000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border: none;
  box-shadow: none;
  width: 100%;
  transition: box-shadow var(--transition), opacity var(--transition), background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
}
.nav-left {
  display: flex;
  align-items: center;
}
.nav-product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-right: 0;
  min-width: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  width: 0;
  position: static;
  transform: none;
  align-self: center;
  line-height: 1.2;
  height: auto;
}
.sticky-nav.scrolled .nav-product-name {
  opacity: 1;
  pointer-events: auto;
  width: auto;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 0;
  height: var(--nav-height);
  align-items: center;
}
.sticky-nav.scrolled .nav-list {
  margin-left: 1rem;
}

/* =========================
   7) Nav Items
   ========================= */
.NavItem {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  background: none;
  transition: background-color 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.NavItem:hover,
.NavItem:focus-within {
  background-color: #444;
  transition: background-color 0.25s cubic-bezier(0.4,0,0.2,1);
}
.NavItem.-isCurrent { position: relative; }
.NavItem.-isCurrent::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: #fff;
  transition: background 0.25s cubic-bezier(0.4,0,0.2,1), height 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}
.NavItemLink {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0.25rem 0.9rem;
  margin: 0;
  background: none;
  border: none;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s;
  opacity: 0.85;
  box-sizing: border-box;
}
.NavItemLink[aria-current="true"]::after,
.NavItem.-isCurrent .NavItemLink::after { content: none; }
.NavItemLinkLabel {
  font-size: 1rem;
  font-weight: 400;
  color: inherit;
  margin: 0;
  padding: 0;
}

/* Add padding only to the last nav item link */
.mobile-nav li:last-child { padding-bottom: 0.8rem; }

/* Buy link in nav (hidden by later rule) */
.NavBuyLink {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: none;
  vertical-align: middle;
  margin-bottom: 0;
  border: .0625rem solid rgba(255, 255, 255, .4);
  border-radius: .0625rem;
  background-color: #d24615;
  -webkit-transition: background-color .25s;
  transition: background-color .25s;
  font-family: 'SST Roman', sans-serif;
  -webkit-font-smoothing: subpixel-antialiased;
  line-height: 1.2;
  padding: .6875rem 1.5rem;
  font-size: .8125rem;
  min-width: 6.25rem;
  text-align: center;
  color: #fff;
  cursor: pointer;
  align-self: center;
  text-decoration: none;
}
.NavBuyLink:hover,
.NavBuyLink:focus {
  background-color: #b93a0a;
  text-decoration: none;
  color: #fff;
}
div.header-title-row a {
  text-decoration: none;
}
/* =========================
   8) Media Queries (Layout)
   ========================= */
@media (max-width: 1200px) {
  .nav-inner { max-width: 100%; padding: 0 1rem; }
  .nav-product-name { margin-right: 1.5rem; }
  .sticky-nav.scrolled .nav-list { margin-left: 0rem; }
  .nav-list { gap: 1.5rem; }
}
@media (max-width: 900px) {
  .product-header { padding-left: 1rem; padding-right: 1rem; }
  .header-title { font-size: 1.3rem; }
  .nav-product-name { font-size: 1rem; margin-right: 0.7rem; }
  .nav-list { gap: 1rem; }
  .header-img { height: 44px; }
}
@media (max-width: 600px) {
  .product-header, .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem 0.5rem;
  }
  .header-right { align-items: flex-start; }
  .sticky-nav { height: auto; }
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .nav-left { gap: 0.7rem; }
}

/* =========================
   9) Features Section
   ========================= */
.features-common__eyebrow {
  font-size: 15px;
  line-height: 1.47;
  color: var(--black);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.features-common__heading {
  font-size: 24px;
  line-height: 1.16;
  color: var(--grayMediumCool);
  margin-bottom: 20px;
}
.features-heading {
  font-size: 38px;
  line-height: 1.16;
  color: var(--grayMediumCool);
  margin-bottom: 20px;
}
.features-common_title {
  font-size: 24px;
  line-height: 1.16;
  color: var(--grayMediumCool);
  margin-bottom: 12px;
  margin-top: 15px;
}
.features-common__text {
  font-size: 15px;
  line-height: 1.47;
  color: #6b6b7b;
  margin-bottom: 20px;
}
.features-point__heading {
  font-size: 1.6rem;
  color: var(--grayMediumCool);
}
a.sony-btn {
  display: inline-block;
  margin-bottom: 0;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  min-width: 140px;
  height: 40px;
  background-color: #2d75c7;
  color: #ffffff;
  border: 1px solid;
  padding: 0 24px;
  font-size: 13px;
  line-height: 3.0769230769;
  letter-spacing: normal;
  font-display: swap;
  text-decoration: none;
  -webkit-transition: .25s;
  transition: .25s;
}
a.sony-btn:hover {
  background-color: rgba(0, 0, 0, 0);
  color: #2d75c7;
  -webkit-transition: .25s;
  transition: .25s;
}

/* =========================
   10) Tables
   ========================= */
th {
  font-size: 1rem;
  font-weight: 500;
}
th[scope="row"] {
  color: #2f353d !important;
  font-size: .725em;
  line-height: 1.63636;
  text-transform: uppercase;
  width: 30%;
  border-color: #e4e7eb;
  border-style: solid;
  border-width: 0 .0625rem .0625rem;
  background-color: #fff;
  font-weight: 500;
  text-align: left;
}
td {
  color: #6b6b7b !important;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.53846;
}
.table-active th { background-color: #f1f5f9 !important; }
.table-active {
  --bs-table-bg-state: transparent !important;
  --bs-table-color-state: inherit !important;
  background-color: transparent !important;
}
.table td,
.table th[scope="row"] { padding: 1rem 1rem; }
.table th { padding: 0.5rem 1rem; }
table.table-bordered td,
table.table-bordered th {
  border: 1px solid #eef0f2;
}

/* =========================
   11) Sticky Wrapper & Links
   ========================= */
.sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #000;
  overflow: visible;
}
a.internal-link {
  font-size: 13px;
  text-decoration: none;
}

/* =========================
   12) Mobile Nav & Toggle
   - Use animated max-height pattern (later rules)
   ========================= */
.nav-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  padding-top: 0.6rem;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
}
.nav-toggle.active { color: transparent; }
.nav-toggle.active::before {
  content: "✕";
  color: white;
  position: absolute;
  padding-top: 0.6rem;
  top: 0; left: 0; right: 0;
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.nav-toggle:hover { opacity: 0.8; }

/* Animated dropdown that pushes content down */
.mobile-nav {
  display: block;               /* keep flow for animation */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  padding-bottom: 1.5em;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    transform 0.3s ease;
}
.mobile-nav.show {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
}

/* Desktop still hides mobile nav */
@media (min-width: 840px) {
  .nav-toggle { display: none; }
  .mobile-nav {
    display: none !important;
    max-height: none;
    opacity: 1;
    transform: none;
  }
}

/* Reorder items for mobile */
@media (max-width: 839.98px) {
  .sticky-wrapper .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .header-buy { order: 1; }
  .nav-toggle { order: 2; margin-left: auto; }
  .nav-list { display: none !important; }
}

/* =========================
   13) Quadrant Graph
   ========================= */
.quadrant-wrapper {
  position: relative;
  min-height: 500px;
  background: white;
  flex-grow: 1;
}
/* Axes */
.axis-x, .axis-y {
  position: absolute;
  background-color: #cdd1d6;
  z-index: 1;
}
.axis-x {
  top: 50%;
  left: 5%;
  width: 85%;
  height: 2px;
  transform: translateY(-50%);
}
.axis-y {
  top: 2.5%;
  left: 50%;
  height: 95%;
  width: 2px;
  transform: translateX(-50%);
}
/* Axis Arrows */
.axis-arrow-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #cdd1d6;
}
.axis-arrow-left::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid #cdd1d6;
}
.axis-arrow-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #cdd1d6;
}
.axis-arrow-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid #cdd1d6;
}
/* Quadrant Buttons */
.quadrant-button {
  position: absolute;
  max-width: 200px;
  padding: 1rem;
  border-radius: .0625rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  z-index: 1;
}
.plus-icon {
  display: inline-block;
  margin-top: 0.5rem;
  background: white;
  color: black;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
}
.graph-top-left { top: 16%; left: 20%; background-color: #d1dc29; color: #000; }
.graph-top-right { top: 16%; right: 20%; background-color: #5fc3d5; color: #000; }
.graph-bottom-left { bottom: 18%; left: 20%; background-color: #c51695; color: #fff; }
.graph-bottom-right { bottom: 20%; right: 41.3%; background-color: #ff7f1f; color: #000; }

/* Mobile (Quadrant) */
@media (max-width: 767.98px) {
  .quadrant-wrapper {
    min-height: auto;
    padding: 2rem 1rem;
  }
  .axis-x, .axis-y { display: none; }
  .quadrant-button {
    position: static;
    width: 90%;
    margin: 1rem auto;
  }
}

/* =========================
   14) Modal
   ========================= */
.custom-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.custom-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }

/* Overlay */
.custom-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.custom-modal.show .custom-modal__overlay { opacity: 1; }

/* Container */
.custom-modal__container {
  background: #fff;
  border-radius: .0625rem;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  position: relative;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.3s ease;
}
.custom-modal.show .custom-modal__container {
  transform: translateY(0);
  opacity: 1;
}

/* Head / Content / Footer */
.custom-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}
.custom-modal__content { padding: 1rem 1.2rem; }
.custom-modal__footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}
.custom-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
h2.modal-title {
  font-size: 32px;
  line-height: 1.4;
  max-width: 600px;
  margin: 0;
}

/* Mobile Full-Screen */
@media (max-width: 767px) {
  .custom-modal__container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    margin: 0;
    padding: 1rem;
    transform: translateY(100%);
  }
  .custom-modal.show .custom-modal__container { transform: translateY(0); }
}

/* =========================
   15) Step List / Cards
   ========================= */
.step-list {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}
/* Central vertical line */
.step-list::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: #dee2e6;
  transform: translateX(-50%);
  z-index: 0;
}
/* Step items alternate left/right */
.step-item {
  position: relative;
  width: 50%;
  padding: 2rem;
}
.step-item:nth-child(odd) { left: 0; text-align: right; }
.step-item:nth-child(even) { left: 50%; text-align: left; }

/* Step card */
.step-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 1.5rem;
  position: relative;
  height: 100%;
  text-align: center;
}
/* Step number (later definition kept) */
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2d75c7;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  left: 5px;
}
.step-card h5 {
  font-weight: 600;
  color: #212529;
}
.step-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
}
/* Responsive: stack into single column */
@media (max-width: 767px) {
  .step-card { padding: 1rem; }
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* =========================
   16) Highlight Box & Partners
   ========================= */
.highlight-box { position: relative; background: transparent; }
.highlight-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  background: #d6e526;
  z-index: 0;
}
.highlight-box__content {
  position: relative;
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 1.5rem;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .highlight-box::after {
    bottom: 0;
    top: -10px;
    right: 0;
    width: 100%;
    height: 100%;
    background: #d6e526;
  }
}
.highlight-box-colour-alt::after {
  background: #5fc3d5;
}
.highlight-box-colour-alt-2::after {
  background: #c51695;
}
.highlight-box-colour-alt-3::after {
  background: #ff7f1f;
}
a.partner-link { text-decoration: none; }
.case-category span {
    background: #DEE2E7;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
}
.filter-pill {
    display: inline-block;
    padding: 8px 20px;
    margin: 4px;
    background: #f6f6f6;
    border: 1px solid #ddd;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

/* hover */
.filter-pill:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
}

/* active state */
.filter-pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* for touch devices: reduce jump */
@media (hover: none) {
    .filter-pill:hover {
        transform: none;
    }
}
