:root {
  --pink: #ed1372;
  --blue: #06a4de;
  --green: #42b900;
  --deep-blue: #087dbb;
  --ink: #292929;
  --sky: #d9effb;
  --line: #d3d3d3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: fot-tsukuaoldmin-pr6n, sans-serif; font-weight: 300; font-style: normal; font-size: 18px; line-height: 1.8; background: var(--deep-blue); }
img { display: block; width: 100%; }
a { color: inherit; }
.container { width: min(930px, calc(100% - 40px)); margin: 0 auto; }
.container--narrow { width: min(850px, calc(100% - 40px)); }
.section { padding: 90px 0; }
.section--white { background: #fff; }
.section--sky { background: linear-gradient(#dff4ff 0, #bde4f7 12%, #0e95d0 100%); }
.section--ocean { background: url("assets/images/ocean.jpg") center/cover no-repeat; }
.plans-section { padding-top: 90px; }

.floating-entry { position: fixed; z-index: 20; right: 0; top: 18%; writing-mode: vertical-rl; padding: 56px 14px; border-radius: 8px 0 0 8px; color: #fff; background: var(--pink); font-weight: 700; text-decoration: none; box-shadow: 0 3px 15px #0003; letter-spacing: .12em; }

.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; color: #1f1f1f; background: url("assets/images/hero.jpg") center 70%/cover no-repeat; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(#d6f2ff80, transparent 55%, #076d8a18); }
.hero__inner { position: relative; text-align: center; transform: translateY(-1vh); }
.brand { line-height: .85; }
.en, [lang="en"] { font-family: bebas-neue, sans-serif; font-weight: 400; font-style: normal; }
.brand__main { display: flex; flex-direction: column; align-items: flex-start; font-family: bebas-neue, sans-serif; font-weight: 400; font-style: normal; letter-spacing: -.03em; }
.brand__main i { position: relative; display: inline-block; width: .38em; height: .95em; margin: 0 -.08em; vertical-align: -.08em; background: var(--pink); transform: skew(-14deg) rotate(7deg); }
.hero__logo-wrap { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.hero__logo { width: clamp(228px, 28.8vw, 366px); height: auto; }
.brand--hero .brand__main { font-size: clamp(55px, 8vw, 100px); }
.brand__side { height: clamp(219px, 27.65vw, 351px); font-family: inherit; line-height: 1.08; writing-mode: vertical-rl; letter-spacing: .06em; white-space: nowrap; }
.brand__side--left { font-size: clamp(23px, 2.8vw, 36px); }
.brand__side--right { display: flex; align-self: flex-start; flex-direction: row-reverse; gap: 9px; font-size: clamp(18px, 2.2vw, 28px); text-align: start; writing-mode: horizontal-tb; }
.hero-side-line { height: 100%; padding-right: 11px; border-right: 2px solid #333; box-sizing: border-box; line-height: 1.08; white-space: nowrap; writing-mode: vertical-rl; }
.hero__lead { margin: 28px auto -12px; color: var(--pink); font-family: inherit; font-size: clamp(27px, 4.3vw, 48px); line-height: 1.15; letter-spacing: .08em; white-space: nowrap; }
.hero h1 { margin: 0; color: var(--pink); font-family: inherit; font-weight: 300; font-size: clamp(62px, 9vw, 118px); line-height: 1.1; letter-spacing: .08em; text-shadow: 0 1px #fff8; }
.oc-mark { width: 88px; height: auto; margin: clamp(60px, 10vh, 110px) auto 0; filter: none; }
.logo-horizontal { display: block; height: auto; margin-inline: auto; }
.logo-horizontal--intro { width: min(760px, 94%); margin-bottom: 58px; }
.logo-horizontal--compact { width: min(590px, 86%); margin-bottom: 46px; }

.brand--horizontal { display: grid; place-items: center; margin-bottom: 55px; }
.brand--horizontal .brand__main, .brand--compact .brand__main { display: block; font-size: clamp(40px, 7vw, 72px); }
.brand small { display: block; margin-top: 12px; font: 700 10px Arial, sans-serif; letter-spacing: .02em; }
.intro__copy { margin: 0 auto 45px; text-align: center; font-size: 30px; letter-spacing: .05em; }
.intro__copy strong { color: var(--pink); font-weight: 600; }
.recommend { width: min(720px, 100%); margin: 0 auto 55px; border: 2px solid #aaa; padding: 0 50px 30px; }
.recommend h2 { margin: -25px auto 15px; width: fit-content; padding: 0 14px; background: #fff; font-size: 43px; font-weight: 500; }
.recommend ul { display: flex; width: fit-content; flex-direction: column; align-items: flex-start; list-style: none; margin: 0 auto; padding: 0; font-size: 30px; text-align: left; }
.recommend li { display: flex; align-items: center; width: 100%; }
.recommend li::before { content: ""; width: 30px; height: 30px; flex: 0 0 30px; margin-right: 14px; background: url("assets/images/mark.svg") center/contain no-repeat; }
.photo-grid { display: grid; gap: 12px; }
.photo-grid--four { grid-template-columns: repeat(2, 1fr); }
.photo-grid figure { height: 220px; margin: 0; overflow: hidden; }
.photo-grid img { height: 100%; object-fit: cover; }
.photo-grid figure:nth-child(1) img { object-position: 50% 55%; transform: scale(1.18); }
.photo-grid figure:nth-child(2) img { object-position: 50% 52%; transform: scale(1.1); }
.photo-grid figure:nth-child(3) img { object-position: 50% 42%; transform: scale(1); }
.photo-grid figure:nth-child(4) img { object-position: 46% 50%; transform: scale(1.05); }

.brand--compact { display: grid; place-items: center; margin-bottom: 42px; }
.brand--compact .brand__main { font-size: clamp(35px, 6vw, 62px); }
.section-title { margin: 0 0 38px; text-align: center; font-weight: 500; font-size: clamp(22px, 3vw, 32px); }
.course-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 60px; }
.course-card { overflow: hidden; border-radius: 15px; background: #fff; text-align: center; box-shadow: 0 2px 0 #6b79804d; transition: transform .2s ease, box-shadow .2s ease; }
.course-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.course-card:hover, .course-card:focus-within { transform: translateY(-5px); box-shadow: 0 10px 24px #086c9840; }
.course-card a:focus-visible { outline: 4px solid #fff; outline-offset: -7px; }
.course-card header { padding: 14px 8px; color: #fff; font-size: 17px; line-height: 1.45; }
.course-card header strong { font-size: 20px; }
.course-card--pink header { background: var(--pink); }
.course-card--blue header { background: var(--blue); }
.course-card--green header { background: var(--green); }
.course-card__days { margin: 14px 0 2px; font-size: 36px; line-height: 1.2; }
.course-card a > p:not(.course-card__days) { min-height: 64px; margin: 10px; font-size: 19px; line-height: 1.55; }
.course-card a > small { display: block; padding: 0 14px 25px; font-size: 15px; line-height: 1.55; }

.card-panel { overflow: hidden; margin: 0 0 55px; border-radius: 15px; background: #fff; box-shadow: 0 2px 0 #06689140; }
.panel-title { margin: 0 0 36px; padding: 22px 20px; color: #fff; background: var(--pink); text-align: center; font-weight: 400; font-size: clamp(25px, 4vw, 40px); line-height: 1.3; }
.doctor__profile { display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; padding: 0 55px 30px; }
.doctor__profile img { height: 360px; object-fit: cover; }
.eyebrow { margin: 0; font-size: 15px; }
.doctor h3 { margin: 2px 0 10px; font-size: 28px; }
.doctor__text p { font-size: 17px; line-height: 1.8; }
.doctor__wide { width: calc(100% - 110px); height: 330px; margin: 0 55px 25px; object-fit: cover; }
.clinic-info { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 18px; align-items: center; padding: 0 55px 45px; }
.clinic-info > img,
.clinic-info__map { width: 100%; height: auto; aspect-ratio: 1; }
.clinic-info > img { object-fit: cover; }
.clinic-info__map { overflow: hidden; }
.clinic-info__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.clinic-info h3 { margin: 0; font-size: 36px; }
.clinic-info > div:last-child > p { font-size: 27px; line-height: 1.6; }

.plan { margin-bottom: 34px; }
.plan__header { margin: 0; padding: 18px 20px; color: #fff; text-align: center; font-weight: 400; font-size: clamp(24px, 3.5vw, 36px); line-height: 1.3; }
.plan--pink .plan__header, .plan--pink .day__title { background: var(--pink); }
.plan--blue .plan__header, .plan--blue .day__title { background: var(--blue); }
.plan--green .plan__header, .plan--green .day__title { background: var(--green); }
.plan__body { padding: 30px 55px 42px; background: #fff; }
.plan__for { margin: 0 0 22px; text-align: center; font-size: 40px; line-height: 1.5; }
.plan__facts { margin: 0 0 24px; font-size: 23px; }
.day { margin: 22px 0 0; }
.day__title { margin-bottom: 10px; padding: 5px 0; color: #fff; text-align: center; font-size: 26px; line-height: 1.5; }
.plan { scroll-margin-top: 30px; }
.schedule { display: grid; grid-template-columns: 145px minmax(0, 1fr); column-gap: 0; row-gap: 0; margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.schedule dt { display: flex; align-items: flex-start; justify-content: flex-end; margin: 0; padding: 5px 22px 5px 0; white-space: nowrap; text-align: right; }
.schedule dd { margin: 0; padding: 5px 0 5px 22px; border-left: 1px solid #777; }
.schedule small { color: #777; }

.table-scroll-hint { display: none; }
.table-wrap { padding: 0 38px; overflow-x: auto; }
table { width: 100%; min-width: 670px; border-collapse: collapse; text-align: center; font-size: 15px; }
th, td { border: 1px solid #ddd; padding: 12px 8px; }
thead th { border: 0; font-weight: 500; }
tbody th { width: 15%; background: #fff; font-weight: 400; }
tbody td:nth-child(2) { color: #fff; background: var(--pink); }
tbody td:nth-child(3) { color: #fff; background: var(--blue); }
tbody td:nth-child(4) { color: #fff; background: var(--green); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 25px 45px 40px; font-size: 13px; }
.notes p { margin: 2px 0; }

.contact { padding-bottom: 50px; text-align: center; }
.logo-stack { width: min(250px, 55%); height: auto; margin: 44px auto; }
.brand--stack .brand__main { font-size: clamp(52px, 8vw, 86px); }
.contact p { margin: 14px 20px; }
.mail { display: inline-block; margin: 0; padding: 0 10px 5px; color: var(--pink); border-bottom: 1px solid var(--pink); font-family: bebas-neue, sans-serif; font-weight: 400; font-size: clamp(30px, 4vw, 43px); line-height: 1.3; }

.instagram { position: relative; height: 520px; overflow: hidden; }
.instagram > img { height: 100%; object-fit: cover; object-position: center 57%; }
.instagram::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #369bd04d, transparent 70%); }
.instagram__copy { position: absolute; z-index: 1; left: max(8vw, calc((100% - 930px)/2)); top: 50%; transform: translateY(-50%); color: #fff; }
.instagram__copy h2 { margin: 0 0 18px; font-weight: 400; font-size: clamp(26px, 4vw, 43px); line-height: 1.55; }
.instagram__copy a { display: inline-block; padding: 10px 30px; color: #fff; background: var(--pink); text-decoration: none; font-weight: 700; }
footer { padding: 28px 20px; color: #fff; background: #076b9c; text-align: center; }
footer a { display: block; text-decoration: none; }
footer img { width: min(380px, 75%); margin: auto; filter: none; }
footer small { font-size: 9px; }

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .container, .container--narrow { width: min(100% - 24px, 600px); }
  .floating-entry { top: auto; right: 12px; bottom: 12px; writing-mode: horizontal-tb; padding: 12px 20px; border-radius: 100px; }
  .hero { min-height: 82svh; background-position: center; }
  .brand--hero { gap: 5px; transform: scale(.9); }
  .brand__side--left { font-size: clamp(15px, 5vw, 20px); }
  .brand__side--right { gap: 5px; font-size: clamp(12px, 4.1vw, 17px); }
  .hero-side-line { padding-right: 7px; border-right-width: 1px; }
  .hero__lead { margin-top: 24px; }
  .oc-mark { margin-top: 55px; }
  .intro__copy { font-size: 20px; }
  .intro__copy br { display: none; }
  .recommend { padding: 0 12px 22px; }
  .recommend h2 { font-size: 22px; }
  .recommend ul { font-size: 20px; }
  .recommend li::before { width: 21px; height: 21px; flex-basis: 21px; margin-right: 9px; }
  .photo-grid figure { height: 130px; }
  .course-cards { grid-template-columns: 1fr; }
  .course-card a > p:not(.course-card__days) { min-height: auto; }
  .doctor__profile { grid-template-columns: 1fr; padding: 0 24px 25px; }
  .doctor__profile img { height: auto; max-height: 390px; object-position: center 25%; }
  .doctor__wide { width: calc(100% - 48px); height: 220px; margin-inline: 24px; }
  .clinic-info { grid-template-columns: 1fr 1fr; padding: 0 24px 30px; }
  .clinic-info > div:last-child { grid-column: 1 / -1; text-align: center; }
  .clinic-info__map, .clinic-info > img { width: 100%; height: auto; aspect-ratio: 1; }
  .clinic-info h3 { font-size: 28px; }
  .clinic-info > div:last-child > p { font-size: 20px; }
  .plan__body { padding: 25px 20px 35px; }
  .plan__for { font-size: 24px; }
  .day__title { padding: 4px 0; font-size: 20px; }
  .schedule { grid-template-columns: 120px minmax(0, 1fr); column-gap: 0; font-size: 14px; }
  .table-scroll-hint { display: block; margin: -8px 15px 10px; color: #fff; text-align: right; font-size: 13px; letter-spacing: .04em; }
  .table-wrap { padding: 0 15px 8px; scrollbar-color: var(--pink) #ffffff80; scrollbar-width: thin; }
  .table-wrap::-webkit-scrollbar { height: 8px; }
  .table-wrap::-webkit-scrollbar-track { background: #ffffff80; border-radius: 20px; }
  .table-wrap::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 20px; }
  .notes { grid-template-columns: 1fr; padding: 20px; }
  .instagram { height: 390px; }
  .instagram__copy { left: 25px; }
  .instagram > img { object-position: 72% 57%; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* contact form */
.form-heading { width: calc(100% - 90px); margin: 65px auto 25px; padding-top: 42px; border-top: 1px solid #bbb; }
.form-heading h3, .form-confirm h3 { margin: 0 0 8px; color: var(--pink); font-size: clamp(28px, 4vw, 40px); font-weight: 300; }
.form-heading p { font-size: 16px; }
.entry-form, .form-confirm { width: calc(100% - 90px); margin: 0 auto; text-align: left; }
.form-row { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; padding: 18px 0; border-top: 1px solid #ddd; }
.form-row--textarea { align-items: start; }
.form-row > label { font-size: 17px; }
.required, .optional { float: right; margin-top: 3px; padding: 1px 8px; color: #fff; border-radius: 2px; font-size: 12px; line-height: 1.6; }
.required { background: var(--pink); }
.optional { background: #8b989d; }
.entry-form input:not([type="checkbox"]), .entry-form select, .entry-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #aaa; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.entry-form input:focus, .entry-form select:focus, .entry-form textarea:focus { outline: 3px solid #ed137233; border-color: var(--pink); }
.entry-form [aria-invalid="true"] { border-color: #c90000 !important; background: #fff4f4 !important; }
.privacy-check { display: flex; justify-content: center; gap: 10px; align-items: center; margin: 30px auto 15px; font-size: 16px; }
.privacy-check input { width: 20px; height: 20px; accent-color: var(--pink); }
.form-error { min-height: 1.8em; color: #c90000; text-align: center; font-size: 15px; }
.form-submit, .confirm-actions button { appearance: none; min-width: 280px; padding: 16px 26px; border: 0; border-radius: 4px; color: #fff; background: var(--pink); font: inherit; font-size: 18px; cursor: pointer; }
.form-submit { display: block; margin: 10px auto 25px; }
.form-submit:hover, .confirm-actions button:hover { filter: brightness(.92); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-confirm { padding-bottom: 25px; text-align: center; }
.form-confirm dl { margin: 25px 0; border-top: 1px solid #ddd; text-align: left; }
.form-confirm dl > div { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid #ddd; }
.form-confirm dt { font-weight: 300; }
.form-confirm dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: center; gap: 16px; }
.confirm-actions button:first-child { color: var(--ink); background: #ddd; }
.form-status { padding: 55px 30px; text-align: center; }
.form-status h3 { color: var(--pink); font-size: 32px; font-weight: 300; }
button:disabled { cursor: wait; opacity: .6; }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero__logo-wrap { gap: 5px; }
  .hero__logo { width: min(58.8vw, 252px); }
  .brand__side { height: min(56.5vw, 242px); }
  .logo-horizontal--intro { width: 96%; margin-bottom: 45px; }
  .logo-horizontal--compact { width: 92%; }
  .doctor__text p { font-size: 15px; }
  .plan__facts { font-size: 17px; }
  .schedule { grid-template-columns: 120px minmax(0, 1fr); column-gap: 0; font-size: 14px; }
  .schedule dt { padding-right: 14px; }
  .schedule dd { padding-left: 14px; }
  .form-heading, .entry-form, .form-confirm { width: calc(100% - 36px); }
  .form-heading { margin-top: 45px; }
  .form-row { grid-template-columns: 1fr; gap: 7px; padding: 15px 0; }
  .required, .optional { float: none; display: inline-block; margin: 0 0 0 10px; vertical-align: 2px; }
  .form-confirm dl > div { grid-template-columns: 1fr; gap: 4px; }
  .form-confirm dt { color: #666; font-size: 13px; }
  .confirm-actions { flex-direction: column-reverse; }
  .form-submit, .confirm-actions button { width: 100%; min-width: 0; }
}
/* Requested visual refinements */
.section-title { font-size: 40px; }
.course-card header,
.course-card header strong { font-size: 28px; }
.course-card__days { font-size: 54px; }
.course-card a > p:not(.course-card__days) { font-size: 27px; }
.hero-side-line { width: max-content; height: auto; align-self: flex-start; padding-right: 4px; }
.doctor h3 { font-size: 36px; }
.doctor__photo { height: 360px; overflow: hidden; }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 28%; transform: scale(1.28); }
.clinic-info > img { object-position: 84% center; }
.schedule { grid-template-columns: 180px minmax(0, 1fr); font-size: 23px; line-height: 1.6; }
.schedule dt { padding-right: 24px; }
.schedule dd { padding-left: 24px; }
.instagram__copy a { display: inline-flex; align-items: center; gap: 10px; }
.instagram-icon { width: 24px; height: 24px; flex: 0 0 auto; }

@media (max-width: 760px) {
  .section-title { font-size: 28px; line-height: 1.5; }
  .course-card header,
  .course-card header strong { font-size: 24px; }
  .course-card__days { font-size: 46px; }
  .course-card a > p:not(.course-card__days) { font-size: 23px; }
  .hero-side-line { padding-right: 3px; }
  .doctor h3 { font-size: 30px; }
  .doctor__photo { height: 390px; }
  .doctor__photo img { object-position: 72% 28%; transform: scale(1.2); }
  .schedule { grid-template-columns: 140px minmax(0, 1fr); font-size: 19px; line-height: 1.65; }
  .schedule dt { padding-right: 13px; }
  .schedule dd { padding-left: 13px; }
  .table-scroll-hint { width: fit-content; margin: -8px auto 14px; padding: 8px 15px; border: 1px solid #fff; border-radius: 999px; background: #ffffff24; text-align: center; font-size: 14px; font-weight: 700; animation: scroll-cue 1.3s ease-in-out infinite alternate; }
  .instagram > img { object-position: 84% 57%; }
}

@keyframes scroll-cue {
  from { transform: translateX(-7px); }
  to { transform: translateX(7px); }
}
@media (hover: hover) {
  .course-card:hover,
  .course-card:focus-within {
    animation: course-card-pop .42s cubic-bezier(.2, .9, .3, 1.35) both;
    box-shadow: 0 16px 30px #086c9852;
  }
}

@keyframes course-card-pop {
  0% { transform: translateY(0) scale(1); }
  65% { transform: translateY(-13px) scale(1.025); }
  100% { transform: translateY(-9px) scale(1.02); }
}

.doctor__photo img { transform: scale(1.55); }

@media (max-width: 760px) {
  .doctor__photo img { transform: scale(1.42); }
}
.doctor__photo img { object-position: 82% 28%; }

@media (max-width: 760px) {
  .schedule { display: block; font-size: 19px; }
  .schedule dt { display: block; padding: 13px 0 1px; text-align: left; font-weight: 700; }
  .schedule dd { padding: 0 0 13px; border-left: 0; border-bottom: 1px solid #d7d7d7; }
  .table-scroll-hint { position: relative; animation: swipe-guide 1.15s ease-in-out infinite; will-change: transform; }
  .form-confirm.is-complete { width: 100%; }
  .form-confirm.is-complete .form-status { padding: 42px 8px; }
}

@keyframes swipe-guide {
  0%, 100% { transform: translateX(-14px); }
  50% { transform: translateX(14px); }
}
.doctor__photo img { transform: translateX(-50px) scale(1.55); }
.photo-grid figure:nth-child(1) img { object-position: 50% 62%; transform: scale(2); transform-origin: 70% 70%; }
.photo-grid figure:nth-child(2) img { object-position: 50% 58%; transform: scale(4); transform-origin: 47% 66%; }
.photo-grid figure:nth-child(3) img { object-position: 50% 85%; transform: scale(1.05); }
.photo-grid figure:nth-child(4) img { object-position: 46% 50%; transform: translateY(-50px) scale(1.05); }
.form-confirm h3,
.form-status h3 { scroll-margin-top: 24px; }

@media (max-width: 760px) {
  .clinic-info { grid-template-columns: 1fr; }
  .clinic-info > div:last-child { grid-column: auto; }
  .doctor__photo img { transform: translateX(-30px) scale(1.42); }
  .photo-grid figure:nth-child(1) img { transform: scale(1.7); transform-origin: 68% 60%; }
  .photo-grid figure:nth-child(2) img { transform: scale(3); transform-origin: 47% 66%; }
  .photo-grid figure:nth-child(3) img { object-position: 50% 82%; transform: scale(1.02); }
  .photo-grid figure:nth-child(4) img { transform: translateY(-28px) scale(1.05); }
  .table-scroll-hint { display: flex; align-items: center; gap: 8px; animation: none; }
  .swipe-arrow { display: inline-block; font-size: 20px; animation: swipe-arrow-move .9s ease-in-out infinite; will-change: transform; }
}

@keyframes swipe-arrow-move {
  0%, 100% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
}
/* Photo position refinements */
.photo-grid figure:nth-child(1) img {
  position: relative;
  top: -18px;
}
.photo-grid figure:nth-child(4) img {
  position: relative;
  top: -50px;
  height: calc(100% + 50px);
  transform: scale(1.05);
}

@media (max-width: 760px) {
  .photo-grid figure:nth-child(1) img { top: -10px; }
  .photo-grid figure:nth-child(4) img {
    top: -28px;
    height: calc(100% + 28px);
    transform: scale(1.05);
  }
}
/* Ensure the mobile table swipe guide is clearly visible */
@media (max-width: 900px) {
  .comparison .table-scroll-hint {
    position: relative;
    z-index: 2;
    display: flex !important;
    visibility: visible;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 18px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--pink);
    box-shadow: 0 4px 12px #0002;
    opacity: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
  }
  .comparison .swipe-arrow {
    display: inline-block;
    margin-right: 9px;
    font-size: 20px;
    animation: swipe-arrow-visible 1s ease-in-out infinite;
    will-change: transform;
  }
}

@keyframes swipe-arrow-visible {
  0%, 100% { transform: translateX(-7px); }
  50% { transform: translateX(7px); }
}