/* Balo Shipping — site styles
   Palette taken from the vessel itself: logo blue, hull navy, deck green,
   safety-marking yellow, superstructure white, antifouling red. */

:root {
  --balo: #1670B8;
  --hull: #13296B;
  --hull-deep: #0C1C4D;
  --deck: #2E8A5E;
  --deck-dark: #22704B;
  --signal: #F2C230;
  --steel: #EEF1F4;
  --white: #FFFFFF;
  --ink: #0F1D3A;
  --ink-soft: #46536B;
  --rule: #CDD4DE;
  --antifoul: #A8322A;

  --font-display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 4px;
}

:lang(ar) {
  --font-display: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { line-height: 1.75; }

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

a { color: var(--balo); text-underline-offset: .18em; }
a:hover { color: var(--hull); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; font-stretch: 105%; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; inset-inline-start: 8px; top: -60px;
  background: var(--signal); color: var(--ink); padding: 10px 14px; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  margin-inline-end: auto;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--balo); color: var(--white);
  display: grid; place-items: center;
  --logo-wedge: var(--hull);
}
.brand-mark svg { width: 32px; height: 32px; }
.brand-name {
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .06em;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-weight: 500; font-size: .98rem;
  color: var(--ink); text-decoration: none;
  padding: 10px 12px; border-radius: var(--radius);
}
.nav a:hover { background: var(--steel); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--balo); box-shadow: inset 0 -3px 0 var(--balo); border-radius: 0; }
.nav a.nav-cta {
  background: var(--hull); color: var(--white); margin-inline-start: 8px;
}
.nav a.nav-cta:hover { background: var(--hull-deep); color: var(--white); }
.nav a.nav-cta[aria-current="page"] { box-shadow: none; border-radius: var(--radius); }

.lang {
  display: flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
}
.lang button {
  font: 500 .85rem/1 var(--font-body);
  background: none; border: 0; padding: 9px 10px; cursor: pointer; color: var(--ink-soft);
}
.lang button + button { border-inline-start: 1px solid var(--rule); }
.lang button[aria-pressed="true"] { background: var(--hull); color: var(--white); }
.lang button:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; place-items: center; order: 3; }
  .lang { order: 2; }
  .nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--steel); }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--balo); padding-inline-start: 14px; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* ---------- Hero: built like the ship's side ---------- */

.hero { position: relative; background: var(--hull); }

.hero-photo {
  position: relative; margin: 0;
  height: min(78vh, 760px); min-height: 460px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 28, 77, .82) 0%, rgba(12, 28, 77, .35) 38%, rgba(12, 28, 77, 0) 62%);
}
@media (max-width: 640px) {
  .hero-photo { height: auto; min-height: 680px; }
  .hero-photo img { position: absolute; inset: 0; }
  .hero-photo::after { background: linear-gradient(to top, rgba(12, 28, 77, .9) 0%, rgba(12, 28, 77, .6) 55%, rgba(12, 28, 77, .1) 85%); }
}
.hero-copy {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding-bottom: clamp(28px, 5vw, 56px);
  color: var(--white);
}
.hero-copy h1 { color: var(--white); max-width: 16ch; }
.hero-copy p { font-size: 1.15rem; max-width: 52ch; margin: 18px 0 26px; color: rgba(255, 255, 255, .92); }

/* ---------- Scroll-driven opening (hold to bridge) ---------- */
/* The tall wrapper gives the scroll distance; the stage stays pinned while frames play. */
.voyage { position: relative; height: 300vh; background: var(--hull-deep); }
.voyage-stage {
  position: sticky; top: 73px; height: calc(100vh - 73px); height: calc(100svh - 73px);
  overflow: hidden; background: var(--hull-deep);
}
.voyage-still, .voyage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voyage-frame { position: absolute; inset: 0; }
.voyage-title { display: none; }
.voyage-video { display: block; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.voyage.ready .voyage-video { opacity: 1; }
.voyage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .3s ease .4s, visibility 0s .7s; } /* leaves only after the video has faded in on top */
.voyage.loading .voyage-poster { opacity: 1; visibility: visible; transition: none; }
.voyage.loading .voyage-still { visibility: hidden; }
.voyage-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 28, 77, .85) 0%, rgba(12, 28, 77, .3) 40%, rgba(12, 28, 77, 0) 65%);
  opacity: var(--copy, 1);
}
.voyage-cap {
  position: absolute; inset-inline: 0; top: 7%; margin: 0 auto; max-width: none; text-align: center;
  opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; pointer-events: none;
}
.voyage-cap span {
  display: inline-block; background: rgba(12, 28, 77, .72); color: var(--white);
  font: 700 clamp(1.1rem, 2.4vw, 1.7rem)/1.2 "Archivo", sans-serif; font-stretch: 115%;
  padding: 12px 20px; border-radius: var(--radius); border-inline-start: 4px solid var(--signal);
}
:lang(ar) .voyage-cap span { font-family: var(--font-display); }
.voyage-cap.on { opacity: 1; transform: none; }
.voyage-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: var(--white); font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  padding-bottom: 26px; transition: opacity .3s;
}
.voyage-hint::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 18px; margin-left: -1px;
  background: var(--signal); border-radius: 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .voyage-hint::after { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}
.voyage-copy { opacity: var(--copy, 1); transform: translateY(calc((1 - var(--copy, 1)) * 24px)); }
.voyage-copy.is-hidden { pointer-events: none; }

/* Without the animation (no JavaScript, reduced motion, or frames missing): one screen, closing frame, copy shown. */
.voyage.static { height: auto; }
.voyage.static .voyage-stage { position: relative; top: 0; height: min(78vh, 760px); min-height: 520px; }
.voyage.static .voyage-video, .voyage.static .voyage-cap, .voyage.static .voyage-hint { display: none; }
@media (max-width: 640px) {
  .voyage.static .voyage-stage { height: auto; min-height: 680px; }
  .voyage-shade { background: linear-gradient(to top, rgba(12, 28, 77, .92) 0%, rgba(12, 28, 77, .6) 50%, rgba(12, 28, 77, .05) 85%); }
}

/* deck edge: this ship's gunwale is painted green */
.deck-edge { height: 8px; background: var(--deck); }

.hull {
  position: relative;
  background: var(--hull);
  color: var(--white);
  padding-block: clamp(22px, 4vw, 44px) clamp(26px, 4.4vw, 48px);
  overflow: hidden;
}
.hull-name {
  display: block;
  font-family: "Archivo", sans-serif;
  font-stretch: 125%;
  font-weight: 800;
  /* the word is ~11.1em wide at this tracking; 7.9vw keeps it inside the hull */
  font-size: clamp(1.5rem, 7.9vw, 9rem);
  line-height: .9;
  letter-spacing: .07em;
  white-space: nowrap;
  text-align: center;
  color: var(--white);
  direction: ltr;
}
.hull-sub {
  display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap;
  margin-top: clamp(14px, 2vw, 22px);
  font-size: .95rem; color: rgba(255, 255, 255, .78);
}
.hull-sub span { white-space: nowrap; }

/* draft marks painted at the bow */
.draft {
  position: absolute; inset-inline-end: clamp(10px, 2vw, 28px); top: 10px; bottom: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 100%;
  font-size: clamp(.6rem, 1vw, .8rem); line-height: 1;
  color: rgba(255, 255, 255, .55);
  direction: ltr;
}
@media (max-width: 640px) { .draft { display: none; } }

.waterline { height: 14px; background: var(--antifoul); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font-body);
  padding: 15px 22px; min-height: 48px;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--hull); }
.btn-primary:hover { background: var(--steel); color: var(--hull-deep); }
.btn-solid { background: var(--hull); color: var(--white); }
.btn-solid:hover { background: var(--hull-deep); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-white { background: var(--white); }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 720px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; }

.lede { font-size: 1.2rem; color: var(--ink-soft); }

/* intro */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { max-width: 14ch; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0; margin: 32px 0 0; border-top: 1px solid var(--rule);
}
.facts div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { padding-inline-end: 16px; }
.facts dt { font-size: .9rem; color: var(--ink-soft); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* services: four duties listed against a deck-green rule */
.duties {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0;
}
.duties li { border-top: 4px solid var(--deck); padding-top: 20px; }
.duties h3 { margin-bottom: 10px; }
.duties p { color: var(--ink-soft); margin: 0; }
@media (max-width: 980px) { .duties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .duties { grid-template-columns: 1fr; } }

/* vessel feature */
.vessel { display: grid; grid-template-columns: 7fr 5fr; background: var(--hull); color: var(--white); }
.vessel figure { margin: 0; min-height: 420px; }
.vessel figure img { width: 100%; height: 100%; object-fit: cover; }
.vessel-body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.vessel-body h2 { color: var(--white); }
.vessel-body p { color: rgba(255, 255, 255, .85); margin-top: 16px; }
.specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 32px; border-top: 1px solid rgba(255, 255, 255, .22);
}
.specs div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.specs dt { font-size: .88rem; color: rgba(255, 255, 255, .7); }
.specs dd {
  margin: 0; font-family: "Archivo", sans-serif; font-stretch: 112%;
  font-size: 1.5rem; font-weight: 700; direction: ltr; text-align: start;
}
:lang(ar) .specs dd { text-align: right; }
@media (max-width: 900px) {
  .vessel { grid-template-columns: 1fr; }
  .vessel figure { min-height: 0; aspect-ratio: 16 / 10; }
}

/* interactive ship profile: select a part of MV AMO 2 to read its particulars */
.profile { background: var(--white); padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.profile-head { display: grid; grid-template-columns: 6fr 5fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.profile-head h2 { max-width: 14ch; }
.profile-head p { color: var(--ink-soft); margin-bottom: 20px; }
@media (max-width: 860px) { .profile-head { grid-template-columns: 1fr; } }

.ship-drawing { position: relative; }
.ship-drawing svg { display: block; width: 100%; height: auto; }
.pin {
  position: absolute; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--white); background: var(--hull); color: var(--white);
  font: 700 .85rem/1 "Archivo", sans-serif; cursor: pointer;
  display: grid; place-items: center;
}
.pin:hover { background: var(--balo); }
.pin[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .pin:not([aria-pressed="true"]) { animation: ping 2.4s infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(22, 112, 184, .45); } 70% { box-shadow: 0 0 0 14px rgba(22, 112, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 112, 184, 0); } }
}
@media (max-width: 640px) { .pin { width: 28px; height: 28px; font-size: .72rem; } }

.ship-scale { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--ink-soft); padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--ink); }

.readout { display: grid; grid-template-columns: minmax(200px, 3fr) 9fr; gap: 24px clamp(32px, 5vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.parts { display: flex; flex-direction: column; gap: 4px; }
.parts button {
  display: flex; align-items: center; gap: 12px; text-align: start;
  background: none; border: 0; border-inline-start: 3px solid transparent;
  padding: 11px 14px; font: 500 1rem var(--font-body); color: var(--ink-soft); cursor: pointer;
}
.parts button:hover { color: var(--ink); background: var(--steel); }
.parts button[aria-pressed="true"] { color: var(--ink); background: var(--steel); border-inline-start-color: var(--signal); }
.parts .num {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font: 700 .75rem/1 "Archivo", sans-serif;
  background: var(--hull); color: var(--white);
}
.parts button[aria-pressed="true"] .num { background: var(--signal); color: var(--ink); }

.panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 112%; margin-bottom: 6px; }
.panel > p { color: var(--ink-soft); margin: 0 0 18px; }
.panel dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.panel dl div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.panel dt { font-size: .88rem; color: var(--ink-soft); }
.panel dd { margin: 0; font-family: "Archivo", sans-serif; font-stretch: 110%; font-weight: 700; font-size: 1.35rem; }
@media (max-width: 760px) {
  .readout { grid-template-columns: 1fr; }
  .parts { flex-direction: row; flex-wrap: wrap; }
  .parts button { border-inline-start: 0; border-bottom: 3px solid transparent; padding: 8px 10px; }
  .parts button[aria-pressed="true"] { border-bottom-color: var(--signal); }
}

/* reel of crew footage */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.reel figure { margin: 0; scroll-snap-align: start; }
.reel-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--hull); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 9 / 16;
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-play {
  position: absolute; inset-inline-start: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--hull);
  display: grid; place-items: center;
}
.reel-play svg { width: 18px; height: 18px; }
.reel-btn.playing .reel-play { opacity: 0; }
.reel figcaption { font-size: .92rem; color: var(--ink-soft); margin-top: 8px; }
.reel-hint { font-size: .92rem; color: var(--ink-soft); margin-top: 6px; }

/* group structure */
.group { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.tree { position: relative; display: grid; gap: 0; }
.tree-node {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 18px; align-items: center;
}
.tree-node.parent { background: var(--hull); color: var(--white); border-color: var(--hull); }
.tree-node.parent h3 { color: var(--white); }
.tree-node .mark { width: 48px; flex: none; color: inherit; --logo-wedge: var(--hull); }
.tree-node.parent .mark { color: var(--white); --logo-wedge: var(--balo); }
.tree-node p { margin: 4px 0 0; font-size: .96rem; }
.tree-node.parent p { color: rgba(255, 255, 255, .8); }
.tree-node:not(.parent) p { color: var(--ink-soft); }
.tree-link {
  width: 2px; height: 36px; background: var(--rule);
  margin-inline-start: 47px;
}
.tree-children { display: grid; gap: 12px; }
.amo-badge {
  flex: none; width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--hull); color: var(--white);
  display: grid; place-items: center;
  font: 800 .78rem/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: .04em;
}
.status {
  display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 600;
  background: var(--signal); color: var(--ink); padding: 3px 8px; border-radius: 2px;
}
@media (max-width: 860px) { .group { grid-template-columns: 1fr; } }

/* inquiry band */
.cta-band { background: var(--deck); color: var(--white); padding-block: clamp(56px, 7vw, 88px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { margin: 12px 0 0; color: rgba(255, 255, 255, .92); }
.cta-band .btn-primary { color: var(--deck-dark); }

/* ---------- Page headers (inner pages) ---------- */

.page-head { position: relative; background: var(--hull); color: var(--white); }
.page-head figure { margin: 0; height: clamp(260px, 42vh, 440px); overflow: hidden; }
.page-head figure img { width: 100%; height: 100%; object-fit: cover; }
.page-head figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 28, 77, .85), rgba(12, 28, 77, .1) 70%);
}
.page-head .wrap { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding-bottom: clamp(24px, 4vw, 44px); }
.page-head h1 { color: var(--white); }
.page-head p { color: rgba(255, 255, 255, .9); margin: 12px 0 0; font-size: 1.12rem; }
.page-head.plain { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.page-head.plain .wrap { position: static; padding-bottom: 0; }

/* particulars table */
.particulars { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { text-align: start; padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ptable th { font-weight: 500; color: var(--ink-soft); width: 42%; padding-inline-end: 16px; }
.ptable td { font-weight: 600; }
.ptable .pgroup th {
  width: auto; color: var(--ink); font-family: var(--font-display); font-stretch: 105%;
  font-weight: 650; font-size: 1.05rem; padding-top: 28px; border-bottom: 2px solid var(--ink);
}
.ptable tbody:first-child .pgroup th { padding-top: 0; }
.note { font-size: .95rem; color: var(--ink-soft); margin-top: 18px; }
@media (max-width: 800px) { .particulars { grid-template-columns: 1fr; } }
/* On wide screens the vessel name and button stay in view while the long particulars table scrolls past. */
@media (min-width: 801px) { .particulars > div:first-child { position: sticky; top: 104px; align-self: start; } }

/* fleet roster: vessels in order of delivery */
.roster-section { padding-block: clamp(36px, 5vw, 56px); }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.roster a {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "year name badge" "year note badge";
  column-gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 24px; text-decoration: none; color: var(--ink);
}
.roster a:hover { border-color: var(--hull); color: var(--ink); }
.roster-year {
  grid-area: year; font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 112%;
  font-size: 1rem; color: var(--ink-soft); padding-inline-end: 20px; border-inline-end: 1px solid var(--rule); align-self: stretch;
  display: flex; align-items: center;
}
.roster-name { grid-area: name; font-family: "Archivo", sans-serif; font-weight: 750; font-stretch: 112%; font-size: 1.35rem; direction: ltr; text-align: start; }
.roster-note { grid-area: note; font-size: .94rem; color: var(--ink-soft); }
.roster .badge { grid-area: badge; }
@media (max-width: 760px) { .roster { grid-template-columns: 1fr; } }

.badge { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 2px; white-space: nowrap; }
.badge-live { background: var(--deck); color: var(--white); }
.badge-sold { background: transparent; color: var(--ink-soft); border: 1px solid #A9B3C2; }
.vessel-entry h2 + .badge { margin-top: 12px; }
.vessel-entry { scroll-margin-top: 80px; }

/* gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px; gap: 10px;
}
.gallery button {
  padding: 0; border: 0; background: var(--hull); cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }

.lightbox {
  width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; overflow: visible;
  background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(3, 14, 18, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox img {
  display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 0 auto;
  object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.lightbox-bar {
  display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 8px 8px 8px 18px; width: fit-content; max-width: 100%;
  background: rgba(5, 22, 26, .7); border: 1px solid rgba(255, 226, 170, .22); border-radius: 99px;
}
.lightbox-bar span { margin-inline-end: 10px; font-size: .92rem; color: rgba(246, 241, 231, .84); white-space: nowrap; }
.lightbox-bar button {
  background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid transparent; border-radius: 99px;
  min-width: 44px; height: 40px; padding: 0 16px; cursor: pointer; font: 500 .92rem var(--font-body);
  transition: background .2s, border-color .2s;
}
.lightbox-bar button:hover { background: rgba(245, 185, 74, .2); border-color: rgba(245, 185, 74, .6); }
.lightbox-bar button:focus-visible { outline: 2px solid #F5B94A; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .35s cubic-bezier(.2, .8, .2, 1); }
  .lightbox[open]::backdrop { animation: lb-fade .35s ease; }
  .lightbox img.is-swapping { animation: lb-swap .35s ease; }
  @keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
  @keyframes lb-fade { from { opacity: 0; } }
  @keyframes lb-swap { from { opacity: .2; } }
}

/* ---------- AMO Line ---------- */

.amo-hero { display: grid; grid-template-columns: 6fr 6fr; min-height: calc(100vh - 73px); background: var(--hull); color: var(--white); }
.amo-hero figure { margin: 0; position: relative; }
.amo-hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amo-body { padding: clamp(40px, 6vw, 88px) var(--gutter); align-self: center; max-width: 640px; }
.amo-word {
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem); letter-spacing: .1em; line-height: 1; white-space: nowrap;
  direction: ltr; display: block; margin-bottom: 28px;
}
.amo-body h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.amo-body p { color: rgba(255, 255, 255, .86); margin-top: 18px; }
.progress { margin: 28px 0 32px; }
.progress-row { display: flex; justify-content: space-between; font-size: .92rem; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.progress-row strong { color: var(--signal); font-weight: 600; }
.progress-track { height: 6px; background: rgba(255, 255, 255, .16); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; width: 38%; background: var(--signal); }
.amo-parent { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .95rem; color: rgba(255, 255, 255, .75); }
.amo-parent a { color: var(--white); }
@media (max-width: 900px) {
  .amo-hero { grid-template-columns: 1fr; min-height: 0; }
  .amo-hero figure { aspect-ratio: 4 / 3; }
}

/* ---------- Inquiries ---------- */

.inquiry { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 920px) { .inquiry { grid-template-columns: 1fr; } }

.form { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 1px solid #A9B3C2; border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--hull); }
.field .hint { font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
.field .err { display: none; font-size: .9rem; color: var(--antifoul); margin-top: 6px; font-weight: 500; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--antifoul); }
.field.invalid .err { display: block; }

/* ---------- Legal pages ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-stretch: 108%; margin: 2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .55em; max-width: 70ch; }
.legal code { font-size: .92em; padding: 1px 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.legal .ptable { margin: 0 0 1em; }
.legal-note { font-weight: 500; margin-bottom: 1.5em; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.check-row { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; cursor: pointer; }
.field .check-row input { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: var(--signal); cursor: pointer; }
.field.invalid .check-row input { outline: 2px solid var(--antifoul); outline-offset: 2px; }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 26px; }
.form-foot p { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: 36ch; }

.form-alert { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-alert.error { display: block; background: #FBEDEC; color: #7C231D; border-inline-start: 4px solid var(--antifoul); }

.form-done { display: none; }
.form-done h2 { margin-bottom: 12px; }
.form.sent .form-body { display: none; }
.form.sent .form-done { display: block; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--deck); color: var(--white); display: grid; place-items: center; margin-bottom: 20px; }
.form-done .tick svg { width: 28px; height: 28px; }

.contact-card h2 { font-size: 1.5rem; margin-bottom: 14px; }
.contact-card address { font-style: normal; line-height: 1.6; margin-bottom: 8px; }
/* Contact page: two boxes of equal height; the map grows to fill the office box. */
.inquiry:has(.contact-office) { align-items: stretch; grid-template-columns: 1fr 1fr; }
.contact-direct .lines li:last-child { border-bottom: 0; }
.contact-office, .contact-office .contact-block { display: flex; flex-direction: column; }
.contact-office .contact-block { flex: 1; }
.contact-office .office-map { flex: 1; aspect-ratio: auto; min-height: 260px; }
.office-map { margin: 16px 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 4 / 3; background: var(--rule); }
@media (max-width: 920px) { .inquiry:has(.contact-office) { grid-template-columns: 1fr; } .contact-office .office-map { min-height: 300px; } }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.contact-block + .contact-block { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--rule); }
.lines { list-style: none; padding: 0; margin: 0; }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.lines li span:first-child { color: var(--ink-soft); }
.lines a { font-weight: 600; text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.lines a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: var(--hull-deep); color: rgba(255, 255, 255, .78); padding-block: 64px 28px; font-size: .96rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 4fr 3fr 3fr; gap: 36px; }
.foot-grid h2 { font-size: 1rem; font-stretch: 105%; color: var(--white); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 3px 0; }
.foot-grid address { font-style: normal; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--white); margin-bottom: 16px; }
.foot-brand .brand-mark { background: var(--balo); }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; }
.ltr { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- One orchestrated moment: the hull lettering settles in on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hull-name { animation: paint 1.1s cubic-bezier(.2, .7, .2, 1) both .15s; }
  .waterline { animation: tide 1.1s cubic-bezier(.2, .7, .2, 1) both; transform-origin: left center; }
  @keyframes paint { from { letter-spacing: .16em; } to { letter-spacing: .07em; } }
  @keyframes tide { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Step inside: full-screen view of a part of the ship ---------- */
.inside-hint { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: .92rem; opacity: .9; }
.inside-hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--signal)); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .inside-hint-dot { animation: ping-dot 2.4s infinite; }
  @keyframes ping-dot { 0% { box-shadow: 0 0 0 0 rgba(245, 185, 74, .55); } 70% { box-shadow: 0 0 0 10px rgba(245, 185, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 185, 74, 0); } }
}
html { scrollbar-gutter: stable; } /* hiding the scrollbar while a view is open must not shift the page */
html.inside-open { overflow: hidden; }

.inside {
  --gold: #F5B94A; --cream: #F6F1E7; --cream-soft: rgba(246, 241, 231, .84);
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: hidden;
}
.inside::backdrop { background: rgba(3, 12, 15, .6); opacity: 0; transition: opacity .9s ease; }
.inside.is-in::backdrop { opacity: 1; }

/* The scene fades in over the page; a drone clip (when there is one) flies from outside the ship to the inside view. */
.inside-scene {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: #061a1e;
  opacity: 0; transition: opacity .5s ease;
}
.inside.is-open .inside-scene { opacity: 1; }
.inside.is-out .inside-scene { opacity: 0; scale: 1.04; transition: opacity .55s ease, scale .6s ease; }
.inside-view { position: absolute; inset: 0; }
.inside-fly {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  opacity: 0; transition: opacity .55s ease; pointer-events: none;
}
.inside.is-flying .inside-fly, .inside.flown .inside-fly { opacity: 1; transition: none; }
/* a gentle push forward while the outside view fades in, so the motion flows straight into the drone flight */
.inside.is-flying.is-open .inside-view { animation: approach 1s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes approach { from { scale: .96; } to { scale: 1; } }
.inside-vignette { transition: opacity .8s ease; }
.inside.is-flying .inside-vignette { opacity: .35; }
.inside-skip {
  position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; margin: 0;
  font-size: .85rem; letter-spacing: .06em; color: rgba(246, 241, 231, .8);
  padding: 6px 14px; border-radius: 99px; background: rgba(5, 22, 26, .5); border: 1px solid rgba(255, 226, 170, .2);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.inside.is-flying.is-open .inside-skip { opacity: 1; transition-delay: 1.2s; }
.inside-img {
  position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; object-fit: cover;
  opacity: 0; transition: opacity 1s ease, translate .9s cubic-bezier(.2, .7, .2, 1);
  translate: calc(var(--px, 0) * -16px) calc(var(--py, 0) * -10px);
  will-change: opacity, scale, translate; backface-visibility: hidden;
}
.inside-img.is-front { opacity: 1; }
.inside.travel:is(.is-in, .is-out) .inside-img.is-front { animation: travel 2.4s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes travel { from { scale: 1.16; } to { scale: 1; } }
.inside-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(3, 14, 18, .55) 100%),
    linear-gradient(to top, rgba(3, 14, 18, .82), rgba(3, 14, 18, 0) 48%),
    linear-gradient(to bottom, rgba(3, 14, 18, .55), rgba(3, 14, 18, 0) 22%);
}

/* Heads-up layer: top bar, floating cards, navigation */
.inside-hud {
  position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  opacity: 0; transition: opacity .3s ease;
}
.inside.is-in .inside-hud { opacity: 1; transition: opacity .6s ease .2s; }
.inside.travel.is-in .inside-hud { transition-delay: .5s; }
.inside.is-flying.is-open .inside-hud { opacity: 1; }
.inside.is-flying :is(.inside-kicker, .inside-space, .inside-nav) { opacity: 0; visibility: hidden; }
.inside-kicker, .inside-nav { transition: opacity .5s ease; }
.inside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(0px, 1.5vw, 12px) clamp(0px, 2vw, 24px) 0; }
.inside-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; font-size: .9rem; letter-spacing: .04em; color: var(--cream-soft); }
.inside-count { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--gold); letter-spacing: .08em; }
.inside-illus { font-size: .76rem; padding: 3px 9px; border: 1px solid rgba(255, 226, 170, .3); border-radius: 99px; color: var(--cream-soft); }
.inside-close, .inside-step, .inside-dots button {
  font: inherit; color: var(--cream); cursor: pointer;
  background: rgba(6, 26, 30, .62); border: 1px solid rgba(255, 226, 170, .28);
  transition: background .2s, border-color .2s, color .2s;
}
.inside-close { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.inside-close svg { width: 22px; height: 22px; }
.inside-close:hover, .inside-step:hover, .inside-dots button:hover { background: rgba(245, 185, 74, .22); border-color: var(--gold); }
.inside :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.inside-space {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(24px, 6vw, 110px); padding: 16px clamp(0px, 4vw, 72px);
  perspective: 1300px; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
.inside-float { transform-style: preserve-3d; opacity: 0; }
.inside-float-main { rotate: y 12deg; }
.inside-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; rotate: y -12deg; transform-style: preserve-3d; }
[dir="rtl"] .inside-float-main { rotate: y -12deg; }
[dir="rtl"] .inside-facts { rotate: y 12deg; }
.inside:is(.is-in, .is-out) .inside-float {
  animation:
    float-in 1s cubic-bezier(.2, .8, .2, 1) calc(var(--base, .6s) + var(--d, 0) * .08s) both,
    bob 6s ease-in-out calc(var(--base, .6s) + 1s + var(--d, 0) * .08s) infinite alternate;
}
/* switching parts: the old cards drift away before the new ones arrive */
.inside .inside-space.is-leaving .inside-float { animation: float-out .28s cubic-bezier(.4, 0, 1, 1) both; }
@keyframes float-in { from { opacity: 0; transform: translate3d(0, 24px, -160px); } to { opacity: 1; transform: none; } }
@keyframes float-out { from { opacity: 1; } to { opacity: 0; transform: translate3d(0, -12px, -60px); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.inside-card {
  position: relative; margin: 0;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.2vw, 28px);
  /* no live blur here: blurring a moving picture every frame is what made the transition stutter */
  background: linear-gradient(140deg, rgba(255, 240, 210, .13), rgba(255, 240, 210, .02) 60%), rgba(5, 22, 26, .64);
  border: 1px solid rgba(255, 226, 170, .26); border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 60px -30px rgba(0, 0, 0, .85), 0 0 46px -14px rgba(245, 185, 74, .38);
  translate: calc(var(--px, 0) * var(--depth, 10) * .4px) calc(var(--py, 0) * var(--depth, 10) * .25px) var(--z, 0px);
  transition: translate .6s cubic-bezier(.2, .7, .2, 1);
}
/* corner brackets, like a heads-up display */
.inside-card::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 2px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 2px 16px no-repeat;
  opacity: .85;
}
.inside-main { --depth: 14; }
.inside-main h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 3.1rem); font-stretch: 112%; line-height: 1.04; color: var(--cream); }
.inside-main p { margin: 0; color: var(--cream-soft); font-size: clamp(.98rem, 1.2vw, 1.12rem); max-width: 42ch; }
.inside-fact { --depth: 26; }
.inside-facts .inside-float:nth-child(even) .inside-fact { --z: 40px; --depth: 34; }
.inside-fact dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
[lang="ar"] .inside-fact dt, [lang="tr"] .inside-fact dt { letter-spacing: .02em; }
.inside-fact dd { margin: 0; font-family: "Archivo", var(--font-body); font-weight: 700; font-stretch: 110%; font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; unicode-bidi: plaintext; }

.inside-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.inside-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px; }
.inside-step svg { width: 18px; height: 18px; }
[dir="rtl"] .inside-step svg { transform: scaleX(-1); }
.inside-dots { display: flex; gap: 8px; }
.inside-dots button { width: 40px; height: 40px; border-radius: 50%; font-family: "Archivo", sans-serif; font-weight: 700; font-size: .88rem; }
.inside-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: #1E1606; }

@media (max-width: 600px), (max-aspect-ratio: 4/5) {
  .inside-space { grid-template-columns: 1fr; align-content: safe end; gap: 14px; padding: 12px 20px; perspective: 900px; }
  .inside-float-main, [dir="rtl"] .inside-float-main { rotate: none; }
  .inside-facts, [dir="rtl"] .inside-facts { rotate: x 8deg; gap: 10px; }
  .inside-card { padding: 14px 16px; background-color: rgba(5, 22, 26, .74); }
  .inside-main h2 { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
  .inside-fact dd { font-size: 1.05rem; }
  .inside-step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .inside-step { padding: 0; width: 44px; justify-content: center; }
  .inside-dots { gap: 6px; }
  .inside-dots button { width: 36px; height: 36px; }
}
@media (max-height: 560px) and (min-width: 600px) {
  .inside-main p { display: none; }
  /* short landscape screens (phones on their side): tighter cards so everything fits */
  .inside-space { padding-block: 6px; gap: 20px; }
  .inside-card { padding: 10px 14px; }
  .inside-main h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); margin: 0; }
  .inside-facts { gap: 8px; }
  .inside-fact dt { margin-bottom: 2px; }
  .inside-fact dd { font-size: 1rem; }
  .inside-nav { padding-top: 6px; }
  .inside-dots button { width: 34px; height: 34px; }
  .inside-step { min-height: 36px; }
  .inside-close { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .inside-scene, .inside.is-out .inside-scene { scale: none; transition: opacity .3s ease; }
  .inside .inside-space.is-leaving .inside-float { animation: none; opacity: 0; }
  .inside-img { transition: opacity .3s ease; translate: none; }
  .inside:is(.is-in, .is-out) .inside-img.is-front { animation: none; }
  .inside .inside-float, .inside:is(.is-in, .is-out) .inside-float { opacity: 1; animation: none; }
  .inside.is-in .inside-hud { transition: opacity .3s ease; }
  .inside-card { translate: none; }
}
