:root {
  --surface: #fff;
  --paper: #f5f4ef;
  --ink: #142439;
  --muted: #516074;
  --line: #dce1e5;
  --deep: #0b1828;
  --gold: #dfbd7c;
  --mark-on-dark: linear-gradient(
    125deg,
    #c69b55 10%,
    #ffe6a7 46%,
    #d6ad68 70%,
    #f7d895 100%
  );
  --mark-palette: linear-gradient(
    125deg,
    #563311 10%,
    #936127 46%,
    #614015 70%,
    #805421 100%
  );
  --accent: #77501f;
  --blue: #24567a;
  --gutter: clamp(1rem, 5vw, 5rem);
  --content-width: 80rem;
  --section-space: clamp(4rem, 8vw, 8rem);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --mark-palette: var(--mark-on-dark);
  --surface: #101e30;
  --paper: #16263a;
  --ink: #f3f5f6;
  --muted: #b9c7d5;
  --line: #3c4d61;
  --accent: #e2c083;
  --blue: #a9d0ee;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Cairo, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}
:lang(zh) {
  font-family: Cairo, "PingFang SC", "Microsoft YaHei", sans-serif;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid #b88942;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  inset: 0.5rem auto auto 0.5rem;
  background: var(--gold);
  color: var(--deep);
  padding: 0.65rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.in,
.hb,
.topbar > div {
  width: min(100% - var(--gutter) * 2, var(--content-width));
  margin-inline: auto;
}

#hd {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--deep);
  color: #e0e8f0;
  font-size: 0.8125rem;
}
.topbar > div,
.toplinks,
.hb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar > div {
  min-height: 2.25rem;
}
.toplinks {
  gap: 1.5rem;
  direction: ltr;
}
.toplinks a,
.brand,
nav a,
.nav-cta {
  text-decoration: none;
}
.toplinks a:hover {
  text-decoration: underline;
}

.hb {
  min-height: 5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}
.brand-mark {
  flex: none;
  display: block;
  inline-size: 2.8rem;
  aspect-ratio: 404 / 302;
  background: var(--mark-palette) 0 50% / 230% 100%;
  mask: url(assets/jg-mark.svg) center / contain no-repeat;
}
.brand .brand-mark {
  transition:
    background-position 0.65s ease,
    transform 0.3s ease;
}
.brand.brand-ready .brand-mark {
  animation: brand-arrival 0.62s ease both;
}
.brand:is(:hover, :focus-visible) .brand-mark {
  transform: translateY(-2px);
  background-position: 100% 50%;
}
@keyframes brand-arrival {
  from {
    opacity: 0.55;
    scale: 0.86;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
.brandtype {
  display: grid;
  gap: 0.3rem;
  line-height: 1.2;
}
.brandtype strong {
  font-size: 1.14rem;
  font-weight: 800;
}
.brandtype small {
  direction: ltr;
  font-size: 0.8125rem;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.25vw, 1.25rem);
}
nav a {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}
nav a:hover,
nav a.on {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.nav-cta {
  background: var(--deep);
  color: white;
  font-weight: 700;
  padding: 0.62rem 0.85rem;
  white-space: nowrap;
  font-size: 0.875rem;
}
.nav-cta:hover {
  background: #254261;
}
.lang {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  direction: ltr;
}
.lang button,
.theme-toggle,
#menu {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}
.lang button {
  padding: 0.25rem 0.4rem;
  font-size: 0.875rem;
  min-height: 2.2rem;
}
.lang button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--paper);
  font-weight: 800;
}
.theme-toggle,
#menu {
  display: grid;
  place-items: center;
  border-color: var(--line);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex: none;
  line-height: 1;
  font-size: 1.25rem;
}
#menu {
  display: none;
}

.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(35rem, 76svh, 51rem);
  background: var(--deep);
  color: white;
  padding-block: clamp(4.5rem, 9vw, 9rem) 7rem;
}
.hero::after,
.port-photo,
.hero-alt {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}
.port-photo,
.hero-alt {
  background: center 55% / cover no-repeat;
  transition: opacity 0.45s ease;
}
.port-photo {
  background-image: url(assets/port-terminal.webp);
}
.hero-alt {
  opacity: 0;
}
.hero[data-slide="1"] .hero-alt,
.hero[data-slide="2"] .hero-alt {
  opacity: 1;
}
.hero[data-slide="1"] .port-photo,
.hero[data-slide="2"] .port-photo {
  opacity: 0;
}
.hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, #0b1828 1%, #0b1828f0 24%, #0b18286b 65%, #0b18282b),
    linear-gradient(0deg, #0b1828be, transparent 40%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(
      270deg,
      #0b1828 1%,
      #0b1828f0 24%,
      #0b18286b 65%,
      #0b18282b
    ),
    linear-gradient(0deg, #0b1828be, transparent 40%);
}
.hero[data-slide="2"] .hero-alt {
  background-position: center 57%;
}
.hc,
.hero-index {
  width: min(100% - var(--gutter) * 2, var(--content-width));
  margin-inline: auto;
}
.k,
.eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}
.k {
  color: #f5d79a;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.k::before {
  content: "";
  width: 2rem;
  border-top: 2px solid currentColor;
}
.hc h1 {
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 6.25rem);
  line-height: 1.16;
  margin: 0.3em 0 0.22em;
  max-width: 13ch;
  text-wrap: balance;
}
[lang="ar"] .hc h1 {
  max-width: 11ch;
}
.hc p {
  max-width: 32rem;
  margin: 0 0 1.65rem;
  color: #f1f4f7;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
}
.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9375rem;
}
.btn.p {
  background: var(--gold);
  color: var(--deep);
}
.btn.p:hover {
  background: #f2d59b;
}
.btn.g {
  color: white;
  border-color: #ffffffa0;
  background: #0b182859;
}
.btn.g:hover {
  background: #ffffff20;
}
.hero-index {
  position: absolute;
  inset: auto 0 0;
  border-top: 1px solid #ffffff60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-block: 0.75rem;
}
.slide-number {
  font-size: 0.875rem;
  color: #e0e8f0;
}
.slide-number b {
  color: white;
  font-size: 1.45rem;
}
.slide-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.slide-controls button {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  color: white;
  border: 1px solid #ffffff65;
  background: #0b182870;
  padding: 0;
}
.slide-controls button:hover {
  background: #ffffff28;
}
.slide-controls button[data-slide] {
  border: 0;
  width: 1.55rem;
  background: transparent;
}
.slide-controls button[data-slide]::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff9;
}
.slide-controls button[data-slide][aria-pressed="true"]::before {
  background: var(--gold);
  width: 0.7rem;
  height: 0.7rem;
}

.quicklinks {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.quicklinks .in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.quicklinks a {
  display: flex;
  align-items: center;
  min-height: 4.65rem;
  padding: 0.8rem 1rem;
  text-decoration: none;
  border-inline-start: 1px solid var(--line);
}
.quicklinks a:last-child {
  border-inline-end: 1px solid var(--line);
}
.quicklinks a:hover {
  color: var(--accent);
  background: var(--surface);
}
.quicklinks strong {
  font-size: 0.9375rem;
}

main > section:not(.hero) {
  padding-block: var(--section-space);
}
h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
h3 {
  line-height: 1.4;
}
p {
  overflow-wrap: break-word;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  margin: 0;
  max-width: 44rem;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about-copy {
  min-width: 0;
}
.about .eyebrow {
  display: block;
  margin-bottom: 0.85rem;
}
.aboutvisual {
  position: relative;
  min-width: 0;
  margin: 0;
}
.tradephoto {
  aspect-ratio: 1.37;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
}
.stats div + div {
  padding-inline-start: 1rem;
  border-inline-start: 1px solid var(--line);
}
.stats b {
  display: block;
  color: var(--accent);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.15;
}
.stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.svc,
.biz {
  background: var(--paper);
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head > p {
  margin: 0;
  color: var(--muted);
}
.sl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.sv {
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.service-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
}

.service-copy {
  padding: 1.15rem;
  display: flex;
  align-items: start;
  flex-direction: column;
  flex: 1;
}
.sv h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}
.sv p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
}
.text-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-underline-offset: 0.3em;
  margin-top: auto;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

.routeband {
  color: white;
  background: var(--deep);
}
main > section.routeband {
  padding-block: clamp(3rem, 5vw, 5rem);
}
.routeband .in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.routeband p {
  color: #d1dce8;
  margin: 0 0 1.4rem;
}
.routegraphic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.9rem;
  min-height: 10rem;
  background: radial-gradient(circle, #c3d4e047 1px, transparent 1px) 0 0 / 15px
    15px;
  border: 1px solid #7382945c;
}
.routepoint {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: white;
  font-size: 0.9rem;
}
.routepoint i {
  width: 1rem;
  height: 1rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 6px #dfbd7c30;
}
.routepath {
  width: 46%;
  border-top: 2px dashed var(--gold);
  position: relative;
  transform: translateY(-1.1rem);
}
.routepath span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  color: var(--gold);
  background: var(--deep);
  padding-inline: 0.2rem;
}

.photo-note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}
.hc .photo-note {
  display: inline-block;
  color: #f1f4f7;
  background: #0b1828a6;
  padding: 0.18rem 0.45rem;
  margin-top: 0.75rem;
}
.aboutvisual .photo-note {
  margin-top: 0.45rem;
}
.section-head > .photo-note {
  margin-top: 0.4rem;
}
.photo-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.85rem;
}
.photo-links a {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 1.5rem;
}
.project-filters button {
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 2.75rem;
}
.project-filters button[aria-pressed="true"] {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
  box-shadow: inset 0 -2px var(--gold);
}
.pj {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.pi {
  display: grid;
  isolation: isolate;
  position: relative;
  aspect-ratio: 1.36;
  margin: 0;
  background: var(--deep);
  color: white;
  overflow: hidden;
}
.pi img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.pi.p4 img {
  object-position: center 26%;
}
.pi:hover img,
.pi:focus-within img {
  transform: scale(1.025);
}
.pi figcaption {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, #0b1828);
  padding: 3rem 1rem 1rem;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  font-weight: 800;
  padding-inline-end: 8rem;
  pointer-events: none;
}
.project-open {
  color: var(--deep);
  background: var(--gold);
  border: 0;
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 800;
  position: absolute;
  inset: auto auto 1rem 1rem;
}
[dir="ltr"] .project-open {
  inset: auto 1rem 1rem auto;
}
.project-open:hover {
  background: #f2d59b;
}

.br,
.wy,
.cb {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}
.br,
.cb {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.branch {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-block-end: 3px solid var(--gold);
  padding: clamp(0.55rem, 1.25vw, 1rem);
  gap: clamp(0.65rem, 2vw, 1.5rem);
}
.branch-photo {
  position: relative;
  aspect-ratio: 365 / 334;
  overflow: hidden;
  background: var(--deep);
}
/* Both windows show 365 × 334 pixels of the same 900 × 1272 source. */
.branch-photo img {
  position: absolute;
  width: calc(900 / 365 * 100%);
  max-width: none;
  height: auto;
  left: calc(var(--crop-x) * -100% / 365);
  top: calc(var(--crop-y) * -100% / 334);
}
.branch-photo-first {
  --crop-x: 482;
  --crop-y: 635;
}
.branch-photo-second {
  --crop-x: 53;
  --crop-y: 628;
}
.branch-copy {
  min-width: 0;
}
.br small,
.mg {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}
.br h3 {
  font-size: 1.45rem;
  margin: 0.45rem 0;
}
.br p,
.wy p {
  color: var(--muted);
  margin: 0;
}
.wy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wy > div {
  border-top: 2px solid var(--gold);
  padding-top: 1rem;
}
.wy h3 {
  font-size: 1.3rem;
  margin: 0 0 0.55rem;
}
.ct {
  background: #162a42;
  color: white;
}
.ct .lead {
  color: #d8e4ef;
}
.cb a {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  min-height: 4.6rem;
  border: 1px solid #8394a95c;
  padding: 0.85rem 1.05rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cb a:hover {
  background: #253c58;
}
.cb svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}
.cb small {
  display: block;
  color: #dae4ee;
  font-size: 0.875rem;
}

footer {
  background: var(--deep);
  color: #d8e4ef;
  padding-block: 3.2rem 4.35rem;
}
.footgrid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 1.5rem;
}
.footgrid > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.45rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.footgrid strong {
  color: white;
}
.footbrand {
  --mark-palette: var(--mark-on-dark);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.footbrand .brand-mark {
  inline-size: 1.9rem;
}
.footgrid p {
  margin: 0;
}
.footgrid a,
.footbottom {
  font-size: 0.9rem;
}
.footgrid a {
  text-decoration: none;
}
.footgrid a:hover,
.footbottom a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footbottom {
  border-top: 1px solid #ffffff4a;
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  padding: 1rem;
  border: 1px solid var(--line);
  max-width: 92vw;
  max-height: 92dvh;
}
dialog::backdrop {
  background: #0b1828df;
}
dialog img {
  max-width: 82vw;
  max-height: 73dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
dialog button {
  display: block;
  margin-inline-start: auto;
  margin-bottom: 0.45rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 2.5rem;
  font-size: 1.4rem;
  line-height: 1.5;
}
dialog p {
  margin: 0.45rem 0 0;
}

.welcome {
  --mark-palette: var(--mark-on-dark);
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background:
    radial-gradient(ellipse at center, #1b3144, transparent 66%), #081522;
  color: #fff9ee;
  text-align: center;
}
.welcome[open] {
  display: grid;
  place-items: center;
  animation: welcome-screen 1.8s ease both;
}
.welcome::backdrop {
  background: transparent;
}
.welcome-content {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}
.welcome .brand-mark {
  inline-size: clamp(6rem, 22vw, 11rem);
  margin-bottom: 0.75rem;
  animation: welcome-mark 1.15s ease-out both;
}
.welcome h2 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0;
  animation: welcome-word 0.55s 0.24s ease-out both;
}
.welcome p {
  color: #dfbd7c;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  animation: welcome-word 0.55s 0.38s ease-out both;
}
.welcome button {
  position: absolute;
  inset-block-start: max(1rem, env(safe-area-inset-top));
  inset-inline-end: 1rem;
  color: #fff9ee;
  background: #152638;
  border-color: #816a48;
  padding: 0.55rem 0.9rem;
  margin: 0;
  font-size: 0.875rem;
}
.welcome button:hover {
  background: #283d53;
}
@keyframes welcome-mark {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.8);
  }
  35% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
    background-position: 100% 50%;
  }
}
@keyframes welcome-word {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes welcome-screen {
  0%,
  82% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 83rem) {
  .nav-cta {
    display: none;
  }
}
@media (max-width: 67rem) {
  #menu {
    display: grid;
  }
  .hb {
    justify-content: start;
    gap: 0.65rem;
    min-height: 4.5rem;
  }
  .brand {
    margin-inline-end: auto;
  }
  nav {
    display: none;
  }
  nav.open {
    display: grid;
    position: absolute;
    inset: 100% 0 auto;
    max-block-size: calc(100dvh - 7rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--gutter);
    gap: 0.3rem;
    background: var(--surface);
    box-shadow: 0 18px 24px #0b182826;
  }
  nav a {
    padding: 0.5rem 0;
  }
  .sl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 43rem) {
  html {
    scroll-padding-top: 5rem;
  }
  .topbar {
    display: none;
  }
  nav.open {
    max-block-size: calc(100dvh - 5rem);
  }
  .hb {
    width: calc(100% - 1.5rem);
    gap: 0.38rem;
  }
  .brand {
    gap: 0.4rem;
  }
  .brand .brand-mark {
    inline-size: 2.1rem;
  }
  .brandtype strong {
    font-size: 0.9rem;
  }
  .brandtype small {
    display: none;
  }
  .theme-toggle,
  #menu {
    width: 2.25rem;
    height: 2.25rem;
  }
  .lang button {
    padding-inline: 0.27rem;
  }
  .hero {
    min-height: clamp(32rem, 76svh, 43rem);
    padding-block: 4.5rem 6rem;
  }
  .hc h1 {
    font-size: clamp(2.55rem, 11vw, 4.4rem);
  }
  .hero::after,
  [dir="rtl"] .hero::after {
    background: linear-gradient(
      0deg,
      #0b1828f7 4%,
      #0b1828c9 52%,
      #0b18285e 100%
    );
  }
  .port-photo {
    background-image: url(assets/port-terminal-small.webp);
    background-position: 32% center;
  }

  .quicklinks .in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quicklinks a {
    min-height: 3.7rem;
    padding-inline: 0.65rem;
  }
  .quicklinks a:nth-child(2) {
    border-inline-end: 1px solid var(--line);
  }
  .quicklinks a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .quicklinks strong {
    font-size: 0.875rem;
  }
  .about,
  .routeband .in,
  .br,
  .wy,
  .cb {
    grid-template-columns: 1fr;
  }
  .pj {
    grid-template-columns: 1fr;
  }
  .pi {
    aspect-ratio: 1.2;
  }
  .routegraphic {
    min-height: 7rem;
  }
  .service-copy {
    padding: 0.75rem;
  }
  .sv h3 {
    font-size: 1.05rem;
  }
  .footgrid > div:first-child,
  .footgrid > div:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 24rem) {
  .brand {
    flex: 0 1 auto;
    min-inline-size: 0;
  }
  .brandtype {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
  .brand strong {
    max-width: 6.5rem;
    white-space: normal;
  }
  .brand .brand-mark {
    inline-size: 1.7rem;
  }
  .sl {
    grid-template-columns: 1fr;
  }
  .slide-controls button {
    width: 2.25rem;
    height: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .welcome[open],
  .welcome .brand-mark,
  .welcome h2,
  .welcome p,
  .brand.brand-ready .brand-mark {
    animation: none;
  }
  .brand:is(:hover, :focus-visible) .brand-mark {
    transform: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
