:root {
  /* palette: ocean and signal yellow (owner's choice, 4 November 2026) */
  --ink: #1b2530; --paper: #eef3f7; --sand: #d6e1ea; --muted: #52606d; --on-d: #f2f6f9; --muted-d: #c9d6e0;
  --accent: #1d6fa3; --red: #c8102e; --yellow: #f5b400;
  --navy: #0a2a43; --teal: #1d6fa3;
  --font: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --g: 16px; --sec: 64px;
}
@media (min-width: 768px) { :root { --g: 24px; --sec: 80px; } }
@media (min-width: 1024px) { :root { --g: 48px; --sec: 96px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1rem/1.5rem var(--font); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--g), 1280px); margin-inline: auto; }
.sec { padding-block: var(--sec); background: #fff; }
/* cream bands carry a faint chart grid: 1px lines every 48px */
.alt { background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M47.5 0V48M0 47.5H48' fill='none' stroke='%230a2a43' stroke-opacity='0.06'/%3E%3C/svg%3E"); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 60; padding: 8px 12px; border-radius: 0; background: var(--yellow); color: var(--ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--yellow); }
.ico { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* pages without a photo hero start below the pill; a page header (.phead) pads itself */
main:not(.has-hero) { padding-top: 96px; }
main:has(> .phead:first-child) { padding-top: 0; }

/* type */
.h2 { font-size: 1.875rem; line-height: 2.25rem; max-width: 680px; }
.h3 { font-size: 1.125rem; line-height: 1.75rem; }
.lede { margin-top: 16px; max-width: 640px; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); }
.lede a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.label { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
@media (min-width: 768px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 0; font: 600 1rem/1.5rem var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease), color 0.7s var(--ease), transform 0.7s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn--y { background: var(--yellow); color: var(--ink); }
.btn--y:hover { background: var(--ink); color: #fff; }
.hero .btn--y:hover { background: #fff; color: var(--ink); }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--sand); }
.btn--line:hover { border-color: var(--accent); }
.btn--sm { font-size: 0.875rem; line-height: 1.25rem; border-radius: 0; }

/* fluid island nav: light glass pill */
.pill { position: fixed; top: 24px; left: 50%; z-index: 50; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 12px; border-radius: 0; background: rgb(255 255 255 / 0.86); border: 1px solid rgb(255 255 255 / 0.6); box-shadow: 0 8px 32px rgb(27 37 48 / 0.12); color: var(--ink); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.links { display: none; gap: 2px; align-items: center; }
.links > a, .dd > button { position: relative; padding: 8px 12px; border-radius: 0; font: 400 0.875rem/1.25rem var(--font); text-decoration: none; color: rgb(27 37 48 / 0.64); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: color 0.7s var(--ease), background-color 0.7s var(--ease); }
.links > a:hover, .dd > button:hover, .dd > button[aria-expanded="true"] { color: var(--ink); background: rgb(27 37 48 / 0.06); }
.links [aria-current] { color: var(--ink); }
.links [aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 0; background: var(--accent); }
.dd { position: relative; }
.dd > button { display: inline-flex; align-items: center; gap: 4px; }
.dd > button svg { width: 12px; height: 12px; fill: currentColor; transition: transform 0.7s var(--ease); }
.dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 16px); left: 50%; width: 560px; padding: 8px; transform: translate(-50%, 8px); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 0; background: #fff; border: 1px solid var(--sand); box-shadow: 0 24px 64px rgb(27 37 48 / 0.16); opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), visibility 0s linear 0.7s; }
.dd-panel.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.dd-panel a { display: block; padding: 12px 16px; border-radius: 0; text-decoration: none; transition: background-color 0.7s var(--ease); }
.dd-panel a:hover { background: var(--paper); }
.dd-panel b { display: block; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.dd-panel span { display: block; font-size: 0.75rem; line-height: 1rem; color: var(--muted); }
.dd-panel--one { width: 320px; grid-template-columns: 1fr; }
.dd-panel a.dd-all { grid-column: 1 / -1; margin-top: 6px; padding-block: 8px; border-top: 1px solid var(--sand); border-radius: 0; text-align: center; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.pill .btn--sm { display: none; }
.burger { position: relative; width: 40px; height: 40px; border: 0; border-radius: 0; background: rgb(27 37 48 / 0.06); color: var(--ink); cursor: pointer; transition: background-color 0.7s var(--ease); }
.burger:hover { background: rgb(27 37 48 / 0.12); }
.burger span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 0; background: currentColor; transition: transform 0.7s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* phone menu: glass overlay with staggered links and a Services sub list */
.menu { position: fixed; inset: 0; z-index: 40; overflow-y: auto; padding: 112px var(--g) 48px; background: rgb(255 255 255 / 0.9); color: var(--ink); -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px); opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s; }
.menu.open { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease); }
.menu nav { display: grid; }
.menu nav > *, .menu .btn { opacity: 0; transform: translateY(48px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background-color 0.7s var(--ease), color 0.7s var(--ease); }
.menu nav > a, .menu summary { padding-block: 8px; font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; color: rgb(27 37 48 / 0.64); cursor: pointer; list-style: none; }
.menu nav > a:hover, .menu nav > a[aria-current], .menu summary:hover, .menu summary[aria-current] { color: var(--ink); }
.menu summary { display: flex; align-items: center; gap: 8px; width: max-content; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .ico { width: 16px; height: 16px; transition: transform 0.7s var(--ease); }
.menu details[open] summary .ico { transform: rotate(180deg); }
.menu details div { display: grid; padding: 4px 0 12px 16px; }
.menu details a { padding-block: 8px; text-decoration: none; color: var(--muted); }
.menu details a:hover { color: var(--ink); }
.menu .btn { margin-top: 24px; }
.menu.open nav > *, .menu.open .btn { opacity: 1; transform: none; }
.menu.open nav > :nth-child(1) { transition-delay: 100ms; }
.menu.open nav > :nth-child(2) { transition-delay: 150ms; }
.menu.open nav > :nth-child(3) { transition-delay: 200ms; }
.menu.open nav > :nth-child(4) { transition-delay: 250ms; }
.menu.open .btn { transition-delay: 300ms; }
@media (min-width: 1100px) {
  .links, .pill .btn--sm { display: inline-flex; }
  .burger, .menu { display: none; }
}

/* hero: a photo fills the section */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 88svh; padding-block: 128px 64px; color: var(--on-d); background: #3a3a3a; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transform-origin: 62% 40%; animation: heroZoom 20s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
/* the lighthouse sits behind the text below 1024px, so the tint is heavier there (white text stays at 4.5:1 or more) */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(10 42 67 / 0.7); }
@media (min-width: 1024px) { .hero::before { background: rgb(10 42 67 / 0.5); } }
.chip { display: inline-flex; padding: 4px 12px; border-radius: 0; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.2); font: 500 0.75rem/1rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.hero h1 { margin-top: 24px; padding-bottom: 4px; max-width: 680px; font-size: 2.25rem; line-height: 2.5rem; color: #fff; }
.hero h1 span { display: inline; }
.hero .lede { margin-top: 24px; max-width: 560px; color: #fff; }
.hero .lede + .btn { margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--line { background: rgb(255 255 255 / 0.12); color: #fff; border-color: rgb(255 255 255 / 0.24); }
.hero .btn--line:hover { border-color: #fff; }
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; line-height: 1; }
  .hero h1 span { display: block; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

/* inner page header and breadcrumbs */
.phead { padding: 144px 0 64px; background: var(--paper); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.phead h1 { margin-top: 16px; max-width: 760px; font-size: 2.25rem; line-height: 2.5rem; }
.phead .lede { max-width: 640px; }
.phead .lede + .btn { margin-top: 32px; }
@media (min-width: 768px) { .phead h1 { font-size: 3rem; line-height: 1; } }

/* running text */
.prose { display: grid; gap: 16px; max-width: 720px; }
.prose h2 { margin-top: 24px; font-size: 1.5rem; line-height: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 24px; }
.prose ul { list-style: disc; }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--accent); }


/* facility cards */
.gap-top { margin-top: 64px; }
.fac { display: grid; gap: 16px; margin-top: 32px; }
.fac li { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 0; border: 1px solid var(--sand); background: #fff; }
.fac p { color: var(--muted); }
.fac .op { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
@media (min-width: 768px) { .fac { grid-template-columns: repeat(2, 1fr); } }

/* empty state */
.empty { margin-top: 48px; padding: 48px 24px; border-radius: 0; border: 1px dashed var(--sand); text-align: center; color: var(--muted); }

/* service list */
.svc { display: grid; gap: 32px; margin-top: 48px; }
.svc li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--sand); }
.svc .ico { color: var(--accent); }
.svc h3 { font-size: 1.125rem; line-height: 1.75rem; }
.svc p { color: var(--muted); }
@media (min-width: 768px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (min-width: 1024px) { .svc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; } }
@media (min-width: 1200px) { .svc { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; } }

/* photo, chart, fact rows, lists */
.photo { margin-top: 48px; overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 280px; object-fit: cover; object-position: center 62%; }
.photo--aerial img { object-position: center 60%; }
.layup-grid { display: grid; gap: 48px; margin-top: 48px; }
.layup-grid h3 { font-size: 1.125rem; line-height: 1.75rem; }
.rows { margin-top: 16px; }
.rows div { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--sand); }
.rows div:last-child { border-bottom: 1px solid var(--sand); }
.rows dt { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.rows dd a { text-decoration: none; }
.rows dd a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.coord { font-family: var(--mono); white-space: nowrap; }
.client { color: var(--muted); }
.client b { color: var(--ink); font-weight: 600; }
.depth { display: block; margin-top: 4px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.chart { margin-top: 48px; }
.chart img { width: 100%; height: auto; border: 1px solid var(--sand); }
.chart figcaption { margin-top: 12px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.base-list { max-width: 680px; margin-top: 48px; }
.base-list h3 { font-size: 1.125rem; line-height: 1.75rem; }
.list { margin-top: 16px; }
.list li { padding-block: 12px; border-top: 1px solid var(--sand); }
.list li:last-child { border-bottom: 1px solid var(--sand); }
.chart + .prose { margin-top: 48px; }
@media (min-width: 768px) {
  .photo img { height: 360px; }
  .rows div { grid-template-columns: 200px minmax(0, 1fr); align-items: baseline; gap: 24px; }
}
@media (min-width: 1024px) {
  .photo img { height: 440px; }
  .layup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; }
  .layup-grid .rows div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* contact */
.contact-grid { display: grid; gap: 48px; }
.contact .btn { margin-top: 32px; }
.contact .lede a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--accent); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* footer */
.ftr { padding-block: 64px 48px; background: var(--navy); color: var(--on-d); }
.ftr-grid { display: grid; gap: 32px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-d); }
.ftr-grid p { margin-top: 12px; max-width: 320px; }
.ftr-grid b { display: block; margin-bottom: 8px; color: #fff; }
.ftr-grid a { display: block; padding-block: 4px; text-decoration: none; color: var(--muted-d); }
.ftr-grid a:hover { color: var(--yellow); }
.ftr-grid .brand { display: flex; padding: 0; color: #fff; }
.legal, .credits { font-size: 0.75rem; line-height: 1rem; color: var(--muted-d); }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.credits { margin-top: 8px; }
.credits a { color: var(--muted-d); }
.credits a:hover { color: var(--yellow); }
.ftr :focus-visible { outline-color: var(--yellow); }
@media (min-width: 768px) { .ftr-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* request a service: call or email */
.req { width: min(100% - 32px, 480px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 0; background: #fff; color: var(--ink); box-shadow: 0 24px 64px rgb(27 37 48 / 0.24); }
.req::backdrop { background: rgb(27 37 48 / 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.soft .req[open] { animation: rise 0.7s var(--ease); }
.soft .req[open]::backdrop { animation: fade 0.7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes fade { from { opacity: 0; } }
.req-body { display: grid; gap: 16px; padding: 32px; }
.req header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.req h2 { font-size: 1.5rem; line-height: 2rem; }
.req p { margin-bottom: 8px; color: var(--muted); }
.req-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; transition: background-color 0.7s var(--ease); }
.req-x:hover { background: var(--sand); }
.req-x .ico { width: 20px; height: 20px; }
.opt { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 0; background: var(--paper); border: 1px solid var(--sand); text-decoration: none; transition: border-color 0.7s var(--ease), transform 0.7s var(--ease); }
.opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.opt:active { transform: scale(0.98); }
.opt .tile { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 0; background: #fff; border: 1px solid var(--sand); color: var(--accent); }
.opt > span:nth-child(2) { flex: 1; min-width: 0; }
.opt b { display: block; font-weight: 600; }
.opt span span { display: block; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 767px) { .req-body { padding: 24px; } .opt { gap: 12px; } }

/* scroll reveal */
.soft .rv { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.soft .rv.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
  .hero-bg { animation: none; }
}

/* Brief A (company pages in detail): a paragraph under each line of the services list */
.list li p { margin-top: 8px; color: var(--muted); }

/* Brief B (service pages in detail): a sourced section wraps its paragraphs and list in
   <div data-source>; keep the same spacing as the rest of .prose. */
.prose > div[data-source] { display: grid; gap: 16px; }
.prose > .photo { margin-top: 0; }

/* photo led pages: key fact tiles, photo galleries, sections that open on click, photo viewer */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
.facts > div { display: grid; gap: 4px; align-content: start; padding: 16px; background: var(--paper); }
.facts b { font-size: 1.5rem; line-height: 2rem; font-weight: 600; letter-spacing: -0.03em; overflow-wrap: break-word; }
.facts span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.facts > div:nth-child(even) { background: var(--navy); color: #fff; }
.facts > div:nth-child(even) span { color: rgb(255 255 255 / 0.8); }
@media print { .facts > div:nth-child(even) { background: var(--paper); color: var(--ink); } .facts > div:nth-child(even) span { color: var(--muted); } .alt { background-image: none; } }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.prose > .facts { margin-top: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 24px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
/* a gallery of two photos fills the row instead of leaving an empty third column */
.gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .gallery:has(> :nth-child(3):last-child) > :first-child { grid-column: span 2; } }
.prose > .gallery { margin-top: 8px; }
.gallery a { display: block; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:active img { transform: scale(0.98); }
.fold { border-top: 1px solid var(--sand); }
.fold:last-of-type { border-bottom: 1px solid var(--sand); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2, .prose .fold > summary h2 { margin: 0; font-size: 1.25rem; line-height: 1.75rem; }
.fold > summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 2rem; color: var(--accent); transition: transform 700ms var(--ease); }
.fold[open] > summary::after { transform: rotate(45deg); }
.fold > summary:hover h2 { color: var(--accent); }
.fold-body { display: grid; gap: 16px; padding-bottom: 24px; }
.fold-body ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }
.lb { width: min(100% - 32px, 1600px); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--ink); }
.lb::backdrop { background: rgb(27 37 48 / 0.85); }
.lb img { width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.lb button { position: absolute; top: 8px; right: 8px; padding: 8px 12px; border: 0; background: var(--yellow); color: var(--ink); font: 600 0.875rem/1.25rem var(--font); cursor: pointer; }
.svc .photo { margin-top: 0; }
.svc .photo img { height: 220px; }
.svc li.prose { gap: 12px; }
.photo--art img { height: auto; object-fit: contain; background: var(--paper); }
.photo figcaption { padding: 8px 0 0; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); background: #fff; }
.ws-wrap { display: grid; gap: 16px; }
.ws { display: grid; gap: 8px; }
@media (min-width: 768px) { .ws { grid-template-columns: repeat(2, 1fr); } }
.ws > div { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--paper); }
.ws h3 { font-size: 1.125rem; line-height: 1.75rem; color: var(--accent); }
.ws ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }
.svc .photo img[src$=".svg"] { object-fit: contain; background: var(--paper); }
.live { display: grid; gap: 8px; }
.live iframe { display: block; width: 100%; height: 560px; border: 1px solid var(--sand); background: var(--paper); }
@media (min-width: 1024px) { .live iframe { height: 680px; } }
.live figcaption { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.live figcaption a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.ws-wrap > .photo { margin-top: 0; }

/* Status notice at the top of a service page (VTMS on a voluntary basis) */
.prose > .notice { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--yellow); background: #fff6d6; color: var(--ink); }
.notice b { font-weight: 600; }

/* Guide to Port Entry */
.edition { margin-top: 16px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.guide-actions .btn { cursor: pointer; font: inherit; font-weight: 600; }
.prose .steps { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 8px; counter-reset: step; }
.prose .steps li { margin: 0; counter-increment: step; }
.steps a { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--sand); text-decoration: none; color: var(--ink); transition: border-color 0.7s var(--ease); }
.steps a:hover { border-color: var(--accent); }
.steps a::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; background: var(--yellow); font-weight: 600; }
.steps b { font-weight: 600; }
.steps span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
@media (min-width: 768px) {
  .prose .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps a { height: 100%; grid-template-columns: 1fr; row-gap: 8px; }
  .steps a::before { grid-row: auto; }
}
.prose .berths li b { font-weight: 600; }
.prose .note { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
/* Guide to Port Entry: section visuals */
.guide .prose > .photo, .guide .duo { margin: 16px 0 24px; }
.duo { display: grid; gap: 8px; }
.duo .photo { margin: 0; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } .duo img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; } }
.duo figcaption, .guide .photo figcaption { margin-top: 8px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.prose .tline { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 0; }
.prose .tline li { position: relative; margin: 0; padding: 0 0 20px 32px; display: grid; gap: 2px; }
.tline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; background: var(--yellow); border: 2px solid var(--ink); }
.tline li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--sand); }
.prose .tline li:last-child::after { display: none; }
.tline b { font-size: 1.5rem; line-height: 2rem; font-weight: 600; }
.tline .when { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); }
.tline .what { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
@media (min-width: 768px) {
  .prose .tline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .prose .tline li { padding: 32px 0 0; }
  .tline li::before { left: 0; top: 0; }
  .tline li::after { left: 16px; right: -12px; top: 7px; bottom: auto; width: auto; height: 2px; }
}
.sectors { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin: 16px 0 8px; }
.prose .sectors .sg { margin: 0; padding: 6px 8px; font-size: 0.75rem; line-height: 1rem; font-weight: 600; color: var(--ink); }
.sg--k { grid-column: 1 / 6; background: var(--yellow); }
.sg--j { grid-column: 6 / 7; background: var(--sand); overflow-wrap: anywhere; }
.sg--s { grid-column: 7 / 10; background: #e3e6e8; }
.sx { display: grid; gap: 2px; justify-items: center; padding: 12px 2px; border: 1px solid var(--sand); background: #fff; }
.sx b { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.sx span { font-size: 0.75rem; line-height: 1rem; color: var(--muted); white-space: nowrap; }
.sx--k { border-top: 4px solid var(--yellow); }
.sx--j { border-top: 4px solid #c9b68c; }
.sx--s { border-top: 4px solid #b8bfc4; }
.prose .flow { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; counter-reset: fl; }
.prose .flow li { position: relative; margin: 0; counter-increment: fl; display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--paper); border: 1px solid var(--sand); }
.flow li::before { content: counter(fl); display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.875rem; }
.flow b { font-weight: 600; }
.flow li > span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.flow .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.flow .chips span { padding: 2px 8px; background: var(--yellow); color: var(--ink); font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
@media (min-width: 768px) {
  .prose .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 28px; border: 6px solid transparent; border-left: 8px solid var(--accent); }
}
.tiers { display: grid; gap: 4px; margin: 24px 0 8px; }
.tiers > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 12px 16px; }
.tiers b { font-weight: 600; }
.tiers span { font-size: 0.875rem; line-height: 1.25rem; }
.tiers .t1 { width: 72%; background: #dbe8f2; }
.tiers .t2 { width: 86%; background: #b5d5ed; }
.tiers .t3 { width: 100%; background: #86a7bd; color: var(--ink); }
@media (max-width: 767px) { .tiers > div { width: 100% !important; grid-template-columns: 1fr; gap: 2px; } }
.prose .ccards { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; }
@media (min-width: 768px) { .prose .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose .ccards li { margin: 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 4px; padding: 16px; border: 1px solid var(--sand); background: #fff; }
.ccards .ico { grid-row: span 2; width: 40px; height: 40px; padding: 8px; background: var(--paper); fill: var(--ink); }
.ccards b { font-weight: 600; }
.ccards span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.ccards .ccard--alert { border-color: var(--accent); }
.ccards .ccard--alert .ico { background: var(--accent); fill: #fff; }
.prose .issuers { list-style: none; padding: 0; margin: 16px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .issuers li { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--paper); border: 1px solid var(--sand); font-size: 0.875rem; line-height: 1.25rem; }
.issuers .ico { width: 16px; height: 16px; fill: var(--accent); }
.issuers b { font-weight: 600; }
.issuers span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; background: var(--ink); color: #fff; font-size: 0.75rem; }
.print-brand { display: none; }
@media print {
  .print-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-weight: 600; }
  .print-brand span { margin-left: auto; font-weight: 400; color: var(--muted); }
  .phead .crumbs { display: none; }
  .guide .facts { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .guide .facts--sum { display: none; }
  .guide .steps { break-inside: avoid; }
  .guide .facts div { padding: 10px; }
  .guide .facts b { font-size: 13pt; line-height: 1.2; }
  .guide a[href^="/"]::after { content: " (nsmaritime.my" attr(href) ")"; font-size: 8pt; color: var(--muted); }
  @page { size: A4; margin: 16mm 14mm; }
  .pill, .menu, .ftr, .skip, .guide-actions, dialog, .lb { display: none !important; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .soft .rv, .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  .phead { padding: 0 0 12px; background: #fff; border-bottom: 2px solid var(--accent); }
  .sec { padding-block: 16px; }
  .wrap { width: auto; display: block; }
  .guide h2 { break-after: avoid; margin-top: 20px; }
  .guide li, .guide .rows > div { break-inside: avoid; }
  .prose .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .guide a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: var(--muted); word-break: break-all; }
  .guide .sr { display: none; }
}

/* Text beside a photo (home page sections) */

/* Facility cards: a photo or location chart on each */
.fac-img { margin: 0 0 8px; }
.fac-img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }

/* Redesign 2026-11-04: hero */
.coords { font: 500 0.75rem/1rem var(--mono); letter-spacing: 0.04em; color: var(--accent); }
.hero .coords { display: inline-block; padding: 4px 10px; background: rgb(10 42 67 / 0.55); color: var(--yellow); }
.hero h1 { font-size: 2.5rem; line-height: 2.75rem; }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; line-height: 1; max-width: 860px; } .hero .lede { font-size: 1.25rem; line-height: 1.75rem; } }
.hero-cue { position: absolute; left: 50%; bottom: 24px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; border: 1px solid rgb(255 255 255 / 0.4); border-radius: 9999px; color: #fff; }
.hero-cue .ico { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 767px) { .hero { padding-bottom: 96px; } }  /* room for the scroll cue below the buttons */

/* Redesign 2026-11-04: image page headers */
.phead--img { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 380px; padding-bottom: 48px; background: var(--navy); color: #fff; }
.phead--img > .wrap { width: min(100% - 2 * var(--g), 1280px); }
.phead-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phead--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(10 42 67 / 0.62); }
.phead--img .coords { display: inline-block; margin-bottom: 16px; padding: 4px 10px; background: var(--navy); color: var(--yellow); }
.phead--img:has(> .phead-bg[src$=".svg"])::before { background: rgb(10 42 67 / 0.78); }
.phead--img .crumbs { color: #fff; }
.phead--img .lede { color: rgb(255 255 255 / 0.9); }
.phead--img .edition { color: rgb(255 255 255 / 0.85); }
.phead--img :focus-visible { outline-color: var(--yellow); }
@media (min-width: 1024px) { .phead--img { min-height: 460px; padding-bottom: 64px; } .phead--img h1 { font-size: 3.75rem; line-height: 1; } }
@media print {
  .phead--img { min-height: 0; display: block; padding: 0 0 12px; background: #fff; color: var(--ink); }
  .phead--img::before, .phead-bg { display: none; }
  .phead--img .lede, .phead--img .crumbs, .phead--img .crumbs a, .phead--img .edition { color: var(--muted); }
  .phead--img .coords { display: none; }
}


/* navy band: a ship's call, step by step */
.band--navy { background: var(--navy); color: #fff; }
.band--navy :focus-visible { outline-color: var(--yellow); }
.band--navy .lede { color: rgb(255 255 255 / 0.85); }
.band--navy .lede a { color: #fff; text-decoration-color: var(--yellow); }
.steps--band { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 12px; counter-reset: step; }
.steps--band li { counter-increment: step; }
.steps--band a { height: 100%; background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.2); color: #fff; }
.steps--band a:hover { border-color: var(--yellow); }
.steps--band a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.steps--band a::before { color: var(--ink); }
.steps--band span { color: rgb(255 255 255 / 0.8); }
@media (min-width: 768px) { .steps--band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps--band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* coordinate label on a photo */
.photo { position: relative; }
.photo > .coords { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; background: var(--navy); color: var(--yellow); }
.alt .photo figcaption { background: transparent; }

/* home: request band */
.request-grid { display: grid; gap: 32px; }
.request-lines { display: grid; gap: 4px; margin: 24px 0 32px; }
.request-lines a { font-size: 1.5rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.request-lines a:hover { color: var(--accent); }
.request-list { padding: 24px; background: var(--paper); border-left: 4px solid var(--yellow); }
.request-list > :first-child { margin-top: 0; }
@media (min-width: 768px) { .request-lines a { font-size: 1.875rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .request-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* editorial layout: one reading column of open sections; charts, galleries and photos break out wider */
:root { --col: 720px; }
body { overflow-x: clip; }
main:not(.has-hero) .sec > .wrap { width: min(100% - 2 * var(--g), var(--col)); }
.part { display: grid; gap: 16px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--sand); }
.part > h2, .prose .part > h2 { margin: 0; font-size: 1.625rem; line-height: 2.125rem; }
.part-body { display: grid; gap: 16px; }
.part-body ul { display: grid; gap: 8px; padding-left: 24px; list-style: disc; }
.prose h2, .h2 { font-size: 1.625rem; line-height: 2.125rem; }
@media (min-width: 768px) {
  main:not(.has-hero) :is(.prose, .part-body, .lede) :is(p, li), main:not(.has-hero) .part-body dd { font-size: 1.125rem; line-height: 1.875rem; }
  .part > h2, .prose .part > h2, .prose h2, .h2 { font-size: 2rem; line-height: 2.5rem; }
  main:not(.has-hero) :is(figure.chart, .gallery, .fac, .svc), main:not(.has-hero) .sec > .wrap > figure.photo, main:not(.has-hero) .sec > .wrap > div > figure.photo { margin-inline: calc(50% - min(50vw - var(--g), 560px)); }
}

/* other services: the end of every service page */
.others { padding-top: 32px; border-top: 1px solid var(--sand); }
.others h2 { font-size: 1.25rem; line-height: 1.75rem; }
.others ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; padding: 0; list-style: none; }
.others a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.sec.others { padding-top: 0; }
@media print { .sec.others { display: none !important; } }

/* editorial home: one reading column, the chart full width, numbered sections */
.wrap.col { width: min(100% - 2 * var(--g), var(--col)); }
.kicker { font: 500 0.8125rem/1.25rem var(--mono); letter-spacing: 0.06em; text-transform: none; color: var(--accent); }
.num { font: 500 0.8125rem/1.25rem var(--mono); letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
.band--navy .num { color: var(--yellow); }
.statement { margin-top: 16px; font-size: 1.625rem; line-height: 2.25rem; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
.keynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.keynums a { display: grid; gap: 4px; align-content: start; padding-top: 12px; border-top: 2px solid var(--ink); color: var(--ink); text-decoration: none; }
.keynums b { font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; letter-spacing: -0.03em; }
.keynums span { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.keynums a:hover b { color: var(--accent); }
.chart--bleed { margin: 56px 0 0; }
.chart--bleed img { width: 100%; height: auto; }
.chart--bleed figcaption { width: min(100% - 2 * var(--g), var(--col)); margin: 12px auto 0; }
.svc-rows { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: svc; }
.svc-row { counter-increment: svc; position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid var(--sand); }
.svc-row:last-child { border-bottom: 1px solid var(--sand); }
.svc-row img { width: 72px; height: 72px; object-fit: cover; }
.svc-row h3 { font-size: 1.125rem; line-height: 1.5rem; }
.svc-row h3::before { content: counter(svc, decimal-leading-zero) " "; font: 500 0.8125rem/1.5rem var(--mono); color: var(--accent); margin-right: 6px; }
.svc-row h3 a { color: var(--ink); text-decoration: none; }
.svc-row h3 a::after { content: ""; position: absolute; inset: 0; }
.svc-row:hover h3 a { color: var(--accent); }
.svc-row h3 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-row p { margin-top: 4px; color: var(--muted); }
.svc-row .svc-row-by { font-size: 0.875rem; line-height: 1.25rem; }
.band--navy .col .steps--band { grid-template-columns: 1fr; }
.photo--wide { width: min(100% - 2 * var(--g), 1120px); margin: 56px auto 0; }
.photo--wide img { height: auto; aspect-ratio: 16 / 9; }
.col .request-grid { grid-template-columns: 1fr; gap: 32px; }
.details-fold { margin-top: 56px; }
.details-fold .note { color: var(--muted); }
@media (min-width: 768px) {
  .statement { font-size: 2rem; line-height: 2.75rem; }
  .keynums b { font-size: 2.5rem; line-height: 3rem; }
  .svc-row { grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
  .svc-row img { width: 96px; height: 96px; }
  .band--navy .col .steps--band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.wrap.col > .h2 + .prose { margin-top: 24px; }
@media print {
  main:not(.has-hero) .sec > .wrap, .wrap.col { width: auto; }
  main:not(.has-hero) :is(figure.chart, .gallery, .fac, .svc), main:not(.has-hero) .sec > .wrap > figure.photo, main:not(.has-hero) .sec > .wrap > div > figure.photo { margin-inline: 0; }
  .part { break-inside: auto; }
  .part > h2 { break-after: avoid; }
}
/* after a jump to a section everything is shown at once, with no slide in, so the heading lands where the jump puts it */
.jumped .rv { transition: none !important; }

/* home, live site layout: services grid, lay up, contact */
.svc li h3 a { color: var(--ink); text-decoration: none; }
.svc li h3 a:hover { color: var(--accent); }
.svc .by { font-size: 0.875rem; line-height: 1.25rem; }
@media (min-width: 768px) { .home-svc, #home-service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { #home-service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; } }
.more { margin-top: 32px; }
.more a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* rounded controls, like the live site: menu bar, buttons, dropdowns and small labels; photos and charts stay square */
.pill, .btn, .burger, .links > a, .dd > button, .chip, .coords, .req-x { border-radius: 9999px; }
.dd-panel, .req { border-radius: 16px; }
.dd-panel a, .opt .tile { border-radius: 10px; }

/* home: why Port Dickson, four selling points from NS Corporation */
.why { display: grid; gap: 32px; margin-top: 48px; }
.why li { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--sand); }
.why .ico { color: var(--accent); }
.why h3 { font-size: 1.125rem; line-height: 1.75rem; }
.why p { color: var(--muted); }
@media (min-width: 768px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .why { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
