/* ==========================================
   IMAGE SETTINGS

   Replace these two URLs with your images.
========================================== */

:root {
  --background-image: url("");

  --character-image: url("");

  /* ========================================
     COLOUR PALETTE
  ======================================== */

  --navy-950: #080d14;
  --navy-900: #0d141f;
  --navy-850: #111b28;
  --navy-800: #172333;
  --navy-750: #1d2b3e;

  --gold-100: #fff3c9;
  --gold-200: #f8df9b;
  --gold-300: #e9c46a;
  --gold-400: #cfa64f;
  --gold-500: #a97c31;
  --gold-600: #75501f;

  --cream: #f7f0df;
  --cream-muted: #c9c0ad;

  --white: #ffffff;
  --black: #000000;

  --panel-width: 43%;
  --transition: 220ms ease;
}

/* ==========================================
   RESET
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--navy-950);
  color: var(--cream);
  font-family: "Inter", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

/* ==========================================
   PAGE LAYOUT
========================================== */

.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, var(--panel-width));
  width: 100%;
  min-height: 100vh;
}

/* ==========================================
   LEFT VISUAL PANEL
========================================== */

.visual-panel {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #27241f;
}

.visual-panel__background {
  position: absolute;
  inset: 0;
  z-index: -6;
  background-image: var(--background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.025);
}

.visual-panel__shade {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    linear-gradient(
      90deg,
      rgba(7, 11, 17, 0.08) 0%,
      rgba(7, 11, 17, 0.04) 45%,
      rgba(7, 11, 17, 0.8) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 8, 12, 0.9) 0%,
      rgba(5, 8, 12, 0.08) 46%,
      rgba(5, 8, 12, 0.35) 100%
    );
}

.visual-panel__light {
  position: absolute;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 47% 28%,
      rgba(255, 216, 145, 0.2),
      transparent 36%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(221, 151, 56, 0.15),
      transparent 40%
    );
  mix-blend-mode: screen;
}

.visual-panel__texture,
.information-panel__texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.12) 4px
  );
}

/* ==========================================
   VISUAL FRAME
========================================== */

.visual-frame {
  position: absolute;
  inset: 24px;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(233, 196, 106, 0.26);
}

.visual-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(233, 196, 106, 0.1);
}

.visual-frame__corner {
  position: absolute;
  width: 46px;
  height: 46px;
}

.visual-frame__corner::before,
.visual-frame__corner::after {
  content: "";
  position: absolute;
  background: var(--gold-300);
  box-shadow: 0 0 12px rgba(233, 196, 106, 0.35);
}

.visual-frame__corner::before {
  width: 46px;
  height: 2px;
}

.visual-frame__corner::after {
  width: 2px;
  height: 46px;
}

.visual-frame__corner--top-left {
  top: -2px;
  left: -2px;
}

.visual-frame__corner--top-right {
  top: -2px;
  right: -2px;
  transform: rotate(90deg);
}

.visual-frame__corner--bottom-left {
  bottom: -2px;
  left: -2px;
  transform: rotate(-90deg);
}

.visual-frame__corner--bottom-right {
  right: -2px;
  bottom: -2px;
  transform: rotate(180deg);
}

/* ==========================================
   VISUAL CATEGORY
========================================== */

.visual-panel__category {
  position: absolute;
  top: 52px;
  left: 54px;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 11px 18px 11px 12px;

  border: 1px solid rgba(233, 196, 106, 0.32);
  border-left: 3px solid var(--gold-300);
  background: linear-gradient(
    90deg,
    rgba(10, 16, 25, 0.92),
    rgba(10, 16, 25, 0.58)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.category-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border: 1px solid var(--gold-400);
  border-radius: 50%;

  color: var(--gold-200);
  background: radial-gradient(
    circle,
    rgba(233, 196, 106, 0.28),
    rgba(233, 196, 106, 0.05)
  );
}

.category-label,
.category-name {
  display: block;
}

.category-label {
  margin-bottom: 2px;
  color: var(--cream-muted);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.category-name {
  color: var(--gold-100);
  font-family: "Cinzel", serif;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

/* ==========================================
   CHARACTER
========================================== */

.character {
  position: absolute;
  z-index: 2;
  right: -3%;
  bottom: 0;

  width: min(62vw, 850px);
  height: 94%;

  pointer-events: none;
}

.character__glow {
  position: absolute;
  z-index: -1;
  right: 8%;
  bottom: 6%;

  width: 76%;
  height: 76%;

  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 217, 151, 0.3),
    rgba(220, 153, 63, 0.08) 44%,
    transparent 70%
  );
  filter: blur(10px);
}

.character__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;

  content: var(--character-image);

  filter: drop-shadow(-28px 22px 25px rgba(0, 0, 0, 0.42)) saturate(0.96)
    contrast(1.03);
}

/* ==========================================
   HERO TITLE
========================================== */

.hero-title {
  position: absolute;
  z-index: 8;
  left: 7%;
  bottom: 18%;

  width: min(580px, 65%);

  text-shadow:
    0 3px 4px rgba(0, 0, 0, 0.8),
    0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero-title__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(370px, 90%);
  margin-bottom: 13px;
  color: var(--gold-300);
}

.hero-title__ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}

.hero-title__ornament span:last-child {
  background: linear-gradient(90deg, var(--gold-300), transparent);
}

.hero-title__ornament i {
  font-size: 0.65rem;
  font-style: normal;
}

.hero-title__eyebrow {
  margin: 0 0 5px;
  color: var(--gold-200);
  font-size: clamp(0.68rem, 1vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 0;
  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: clamp(3.1rem, 6.5vw, 7.4rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero-title__subtitle {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);

  font-family: "Cinzel", serif;
  font-size: clamp(0.76rem, 1vw, 1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title__subtitle::before {
  content: "◆";
  color: var(--gold-300);
  font-size: 0.5rem;
}

/* ==========================================
   CLIENT CARD
========================================== */

.client-card {
  position: absolute;
  z-index: 9;
  left: 7%;
  bottom: 8%;

  display: flex;
  align-items: center;
  gap: 12px;
}

.client-card__avatar {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  border: 1px solid var(--gold-300);
  border-radius: 50%;

  color: var(--gold-100);
  background: linear-gradient(
    145deg,
    rgba(233, 196, 106, 0.32),
    rgba(41, 28, 17, 0.82)
  );

  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  box-shadow:
    0 0 0 4px rgba(7, 11, 17, 0.55),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.client-card__label,
.client-card__content strong {
  display: block;
}

.client-card__label {
  margin-bottom: 3px;
  color: var(--gold-200);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.client-card__content strong {
  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==========================================
   VISUAL QUOTE
========================================== */

.visual-quote {
  position: absolute;
  z-index: 9;
  right: 6%;
  bottom: 6%;

  width: max(310px, 31%);
  margin: 0;
  padding: 13px 15px 13px 38px;

  border-right: 2px solid var(--gold-300);
  background: linear-gradient(90deg, transparent, rgba(7, 11, 17, 0.62));

  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.65;
  text-align: right;
}

.visual-quote p {
  margin: 0;
}

.visual-quote__mark {
  position: absolute;
  top: -6px;
  left: 18px;
  color: var(--gold-300);
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  opacity: 0.55;
}

/* ==========================================
   RIGHT INFORMATION PANEL
========================================== */

.information-panel {
  position: relative;
  z-index: 20;
  height: 100vh;
  overflow: hidden;

  border-left: 1px solid rgba(233, 196, 106, 0.28);

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(87, 119, 155, 0.13),
      transparent 35%
    ),
    linear-gradient(
      145deg,
      var(--navy-750),
      var(--navy-900) 42%,
      var(--navy-950)
    );

  box-shadow:
    -24px 0 60px rgba(0, 0, 0, 0.42),
    inset 5px 0 18px rgba(255, 255, 255, 0.02);
}

.information-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -6px;
  bottom: 0;
  width: 5px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-400) 15%,
    var(--gold-600) 50%,
    var(--gold-400) 85%,
    transparent
  );
  opacity: 0.72;
}

.information-panel__content {
  position: relative;
  z-index: 2;

  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  padding: 44px clamp(28px, 3vw, 58px) 30px;

  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) rgba(255, 255, 255, 0.05);
}

.information-panel__content::-webkit-scrollbar {
  width: 7px;
}

.information-panel__content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}

.information-panel__content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--gold-500);
}

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

.mobile-brand {
  display: none;
}

/* ==========================================
   PROFILE HEADER
========================================== */

.profile-header {
  display: flex;
  align-items: center;
  gap: 19px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(233, 196, 106, 0.19);
}

.profile-header__badge {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 72px;
  height: 72px;

  border: 1px solid var(--gold-300);
  border-radius: 50%;

  color: var(--gold-100);
  background: radial-gradient(
    circle,
    rgba(233, 196, 106, 0.2),
    rgba(10, 16, 25, 0.72) 68%
  );

  font-family: "Cinzel", serif;
  font-size: 1.15rem;

  box-shadow:
    0 0 0 5px rgba(233, 196, 106, 0.06),
    inset 0 0 20px rgba(233, 196, 106, 0.08);
}

.profile-header__badge::before,
.profile-header__badge::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-300);
  background: var(--navy-900);
  transform: rotate(45deg);
}

.profile-header__badge::before {
  top: 4px;
  right: 4px;
}

.profile-header__badge::after {
  bottom: 4px;
  left: 4px;
}

.profile-header__type {
  margin: 0 0 4px;
  color: var(--gold-300);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-header h2 {
  margin: 0;
  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.profile-header__description {
  margin: 5px 0 0;
  color: var(--cream-muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ==========================================
   QUICK DETAILS
========================================== */

.quick-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 27px;
}

.quick-detail {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 10px;

  border: 1px solid rgba(233, 196, 106, 0.13);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.012)
  );
}

.quick-detail__icon {
  flex: 0 0 auto;
  color: var(--gold-300);
  font-size: 0.55rem;
}

.quick-detail span:not(.quick-detail__icon),
.quick-detail strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-detail span:not(.quick-detail__icon) {
  margin-bottom: 2px;
  color: var(--cream-muted);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-detail strong {
  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 600;
}

/* ==========================================
   SECTION HEADING
========================================== */

.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.section-heading span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233, 196, 106, 0.32));
}

.section-heading span:last-child {
  background: linear-gradient(90deg, rgba(233, 196, 106, 0.32), transparent);
}

.section-heading h3 {
  margin: 0;
  color: var(--gold-200);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

/* ==========================================
   STORY ACCORDION
========================================== */

.story-accordion {
  display: grid;
  gap: 9px;
}

.story-card {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(233, 196, 106, 0.14);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );

  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;

  width: 2px;

  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-300),
    transparent
  );

  opacity: 0;
  transition: opacity var(--transition);
}

.story-card:hover {
  border-color: rgba(233, 196, 106, 0.33);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065),
    rgba(233, 196, 106, 0.025)
  );
}

.story-card[open] {
  border-color: rgba(233, 196, 106, 0.37);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.065),
    rgba(233, 196, 106, 0.035)
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.19);
}

.story-card[open]::before {
  opacity: 1;
}

/* ==========================================
   STORY SUMMARY
========================================== */

.story-card__summary {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 31px;
  align-items: center;
  gap: 12px;

  min-height: 66px;
  padding: 9px 14px;

  cursor: pointer;
  list-style: none;
  user-select: none;
}

.story-card__summary::-webkit-details-marker {
  display: none;
}

.story-card__number {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border: 1px solid rgba(233, 196, 106, 0.3);
  border-radius: 50%;

  color: var(--gold-300);
  background: rgba(233, 196, 106, 0.035);

  font-family: "Cinzel", serif;
  font-size: 0.63rem;
  font-weight: 700;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.story-card[open] .story-card__number {
  border-color: var(--gold-300);
  color: var(--navy-950);
  background: var(--gold-300);
}

.story-card__heading {
  min-width: 0;
}

.story-card__heading span,
.story-card__heading h4 {
  display: block;
}

.story-card__heading span {
  margin-bottom: 2px;
  color: var(--gold-400);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-card__heading h4 {
  margin: 0;
  overflow: hidden;

  color: var(--cream);
  font-family: "Cinzel", serif;
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.015em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-card__toggle {
  position: relative;
  display: grid;
  place-items: center;

  width: 29px;
  height: 29px;

  border: 1px solid rgba(233, 196, 106, 0.26);
  border-radius: 50%;

  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.story-card__toggle::before,
.story-card__toggle::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  background: var(--gold-300);
  transition: transform var(--transition);
}

.story-card__toggle::after {
  transform: rotate(90deg);
}

.story-card[open] .story-card__toggle {
  border-color: var(--gold-300);
  background: rgba(233, 196, 106, 0.08);
  transform: rotate(180deg);
}

.story-card[open] .story-card__toggle::after {
  transform: rotate(0deg);
}

/* ==========================================
   STORY CONTENT
========================================== */

.story-card__body {
  position: relative;
  padding: 0 19px 19px 65px;
  color: var(--cream-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.story-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(233, 196, 106, 0.36), transparent);
}

.story-card__body p {
  margin: 0 0 9px;
}

.story-card__body p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   VISION CARD
========================================== */

.story-card--vision[open] {
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(233, 196, 106, 0.12),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.065),
      rgba(233, 196, 106, 0.035)
    );
}

.vision-quote {
  position: relative;
  margin: 2px 0 0;
  padding: 14px 18px 14px 38px;

  border: 1px solid rgba(233, 196, 106, 0.17);
  background: rgba(233, 196, 106, 0.035);
}

.vision-quote > span {
  position: absolute;
  top: 3px;
  left: 13px;

  color: var(--gold-300);
  font-family: Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.7;
}

.vision-quote p {
  color: var(--gold-100);
  font-family: "Cinzel", serif;
  font-size: 0.77rem;
  font-style: italic;
  line-height: 1.75;
}

/* ==========================================
   FOOTER
========================================== */

.information-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;

  margin-top: 20px;
  padding-top: 16px;

  border-top: 1px solid rgba(233, 196, 106, 0.12);

  color: rgba(201, 192, 173, 0.6);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.information-footer__diamond {
  color: var(--gold-400);
  font-size: 0.42rem;
}

/* ==========================================
   RESPONSIVE: SMALL DESKTOP
========================================== */

@media (max-width: 1050px) {
  :root {
    --panel-width: 47%;
  }

  .profile-page {
    grid-template-columns: minmax(0, 1fr) minmax(450px, var(--panel-width));
  }

  .hero-title {
    width: 72%;
  }

  .visual-quote {
    display: none;
  }

  .quick-details {
    grid-template-columns: 1fr;
  }

  .quick-detail {
    padding: 9px 11px;
  }
}

/* ==========================================
   RESPONSIVE: TABLET
========================================== */

@media (max-width: 950px) {
  body {
    overflow: auto;
  }

  .profile-page {
    display: block;
    min-height: 100vh;
  }

  .visual-panel {
    min-height: 75vh;
  }

  .information-panel {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    border-top: 1px solid rgba(233, 196, 106, 0.3);
    border-left: 0;
  }

  .information-panel::before {
    top: -5px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--gold-400) 25%,
      var(--gold-300) 50%,
      var(--gold-400) 75%,
      transparent
    );
  }

  .information-panel__content {
    height: auto;
    overflow: visible;
    padding-top: 38px;
  }

  .character {
    right: -7%;
    width: min(82vw, 760px);
  }

  .hero-title {
    left: 7%;
    bottom: 15%;
    width: 70%;
  }

  .hero-title h1 {
    font-size: clamp(3.5rem, 10vw, 6.5rem);
  }

  .client-card {
    bottom: 6%;
  }

  .visual-panel__category {
    top: 42px;
    left: 42px;
  }

  .mobile-brand {
    display: none;
  }

  .quick-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================
   RESPONSIVE: MOBILE
========================================== */

@media (max-width: 650px) {
  .visual-panel {
    min-height: 620px;
  }

  .visual-frame {
    inset: 12px;
  }

  .visual-panel__category {
    top: 27px;
    left: 27px;
    padding: 8px 13px 8px 8px;
  }

  .category-icon {
    width: 32px;
    height: 32px;
  }

  .category-label {
    font-size: 0.56rem;
  }

  .category-name {
    font-size: 0.7rem;
  }

  .character {
    width: 145%;
    height: 88%;
  }

  .hero-title {
    left: 28px;
    bottom: 112px;
    width: calc(100% - 56px);
  }

  .hero-title__eyebrow {
    font-size: 0.62rem;
  }

  .hero-title h1 {
    font-size: clamp(3.1rem, 17vw, 5.3rem);
  }

  .hero-title__subtitle {
    margin-top: 9px;
    font-size: 0.68rem;
  }

  .client-card {
    left: 28px;
    bottom: 39px;
  }

  .information-panel__content {
    padding: 31px 18px 24px;
  }

  .profile-header {
    align-items: flex-start;
    gap: 14px;
  }

  .profile-header__badge {
    width: 58px;
    height: 58px;
    font-size: 0.95rem;
  }

  .profile-header h2 {
    font-size: 1.8rem;
  }

  .profile-header__description {
    font-size: 0.73rem;
  }

  .quick-details {
    grid-template-columns: 1fr;
  }

  .story-card__summary {
    grid-template-columns: 35px minmax(0, 1fr) 28px;
    gap: 10px;
    padding-right: 11px;
    padding-left: 11px;
  }

  .story-card__number {
    width: 33px;
    height: 33px;
  }

  .story-card__heading h4 {
    font-size: 0.78rem;
  }

  .story-card__body {
    padding-right: 14px;
    padding-left: 54px;
    font-size: 0.73rem;
  }

  .story-card__body::before {
    left: 27px;
  }

  .information-footer {
    flex-wrap: wrap;
    line-height: 1.6;
  }
}

/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 390px) {
  .visual-panel {
    min-height: 570px;
  }

  .character {
    right: -42%;
    width: 160%;
  }

  .hero-title {
    bottom: 105px;
  }

  .hero-title h1 {
    font-size: 3.25rem;
  }

  .profile-header__badge {
    display: none;
  }

  .section-heading h3 {
    font-size: 0.62rem;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.story-card__summary:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-card,
  .story-card__number,
  .story-card__toggle {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   FACGLE HOME + DYNAMIC SEARCH
========================================== */
[hidden] {
  display: none !important;
}
.search-home {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  color: #202124;
  font-family: Arial, sans-serif;
}
.home-topbar {
  display: flex;
  justify-content: space-between;
  padding: 22px 28px;
  color: #5f6368;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.home-search-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 100px;
}
.facgle-logo {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(4rem, 9vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 1;
}
.facgle-logo span:nth-child(1),
.facgle-logo span:nth-child(4) {
  color: #4285f4;
}
.facgle-logo span:nth-child(2),
.facgle-logo span:nth-child(6) {
  color: #ea4335;
}
.facgle-logo span:nth-child(3) {
  color: #fbbc05;
}
.facgle-logo span:nth-child(5) {
  color: #34a853;
}
.home-tagline {
  margin: 15px 0 30px;
  color: #5f6368;
  font-size: 0.95rem;
}
.search-shell {
  position: relative;
  width: 100%;
}
.home-search-shell {
  max-width: 620px;
}
.search-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.search-field:focus-within,
.home-search-shell:has(.suggestions:not([hidden])) .search-field {
  border-color: transparent;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}
.search-leading-icon {
  margin-left: 16px;
  color: #9aa0a6;
  font-size: 1.25rem;
}
.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 12px;
  color: #202124;
  background: transparent;
  font-size: 1rem;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-submit {
  width: 42px;
  height: 42px;
  margin-right: 3px;
  border: 0;
  border-radius: 50%;
  color: #4285f4;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}
.search-submit:hover {
  background: #f1f3f4;
}
.suggestions {
  position: absolute;
  z-index: 100;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 8px 0;
  border-top: 1px solid #e8eaed;
  border-radius: 0 0 24px 24px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
}
.search-shell:has(.suggestions:not([hidden])) .search-field {
  border-radius: 24px 24px 0 0;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 10px 18px;
  border: 0;
  color: #202124;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.suggestion-item:hover,
.suggestion-item.is-selected {
  background: #f1f3f4;
}
.suggestion-icon {
  color: #70757a;
  font-size: 1.2rem;
}
.suggestion-copy {
  min-width: 0;
}
.suggestion-copy strong,
.suggestion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suggestion-copy strong {
  font-size: 0.93rem;
  font-weight: 500;
}
.suggestion-copy small {
  margin-top: 2px;
  color: #70757a;
  font-size: 0.74rem;
}
.suggestion-empty {
  padding: 15px 20px;
  color: #70757a;
  font-size: 0.88rem;
}
.home-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.home-actions button {
  padding: 10px 16px;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  background: #f8f9fa;
  cursor: pointer;
}
.home-actions button:hover {
  border-color: #dadce0;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.data-status {
  margin-top: 24px;
  color: #70757a;
  font-size: 0.78rem;
}
.data-status.is-error {
  max-width: 620px;
  color: #b3261e;
  text-align: center;
  line-height: 1.5;
}
.home-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 30px;
  color: #70757a;
  background: #f2f2f2;
  border-top: 1px solid #dadce0;
  font-size: 0.78rem;
}
.visual-panel__category {
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-search-bar {
  position: absolute;
  z-index: 80;
  top: 38px;
  left: 40px;
  width: min(250px, calc(100% - 40px));
}
.profile-search-shell .search-field {
  min-height: 40px;
  border-color: rgba(233, 196, 106, 0.25);
  border-radius: 21px;
  background: rgba(8, 13, 20, 0.78);
  backdrop-filter: blur(10px);
}
.profile-search-shell .search-field input {
  padding: 9px 8px;
  color: var(--cream);
  font-size: 0.8rem;
}
.profile-search-shell .search-leading-icon {
  margin-left: 13px;
  color: var(--gold-300);
}
.profile-search-shell .search-submit {
  width: 35px;
  height: 35px;
  color: var(--gold-300);
}
.profile-search-shell .search-submit:hover {
  background: rgba(233, 196, 106, 0.1);
}
.suggestions--dark {
  border-color: rgba(233, 196, 106, 0.2);
  background: #111b28;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}
.suggestions--dark .suggestion-item {
  color: var(--cream);
}
.suggestions--dark .suggestion-item:hover,
.suggestions--dark .suggestion-item.is-selected {
  background: rgba(233, 196, 106, 0.1);
}
.suggestions--dark .suggestion-icon {
  color: var(--gold-300);
}
.suggestions--dark .suggestion-copy small,
.suggestions--dark .suggestion-empty {
  color: var(--cream-muted);
}
.profile-active .information-panel__content {
  padding-top: 78px;
}
@media (max-width: 950px) {
  .profile-active .information-panel__content {
    padding-top: 25px;
  }
}
@media (max-width: 650px) {
  .home-topbar,
  .home-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-topbar span:last-child,
  .home-footer span:last-child {
    display: none;
  }
  .home-search-area {
    padding-bottom: 70px;
  }
  .home-actions {
    display: none;
  }
  .suggestion-copy small {
    max-width: 70vw;
  }
}

/* ==========================================
   PROFILE SWITCH TRANSITION
========================================== */

.visual-panel,
.information-panel__content {
  opacity: 1;
  transition: opacity 200ms ease;
  will-change: opacity;
}

.profile-page.profile-switching .visual-panel,
.profile-page.profile-switching .information-panel__content {
  opacity: 0;
}

/* ==========================================
   PROFILE CONTENT TRANSITION
========================================== */

.profile-page.profile-switching {
  pointer-events: none;
}

/* Keep the search bar visible and usable-looking */
.profile-page.profile-switching .profile-search-bar {
  opacity: 1;
}

/* Browser rendering optimisation */
.visual-panel,
.information-panel__content,
.visual-panel__background,
.character__image {
  will-change: opacity;
}