/* ------------------------------------------------------------------
   Oasis Capital Limited — dark institutional
   Serif display over a grotesque body, deep navy ground, gold accent.
   ------------------------------------------------------------------ */

:root {
    /* ground */
    --ink:          #0a1520;   /* page */
    --ink-raised:   #0f1e2c;   /* sections that lift off the page */
    --ink-card:     #132433;   /* cards */
    --rule:         #1d3345;   /* hairlines */
    --rule-strong:  #2a4459;

    /* type */
    --fg:           #e8eef4;
    --fg-muted:     #93a7b8;
    --fg-dim:       #8098ae;

    /* brand */
    --gold:         #c9a04a;
    --gold-bright:  #e0bd6d;
    --blue:         #4aa3dc;

    /* metrics */
    --measure:      68ch;
    --gutter:       clamp(1.25rem, 4vw, 3rem);
    --wrap:         1200px;
    --wrap-narrow:  820px;

    --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--fg);
    font: 400 clamp(1rem, 0.96rem + 0.2vw, 1.075rem)/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-bright); }

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

/* ---------- type ---------- */

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.25em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
    font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--fg-muted);
}

.eyebrow {
    font: 600 0.75rem/1 var(--sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule-strong);
    max-width: 5rem;
}

.muted { color: var(--fg-muted); }

/* ---------- layout ---------- */

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); }

section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section--raised { background: var(--ink-raised); border-block: 1px solid var(--rule); }

.stack > * + * { margin-top: 1.25rem; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }

.split {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .split--sticky > :first-child { position: sticky; top: 7rem; }
}

/* ---------- header ---------- */

.skip {
    position: absolute; left: -9999px;
    background: var(--gold); color: var(--ink);
    padding: 0.75rem 1.25rem; z-index: 100; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}
.site-header__bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; padding-block: 1rem;
}
.site-header__logo { display: block; flex: none; }
.site-header__logo svg, .site-header__logo img { width: 190px; }
@media (max-width: 560px) { .site-header__logo svg, .site-header__logo img { width: 150px; } }

.nav { display: none; }
@media (min-width: 1000px) { .nav { display: block; } }
.nav__list { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
    display: block; padding: 0.65rem 0.9rem;
    font: 600 0.8rem/1 var(--sans);
    letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--fg-muted); text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current], .nav__item--active > .nav__link {
    color: var(--fg); border-bottom-color: var(--gold);
}

.nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 15rem;
    background: var(--ink-card); border: 1px solid var(--rule-strong);
    list-style: none; margin: 0; padding: 0.4rem;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub {
    opacity: 1; visibility: visible; transform: none;
}
.nav__sub a {
    display: block; padding: 0.6rem 0.85rem;
    font-size: 0.9rem; color: var(--fg-muted); text-decoration: none;
}
.nav__sub a:hover { background: var(--ink-raised); color: var(--fg); }

/* mobile: a details/summary disclosure, no JavaScript */
.mnav { display: block; }
@media (min-width: 1000px) { .mnav { display: none; } }
.mnav__toggle {
    list-style: none; cursor: pointer; padding: 0.55rem 0.8rem;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
    border: 1px solid var(--rule-strong); color: var(--fg);
    font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
}
.mnav__toggle::-webkit-details-marker { display: none; }
.mnav[open] .mnav__toggle { border-color: var(--gold); color: var(--gold); }
.mnav__panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink-raised); border-bottom: 1px solid var(--rule);
    padding: 1rem var(--gutter) 2rem;
}
.mnav__panel ul { list-style: none; margin: 0; padding: 0; }
.mnav__panel > ul > li { border-top: 1px solid var(--rule); }
.mnav__panel a {
    display: block; padding: 0.85rem 0; color: var(--fg); text-decoration: none;
    font-family: var(--serif); font-size: 1.15rem;
}
.mnav__panel ul ul a {
    padding-left: 1.25rem; font-family: var(--sans); font-size: 0.95rem;
    color: var(--fg-muted);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block; padding: 0.9rem 1.75rem;
    font: 600 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none; border: 1px solid var(--gold); color: var(--gold);
    background: transparent; cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding-block: clamp(5rem, 12vw, 11rem);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 78% 12%, rgba(74,163,220,.14), transparent 62%),
        radial-gradient(90% 70% at 8% 92%, rgba(201,160,74,.10), transparent 60%);
    pointer-events: none;
}

/* Home hero carries the Singapore skyline as texture behind the headline.
   The photograph is already darkened at build time (see tools/build-images.py);
   this scrim takes it the rest of the way. Opacities are not arbitrary — they
   are the measured minimum that keeps every hero text colour above WCAG AA
   against the brightest pixel the text can sit on. */
.hero--photo {
    background-image: image-set(
        url("/assets/img/photo/singapore-night-1920.webp") type("image/webp"),
        url("/assets/img/photo/singapore-night-1920.jpg")  type("image/jpeg"));
    background-size: cover;
    background-position: 50% 60%;
    background-repeat: no-repeat;
}
.hero--photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(90deg,
        rgba(10,21,32,.72) 0%,
        rgba(10,21,32,.72) 12%,
        rgba(10,21,32,.40) 60%,
        rgba(10,21,32,.28) 100%);
}
/* narrow viewports: the text runs the full width, so the scrim must too */
@media (max-width: 860px) {
    .hero--photo { background-position: 62% 55%; }
    .hero--photo::after { background: rgba(10,21,32,.72); }
}
@media (max-width: 900px) {
    .hero--photo { background-image: image-set(
        url("/assets/img/photo/singapore-night-1280.webp") type("image/webp"),
        url("/assets/img/photo/singapore-night-1280.jpg")  type("image/jpeg")); }
}
@media (max-width: 560px) {
    .hero--photo { background-image: image-set(
        url("/assets/img/photo/singapore-night-800.webp") type("image/webp"),
        url("/assets/img/photo/singapore-night-800.jpg")  type("image/jpeg")); }
}

/* ---------- full-bleed photographic band ---------- */

.band { position: relative; margin: 0; line-height: 0; border-block: 1px solid var(--rule); }
.band img { width: 100%; height: clamp(200px, 26vw, 380px); object-fit: cover; }
.band::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg,
        rgba(10,21,32,.55) 0%, rgba(10,21,32,.15) 40%,
        rgba(10,21,32,.15) 60%, rgba(10,21,32,.65) 100%);
}
.band figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 0 var(--gutter) 1.25rem;
    font: 600 0.72rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--fg-muted); z-index: 1;
}
.band figcaption span { display: block; max-width: var(--wrap); margin-inline: auto; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }
.hero .lede { max-width: 54ch; margin-top: 1.5rem; }
.hero__actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.page-head {
    padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--rule);
}
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 1.25rem; }

/* ---------- cards ---------- */

.card {
    background: var(--ink-card);
    border: 1px solid var(--rule);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex; flex-direction: column; gap: 0.9rem;
}
.card :is(h2, h3) { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.card p { color: var(--fg-muted); margin: 0; font-size: 0.975rem; }
.card--link { text-decoration: none; color: inherit; transition: border-color .18s ease, transform .18s ease; }
.card--link:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }
.card__more {
    margin-top: auto; padding-top: 0.5rem;
    font: 600 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold);
}

/* a company in the portfolio */
.company { border-left: 2px solid var(--gold); padding-left: 1.5rem; }
.company :is(h2, h3) { margin-bottom: 0.5rem; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.company p { color: var(--fg-muted); margin: 0; }

/* ---------- capability list ---------- */

.caps { columns: 2; column-gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .caps { columns: 3; } }
.caps li {
    break-inside: avoid; padding: 0.5rem 0 0.5rem 1.4rem; position: relative;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9rem; color: var(--fg-muted);
}
.caps li::before {
    content: ""; position: absolute; left: 0; top: 1.05em;
    width: 6px; height: 1px; background: var(--gold);
}

/* ---------- offices ---------- */

.office :is(h2, h3) { margin-bottom: 0.25rem; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.office__role {
    font: 600 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1rem;
}
.office address { font-style: normal; color: var(--fg-muted); }
.office a { color: var(--fg-muted); text-decoration: none; }
.office a:hover { color: var(--gold-bright); }

/* ---------- news ---------- */

.news-item { padding-block: 2rem; border-top: 1px solid var(--rule); }
.news-item:last-child { border-bottom: 1px solid var(--rule); }
.news-item time {
    font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold);
}
.news-item :is(h2, h3) { margin: 0.75rem 0 0.6rem; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.news-item p { color: var(--fg-muted); }

/* ---------- forms ---------- */

.field { margin-bottom: 1.5rem; }
.field label {
    display: block; margin-bottom: 0.5rem;
    font: 600 0.75rem/1 var(--sans); letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--fg-muted);
}
.field input, .field textarea {
    width: 100%; padding: 0.85rem 1rem;
    background: var(--ink); border: 1px solid var(--rule-strong); color: var(--fg);
    font: inherit; font-size: 1rem;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 10rem; resize: vertical; }
.field--hp { position: absolute; left: -9999px; }

.notice { padding: 1rem 1.25rem; border-left: 3px solid var(--gold); background: var(--ink-card); margin-bottom: 2rem; }
.notice--error { border-left-color: #d4746a; }
.notice p { margin: 0; }

/* ---------- prose (policy pages) ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose ul, .prose ol { color: var(--fg-muted); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose p { color: var(--fg-muted); }
.prose > p:first-of-type { color: var(--fg); }

/* ---------- footer ---------- */

.site-footer {
    background: var(--ink-raised);
    border-top: 1px solid var(--rule);
    padding-block: clamp(3rem, 6vw, 5rem) 2rem;
    font-size: 0.925rem;
}
.site-footer__grid {
    display: grid; gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    padding-bottom: 2.5rem; border-bottom: 1px solid var(--rule);
}
.site-footer :is(h2, h4) {
    font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: var(--fg-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__logo { width: 168px; margin-bottom: 1.25rem; }
.site-footer__legal {
    padding-top: 2rem; display: flex; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap; color: var(--fg-dim); font-size: 0.85rem;
}
.site-footer__legal p { margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- end note ---------- */
/* A restrained onward link. The site is the heritage company's record, so pages
   close with a quiet pointer rather than a pitch. */
.endnote {
    padding-top: 2rem; border-top: 1px solid var(--rule);
    color: var(--fg-muted); max-width: var(--measure);
}

/* ---------- tables in policy pages ---------- */

.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.925rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--rule); }
.prose th { color: var(--gold); font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.prose td { color: var(--fg-muted); }
.prose td:first-child { white-space: nowrap; color: var(--fg); width: 1%; }
.table-scroll { overflow-x: auto; }
