/* =========================================================
   Open Thessaloniki — shared stylesheet
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F7F6;
  --surface: #FFFFFF;
  --ink: #13283D;
  --muted: #566876;
  --line: #DCE3E5;
  --sea: #1D4E7A;
  --sea-deep: #0F2C47;
  --sea-tint: #E2EBF3;
  --signal: #E9A825;
  --btn-bg: #1D4E7A;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #163E62;
  --focus: #E9A825;

  --font: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0C1520;
    --surface: #122030;
    --ink: #E6ECF1;
    --muted: #9BACB9;
    --line: #22364B;
    --sea: #8BBCE6;
    --sea-deep: #0A1825;
    --sea-tint: #10263B;
    --signal: #F2B840;
    --btn-bg: #8BBCE6;
    --btn-fg: #0C1520;
    --btn-bg-hover: #A6CDEE;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 0.95rem/1.2 var(--font);
  padding: 14px 22px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sea);
  text-decoration: none;
}

.text-link svg {
  transition: transform .2s;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose a:not(.btn) {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  color: var(--sea);
}

/* ---------- Top bar ---------- */
.top-announcement {
  background: var(--sea-deep);
  color: #C9D6E2;
  font-size: 0.8125rem;
}

.top-announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.top-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.top-email:hover {
  color: #fff;
}

.top-socials {
  display: flex;
  gap: 4px;
}

.top-socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.top-socials a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar-container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.brand-fallback {
  display: none;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand-fallback span {
  font-weight: 400;
}

.main-nav {
  margin-left: auto;
}

.nav-links-list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item a {
  display: block;
  position: relative;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.nav-item a:hover {
  color: var(--ink);
  background: var(--sea-tint);
}

.nav-item.active a {
  color: var(--ink);
  font-weight: 600;
}

.nav-item.active a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -15px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--signal);
}

.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.btn-icon:hover {
  border-color: var(--ink);
}

.mobile-toggle-btn {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  font: 600 0.9rem var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Search panel */
.search-modal {
  position: absolute;
  top: calc(100% + 1px);
  right: var(--gutter);
  width: min(520px, calc(100vw - 2 * var(--gutter)));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(15, 44, 71, .35);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.search-modal.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  color: var(--muted);
}

.search-input-field {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 400 1rem var(--font);
  color: var(--ink);
  padding: 10px 0;
}

.search-input-field:focus {
  outline: none;
}

.search-form-wrap:focus-within {
  outline: 2px solid var(--sea);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ---------- Shared icon tile ---------- */
.bento-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--sea-tint);
  color: var(--sea);
  margin-bottom: 22px;
}

.bento-title {
  margin: 0 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.bento-text {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.bento-text a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bento-text a:hover {
  color: var(--sea);
}

/* =========================================================
   HOME
   ========================================================= */
.hero-section {
  padding: clamp(48px, 8vw, 96px) 0 0;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-badge-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent);
  }

  70%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.hero-headline {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.4vw, 4.25rem);
  line-height: 1.04;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-description {
  margin: 0 0 36px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
}

.hero-description strong {
  color: var(--ink);
  font-weight: 650;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* City map */
.city-map {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.city-map svg {
  width: 100%;
  height: 100%;
}

.map-sea {
  fill: var(--sea-tint);
}

.map-swell {
  stroke: var(--sea);
  stroke-opacity: .18;
  stroke-width: 1;
  stroke-dasharray: 2 7;
  fill: none;
}

.map-coast {
  stroke: var(--sea);
  stroke-opacity: .55;
  stroke-width: 2;
  fill: none;
}

.map-street {
  stroke: var(--line);
  stroke-width: 1.4;
  fill: none;
}

.map-avenue {
  stroke: var(--muted);
  stroke-opacity: .35;
  stroke-width: 2.2;
  fill: none;
}

.map-link {
  stroke: var(--sea);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 5;
  opacity: 0;
  animation: mapFade .6s ease forwards;
}

.map-node {
  fill: var(--surface);
  stroke: var(--sea);
  stroke-width: 2.5;
}

.map-node.hot {
  fill: var(--signal);
  stroke: var(--signal);
}

.map-node-g {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) forwards;
}

.map-halo {
  fill: var(--signal);
  opacity: .25;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.2);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes mapFade {
  to {
    opacity: .7;
  }
}

/* Stats strip */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  padding: 28px 24px 28px 0;
}

.stat-card+.stat-card {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat-number {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Community */
.community {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-title-wrap {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-badge {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 10px;
}

.section-heading {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.community-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 3vw, 32px);
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.feature .bento-title {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

/* Dark sea panel (home contact + page CTAs) */
.contact-panel {
  background: var(--sea-deep);
  color: #D3DEE8;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(233, 168, 37, .45);
  box-shadow: 0 0 0 36px rgba(233, 168, 37, .04), 0 0 0 72px rgba(233, 168, 37, .03);
  pointer-events: none;
}

.contact-panel .bento-icon {
  background: var(--signal);
  color: #0F2C47;
}

.contact-panel .bento-title {
  color: #fff;
}

.contact-panel .bento-text {
  color: #B9C8D6;
}

.contact-panel .bento-text a {
  color: #fff;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.contact-panel .btn-primary {
  background: #fff;
  color: #0F2C47;
}

.contact-panel .btn-primary:hover {
  background: #E2EBF3;
}

.contact-panel .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.contact-panel .btn-secondary:hover {
  border-color: #fff;
}

.community-leads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 64px);
}

.lead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 20px;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.lead .bento-icon {
  margin: 0;
  width: 44px;
  height: 44px;
}

.lead .bento-text {
  margin-bottom: 18px;
}

/* =========================================================
   INNER PAGES — shared header banner
   ========================================================= */
.page-header-banner {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
}

/* faint street-grid + coastline motif, echoing the home map */
.page-header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke='%237F97AD' stroke-width='1.4'%3E%3Cpath d='M0,250 C80,240 150,262 220,292 C260,310 290,318 320,330' stroke-dasharray='2 6'/%3E%3Cpath d='M30,210 C120,200 190,222 260,252 C330,282 400,300 520,300'/%3E%3Cpath d='M60,166 C150,156 220,178 290,208 C360,238 430,256 520,256'/%3E%3Cpath d='M90,122 C180,112 250,134 320,164 C390,194 460,212 520,212'/%3E%3Cpath d='M120,78 C210,68 280,90 350,120 C420,150 490,168 520,168'/%3E%3Cline x1='150' y1='320' x2='230' y2='0'/%3E%3Cline x1='240' y1='320' x2='330' y2='0'/%3E%3Cline x1='330' y1='320' x2='430' y2='0'/%3E%3Cline x1='420' y1='320' x2='520' y2='40'/%3E%3C/g%3E%3Cg fill='%23E9A825'%3E%3Ccircle cx='290' cy='208' r='6'/%3E%3Ccircle cx='392' cy='186' r='4'/%3E%3C/g%3E%3C/svg%3E") right center / cover no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
  mask-image: linear-gradient(to right, transparent, #000 45%);
  pointer-events: none;
}

.page-header-banner .container {
  position: relative;
}

.page-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sea);
  margin-bottom: 14px;
}

.page-header-title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.page-header-lead {
  margin: 0;
  max-width: 38em;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--muted);
}

.page-body {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(72px, 9vw, 112px);
}

/* =========================================================
   ABOUT
   ========================================================= */
.qa-list {
  margin: 0;
  padding: 0;
}

.qa-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(28px, 5vw, 64px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.qa-item:first-child {
  border-top: 2px solid var(--ink);
}

.qa-q {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
}

.qa-q .bento-icon {
  margin: 0;
  width: 44px;
  height: 44px;
}

.qa-q h2 {
  margin: 8px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.qa-a {
  margin: 0;
}

.qa-a p {
  margin: 6px 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 60ch;
}

.cta-band {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
}

.cta-band h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: #B9C8D6;
  max-width: 46ch;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.gallery-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.gallery-hint svg {
  color: var(--signal);
  flex-shrink: 0;
}

.gallery-count {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sea);
  background: var(--sea-tint);
  padding: 6px 12px;
  border-radius: 999px;
}

.modern-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(24px, 3vw, 36px);
}

.gallery-tile {
  margin: 0;
}

.gallery-tile-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  aspect-ratio: 670 / 300;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sea-tint);
}

.gallery-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.gallery-tile-cover:hover img,
.gallery-tile-cover:focus-visible img {
  transform: scale(1.04);
}

.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(10, 24, 37, .75), rgba(10, 24, 37, 0) 55%);
  color: #fff;
  font: 600 0.95rem var(--font);
  opacity: 0;
  transition: opacity .2s;
}

.gallery-tile-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-tile-cover:hover .gallery-tile-overlay,
.gallery-tile-cover:focus-visible .gallery-tile-overlay {
  opacity: 1;
}

.gallery-tile-body {
  padding-top: 18px;
}

.gallery-tile-date {
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.gallery-tile-title {
  margin: 0 0 8px;
  font-size: 1.3125rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.gallery-tile-desc {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* =========================================================
   NEWS
   ========================================================= */
.filter-pills-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-pill-btn {
  font: 500 0.9rem var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.filter-pill-btn:hover {
  border-color: var(--ink);
}

.filter-pill-btn.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.no-search-results {
  text-align: center;
  padding: 56px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.no-search-results h3 {
  margin: 0;
  font-size: 1.25rem;
}

.no-search-results p {
  margin: 8px 0 0;
  color: var(--muted);
}

.news-card-article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px clamp(28px, 5vw, 64px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--line);
}

.news-card-article:first-of-type {
  border-top: 2px solid var(--ink);
}

.news-card-meta {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 10px;
}

.news-date {
  display: grid;
  line-height: 1.05;
}

.news-date-day {
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.news-date-year {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.news-card-title {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.news-card-body {
  max-width: 70ch;
}

.news-card-body p {
  margin: 0 0 16px;
}

.news-card-body ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.news-card-body li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.news-card-body li::marker {
  color: var(--signal);
}

.news-card-body .list-intro {
  font-weight: 650;
  margin-bottom: 10px;
}

.ebook-wrap {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ebook-cover {
  width: 120px;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 14px 28px -14px rgba(15, 44, 71, .55);
}

.news-figure {
  margin: 28px 0;
}

.news-figure-wide img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
}

.news-figure-poster img {
  max-height: 480px;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.news-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.news-tag-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sea);
  background: var(--sea-tint);
  padding: 4px 10px;
  border-radius: 6px;
}


/* =========================================================
   SHARED MEDIA
   ========================================================= */
.video-player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #0A1825;
  border: 1px solid var(--line);
  margin: 24px 0;
}

.video-player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.project-showcase:first-of-type {
  border-top: 2px solid var(--ink);
  padding-top: clamp(32px, 4vw, 48px);
}

.project-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.project-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sea);
  background: var(--sea-tint);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.project-badge-pill.is-safety {
  color: #B4451F;
  background: #FBEAE2;
}

@media (prefers-color-scheme: dark) {
  .project-badge-pill.is-safety {
    color: #F4A07E;
    background: #2E1A14;
  }
}

.project-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.625rem);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.project-subtitle {
  margin: 12px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sea);
}

.project-body {
  max-width: 72ch;
}

.project-body p {
  margin: 0 0 18px;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.project-body h3 {
  margin: 36px 0 10px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.project-body code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--sea-tint);
  color: var(--sea);
  padding: 2px 6px;
  border-radius: 4px;
}

.project-body .note-muted {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.project-body .thanks {
  font-weight: 650;
}

.project-wide {
  max-width: 880px;
}

/* User story template */
.user-story-blueprint {
  margin: 8px 0 28px;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 520px;
}

.user-story-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
}

.user-story-line+.user-story-line {
  border-top: 1px dashed var(--line);
}

.user-story-keyword {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.user-story-slot {
  justify-self: start;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: color-mix(in srgb, var(--signal) 22%, transparent);
  border: 1.5px dashed var(--signal);
  border-radius: 6px;
  padding: 4px 10px;
}

/* Screenshot pairs */
.preview-mockup-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin: 12px 0 32px;
}

.preview-mockup-box {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--sea-tint);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 3vw, 28px) 16px;
}

.preview-mockup-box img {
  max-height: 380px;
  width: auto;
  margin: 0 auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px -18px rgba(15, 44, 71, .55);
  cursor: zoom-in;
}

.preview-mockup-box figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

/* Notes callout */
.notes-callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--signal) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--signal) 45%, transparent);
  border-left: 4px solid var(--signal);
  border-radius: 10px;
}

.notes-callout h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 750;
}

.notes-callout ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.975rem;
  line-height: 1.7;
}

.notes-callout li+li {
  margin-top: 8px;
}

.notes-callout li::marker {
  color: var(--signal);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* =========================================================
   PRESS
   ========================================================= */
.press-year {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px clamp(28px, 5vw, 64px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}

.press-year:first-of-type {
  border-top: 2px solid var(--ink);
}

.press-year-head {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
}

.press-year-num {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.press-year-label {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.press-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-timeline li+li {
  border-top: 1px solid var(--line);
}

.press-card-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 4px;
  text-decoration: none;
  color: inherit;
}

.press-media-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sea-tint);
  color: var(--sea);
}

.press-media-icon.video {
  background: color-mix(in srgb, var(--signal) 20%, transparent);
  color: #8A5B00;
}

@media (prefers-color-scheme: dark) {
  .press-media-icon.video {
    color: var(--signal);
  }
}

.press-card-heading {
  margin: 0 0 4px;
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 650;
}

.press-card-outlet {
  font-size: 0.9rem;
  color: var(--muted);
}

.press-card-go {
  color: var(--muted);
  transition: transform .2s, color .2s;
}

.press-card-item:hover .press-card-heading {
  color: var(--sea);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.press-card-item:hover .press-card-go {
  color: var(--sea);
  transform: translate(2px, -2px);
}

.press-video {
  margin-top: 12px;
}

.press-video h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.press-video .video-player-frame {
  margin-top: 14px;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(6, 16, 26, .93);
}

.lightbox-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px clamp(16px, 3vw, 32px) 24px;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #B9C8D6;
  font-variant-numeric: tabular-nums;
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox-caption {
  text-align: center;
  font-weight: 500;
  margin: 12px auto 0;
  max-width: 60ch;
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-btn[hidden] {
  visibility: hidden;
  display: grid;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-main-footer {
  background: var(--sea-deep);
  color: #B9C8D6;
  padding: clamp(56px, 7vw, 80px) 0;
}

.footer-grid-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-title {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-brand-desc {
  margin: 0;
  max-width: 34ch;
}

.footer-nav-col h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-nav-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-nav-col a {
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-nav-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Back to top */
.fab-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  box-shadow: 0 10px 24px -10px rgba(15, 44, 71, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.fab-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .city-map {
    aspect-ratio: 16 / 9;
  }

  .community-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  .navbar-container {
    gap: 10px;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(15, 44, 71, .35);
    padding: 8px var(--gutter) 16px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-links-list {
    flex-direction: column;
    gap: 2px;
  }

  .nav-item a {
    padding: 12px;
    font-size: 1rem;
  }

  .nav-item.active a {
    background: var(--sea-tint);
  }

  .nav-item.active a::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
  }
}

@media (max-width: 860px) {

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-card:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat-card:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .community-leads {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-header-banner::before {
    opacity: .25;
    width: 70%;
  }

  .qa-item {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .modern-gallery-grid {
    grid-template-columns: 1fr;
  }

  .news-card-article {
    grid-template-columns: 1fr;
  }

  .press-year {
    grid-template-columns: 1fr;
  }

  .press-year-head {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }

  .press-year-label {
    margin-top: 0;
  }

  .news-card-meta {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
  }

  .news-date {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .news-date-day {
    font-size: 1.125rem;
  }

  .footer-grid-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid-top> :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 64px;
  }

  .top-email-text {
    display: none;
  }

  .brand-logo-img {
    height: 30px;
  }

  .brand-fallback {
    font-size: 1rem;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  .mobile-toggle-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
  }

  .mobile-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .search-modal {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }

  .search-input-group .btn {
    padding: 10px 12px;
  }

  .city-map {
    aspect-ratio: 4 / 3;
  }

  .hero-cta-group .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .stat-card,
  .stat-card+.stat-card {
    padding: 20px 12px 20px 0;
  }

  .stat-card:nth-child(even) {
    padding-left: 16px;
  }

  .lead {
    grid-template-columns: 1fr;
  }

  .lead .bento-icon {
    margin-bottom: 16px;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .ebook-wrap {
    flex-direction: column;
  }

  .preview-mockup-row {
    grid-template-columns: 1fr;
  }

  .user-story-line {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 18px;
  }

  .press-card-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .press-card-go {
    display: none;
  }

  .project-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lightbox-stage {
    grid-template-columns: 1fr;
  }

  .lightbox-stage .lightbox-prev,
  .lightbox-stage .lightbox-next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .map-node-g {
    opacity: 1;
  }

  .map-link {
    opacity: .7;
  }

  html {
    scroll-behavior: auto;
  }
}