/* ============================================================================
   Pulse+IT — Australasia's digital health and health IT publication
   Design language: "clinical broadsheet".
   Navy ink + clinical teal + a signal red plus-mark. IBM Plex Sans (furniture,
   headlines) over IBM Plex Serif (reading body). Rule-driven newsroom layout:
   hairlines, not shadows. Category colour-coding carried through nav, kickers,
   plate art and article rails.
   ========================================================================= */

:root {
  /* ink + paper */
  --ink:        #0a1c33;
  --ink-2:      #1d3557;
  --muted:      #5a6b80;
  --faint:      #8a97a8;
  --paper:      #ffffff;
  --paper-2:    #f4f6f9;
  --paper-3:    #eaeef4;
  --rule:       #d7dee8;
  --rule-soft:  #e6ebf2;

  /* brand */
  --brand:      #0a3d7a;   /* Pulse navy */
  --brand-deep: #06284f;
  --teal:       #00879a;   /* clinical teal */
  --signal:     #d81f3c;   /* the "+" red */

  /* category keys */
  --c-au:       #0a3d7a;
  --c-nz:       #146b5c;
  --c-apac:     #7a4bb5;
  --c-aged:     #b4551a;
  --c-allied:   #00707f;
  --c-movers:   #1d5f8a;
  --c-blog:     #d81f3c;

  --measure:    38rem;
  --wrap:       76rem;
  --gap:        1.75rem;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.14; letter-spacing: -0.018em; }
p { margin: 0 0 1.05em; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 1.75rem); } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.15rem;
  font-weight: 600; font-size: .9rem;
}
.skip-link:focus { left: 0; }

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

/* ============================ MASTHEAD ============================ */

.topbar {
  background: var(--brand-deep);
  color: #b9cbe4;
  font-size: .74rem;
  letter-spacing: .045em;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-height: 34px; flex-wrap: wrap;
}
.topbar a { color: #dce7f5; text-decoration: none; border-bottom: 1px solid rgba(220,231,245,.35); }
.topbar a:hover { color: #fff; border-color: #fff; }
.topbar .tb-right { display: flex; gap: 1.1rem; align-items: center; }
@media (max-width: 700px) { .topbar .tb-right { display: none; } }

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.55rem 0 1.35rem;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: .1rem;
  text-decoration: none;
  font-size: clamp(2.05rem, 5.2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--brand);
  line-height: 1;
}
.wordmark .plus { color: var(--signal); font-weight: 600; padding: 0 .04em; }
.wordmark .it   { color: var(--ink); }
.masthead .strap {
  font-size: .78rem; color: var(--muted); letter-spacing: .04em;
  text-transform: uppercase; font-weight: 500; text-align: center;
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule);
  padding: .35rem 1.5rem;
}
.masthead .ecg { width: 132px; color: var(--teal); opacity: .9; }
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; gap: .9rem; padding: 1.15rem 0 1rem; }
  .masthead .strap { display: none; }
}
@media (max-width: 520px) { .masthead .ecg { width: 84px; } }

/* ============================ NAV ============================ */

.navbar {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 60;
}
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0; }
.nav-links a {
  display: block; padding: .82rem 0; margin-right: 1.6rem;
  text-decoration: none; font-size: .855rem; font-weight: 600;
  letter-spacing: .01em; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav-links a:hover { color: var(--brand); border-bottom-color: var(--rule); }
.nav-links a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--signal); }
.nav-search {
  font-size: .78rem; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 500;
}
.nav-search:hover { color: var(--brand); }
.nav-burger { display: none; }

@media (max-width: 880px) {
  .navbar { position: static; }
  .navbar .wrap { flex-wrap: wrap; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; cursor: pointer; margin-left: auto;
  }
  .nav-burger span { display: block; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-links {
    order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 34rem; }
  .nav-links a {
    margin-right: 0; padding: .8rem .2rem; border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 0;
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--signal); }
  .nav-search { padding: .8rem 0; }
}

/* ============================ TICKER ============================ */

.ticker {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: .8rem;
  overflow: hidden;
}
.ticker .wrap { display: flex; align-items: center; gap: 1rem; min-height: 40px; }
.ticker .tick-label {
  flex: none; background: var(--signal); color: #fff; font-weight: 600;
  font-size: .7rem; letter-spacing: .09em; text-transform: uppercase;
  padding: .28rem .6rem;
}
.ticker .tick-items {
  display: flex; gap: 2rem; white-space: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.ticker .tick-items::-webkit-scrollbar { display: none; }
.ticker a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.ticker a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ============================ SHARED BITS ============================ */

.kicker {
  display: inline-block;
  font-size: .69rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cat, var(--brand));
  margin-bottom: .5rem;
}
.kicker::before {
  content: ""; display: inline-block; width: 14px; height: 2px;
  background: currentColor; vertical-align: .28em; margin-right: .45rem;
}
.byline { font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.byline b { color: var(--ink-2); font-weight: 600; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; border-bottom: 2px solid var(--ink);
  padding-bottom: .5rem; margin-bottom: 1.4rem;
}
.section-head h2 { font-size: 1.02rem; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.section-head a { font-size: .78rem; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.section-head a:hover { color: var(--signal); }

/* plate art (deterministic inline SVG per story) */
.plate { display: block; background: var(--paper-3); position: relative; overflow: hidden; }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ============================ FRONT PAGE ============================ */

.front { padding: 2.1rem 0 1rem; }

.lead {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; gap: 1.8rem; } }

.lead-main { text-decoration: none; display: block; }
.lead-main .plate { aspect-ratio: 16 / 8; margin-bottom: 1.1rem; }
.lead-main h1 {
  font-size: clamp(1.85rem, 3.7vw, 2.75rem);
  letter-spacing: -0.028em; margin-bottom: .7rem;
}
.lead-main:hover h1 { color: var(--brand); }
.lead-main .standfirst {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2);
  line-height: 1.55; margin-bottom: .8rem;
}

.lead-side { display: flex; flex-direction: column; gap: 1.25rem; }
.lead-side .stub {
  text-decoration: none; display: block;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule-soft);
}
.lead-side .stub:last-child { border-bottom: 0; padding-bottom: 0; }
.lead-side h3 { font-size: 1.09rem; letter-spacing: -0.015em; margin-bottom: .4rem; }
.lead-side .stub:hover h3 { color: var(--brand); }
.lead-side p { font-size: .885rem; color: var(--muted); margin: 0 0 .45rem; line-height: 1.5; }

/* three-up feature row */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
  padding: 2rem 0; border-bottom: 1px solid var(--rule);
}
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }
.trio a { text-decoration: none; display: block; }
.trio .plate { aspect-ratio: 16 / 9; margin-bottom: .85rem; }
.trio h3 { font-size: 1.16rem; margin-bottom: .45rem; }
.trio a:hover h3 { color: var(--brand); }
.trio p { font-size: .885rem; color: var(--muted); line-height: 1.5; margin-bottom: .5rem; }

/* main column + rail */
.columns {
  display: grid; grid-template-columns: 1fr 20rem; gap: 3rem;
  padding: 2.4rem 0 3rem;
}
@media (max-width: 980px) { .columns { grid-template-columns: 1fr; gap: 2.4rem; } }

/* river of stories */
.river li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.2rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--rule-soft);
}
.river li:first-child { padding-top: 0; }
.river a { text-decoration: none; }
.river .plate { aspect-ratio: 4 / 3; }
.river h3 { font-size: 1.06rem; margin-bottom: .35rem; letter-spacing: -0.012em; }
.river a:hover h3 { color: var(--brand); }
.river p { font-size: .865rem; color: var(--muted); line-height: 1.5; margin: 0 0 .4rem; }
@media (max-width: 560px) {
  .river li { grid-template-columns: 5.5rem 1fr; gap: .9rem; }
  .river p { display: none; }
}

/* compact numbered list */
.ranked li {
  display: grid; grid-template-columns: 1.9rem 1fr; gap: .7rem;
  padding: .7rem 0; border-bottom: 1px solid var(--rule-soft);
}
.ranked li:last-child { border-bottom: 0; }
.ranked .n {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 500;
  color: var(--signal); line-height: 1.3;
}
.ranked a { text-decoration: none; font-size: .93rem; font-weight: 500; line-height: 1.4; }
.ranked a:hover { color: var(--brand); }

/* rail */
.rail { display: flex; flex-direction: column; gap: 2.2rem; }
.rail .panel { border-top: 2px solid var(--ink); padding-top: .9rem; }
.rail .panel h2 {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; margin-bottom: .9rem;
}
.rail .movers li { padding: .65rem 0; border-bottom: 1px solid var(--rule-soft); }
.rail .movers li:last-child { border-bottom: 0; }
.rail .movers a { text-decoration: none; font-size: .9rem; line-height: 1.45; display: block; }
.rail .movers a:hover { color: var(--brand); }
.rail .movers span { display: block; font-size: .72rem; color: var(--faint); margin-top: .2rem; }

.signup {
  background: var(--brand-deep); color: #e7eefa; padding: 1.4rem 1.3rem;
  position: relative; overflow: hidden;
}
.signup h2 { color: #fff; font-size: 1.12rem; text-transform: none; letter-spacing: -0.01em; margin-bottom: .5rem; }
.signup p { font-size: .855rem; color: #b9cbe4; line-height: 1.5; }
.signup .fauxfield {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  padding: .6rem .75rem; font-size: .84rem; color: #9fb6d4; margin-bottom: .6rem;
}
.signup .btn {
  display: block; text-align: center; background: var(--signal); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .87rem; padding: .68rem 1rem;
}
.signup .btn:hover { background: #b81830; }
.signup .ecg-bg { position: absolute; right: -20px; bottom: -14px; width: 190px; opacity: .13; color: #fff; }

.tagcloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tagcloud a {
  font-size: .78rem; text-decoration: none; padding: .28rem .6rem;
  border: 1px solid var(--rule); color: var(--ink-2); background: var(--paper-2);
}
.tagcloud a:hover { border-color: var(--brand); color: var(--brand); }

/* category strip on the front page */
.catstrip { padding: 2.4rem 0; border-top: 1px solid var(--rule); }
.catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .catgrid { grid-template-columns: 1fr; } }
.catgrid section { border-top: 3px solid var(--cat, var(--brand)); padding-top: .8rem; }
.catgrid h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .8rem; }
.catgrid h2 a { text-decoration: none; color: var(--cat, var(--brand)); }
.catgrid li { padding: .6rem 0; border-bottom: 1px solid var(--rule-soft); }
.catgrid li:last-child { border-bottom: 0; }
.catgrid a { text-decoration: none; font-size: .9rem; line-height: 1.42; display: block; font-weight: 500; }
.catgrid li a:hover { color: var(--brand); }
.catgrid time { display: block; font-size: .71rem; color: var(--faint); margin-top: .22rem; }

/* ============================ PAGE HEADERS ============================ */

.pagehead {
  border-bottom: 1px solid var(--rule);
  padding: 2.2rem 0 1.6rem;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
}
.pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; margin-bottom: .55rem; }
.pagehead p { font-family: var(--serif); font-size: 1.03rem; color: var(--ink-2); max-width: 44rem; margin: 0; }
.pagehead .cat-rule { width: 56px; height: 4px; background: var(--cat, var(--brand)); margin-bottom: 1rem; }

.crumbs { font-size: .74rem; color: var(--faint); letter-spacing: .04em; margin-bottom: .8rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ============================ ARTICLE ============================ */

.article-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.2rem;
  padding: 2.4rem 0 3.2rem; align-items: start;
}
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; gap: 2.4rem; } }

.article header .plate { aspect-ratio: 16 / 7; margin: 1.4rem 0 1.6rem; }
.article h1 {
  font-size: clamp(1.95rem, 4.2vw, 2.85rem);
  letter-spacing: -0.03em; margin: .35rem 0 .85rem; max-width: 30ch;
}
.article .meta-line {
  display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: .7rem 0; font-size: .8rem; color: var(--muted);
}
.article .meta-line b { color: var(--ink-2); font-weight: 600; }
.article .meta-line .dot { color: var(--rule); }

.body {
  font-family: var(--serif);
  font-size: 1.115rem;
  line-height: 1.72;
  color: #16283f;
  max-width: var(--measure);
  margin-top: 1.6rem;
}
.body p { margin-bottom: 1.15em; }
.body > p:first-of-type::first-letter {
  float: left; font-size: 3.35em; line-height: .82; font-weight: 600;
  padding: .06em .1em 0 0; color: var(--brand); font-family: var(--sans);
}
.body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.body a:hover { color: var(--signal); }
.body h2 {
  font-family: var(--sans); font-size: 1.28rem; margin: 2rem 0 .8rem;
  letter-spacing: -0.015em;
}
.body blockquote {
  margin: 1.8rem 0; padding-left: 1.3rem; border-left: 3px solid var(--signal);
  font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); font-style: italic;
}

.pullquote {
  margin: 2rem 0; padding: 1.4rem 0; border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule); max-width: var(--measure);
  font-family: var(--sans); font-size: 1.22rem; font-weight: 500;
  line-height: 1.38; letter-spacing: -0.02em; color: var(--ink);
}

.tags-row { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.tags-row .lbl { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-right: .3rem; }

.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-top: 2.4rem; border-top: 1px solid var(--rule); padding-top: 1.4rem;
}
@media (max-width: 620px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a { text-decoration: none; display: block; }
.prevnext .dir { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: .3rem; display: block; }
.prevnext strong { font-size: .98rem; font-weight: 600; line-height: 1.35; display: block; }
.prevnext a:hover strong { color: var(--brand); }
.prevnext .nx { text-align: right; }
@media (max-width: 620px) { .prevnext .nx { text-align: left; } }

.related { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 780px) { .related-grid { grid-template-columns: 1fr; } }
.related-grid a { text-decoration: none; display: block; }
.related-grid .plate { aspect-ratio: 16 / 9; margin-bottom: .7rem; }
.related-grid h3 { font-size: 1.02rem; line-height: 1.32; }
.related-grid a:hover h3 { color: var(--brand); }
.related-grid time { font-size: .73rem; color: var(--faint); display: block; margin-top: .35rem; }

/* ============================ INDEX / LISTING ============================ */

.listing { padding: 2.2rem 0 3rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem var(--gap); }
@media (max-width: 900px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-grid a { text-decoration: none; display: flex; flex-direction: column; }
.listing-grid .plate { aspect-ratio: 16 / 9; margin-bottom: .85rem; }
.listing-grid h3 { font-size: 1.12rem; margin-bottom: .45rem; letter-spacing: -0.015em; }
.listing-grid a:hover h3 { color: var(--brand); }
.listing-grid p { font-size: .875rem; color: var(--muted); line-height: 1.5; margin-bottom: .55rem; }
.listing-grid .byline { margin-top: auto; }

.archive-list { border-top: 2px solid var(--ink); }
.archive-list li { border-bottom: 1px solid var(--rule-soft); }
.archive-list a {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem;
  padding: .95rem 0; text-decoration: none; align-items: baseline;
}
.archive-list time { font-family: var(--mono); font-size: .78rem; color: var(--faint); }
.archive-list strong { font-weight: 500; font-size: 1rem; line-height: 1.4; }
.archive-list a:hover strong { color: var(--brand); }
@media (max-width: 560px) {
  .archive-list a { grid-template-columns: 1fr; gap: .2rem; }
}

/* ============================ STATIC PAGES ============================ */

.prose { max-width: var(--measure); padding: 2.4rem 0 3.4rem; font-family: var(--serif); font-size: 1.09rem; line-height: 1.7; }
.prose.wide { max-width: 48rem; }
.prose h2 { font-family: var(--sans); font-size: 1.3rem; margin: 2.2rem 0 .7rem; letter-spacing: -0.018em; }
.prose h3 { font-family: var(--sans); font-size: 1.04rem; margin: 1.6rem 0 .5rem; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.15rem; }
.prose li { list-style: disc; margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--signal); }

.factbox {
  font-family: var(--sans); background: var(--paper-2);
  border-left: 3px solid var(--teal); padding: 1.15rem 1.3rem;
  margin: 1.8rem 0; font-size: .95rem; line-height: 1.6;
}
.factbox h3 { margin: 0 0 .5rem; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.factbox p:last-child { margin-bottom: 0; }

.statrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); margin: 2rem 0;
}
@media (max-width: 700px) { .statrow { grid-template-columns: repeat(2, 1fr); } }
.statrow div { background: var(--paper); padding: 1.1rem 1rem; font-family: var(--sans); }
.statrow b { display: block; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.statrow span { font-size: .76rem; color: var(--muted); letter-spacing: .03em; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; padding: 2.4rem 0 3.4rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-card { border: 1px solid var(--rule); padding: 1.5rem; font-family: var(--sans); }
.contact-card h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; color: var(--brand); }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .73rem; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-top: .95rem; font-weight: 600; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .18rem 0 0; font-size: .98rem; }
.contact-card a { color: var(--brand); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ============================ FOOTER ============================ */

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--brand-deep);
  color: #b9cbe4;
  padding: 2.6rem 0 1.6rem;
  font-size: .875rem;
  margin-top: 2rem;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-bottom: 2rem; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h2 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .85rem; }
.foot-grid li { margin-bottom: .5rem; }
.foot-grid a { color: #cfdcee; text-decoration: none; }
.foot-grid a:hover { color: #fff; text-decoration: underline; }
.foot-brand .wordmark { font-size: 1.65rem; color: #fff; }
.foot-brand .wordmark .it { color: #9fb6d4; }
.foot-brand p { margin-top: .7rem; color: #9fb6d4; line-height: 1.55; max-width: 30ch; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: #8ea6c6;
}
.foot-bottom a { color: #b9cbe4; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(10px); animation: rise .55s ease forwards; }
.reveal.d1 { animation-delay: .04s; }
.reveal.d2 { animation-delay: .1s; }
.reveal.d3 { animation-delay: .16s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; animation: none; } }


/* Commissioned photography fills the same slot the generated SVG plate does. */
.plate img { width: 100%; height: 100%; object-fit: cover; display: block;
             position: absolute; inset: 0; }
.cat-banner { margin: 0 0 2.2rem; overflow: hidden; background: var(--paper-3);
              aspect-ratio: 16 / 6; }
.cat-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
