/* ==========================================================================
   Androklis Gregoriou — Portfolio
   Minimal design system. No gradients, no heavy shadows — neutral base with a
   single restrained gold accent. No third-party CSS, no @import (CSP-friendly).
   The Moat widget inherits the site palette via the --moat-* tokens below.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --gold:        #9b7b34;   /* accent (light) */
  --gold-soft:   #b08f44;
  --danger:      #b42318;

  /* Light theme (default-friendly) */
  --bg:          #ffffff;
  --bg-elev:     #ffffff;
  --bg-elev-2:   #fafaf8;
  --surface:     #fbfbfa;
  --surface-2:   #f4f4f1;
  --border:      #e7e6e1;
  --border-soft: #f0efea;
  --fg:          #1a1a1a;
  --fg-muted:    #5a5a5e;
  --fg-dim:      #8c8c92;
  --accent:      var(--gold);
  --accent-ink:  #80652a;   /* readable gold for text on light bg (WCAG AA) */
  --accent-fg:   #ffffff;
  --ring:        rgba(155,123,52,0.45);
  --shadow:      none;
  --shadow-sm:   none;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-head: var(--font-sans);

  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.08rem + 0.45vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.25rem + 0.9vw, 1.9rem);
  --step-3:  clamp(1.85rem, 1.5rem + 1.7vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.8rem + 2.6vw, 3.6rem);

  --gutter: clamp(1.1rem, 0.7rem + 2vw, 2rem);
  --maxw: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --tap: 44px;
  --t: 0.25s ease;

  /* Moat widget inherits these site tokens */
  --moat-surface: var(--bg-elev);
  --moat-fg: var(--fg);
  --moat-fg-muted: var(--fg-muted);
  --moat-border: var(--border);
  --moat-accent: var(--accent);
  --moat-danger: var(--danger);
  --moat-radius: 8px;
  --moat-max-width: 100%;
  --moat-font: var(--font-sans);
}

:root[data-theme="dark"] {
  --gold:        #cdab6e;
  --gold-soft:   #ddbd84;
  --bg:          #0d0d0f;
  --bg-elev:     #141416;
  --bg-elev-2:   #1a1a1d;
  --surface:     #141416;
  --surface-2:   #1c1c20;
  --border:      #2a2a2e;
  --border-soft: #232327;
  --fg:          #f3f3f4;
  --fg-muted:    #a6a6ad;
  --fg-dim:      #76767e;
  --accent:      var(--gold);
  --accent-ink:  var(--gold);   /* the lighter dark-theme gold reads fine on dark bg */
  --accent-fg:   #0d0d0f;
  --ring:        rgba(205,171,110,0.5);
  --moat-surface: #141416;
  --moat-fg: #f3f3f4;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { color: var(--fg-muted); }
strong { color: var(--fg); font-weight: 600; }
h1, h2, h3, h4, .tl-role, .project__body h3, .award h3, .cert__t { overflow-wrap: break-word; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.text-gradient { color: var(--fg); }
.lead { font-size: var(--step-1); color: var(--fg-muted); max-width: 60ch; line-height: 1.6; }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head .lead { margin-top: 0.9rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap); padding: 0.65rem 1.3rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: var(--step-0); letter-spacing: 0;
  transition: background var(--t), border-color var(--t), color var(--t), opacity var(--t);
}
.btn--primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--primary:hover { opacity: 0.86; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; flex: none; }
.brand__name { font-size: 1rem; }
.brand__name small { display: block; font-size: 0.7rem; font-weight: 400; color: var(--fg-muted); letter-spacing: 0.02em; }

.nav__menu { display: flex; align-items: center; gap: 0.1rem; }
.nav__link {
  position: relative; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--fg-muted); font-weight: 500; font-size: 0.95rem; transition: color var(--t);
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem;
  height: 1px; background: var(--accent);
}
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--fg); transition: border-color var(--t), color var(--t);
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-grid; }
  .nav__menu {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem var(--gutter) 1.4rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 0.85rem 0.6rem; font-size: 1.05rem; border-bottom: 1px solid var(--border-soft); }
  .nav__link[aria-current="page"]::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 2rem + 8vw, 7rem) clamp(2.5rem, 1.5rem + 5vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 1rem + 5vw, 4.5rem); align-items: center; }
.hero__name { margin-top: 0.8rem; }
.hero__role { margin-top: 0.6rem; color: var(--accent-ink); font-weight: 600; font-size: var(--step-1); }
.hero__desc { margin-top: 1.4rem; }
.hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; }
.stat__num { font-size: var(--step-2); font-weight: 600; line-height: 1; color: var(--fg); }
.stat__num span { color: var(--accent); }
.stat__label { font-size: var(--step--1); color: var(--fg-muted); margin-top: 0.35rem; }

.portrait { position: relative; justify-self: center; width: min(340px, 80vw); aspect-ratio: 1; }
.portrait__frame {
  position: relative; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); transition: border-color var(--t);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait__frame::after { content: none; }
.portrait::after { content: none; }
.portrait:hover .portrait__frame { border-color: var(--fg-dim); }
.portrait__badge {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap; width: 90%;
  padding: 0.5rem 0.95rem; border-radius: var(--radius-pill);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--fg);
  box-shadow: 0 8px 22px -12px rgba(0,0,0,0.28);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e5b; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 0.6rem + 1.5vw, 1.4rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
  position: relative; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  transition: border-color var(--t); overflow: hidden;
}
.card:hover { border-color: var(--fg-dim); }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent); margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--center { margin-inline: auto; }
.card.center .card__icon { margin-inline: auto; }
.card.center h3 { margin-top: 0.2rem; }
.card h3 { margin-bottom: 0.5rem; font-weight: 600; }
.card p { font-size: 0.95rem; }
.card--feature::after { content: none; }
/* Feature cards: equal-height titles so the body text lines up across cards */
.card--feature h3 { min-height: 2.4em; }
.card--feature .card__icon { margin-inline: auto; }

/* Interest / photo tiles */
.tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); background: var(--surface); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(0.15); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 4%, rgba(0,0,0,0.05) 50%, transparent); }
.tile:hover img { transform: scale(1.04); }
.tile__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0.95rem 1rem; display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 600; font-size: 1rem; }
.tile__label svg { width: 17px; height: 17px; color: #fff; flex: none; }
.tile__sub { display: block; font-size: 0.78rem; font-weight: 400; color: rgba(255,255,255,0.8); }

.info-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr; gap: 1rem; align-items: stretch; }
.info-card > div { align-self: start; }
.info-card .card__icon { margin: 0; align-self: center; }
.info-card h3 { font-size: 1.02rem; min-height: 2.6em; }
.info-card p { font-size: 0.9rem; margin-top: 0.15rem; }
.info-card:hover { border-color: var(--fg-dim); }

/* ---------- Resume ---------- */
.timeline { position: relative; }
.tl-item { position: relative; padding-left: 1.8rem; padding-bottom: 2.2rem; border-left: 2px solid var(--border); transition: border-color var(--t); }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: background var(--t), box-shadow var(--t); }
.tl-item:hover { border-left-color: var(--accent); }
.tl-item:hover::before { background: var(--accent); box-shadow: 0 0 0 4px var(--ring); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.tl-date { font-size: var(--step--1); font-weight: 600; color: var(--accent); }
.tl-org { font-size: 0.9rem; color: var(--fg-muted); margin-top: 0.2rem; }
.tl-role { font-size: var(--step-1); margin-top: 0.15rem; font-weight: 600; }
.tl-item ul { margin-top: 0.7rem; display: grid; gap: 0.5rem; }
.tl-item ul li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; color: var(--fg-muted); }
.tl-item ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 1px; background: var(--fg-dim); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.45rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; font-size: 0.88rem; font-weight: 500; color: var(--fg); transition: border-color var(--t); }
.chip:hover { border-color: var(--fg-dim); }
.chip--soft { color: var(--fg-muted); }

.skillbar { margin-bottom: 1.05rem; }
.skillbar__top { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.4rem; }
.skillbar__track { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.skillbar__fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width 1s ease; }

.cert { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.05rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; transition: border-color var(--t); }
.cert:hover { border-color: var(--fg-dim); }
.cert__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--surface-2); color: var(--accent); }
.cert__ic svg { width: 20px; height: 20px; }
.cert__t { display: block; font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.cert__id { display: block; font-size: 0.77rem; color: var(--fg-dim); margin-top: 0.15rem; }
.cert__go { margin-left: auto; color: var(--fg-dim); flex: none; transition: color var(--t); }
.cert:hover .cert__go { color: var(--accent); }

.award { display: flex; gap: 0.85rem; align-items: center; padding: 1.05rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; transition: border-color var(--t); }
.award:hover { border-color: var(--fg-dim); }
.award > div { min-height: 4.6rem; }
.award__yr { font-size: 0.77rem; color: var(--accent); font-weight: 600; }
.award h3 { font-size: 0.98rem; margin: 0.15rem 0; font-weight: 600; }
.award p { font-size: 0.85rem; }
.award__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--surface-2); color: var(--accent); }
.award__ic svg { width: 20px; height: 20px; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter { padding: 0.5rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: transparent; font-size: 0.88rem; font-weight: 500; color: var(--fg-muted); transition: all var(--t); }
.filter:hover { color: var(--fg); border-color: var(--fg-dim); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.project { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: transparent; transition: border-color var(--t), opacity 0.4s; }
.project:hover { border-color: var(--fg-dim); }
.project__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project__tag { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; padding: 0.28rem 0.65rem; border-radius: var(--radius-pill); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border); }
.project__body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project__body h3 { font-size: 1.08rem; font-weight: 600; }
.project__go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent); font-weight: 600; font-size: 0.88rem; }
.project__go svg { width: 15px; height: 15px; transition: transform var(--t); }
.project:hover .project__go svg { transform: translateX(3px); }
.project.is-hidden { display: none; }
.project__loc { font-size: 0.88rem; color: var(--fg-dim); display: flex; align-items: center; gap: 0.4rem; }
.project__loc svg { width: 14px; height: 14px; }

/* Industry icon panel — flat, neutral */
.ind-panel { display: grid; place-items: center; background: var(--surface); }
.ind-panel::after { content: none; }
.ind-badge { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); color: var(--accent); transition: border-color var(--t), color var(--t); }
.ind-badge svg { width: 34px; height: 34px; }
.ind-badge--lg { width: 92px; height: 92px; border-radius: 18px; }
.ind-badge--lg svg { width: 44px; height: 44px; }
.project:hover .ind-badge { border-color: var(--accent); }

/* ---------- Project detail ---------- */
.project__hero { aspect-ratio: 21 / 8; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.project__hero img { width: 100%; height: 100%; object-fit: cover; }
.backlink { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem; color: var(--fg-muted); font-weight: 500; transition: color var(--t); }
.backlink:hover { color: var(--accent); }
.backlink svg { width: 16px; height: 16px; }
.proj-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; margin-top: 1.4rem; }
.proj-list { display: grid; gap: 0.5rem; }
.proj-list li { position: relative; padding-left: 1.3rem; color: var(--fg-muted); font-size: 0.95rem; }
.proj-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1px; background: var(--accent); }
.glossary { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.glossary td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border-soft); vertical-align: top; color: var(--fg-muted); }
.glossary tr:last-child td { border-bottom: 0; }
.glossary td:first-child { white-space: nowrap; color: var(--fg); }
.proj-cust { display: flex; align-items: center; gap: 0.4rem; }
.proj-cust svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.proj-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: start; }
.contact-list { display: grid; gap: 0.8rem; margin-top: 1.6rem; }
.contact-item { display: flex; gap: 0.85rem; align-items: center; padding: 1rem 1.05rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; transition: border-color var(--t); }
.contact-item:hover { border-color: var(--fg-dim); }
.contact-item .card__icon { margin: 0; width: 40px; height: 40px; }
.contact-item > span:last-child { display: flex; flex-direction: column; gap: 0.12rem; }
.contact-item__k { display: block; font-size: 0.77rem; color: var(--fg-dim); }
.contact-item__v { display: block; font-weight: 600; font-size: 0.94rem; }

.form-card { background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); }
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--fg); }
.field .req { color: var(--accent); }
.input, .textarea { width: 100%; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--fg); transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder, .textarea::placeholder { color: var(--fg-dim); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.moat-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.moat { margin: 0.4rem 0 1.2rem; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status[data-state="ok"] { color: #2e9e5b; }
.form-status[data-state="err"] { color: var(--danger); }
.form-status[data-state="loading"] { color: var(--fg-muted); }

.map-wrap { margin-top: 1.4rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.map-wrap iframe { width: 100%; height: 280px; border: 0; filter: grayscale(0.3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.2rem; margin-top: 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer__nav a { color: var(--fg-muted); font-size: 0.9rem; transition: color var(--t); }
.footer__nav a:hover { color: var(--fg); }
.footer__copy { color: var(--fg-muted); font-size: 0.84rem; }
.footer__copy a { color: inherit; text-decoration: underline; }
.footer__copy a:hover { color: var(--fg); }
.social-row { display: inline-flex; align-items: center; gap: 0.9rem; }
.social-row a { color: var(--fg-muted); display: inline-flex; transition: color var(--t); }
.social-row a:hover { color: var(--fg); }
.social-row svg { width: 20px; height: 20px; display: block; }
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-pill); cursor: pointer;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { opacity: 0.86; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.06s; }
.reveal[data-delay="2"] { transition-delay: 0.12s; }
.reveal[data-delay="3"] { transition-delay: 0.18s; }
.reveal[data-delay="4"] { transition-delay: 0.24s; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 50%; top: -60px; transform: translateX(-50%); z-index: 200; background: var(--fg); color: var(--bg); padding: 0.6rem 1.2rem; border-radius: 0 0 8px 8px; font-weight: 600; transition: top var(--t); }
.skip-link:focus { top: 0; }

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.is-narrow { max-width: 940px; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.display-xl { font-size: clamp(3.5rem, 2.6rem + 7vw, 7rem); line-height: 1; }
.full-w { width: 100%; }
.center-x { margin-inline: auto; }
.t-sm { font-size: 0.9rem; }
.t-xs { font-size: 0.78rem; }
.t-dim { color: var(--fg-dim); }
.a-accent { color: var(--accent); font-weight: 600; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.6rem; } .mt-l { margin-top: 1.8rem; }
.mb-s { margin-bottom: 0.5rem; } .mb-m { margin-bottom: 1.1rem; } .mb-l { margin-bottom: 2rem; }
.block-title { margin-bottom: 2rem; }
.sub-h { font-size: var(--step-1); }
.mini-h { font-size: 1.02rem; }
.eyebrow--center { justify-content: center; }
.cta-card { padding: clamp(2rem, 1.5rem + 4vw, 4rem); }
.cta-card h2 { margin: 0.6rem 0 1rem; }
.cta-card .lead { margin: 0 auto 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__meta, .eyebrow { justify-content: center; }
  .hero__meta { gap: 1.2rem 2rem; }
  .portrait { order: -1; }
  .lead { margin-inline: auto; }
  .grid--2 { grid-template-columns: 1fr; }
  .proj-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .brand__name small { display: none; }
}
@media (max-width: 600px) {
  .nav__actions .btn--primary { display: none; }
  .nav__actions { gap: 0.4rem; }
}
@media (max-width: 540px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .portrait { width: min(270px, 78vw); }
  .portrait__badge { white-space: normal; text-align: center; line-height: 1.3; font-size: 0.8rem; width: 90%; padding: 0.4rem 0.85rem; }
  .filter { padding: 0.45rem 0.8rem; font-size: 0.82rem; }
  .map-wrap iframe { height: 230px; }
  .proj-nav { flex-direction: column; }
  .proj-nav .btn { width: 100%; }
}
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .brand__name { font-size: 0.92rem; }
}

/* contact form — invalid field state */
.input.is-invalid, .textarea.is-invalid { border-color: #c0392b; }
.input.is-invalid:focus, .textarea.is-invalid:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.18); box-shadow: 0 0 0 3px color-mix(in srgb, #c0392b 18%, transparent); }
