.communipetion-page {
  --case-ink: #253454;
  --case-muted: #525d70;
  --case-line: #25345433;
  --case-paper: #f3f0e8;
  min-height: 100svh;
  background:
    radial-gradient(ellipse 62% 36% at 2% 12%, #f1cfdbd9 0%, #f1cfdb6e 40%, transparent 78%),
    radial-gradient(ellipse 58% 37% at 97% 33%, #b9dce9e6 0%, #c8e3ed80 44%, transparent 82%),
    radial-gradient(ellipse 65% 36% at 18% 95%, #c1e0e8cc 0%, transparent 75%),
    radial-gradient(ellipse 55% 40% at 95% 95%, #f1d7e3cc 0%, transparent 80%), #f3f0e8;
}
.communipetion-page .case-main, .communipetion-page .case-footer { max-width: 1240px; }
.communipetion-page .case-main { margin-top: 32px; }
.pet-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 38px; align-items: center; padding: 10px 0 52px; }
.communipetion-page .case-mark { width: 72px; height: 58px; margin-bottom: 18px; }
.pet-kicker { font: 700 .875rem/1.5 'Courier New', monospace; letter-spacing: .035em; text-transform: uppercase; margin: 0 0 12px; }
.communipetion-page .case-main h1 { max-width: none; font: 400 clamp(2.8rem, 4.6vw, 4rem)/1.15 Raosand, Georgia, serif; letter-spacing: -.025em; margin: 0 0 22px; white-space: nowrap; }
.communipetion-page h1 span { color: #436e83; }
.pet-description { max-width: 53ch; margin: 0 0 14px; font-size: 1rem; line-height: 1.75; }
.pet-facts { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 28px 0 0; }
.pet-facts dt { font: 700 .875rem/1.5 'Courier New', monospace; margin-bottom: 5px; }
.pet-facts dd { margin: 0; font-size: .9375rem; line-height: 1.5; color: var(--case-muted); }
.pet-hero-preview { position: relative; min-width: 0; padding: 14% 8% 22% 0; }
.pet-device { overflow: hidden; background: #f3f0e8; flex-shrink: 0; }
.pet-device img { display: block; min-height: 0; width: 100%; height: 100%; object-fit: contain; background: #f3f0e8; user-select: none; }
.pet-device--desktop { display: grid; grid-template-rows: 20px minmax(0, 1fr); width: 100%; aspect-ratio: 1.51; border: 5px solid #354354; border-radius: 14px; }
.pet-browser-bar { display: flex; align-items: center; justify-content: flex-start; gap: 4px; padding: 0 8px; background: #354354; color: #e8eaf1; font: 9px/1 Arial, sans-serif; }
.pet-browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: #b0bac8; }
.pet-browser-bar span { margin-inline: auto; padding-right: 25px; opacity: .85; }
.pet-device--mobile { width: auto; height: 100%; max-width: 100%; aspect-ratio: 780 / 1688; border: 6px solid #354354; border-radius: 30px; }
.pet-hero-preview > .pet-device--mobile { position: absolute; width: 29%; height: auto; right: 0; bottom: 2%; border-width: 4px; border-radius: 21px; }
.pet-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 25px 0 32px; border-top: 1px solid var(--case-line); border-bottom: 1px solid var(--case-line); }
.pet-story p { margin: 0; max-width: 29ch; color: var(--case-muted); font-size: 1rem; line-height: 1.6; }
.pet-story span { display: block; margin-bottom: 9px; font: 700 .875rem/1.5 'Courier New', monospace; color: var(--case-ink); }
.pet-design { padding-top: 42px; }
.pet-design-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.pet-design-header .pet-kicker { margin-bottom: 8px; }
.pet-design h2 { font: 400 clamp(1.8rem, 3vw, 2.65rem)/1.2 Raosand, Georgia, serif; margin: 0; letter-spacing: -.01em; }
.pet-view-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pet-view-switch button { min-height: 48px; padding: 12px 22px; border: 1px solid var(--case-ink); border-radius: 24px; color: var(--case-ink); font-size: .9375rem; }
.pet-view-switch button[aria-pressed="true"] { background: var(--case-ink); color: #fff; }
.pet-view-switch button[aria-pressed="false"]:hover { background: #ffffff70; }
.pet-prototype { display: block; width: 100%; height: clamp(620px, 88svh, 900px); border: 1px solid var(--case-line); border-radius: 16px; background: #f3f0e8; }
.pet-prototype[hidden], #pet-showcase[hidden] { display: none; }
.pet-gallery-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.pet-device-switch { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--case-line); border-radius: 30px; background: #ffffff50; }
.pet-device-switch button { display: flex; gap: 14px; align-items: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 24px; font-size: .9375rem; font-weight: 600; color: var(--case-ink); }
.pet-device-switch button span { font: .875rem/1.3 'Courier New', monospace; }
.pet-device-switch button[aria-pressed="true"] { background: var(--case-ink); color: white; }
.pet-device-switch button[aria-pressed="false"]:hover { background: #ffffff80; }
.pet-file-link { font: 700 .875rem/1.5 'Courier New', monospace; text-underline-offset: 5px; }
.pet-gallery-description { margin: 18px 0; font-size: 1rem; line-height: 1.6; color: var(--case-muted); }
.pet-gallery { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: clamp(500px, 76svh, 800px); overflow: hidden; border: 1px solid #ffffffbf; border-radius: 24px; background: #ffffff38; }
.pet-gallery[data-device="mobile"] { height: clamp(660px, 92svh, 900px); }
.pet-gallery[hidden] { display: none; }
.pet-gallery-track { container-type: size; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.pet-gallery-track::-webkit-scrollbar { display: none; }
.pet-slide { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; padding: 30px 34px; display: flex; align-items: center; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
.pet-slide .pet-device--desktop { width: min(100%, calc((100cqh - 60px) * 1.51)); height: auto; max-height: 100%; }
.pet-gallery-controls { display: grid; grid-template-columns: 100px minmax(0, 1fr) 100px; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--case-line); }
.pet-gallery-controls button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--case-line); border-radius: 24px; color: var(--case-ink); font-size: .875rem; }
.pet-gallery-controls button:hover:not(:disabled) { background: #ffffff90; }
.pet-gallery-controls button:disabled { opacity: .4; cursor: default; }
.pet-gallery-status { text-align: center; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
[data-pet-position] { font: 700 .875rem/1.5 'Courier New', monospace; font-variant-numeric: tabular-nums; }
[data-pet-screen-name] { font-size: 1rem; line-height: 1.4; }
.pet-gallery-hint { margin: 14px 0 0; color: var(--case-muted); font-size: .875rem; line-height: 1.6; }
.communipetion-page button:focus-visible { outline: 2px dashed var(--case-ink); outline-offset: 4px; }
.pet-gallery-track:focus-visible { outline: 2px dashed var(--case-ink); outline-offset: -5px; }
@media (max-width: 900px) {
  .pet-intro { grid-template-columns: 1fr; gap: 12px; padding-bottom: 38px; }
  .pet-overview { max-width: 660px; }
  .communipetion-page .case-main h1 { font-size: clamp(2.65rem, 7.2vw, 4.5rem); }
  .pet-hero-preview { width: min(100%, 570px); justify-self: center; padding: 5% 8% 17% 0; }
  .pet-hero-preview > .pet-device--mobile { bottom: 0; }
}
@media (max-width: 600px) {
  .communipetion-page .case-main { padding: 0 20px; margin-top: 22px; }
  .communipetion-page .case-main h1 { font-size: clamp(2.15rem, 9.1vw, 3.5rem); }
  .pet-kicker { letter-spacing: 0; }
  .pet-facts { gap: 20px; }
  .pet-facts div:first-child { flex-basis: 100%; }
  .pet-hero-preview { margin-top: 12px; padding-bottom: 24%; }
  .pet-hero-preview > .pet-device--mobile { width: 33%; }
  .pet-device--desktop { border-width: 4px; border-radius: 10px; grid-template-rows: 15px minmax(0, 1fr); }
  .pet-story { gap: 20px; grid-template-columns: 1fr; padding: 25px 0; }
  .pet-story p { max-width: none; }
  .pet-story span { margin-bottom: 4px; }
  .pet-design { padding-top: 30px; }
  .pet-design-header { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .pet-gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; }
  .pet-device-switch button { padding: 10px 18px; }
  .pet-gallery { height: clamp(300px, 78vw, 470px); border-radius: 16px; }
  .pet-gallery[data-device="mobile"] { height: clamp(600px, 172vw, 760px); }
  .pet-prototype { height: 740px; }
  .pet-slide { padding: 16px 10px; }
  .pet-slide .pet-device--desktop { width: min(100%, calc((100cqh - 32px) * 1.51)); }
  .pet-gallery[data-device="mobile"] .pet-slide { padding: 20px 10px; }
  .pet-gallery-controls { grid-template-columns: 76px minmax(0, 1fr) 76px; gap: 8px; padding: 12px 10px; }
  .pet-gallery-controls button { padding: 10px 4px; }
  .pet-gallery-status { flex-direction: column; gap: 2px; }
  [data-pet-screen-name] { font-size: .875rem; }
}
