:root {
  /* light — sand & sea */
  --sea-deep: #0c3a49;
  --sea: #15697f;
  --coral: #ef6c3f;
  --saffron: #f2a63b;
  --silhouette: #06222b;

  --bg: #f7f1e7;
  --surface: #fffdf8;
  --surface-2: #f1e8d8;
  --ink: #13232a;
  --muted: #5b6b6f;
  --line: #e0d5c2;
  --line-strong: #cdbfa6;

  --accent: var(--coral);
  --accent-ink: #b24a24;
  --link: #0f5568;

  --good: #2f8f6b;
  --warn: #c67a1e;
  --crit: #cf4436;

  --display: "Bricolage Grotesque", "Georgia", serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(12,58,73,.06), 0 8px 26px -14px rgba(12,58,73,.28);
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #071a20;
    --surface: #0d2831;
    --surface-2: #113039;
    --ink: #ecf3f2;
    --muted: #9db2b5;
    --line: #1c3a43;
    --line-strong: #295059;
    --accent: #ff7d4f;
    --accent-ink: #ff9a72;
    --link: #67c5da;
    --good: #4fc79a;
    --warn: #e7a13e;
    --crit: #f0685a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -18px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #071a20;
  --surface: #0d2831;
  --surface-2: #113039;
  --ink: #ecf3f2;
  --muted: #9db2b5;
  --line: #1c3a43;
  --line-strong: #295059;
  --accent: #ff7d4f;
  --accent-ink: #ff9a72;
  --link: #67c5da;
  --good: #4fc79a;
  --warn: #e7a13e;
  --crit: #f0685a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 34px -18px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.05; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- top bar ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 7px 12px; border-radius: 999px; letter-spacing: .01em;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent-ink); }
.theme-btn {
  font: inherit; font-size: 13px; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 12px;
}
.theme-btn:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, var(--saffron) 0%, transparent 42%),
    radial-gradient(120% 120% at 88% 0%, var(--coral) 0%, transparent 40%),
    linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 100%);
  opacity: .96;
}
.hero .sun {
  position: absolute; right: 14%; top: 26%;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff2d0, var(--saffron) 55%, var(--coral) 100%);
  box-shadow: 0 0 70px 12px rgba(242,166,59,.55);
}
.hero .skyline {
  position: absolute; left: 0; right: 0; bottom: 38px;
  width: 100%; height: clamp(118px, 21vw, 200px);
  opacity: .92; pointer-events: none;
}
.hero .waves { position: absolute; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: 64px; }
.hero-in { position: relative; padding: 68px 24px 92px; }
.hero .kicker { color: #ffe6c9; }
.hero h1 {
  color: #fff; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(40px, 7.5vw, 82px); margin: 14px 0 0;
}
.hero p.lede {
  color: #eaf4f4; max-width: 46ch; margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 19px); line-height: 1.5;
}
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero .facts div { color: #fff; }
.hero .facts .n { font-family: var(--display); font-weight: 800; font-size: 22px; display: block; }
.hero .facts .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #ffdcbf; }

/* ---------- page banner (interior pages) ---------- */
.page-banner { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-banner .sky {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--sea-deep) 0%, var(--sea) 62%, var(--coral) 130%);
  opacity: .97;
}
.page-banner-in { position: relative; padding: 46px 24px 40px; }
.page-banner .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #ffdcbf; }
.page-banner .crumb a { color: #ffe6c9; text-decoration: none; }
.page-banner .crumb a:hover { text-decoration: underline; }
.page-banner h1 { color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: clamp(30px, 5vw, 50px); margin: 10px 0 6px; }
.page-banner p { color: #eaf4f4; margin: 0; max-width: 60ch; font-size: 15px; }

/* ---------- portal cards ---------- */
.portal { margin-top: -46px; position: relative; z-index: 5; padding-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 20px 18px 18px;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .ico { width: 34px; height: 34px; color: var(--accent); }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.card .go { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- sections ---------- */
main { padding: 40px 0 20px; }
section { padding: 12px 0 44px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head .num { font-family: var(--mono); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.02em; }
.sec-head .sub { color: var(--muted); font-size: 14px; margin-left: auto; max-width: 40ch; }
.note {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line));
  border-radius: 8px; padding: 3px 9px; display: inline-block;
}

/* news */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.lead-story {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.lead-story .band { height: 8px; background: linear-gradient(90deg, var(--sea), var(--coral)); }
.lead-story .body { padding: 22px; }
.lead-story .tag, .story .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sea); font-weight: 600;
}
:root[data-theme="dark"] .lead-story .tag, :root[data-theme="dark"] .story .tag { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lead-story .tag, :root:not([data-theme="light"]) .story .tag { color: var(--link); } }
.lead-story h3 { font-size: 25px; font-weight: 800; margin: 8px 0 10px; letter-spacing: -.01em; }
.lead-story p { margin: 0; color: var(--muted); font-size: 14.5px; }
.lead-story time, .story time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.story-list { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.story { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.story:last-child { border-bottom: 0; }
.story h4 { margin: 0; font-family: var(--body); font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.story .meta { display: flex; gap: 10px; align-items: center; }

/* numbers */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.num-cat { grid-column: 1 / -1; margin-top: 10px; }
.num-cat:first-child { margin-top: 0; }
.num-cat h3 { font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.num-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.num {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px;
}
.num.emergency { border-left-color: var(--crit); }
.num .svc { font-size: 14px; font-weight: 600; }
.num .who { font-size: 12px; color: var(--muted); }
.num a.dial {
  font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; margin-top: 4px; font-variant-numeric: tabular-nums;
}
.num a.dial:hover { color: var(--accent-ink); }

/* real estate */
.re-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.listing .photo { height: 130px; position: relative; background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%); }
.listing .photo.p2 { background: linear-gradient(135deg, var(--saffron), var(--coral)); }
.listing .photo.p3 { background: linear-gradient(135deg, #2f8f6b, var(--sea)); }
.listing .photo .type { position: absolute; left: 12px; top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.32); color: #fff; padding: 4px 9px; border-radius: 999px; }
.listing .info { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.listing .price { font-family: var(--display); font-weight: 800; font-size: 21px; }
.listing .place { font-size: 14px; font-weight: 600; }
.listing .specs { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* jobs */
.jobs { display: flex; flex-direction: column; gap: 12px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.job:hover { border-color: var(--line-strong); }
.job .role { font-size: 16.5px; font-weight: 600; }
.job .org { font-size: 13px; color: var(--muted); }
.job .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.chip.sector { background: color-mix(in srgb, var(--sea) 16%, var(--surface)); color: var(--sea); }
:root[data-theme="dark"] .chip.sector { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.sector { color: var(--link); } }
.job .apply { text-align: right; }
.job .pay { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.job .posted { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

/* filters + search */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -6px 0 22px; }
.fchip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.fchip:hover { border-color: var(--accent); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .fchip[aria-pressed="true"] { color: #10222a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fchip[aria-pressed="true"] { color: #10222a; } }
.search-row { display: flex; align-items: center; gap: 10px; margin: -6px 0 24px; flex-wrap: wrap; }
.search {
  flex: 1 1 260px; max-width: 360px; font: inherit; font-size: 14px;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.search::placeholder { color: var(--muted); }
.search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.empty-note { color: var(--muted); font-size: 14px; font-style: italic; padding: 8px 2px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 13px; }
footer .foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .num-grid, .num-row { grid-template-columns: repeat(2, 1fr); }
  .re-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .cards, .num-grid, .num-row, .re-grid { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; }
  .job .apply { text-align: left; }
  .hero-in { padding: 48px 24px 82px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, * { transition: none !important; }
}
