/* Hallmark · shape: Marquee Hero (home) and Long Document (service and text pages) · genre: modern-minimal · theme: Dusk (by request, from ten mockups; signals from the brand) · job: hire · draw: 4409bf
 * hero: Banner (/about, /services, /services/*, /news, /vacancies, /contact, /privacy), Stage (/) · nav: slab in slate glass · footer: letter close · imagery: the Grand Harbour photographed behind the home hero, a Valletta street or the harbour behind the closing glass on every page, one Valletta photo inside the about and residence pages; the brand mark and fact graphics (a refund chart, dated timelines, figures) · photos: three Wikimedia Commons stand-ins, credited · motion: the hero photograph drifts slowly, one reveal per graphic · signature: the Grand Harbour at full width with the five services in smoked glass across its foot · dusk: shore/orange-teal (brand)/glass
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · fold: pass · brand: Reanda Malta (spec 2026-12-03) · copy: verbatim (the original site's wording, edits listed in CHANGES.md) · hero-review: self · finish-review: self · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 · weakest: P, the words are the firm's own and stay plain; the harbour photograph and the glass carry the first screen */
/* Hallmark · waive 80 · div.mark is the Reanda logo mark, the same four paths as logo/reanda-mark.svg · a logo is allowed as SVG; its quadrants assemble once as the brand signature beside the firm statement */
/* Hallmark · waive 78 · service, news and privacy pages are Long Document prose whose 31px heads sit inline with the original long text · the firm's own wording is kept in full at the owner's request */
/* Hallmark · waive 77 · team/index.html .people holds two rows, the two people the firm named (Angele Borg, Robert Borg) · no portraits were supplied and a stock face would stand in for a real person; the list grows when the firm sends photos or more names */
/* Hallmark · dismissed 29 · .glass is the Dusk theme's own material: smoked glass with a lit top edge over a photograph (the home services, the closing band) and the slate nav, never glass on glass */
/* Hallmark · dismissed 77 · the inner pages hold three sections because each is one long document of the original reandamalta.com text, by request */
/* Hallmark · answered F1 · curly quotes set in the privacy text without changing its words */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- type ---------- */
body { background: var(--color-paper); color: var(--color-ink-2); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; }
h1, h2, h3 { color: var(--color-ink); font-weight: var(--display-weight); line-height: 1.02; }
h2 { letter-spacing: -0.03em; }
h3 { letter-spacing: -0.015em; line-height: 1.2; }
.lead { color: var(--color-ink-2); }
.measure { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--color-muted); }
small, .small { font-size: var(--text-sm); }
a { color: var(--color-ink); text-decoration-color: var(--color-muted-2); }
a:hover { text-decoration-color: var(--color-accent); }

/* ---------- skip link ---------- */
.skip { position: absolute; left: var(--space-md); top: var(--space-md); z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); transform: translateY(-200%); }
.skip:focus-visible { transform: none; }

/* ---------- controls: all eight states ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 14%, transparent); color: var(--color-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklab, var(--color-light) 12%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent); }
.btn--primary:hover { background: var(--color-accent-hi); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent), 0 0 0 4px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.btn--ghost { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-variant-numeric: tabular-nums; }
.btn--small { min-height: 44px; padding: 0 var(--space-md); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.tel { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; }
.tel:hover { text-decoration-color: var(--color-accent); }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear, box-shadow var(--dur-short) linear; } .btn:active { transform: none; } }

/* ---------- nav: a slab ---------- */
.slab { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 72%, transparent); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: inset 0 -1px 0 color-mix(in oklab, var(--color-light) 8%, transparent); }
.slab .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 72px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.menu { display: flex; align-items: center; gap: var(--space-xl); }
.menu ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.menu ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); font-size: var(--text-md); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.menu ul a:hover { color: var(--color-ink); }
.menu ul a[aria-current="page"] { color: var(--color-ink); border-bottom-color: var(--color-accent); }
.menu ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.menu-toggle { display: none; }
@media (max-width: 68rem) {
  .menu { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink); cursor: pointer; list-style: none; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle summary:hover { background: var(--color-paper); }
  .menu-toggle summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
  .menu-toggle[open] summary { border-color: var(--color-muted); }
  .menu-toggle ul { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: var(--space-sm) var(--gutter) var(--space-lg); list-style: none; background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
  .menu-toggle li + li { border-top: var(--rule-hair) solid var(--color-rule-2); }
  .menu-toggle a { white-space: nowrap; display: flex; align-items: center; min-height: 52px; color: var(--color-ink); font-size: var(--text-lg); text-decoration: none; }
  .menu-toggle a[aria-current="page"] { color: var(--color-accent); }
  .menu-toggle a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
}

/* ---------- section rhythm ---------- */
.section { padding-block: var(--section-gap) 0; }
.section--l { padding-top: var(--section-gap-l); }
.section--s { padding-top: var(--section-gap-s); }
.section:last-of-type { padding-bottom: var(--section-gap); }
.band { margin-top: var(--section-gap); padding-block: var(--section-gap-s); background: var(--color-paper-2); color: var(--color-ink-2); }
.band + .section { padding-top: var(--section-gap-s); }
.banner + .section, .banner + .doc, .banner + .section + .doc { padding-top: var(--space-2xl); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.head { grid-column: 1 / span 5; }
.head h2 { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.head .lead { margin-top: var(--space-md); }
.body { grid-column: 6 / span 7; }
@media (max-width: 60rem) { .head, .body { grid-column: 1 / -1; } .grid { gap: var(--space-xl) var(--gap-columns); } }

/* ---------- home hero: the hour, the Grand Harbour behind the head, the services in glass ---------- */
.hour { position: relative; isolation: isolate; display: grid; align-content: end; min-height: max(640px, min(100svh, 980px)); margin-top: -72px; padding-top: calc(72px + var(--space-3xl)); padding-bottom: var(--space-lg); overflow: clip; }
.hour__photo { position: absolute; inset: 0; z-index: -1; }
.hour__photo > img { object-position: 50% 58%; transform-origin: 70% 50%; }
.hour__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background:
  radial-gradient(ellipse 60% 70% at 18% 48%, color-mix(in oklab, var(--color-shade) 72%, transparent), transparent 72%),
  linear-gradient(to bottom, color-mix(in oklab, var(--color-paper) 55%, transparent) 0%, transparent 22%, transparent 55%, color-mix(in oklab, var(--color-paper) 85%, transparent) 86%, var(--color-paper) 100%); }
.hour__inner { display: grid; gap: var(--space-3xl); }
.hour__text { display: grid; gap: var(--space-lg); max-width: 44rem; }
.hour h1 { max-width: 15ch; font-size: var(--text-display); line-height: 1.04; text-shadow: 0 2px 32px color-mix(in oklab, var(--color-shade) 55%, transparent); }
.hour .lead { color: var(--color-ink); max-width: 34ch; text-shadow: 0 1px 14px color-mix(in oklab, var(--color-shade) 70%, transparent); }
.hour .actions { margin-top: var(--space-xs); }
.hour__services ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: var(--space-xs); list-style: none; }
.hour__services li + li { box-shadow: inset 1px 0 0 color-mix(in oklab, var(--color-light) 7%, transparent); }
.hour__services a { display: grid; gap: var(--space-sm); align-content: space-between; height: 100%; min-height: 120px; padding: var(--space-lg); border-radius: var(--radius-inner); color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.hour__services a:hover { background: color-mix(in oklab, var(--color-light) 6%, transparent); }
.hour__services a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.hour__name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.hour__more { color: var(--color-muted); font-size: var(--text-sm); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-muted) 40%, transparent); text-underline-offset: 0.25em; transition: color var(--dur-short) var(--ease-out), text-decoration-color var(--dur-short) var(--ease-out); }
.hour__services a:hover .hour__more { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.hour__caption { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); text-align: right; }
@keyframes hour-drift { from { transform: scale(1.06) translateX(0); } to { transform: scale(1.06) translateX(-3%); } }
@media (prefers-reduced-motion: no-preference) { .hour__photo > img { animation: hour-drift 48s var(--ease-in-out) infinite alternate; } }
@media (max-width: 68rem) { .hour__services ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hour__services li:nth-child(4) { box-shadow: none; } }
@media (max-width: 40rem) {
  .hour { min-height: 0; padding-top: calc(72px + var(--space-2xl)); }
  .hour__inner { gap: var(--space-2xl); }
  .hour__services ul { grid-template-columns: minmax(0, 1fr); }
  .hour__services li + li { box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 7%, transparent); }
  .hour__services a { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--space-md); }
}

/* ---------- the services hub: the services as an index ---------- */
.index { margin: var(--space-xl) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.index li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.index a { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; padding: var(--space-md) 0; color: var(--color-ink); text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.index a::before { content: ""; position: absolute; left: calc(-1 * var(--space-lg)); top: 50%; width: 10px; height: 10px; transform: translateY(-50%); background: var(--color-accent); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.index a:hover { background: var(--color-paper-2); }
.index a:hover::before, .index a:focus-visible::before { opacity: 1; }
.index a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.index__name { grid-column: 1 / span 5; font-size: clamp(1.5rem, 1.6vw + 0.9rem, 2.375rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.index__line { grid-column: 6 / span 5; color: var(--color-muted); font-size: var(--text-md); max-width: 52ch; }
.index__more { grid-column: 11 / span 2; justify-self: end; color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; white-space: nowrap; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.index a:hover .index__more { text-decoration-color: var(--color-accent); }
@media (max-width: 60rem) {
  .index a { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .index__name, .index__line, .index__more { grid-column: 1 / -1; justify-self: start; }
  .index a::before { display: none; }
}

/* ---------- inner pages: a banner ---------- */
.banner { display: grid; align-content: center; padding-block: var(--space-3xl) var(--space-2xl); background: linear-gradient(to bottom, var(--color-paper-3), var(--color-paper)); color: var(--color-ink-2); }
.banner .grid { align-items: end; }
.banner h1 { grid-column: 1 / span 7; font-size: var(--text-display); letter-spacing: var(--tracking-display); max-width: 18ch; }
.banner .lead { grid-column: 8 / span 5; max-width: 44ch; }
.banner .actions { grid-column: 8 / span 5; }
.crumbs { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { color: var(--color-muted); }
@media (max-width: 60rem) { .banner h1, .banner .lead, .banner .actions { grid-column: 1 / -1; } }

/* ---------- rows ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.rows > li, .rows > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xs) var(--gap-columns); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows dt, .rows .rows__title { grid-column: 1 / span 5; color: var(--color-ink); font-size: var(--text-title); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.rows dd, .rows .rows__line { grid-column: 6 / span 7; margin: 0; max-width: 60ch; }
.body .rows dt, .body .rows .rows__title { grid-column: 1 / span 5; }
.body .rows dd, .body .rows .rows__line { grid-column: 6 / span 7; }
@media (max-width: 60rem) { .rows dt, .rows dd, .rows .rows__title, .rows .rows__line, .body .rows dt, .body .rows dd { grid-column: 1 / -1; } }

/* ---------- long document ---------- */
.doc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); padding-block: var(--section-gap-s) var(--section-gap); }
.doc__aside { grid-column: 1 / span 3; }
.doc__aside nav { position: sticky; top: calc(72px + var(--space-xl)); }
.doc__aside p { margin-bottom: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.doc__aside ul { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.doc__aside li { border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.doc__aside a { display: flex; align-items: center; min-height: 44px; color: var(--color-ink-2); font-size: var(--text-sm); text-decoration: none; }
.doc__aside a:hover { color: var(--color-ink); }
.doc__aside a[aria-current="page"] { color: var(--color-ink); box-shadow: inset 3px 0 0 var(--color-accent); padding-left: var(--space-sm); }
.doc__aside a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.prose { grid-column: 5 / span 7; max-width: 60ch; line-height: 1.7; }
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { margin-top: var(--space-3xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-2xl); letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--space-xl); font-size: var(--text-xl); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-md); }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li + li { margin-top: var(--space-xs); }
.prose li::marker { color: var(--color-accent); }
.prose strong { color: var(--color-ink); font-weight: 500; }
.prose .note { padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-inner); box-shadow: inset 2px 0 0 var(--color-accent-2); color: var(--color-ink-2); }
.prose .note strong { display: block; margin-bottom: var(--space-2xs); }
@media (max-width: 80rem) { .doc__aside, .prose { grid-column: 1 / -1; } .doc__aside nav { position: static; } .doc__aside ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); border-top: 0; } .doc__aside li { border-bottom: 0; } .doc__aside a { white-space: nowrap; } .doc__aside a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--color-accent); padding-left: 0; } }

/* ---------- figures (measurements) ---------- */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: var(--rule-hair) solid var(--color-rule); }
.figures > div { padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; }
.figures > div + div { padding-left: var(--space-xl); border-left: var(--rule-hair) solid var(--color-rule); }
.figures dd { margin: 0; color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-display-s); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.figures dd span { font-size: 0.5em; color: var(--color-muted); letter-spacing: 0; }
.figures dt { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
@media (max-width: 40rem) { .figures { grid-template-columns: minmax(0, 1fr); } .figures > div, .figures > div + div { padding: var(--space-lg) 0; border-left: 0; } .figures > div + div { border-top: var(--rule-hair) solid var(--color-rule); } }

/* ---------- statement ---------- */
.statement { grid-column: 1 / span 10; font-size: var(--text-display-s); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; color: var(--color-ink); max-width: 30ch; text-wrap: balance; }
.statement-foot { grid-column: 1 / span 10; display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; color: var(--color-muted); }

/* ---------- a well with corner ticks ---------- */
.well { position: relative; padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid var(--color-muted); pointer-events: none; z-index: var(--z-raised); }
.ticks::before { top: calc(-1 * var(--space-xs)); left: calc(-1 * var(--space-xs)); border-width: 1px 0 0 1px; }
.ticks::after { right: calc(-1 * var(--space-xs)); bottom: calc(-1 * var(--space-xs)); border-width: 0 1px 1px 0; }

/* ---------- address and contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.contact-grid > .details { grid-column: 1 / span 5; }
.contact-grid > .form-wrap { grid-column: 7 / span 6; }
.details dl { margin: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.details dl > div { padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.details dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; }
.details dd { margin: var(--space-2xs) 0 0; color: var(--color-ink); font-size: var(--text-lg); line-height: 1.45; }
@media (max-width: 60rem) { .contact-grid > .details, .contact-grid > .form-wrap { grid-column: 1 / -1; } }

/* ---------- form ---------- */
.form { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field label { color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.5 var(--font-body); outline: 2px solid transparent; outline-offset: -3px; transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.form__help { min-height: 1lh; margin-bottom: calc(var(--space-lg) * -1); color: var(--color-muted); font-size: var(--text-sm); }
.form__help[data-state="error"] { color: var(--color-ink); }
.form .actions { justify-content: space-between; }
.form-wrap { padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--glass-hi), var(--shadow-card); position: relative; }
.form-wrap h2 { font-size: var(--text-2xl); margin-bottom: var(--space-sm); }
.form-wrap > p { margin-bottom: var(--space-lg); max-width: 52ch; }

/* ---------- news index ---------- */
.news { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.news > li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-sm) var(--gap-columns); padding: var(--space-xl) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.news time { grid-column: 1 / span 2; color: var(--color-muted); font-family: var(--font-outlier); font-size: var(--text-sm); font-variant-numeric: tabular-nums; padding-top: var(--space-2xs); }
.news h2 { grid-column: 3 / span 4; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.news .news__body { grid-column: 7 / span 6; display: grid; gap: var(--space-sm); }
.news .news__body p { max-width: 60ch; }
.news details { margin-top: var(--space-2xs); }
.news summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.25em; }
.news summary:hover { text-decoration-color: var(--color-accent); }
.news summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.news details > div { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); }
.news details ul { margin: 0; padding-left: var(--space-lg); }
@media (max-width: 60rem) { .news time, .news h2, .news .news__body { grid-column: 1 / -1; } }

/* ---------- footer: a letter close ---------- */
.letter { padding-block: var(--section-gap-s) var(--space-2xl); background: var(--color-shade); }
.letter .grid { row-gap: var(--space-xl); }
.letter__text { grid-column: 1 / span 7; }
.letter__text p { color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.6; max-width: 60ch; }
.letter__text p + p { margin-top: var(--space-md); }
.letter__sign { grid-column: 1 / span 7; display: grid; gap: var(--space-2xs); }
.letter__sign img { width: 200px; height: auto; margin-bottom: var(--space-sm); }
.letter__office { grid-column: 9 / span 4; display: grid; gap: var(--space-md); align-content: start; font-size: var(--text-md); }
.letter__office address { font-style: normal; color: var(--color-ink-2); }
.letter__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-sm) var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
.letter__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.letter__legal a { color: var(--color-ink-2); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 60rem) { .letter__text, .letter__sign, .letter__office { grid-column: 1 / -1; } }

/* ---------- a fact the site has not confirmed ---------- */
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.body__intro { margin-bottom: var(--space-lg); max-width: 54ch; }
.banner + .section--s { padding-top: var(--space-lg); }
.banner + .section--s:has(.statement) { padding-top: var(--space-2xl); }
.letter__office:first-child { grid-column: 1 / span 6; }

/* ---------- graphics and motion (by request: one reveal per page, visible without script, still under reduced motion) ---------- */
:root { --color-mark-grey: oklch(64% 0.003 265); }

/* the mark beside the home statement */
.grid:has(> .mark) > .statement, .grid:has(> .mark) > .statement-foot { grid-column: 1 / span 8; }
.mark { grid-column: 10 / span 3; grid-row: 1 / span 2; align-self: center; justify-self: end; width: 100%; max-width: 240px; }
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.mark .q { transform-box: fill-box; }
.mark .q--grey { fill: var(--color-mark-grey); }
.mark .q--orange { fill: var(--color-accent); }
.mark .q--teal { fill: var(--color-accent-2); }
.js .mark .q { opacity: 0; transform: translate(var(--dx), var(--dy)); transition: opacity var(--dur-long) var(--ease-out), transform 900ms var(--ease-out); }
.js .mark .q:nth-child(2) { transition-delay: 80ms; } .js .mark .q:nth-child(3) { transition-delay: 160ms; } .js .mark .q:nth-child(4) { transition-delay: 240ms; }
.js .mark.is-in .q { opacity: 1; transform: none; }
@media (max-width: 60rem) { .grid:has(> .mark) > .statement, .grid:has(> .mark) > .statement-foot { grid-column: 1 / -1; } .mark { grid-column: 1 / -1; grid-row: auto; justify-self: start; max-width: 120px; } }

/* a timeline of dates, in order, not to scale */
.grid > .timeline { grid-column: 1 / -1; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: var(--space-xl) 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--color-ink-2); transform-origin: left center; }
.timeline li { position: relative; display: grid; gap: var(--space-xs); align-content: start; }
.timeline li::before { content: ""; position: absolute; top: calc(-1 * var(--space-xl)); left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--color-accent-2); }
.timeline time { color: var(--color-ink); font-family: var(--font-outlier); font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.timeline span { max-width: 34ch; color: var(--color-muted); }
.js .timeline::before { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .timeline li { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
.js .timeline.is-in::before { transform: none; }
.js .timeline.is-in li { opacity: 1; transform: none; }
@media (max-width: 40rem) {
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); padding: 0 0 0 var(--space-xl); }
  .timeline::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; transform-origin: center top; }
  .js .timeline::before { transform: scaleY(0); }
  .timeline li::before { top: 6px; left: calc(-1 * var(--space-xl)); }
}

/* the refund on 100 euro of profit */
.refund { margin: var(--space-xl) 0 0; display: grid; gap: var(--space-sm); }
.refund__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.refund__label { grid-column: 1 / span 4; color: var(--color-ink-2); }
.refund__track { grid-column: 5 / span 7; height: 14px; border-radius: var(--radius-pill); overflow: hidden; background: var(--color-paper-3); }
.refund__bar { display: block; border-radius: var(--radius-pill); height: 100%; width: calc(var(--w) * 1%); transform-origin: left center; }
.refund__bar--paid { background: var(--color-mark-grey); }
.refund__bar--back { background: var(--color-accent-2); }
.refund__bar--net { background: var(--color-ink); }
.refund__value { grid-column: 12; justify-self: end; color: var(--color-ink); font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.refund figcaption { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
.js .refund__bar { transform: scaleX(0); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 160ms); }
.refund__row:nth-child(2) .refund__bar { --i: 1; } .refund__row:nth-child(3) .refund__bar { --i: 2; }
.js .refund.is-in .refund__bar { transform: none; }
@media (max-width: 40rem) { .refund__label { grid-column: 1 / -1; } .refund__track { grid-column: 1 / span 9; } .refund__value { grid-column: 10 / span 3; } }

/* figures that arrive in turn */
.js .figures[data-reveal] > div { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.js .figures[data-reveal].is-in > div { opacity: 1; transform: none; }

/* the services index: the name steps in on hover */
.index__name { transition: transform var(--dur-short) var(--ease-out); }
.index a:hover .index__name, .index a:focus-visible .index__name { transform: translateX(var(--space-xs)); }

@media (prefers-reduced-motion: reduce) {
  .js .mark .q, .js .timeline li, .js .figures[data-reveal] > div { opacity: 1; transform: none; transition: none; }
  .js .timeline::before, .js .refund__bar { transform: none; transition: none; }
  .index a:hover .index__name, .index a:focus-visible .index__name { transform: none; }
}

/* ---------- photographs (stand-ins from Wikimedia Commons, credited in the footer; the firm's own photos replace them) ---------- */
.photo-band { margin-top: var(--section-gap); }
.photo-band .photo, .photo-band .photo__caption { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; padding-inline: 0; }
.photo { margin: 0; height: clamp(320px, 38vw, 600px); border-radius: var(--radius-card); }
.photo-band--grand-harbour .photo { height: auto; aspect-ratio: 1920 / 636; min-height: 260px; }
.photo-band--grand-harbour .photo > img { object-position: 30% 60%; }
.photo-band--valletta-street .photo > img { object-position: 50% 40%; }
.photo-band--valletta-doorway .photo > img { object-position: 50% 30%; }
.photo__caption { margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); }
.photo-band + .section { padding-top: var(--section-gap-s); }
.letter__credits { flex-basis: 100%; order: 3; margin: 0; color: var(--color-muted); font-size: var(--text-xs); }
.letter__credits a { color: var(--color-ink-2); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
.letter__credits a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- the closing band: a second photograph, the action in smoked glass ---------- */
.contact-band { position: relative; isolation: isolate; margin-top: var(--section-gap); padding-block: var(--space-4xl) var(--space-3xl); }
.contact-band__photo { position: absolute; inset: 0; z-index: -1; }
.contact-band__photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 30%, transparent) 30%, color-mix(in oklab, var(--color-paper) 30%, transparent) 70%, var(--color-shade) 100%); }
.contact-band--valletta-street .contact-band__photo > img { object-position: 50% 45%; }
.contact-band--grand-harbour .contact-band__photo > img { object-position: 60% 60%; }
.glass { background: var(--glass); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: var(--glass-hi), var(--shadow-card); }
.contact-band__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); align-items: end; padding: var(--space-2xl) var(--space-xl); }
.contact-band h2 { grid-column: 1 / span 5; margin: 0; font-size: var(--text-section); line-height: 1; }
.contact-band__lines { grid-column: 6 / span 5; display: grid; gap: var(--space-2xs); }
.contact-band__lines a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-ink) 30%, transparent); text-underline-offset: 0.2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.contact-band__lines a:hover { text-decoration-color: var(--color-accent); }
.contact-band__lines a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.contact-band__tel { font-family: var(--font-display); font-size: var(--text-2xl); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.contact-band__mail { font-size: var(--text-lg); }
.contact-band .btn { grid-column: 11 / span 2; justify-self: end; }
.contact-band + * { margin-top: 0; }
@media (max-width: 60rem) { .contact-band__inner { padding: var(--space-xl) var(--space-lg); } .contact-band h2, .contact-band__lines, .contact-band .btn { grid-column: 1 / -1; justify-self: start; } }
.section:has(+ .doc) { padding-bottom: var(--space-2xl); }
.band + .contact-band, .photo-band + .contact-band { margin-top: 0; }

/* ---------- team: the people as ruled rows, a ring of initials until the firm supplies portraits ---------- */
.people { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xl); align-items: center; padding: var(--space-xl) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.person__initials { display: grid; place-items: center; width: 112px; aspect-ratio: 1; border-radius: 50%; background: var(--color-paper-2); color: var(--color-ink); font: 500 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.02em; box-shadow: inset 0 0 0 2px var(--color-accent); }
.person:nth-child(2) .person__initials { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.person__text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-xs) var(--gap-columns); align-items: baseline; }
.person__name { grid-column: 1 / span 6; font-size: var(--text-section); line-height: 1.05; }
.person__role { grid-column: 7 / span 3; color: var(--color-ink-2); font-size: var(--text-lg); }
.person__tel { grid-column: 10 / span 3; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-lg); }
@media (max-width: 60rem) { .person__name, .person__role, .person__tel { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 40rem) { .person { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } .person__initials { width: 72px; font-size: var(--text-xl); } }

/* ---------- vacancies: open positions and a CV upload ---------- */
.positions { display: grid; gap: var(--space-lg); align-content: start; }
.positions__title { font-size: var(--text-2xl); }
.positions__list { display: grid; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.position { display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-xl); background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--glass-hi); }
.position__title { font-size: var(--text-xl); }
.position__reqs { display: grid; gap: var(--space-xs); margin: 0; padding-left: var(--space-lg); }
.position__reqs li::marker { color: var(--color-accent); }
.position .btn { margin-top: var(--space-xs); }
.field select { width: 100%; min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-inner); background: var(--color-paper); color: var(--color-ink); font: 400 var(--text-md)/1.5 var(--font-body); cursor: pointer; transition: border-color var(--dur-short) var(--ease-out); }
.field select:hover { border-color: var(--color-ink-2); }
.field select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -3px; }
.upload__label { color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; }
.upload__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.upload__btn { min-height: 48px; }
.upload__input { left: 0; top: 0; }
.upload__input:focus-visible + .upload__btn { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.upload__input:disabled + .upload__btn { opacity: 0.55; cursor: not-allowed; }
.upload__input[aria-invalid="true"] ~ .upload__name { color: var(--color-error); }
.upload__name { color: var(--color-muted); font-size: var(--text-sm); overflow-wrap: anywhere; min-width: 0; }
