[data-featured-projects] > .project-card[data-project-id="fronte-artico-2026"] { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
[data-featured-projects] > .project-card[data-project-id="fronte-artico-2026"] .card-visual { position: relative; aspect-ratio: auto; min-width: 0; min-height: 300px; }
[data-featured-projects] > .project-card[data-project-id="fronte-artico-2026"] .card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) {
  [data-featured-projects] > .project-card[data-project-id="fronte-artico-2026"] { grid-template-columns: 1fr; }
  [data-featured-projects] > .project-card[data-project-id="fronte-artico-2026"] .card-visual { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
}
:root {
  --ink: #071715;
  --ink-2: #0c211f;
  --ink-3: #12302c;
  --petrol: #1f8176;
  --petrol-light: #49b7aa;
  --paper: #f1ede3;
  --paper-2: #e4dfd4;
  --white: #fffdf7;
  --muted: #a7b6b2;
  --line: rgba(73,183,170,.28);
  --amber: #c89a4b;
  --danger: #bb6b59;
  --header-h: 72px;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0,0,0,.24);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--petrol-light); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 1000; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* HEADER */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(7,23,21,.9); border-bottom: 1px solid rgba(73,183,170,.18); backdrop-filter: blur(16px); }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; color: var(--petrol-light); }
.brand-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; letter-spacing: .01em; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.main-nav a, .nav-button { border: 0; background: transparent; color: var(--muted); text-decoration: none; padding: .6rem .72rem; border-radius: 9px; cursor: pointer; font-size: .88rem; }
.main-nav a:hover, .main-nav a[aria-current='page'], .nav-button:hover { color: var(--white); background: rgba(73,183,170,.1); }

.score-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--petrol);
  font-size: .78rem;
  white-space: nowrap;
  cursor: pointer;
}

.score-chip span {
  color: var(--petrol);
  font-weight: 700;
}

.score-chip strong {
  color: var(--ink);
  min-width: 2ch;
  text-align: right;
  font-weight: 700;
}

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); min-width: 36px; min-height: 34px; cursor: pointer; }
.lang-switch button[aria-pressed='true'] { background: var(--petrol); color: var(--white); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ''; display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded='true'] span { opacity: 0; }
.menu-toggle[aria-expanded='true']::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true']::after { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: clip; isolation: isolate; background:
  radial-gradient(circle at 82% 22%, rgba(31,129,118,.18), transparent 26%),
  linear-gradient(rgba(73,183,170,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(73,183,170,.035) 1px, transparent 1px),
  linear-gradient(145deg, #071715 0%, #071412 55%, #0a201d 100%);
  background-size: auto, 42px 42px, 42px 42px, auto;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,23,21,.96) 0%, rgba(7,23,21,.78) 45%, rgba(7,23,21,.12) 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(370px, .96fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(3.2rem, 7vw, 6.5rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .75rem; color: var(--petrol-light); font-size: .78rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
.eyebrow::before { content: ''; width: 42px; height: 1px; background: currentColor; }
.hero h1 { margin: 1.1rem 0 1rem; font-family: var(--serif); font-size: clamp(3.2rem, 6vw, 6.3rem); line-height: .91; letter-spacing: -.045em; max-width: 850px; }
.hero-subtitle { max-width: 720px; color: #c8d0ce; font-size: clamp(1.02rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .78rem 1.2rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--petrol); color: var(--white); }
.button-primary:hover { background: #28988b; }
.button-secondary { background: transparent; color: var(--white); border-color: var(--line); }
.button-secondary:hover { border-color: var(--petrol-light); background: rgba(73,183,170,.08); }
.button-paper { background: var(--ink); color: var(--white); }
.button[aria-disabled='true'], .button:disabled { opacity: .48; pointer-events: none; }
.hero-console { position: relative; min-height: 540px; display: grid; place-items: center; }
.console-core { width: min(100%, 520px); aspect-ratio: 1 / 1; border: 1px solid rgba(73,183,170,.34); border-radius: 36px; padding: 30px; background: linear-gradient(145deg, rgba(20,58,53,.74), rgba(4,18,17,.9)); box-shadow: var(--shadow), inset 0 0 0 8px rgba(255,255,255,.012); position: relative; }
.console-core::before { content: ''; position: absolute; inset: 15px; border: 1px dashed rgba(73,183,170,.18); border-radius: 25px; pointer-events: none; }
.console-screen { height: 100%; border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(73,183,170,.17), transparent 44%), #05110f; display: grid; place-items: center; padding: 2rem; position: relative; overflow: hidden; }
.console-screen::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018), rgba(255,255,255,.018) 1px, transparent 1px, transparent 5px); pointer-events: none; }

.swan-symbol {
  position: absolute;
  width: 132px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--petrol-light);
  opacity: .9;
  pointer-events: auto;
cursor: pointer;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
outline: none;
user-select: none;
-webkit-user-select: none;
-webkit-user-drag: none;
  z-index: 2;
  will-change: left, top, opacity;
  transition: opacity .45s ease;
}

.console-status {
  position: absolute;
  top: 10%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: max-content;
  max-width: calc(100% - 40px);
  z-index: 3;

  color: var(--petrol-light);
  font: 700 .7rem/1 var(--sans);
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.console-status i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--petrol-light);
  box-shadow: 0 0 14px rgba(73,183,170,.7);
}

.console-status { white-space: normal; line-height: 1.4; }

/* Achievement segreto del cigno */
.swan-achievement {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translate(-50%, 10px);

  width: max-content;
  max-width: calc(100% - 24px);
  padding: .65rem .9rem;

  border: 1px solid rgba(92, 255, 224, .48);
  border-radius: 14px;
  background: rgba(3, 18, 15, .94);

  color: var(--petrol-light);
  font: 600 .62rem/1.4 var(--sans);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 6;

  box-shadow:
    0 0 12px rgba(73, 183, 170, .28),
    0 0 28px rgba(73, 183, 170, .16);

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
}

.swan-achievement[hidden] {
  display: none;
}

.swan-achievement.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.swan-achievement strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--white);
  font-size: .76rem;
  letter-spacing: .12em;
}

.cartridge-ring { position: absolute; inset: -24px; pointer-events: none; }
.cartridge { position: absolute; width: 126px; min-height: 82px; border: 1px solid rgba(73,183,170,.34); background: rgba(7,23,21,.94); border-radius: 12px; padding: .8rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cartridge strong { display: block; color: var(--white); font-size: .8rem; margin-bottom: .35rem; }
.cartridge:nth-child(1) { left: -22px; top: 38px; }
.cartridge:nth-child(2) { right: -24px; top: 80px; }
.cartridge:nth-child(3) { right: -38px; bottom: 80px; }
.cartridge:nth-child(4) { left: 42%; bottom: -30px; }
.cartridge:nth-child(5) { left: -42px; bottom: 100px; }

/* SECTIONS */
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark-alt { background: var(--ink-2); color: var(--white); }
.section-light { background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 2rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .page-hero h1 { font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 5rem); line-height: .98; letter-spacing: -.035em; margin: .8rem 0 0; }
.section-heading p { margin: 0; color: inherit; opacity: .72; max-width: 600px; font-size: 1.05rem; }
.section-light .eyebrow { color: #186f66; }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(circle at 80% 10%, rgba(73,183,170,.13), transparent 26%), var(--ink); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 760px; color: #bac6c3; font-size: 1.1rem; }

/* CONSOLE SELECTOR */
.console-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.console-card {
  min-height: 250px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(7.5rem, auto) 1fr auto;
  align-content: stretch;
  padding: 1.55rem 1.55rem 1.35rem;
  border: 1px solid rgba(73,183,170,.26);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(20,54,50,.88), rgba(4,18,17,.96));
  color: var(--white);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: transform .22s, border-color .22s, background .22s, box-shadow .22s;
}

.console-card > * {
  position: relative;
  z-index: 1;
}

.console-card:hover,
.console-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--petrol-light);
  background: linear-gradient(165deg, rgba(26,76,69,.95), rgba(4,18,17,.98));
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

.console-card::after {
  content: attr(data-code);
  position: absolute;
  z-index: 0;
  right: .8rem;
  bottom: -.3rem;
  font-family: var(--serif);
  font-size: 4.5rem;
  color: rgba(73,183,170,.08);
  font-weight: 700;
  pointer-events: none;
}

.console-card .console-number {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--petrol-light);
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .14em;
}

.console-card h3 {
  align-self: end;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.42rem, 1.7vw, 1.72rem);
  line-height: 1.04;
  text-wrap: balance;
}

.console-card p {
  align-self: start;
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.58;
}

.console-card .console-line {
  align-self: end;
  width: 54%;
  height: 1px;
  margin-top: 1.5rem;
  background: var(--petrol);
}

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
[data-services] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-card, .publication-card, .service-card, .collab-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(73,183,170,.22); background: var(--ink-2); color: var(--white); }
.section-light .project-card, .section-light .publication-card, .section-light .service-card, .section-light .collab-card { background: var(--white); color: var(--ink); border-color: rgba(7,23,21,.14); }
.project-card { display: flex; flex-direction: column; min-height: 100%; }
.card-visual { aspect-ratio: 3 / 2; background: var(--ink-3); border-bottom: 1px solid var(--line); overflow: hidden; }
.card-visual img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
@supports (grid-template-rows: subgrid) {
  .card-grid:not([data-featured-projects]) > .project-card,
  [data-featured-projects] > .project-card:not([data-project-id="fronte-artico-2026"]) { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  .card-grid:not([data-featured-projects]) > .project-card > .card-body,
  [data-featured-projects] > .project-card:not([data-project-id="fronte-artico-2026"]) > .card-body { display: grid; grid-template-rows: subgrid; grid-row: 2 / span 4; row-gap: 0; }
}
.card-meta { display: flex; flex-wrap: wrap; align-content: start; align-items: start; gap: .45rem; margin-bottom: .9rem; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: .25rem .58rem; border-radius: 999px; border: 1px solid rgba(73,183,170,.28); color: var(--petrol-light); font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; }
.tag-amber { border-color: rgba(200,154,75,.4); color: var(--amber); }
.card-body h3 { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; margin: 0 0 .65rem; }
.card-body p { color: inherit; opacity: .72; margin: 0 0 1.2rem; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .55rem; align-items: flex-start; }
.card-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .58rem .85rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .82rem; cursor: pointer; background: transparent; color: inherit; }
.card-link:hover { background: rgba(73,183,170,.1); border-color: var(--petrol-light); }
.card-link-primary { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.card-link-primary:hover { background: var(--ink-3); border-color: var(--petrol-light); }
.card-link-disabled { opacity: .48; cursor: not-allowed; }
.card-discover { min-width: 0; max-width: 100%; }
.card-discover[open] { flex: 1 1 0; }
.card-discover > summary { list-style: none; gap: .6rem; }
.card-discover > summary::-webkit-details-marker { display: none; }
.card-discover > summary::after { content: '+'; }
.card-discover[open] > summary::after { content: '−'; }
.reference-list { display: grid; gap: .7rem; padding: 1rem 1rem 1rem 2rem; margin: .65rem 0 0; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.reference-list a { color: inherit; text-underline-offset: .2em; }
.reference-button { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .2em; text-align: left; cursor: pointer; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; }
.service-card .card-actions { padding-top: .7rem; }
.publication-card, .service-card { padding: 1.45rem; }
.publication-card h3, .service-card h3, .collab-card h3 { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; margin: .7rem 0; }
.publication-card p, .service-card p, .collab-card p { opacity: .72; }

/* STATS / COLLAB */
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.stat { padding: 1.35rem; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; color: var(--white); }
.section-light .stat strong { color: var(--ink); }
.stat span { display: block; margin-top: .5rem; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.section-light .stat span { color: #52635f; }
.collab-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.collab-card { padding: 1.2rem; min-height: 180px; }
.collab-card .serial { color: var(--petrol-light); font-size: .7rem; letter-spacing: .14em; }

/* FILTERS */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.filter-button { min-height: 42px; padding: .55rem .9rem; border: 1px solid rgba(73,183,170,.24); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.filter-button[aria-pressed='true'] { background: var(--petrol); color: var(--white); border-color: var(--petrol); }
.filter-row { display: grid; grid-template-columns: minmax(0,1fr) 220px; gap: .8rem; margin-bottom: 1.5rem; }
.search-input, .filter-select { width: 100%; min-height: 50px; border: 1px solid rgba(73,183,170,.32); border-radius: 12px; background: rgba(255,255,255,.04); color: inherit; padding: .7rem .9rem; }
.section-light .search-input, .section-light .filter-select { background: var(--white); color: var(--ink); border-color: rgba(7,23,21,.18); }
.filter-select option { color: var(--ink); }

/* PROJECT DETAIL */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr); gap: 3rem; align-items: start; }
.detail-visual { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin: 0 0 2rem; }
.detail-visual img { display: block; width: 100%; height: auto; }
.cover-credit { padding: .8rem 1rem; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.project-detail-actions { margin-top: 1.5rem; max-width: 760px; }
.prose { font-size: 1.08rem; }
.prose h2 { font-family: var(--serif); font-size: 2rem; margin-top: 2.3rem; }
.prose p { color: inherit; opacity: .82; }
.detail-sidebar { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem; background: var(--ink-2); }
.detail-sidebar dl { margin: 0; }
.detail-sidebar dt { color: var(--petrol-light); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1.05rem; }
.detail-sidebar dt:first-child { margin-top: 0; }
.detail-sidebar dd { margin: .3rem 0 0; color: #d6dddb; }

/* ABOUT / CONTACT */
.about-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.portrait-placeholder { aspect-ratio: 4 / 5; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 34%, rgba(73,183,170,.17), transparent 22%), linear-gradient(145deg, var(--ink-3), #04110f); display: grid; place-items: center; color: var(--petrol-light); overflow: hidden; }
.portrait-placeholder svg { width: 56%; }
.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(145deg, var(--ink-2), #061411);
}

.contact-panel h2 {
  max-width: 100%;
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.link-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }

/* SEARCH OVERLAY */
.search-panel { position: fixed; inset: 0; z-index: 300; background: rgba(3,12,11,.92); backdrop-filter: blur(18px); display: none; overflow-y: auto; }
.search-panel.is-open { display: block; }
.search-shell { padding: 5rem 0; }

.search-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }

.search-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
  margin: 0;
}

.icon-button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; }

.dialog-close {
  width: auto;
  height: 44px;
  padding: 0 .9rem;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  margin-bottom: 1rem;

  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dialog-close-mark {
  font-size: 1.25rem;
  line-height: 1;
}

.search-close {
  width: auto;
  height: 46px;
  padding: 0 .95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.search-close-mark {
  font-size: 1.35rem;
  line-height: 1;
}

.search-box { margin: 2rem 0 1rem; }
.search-box input { width: 100%; min-height: 64px; border: 0; border-bottom: 2px solid var(--petrol); background: transparent; color: var(--white); font-size: clamp(1.2rem, 3vw, 2rem); padding: .8rem 0; }
.search-results { display: grid; gap: 12px; margin-top: 1.5rem; }
.search-result { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1rem; align-items: center; }
.search-result h3 { margin: .25rem 0; font-family: var(--serif); font-size: 1.35rem; }
.search-result p { margin: 0; color: var(--muted); }

/* DIALOGS */
.dialog-backdrop { position: fixed; inset: 0; z-index: 400; display: none; place-items: center; padding: 20px; background: rgba(1,9,8,.82); backdrop-filter: blur(10px); }
.dialog-backdrop.is-open { display: grid; }
.dialog { width: min(660px, 100%); max-height: min(90svh, 820px); overflow-y: auto; border: 1px solid rgba(73,183,170,.4); border-radius: 24px; padding: clamp(1.35rem, 4vw, 2.4rem); background: var(--ink-2); box-shadow: var(--shadow); }
.dialog h2 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; margin: 0 0 1rem; }
.dialog p { color: #c4cecb; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.check-row { display: flex; gap: .75rem; align-items: start; margin-top: 1.2rem; }
.check-row input { width: 20px; height: 20px; accent-color: var(--petrol); margin-top: .15rem; }
.trophy { width: 86px; height: 86px; color: var(--amber); margin-bottom: 1rem; }
.profile-score { font-family: var(--serif); font-size: 4rem; color: var(--petrol-light); line-height: 1; }

/* FOOTER */
.site-footer { padding: 4rem 0 2rem; background: #04110f; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2.5rem; }
.footer-brand { max-width: 530px; }
.footer-brand h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 .7rem; }
.footer-brand p { color: var(--muted); }
.footer-links { display: grid; gap: .45rem; align-content: start; }
.footer-links a, .footer-links button { color: var(--muted); text-decoration: none; background: transparent; border: 0; padding: .2rem 0; text-align: left; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--white); }
.footer-score { border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }

.footer-score strong { font-family: var(--serif); font-size: 2.3rem; display: block; color: var(--petrol-light); }

.profile-score {
  display: flex;
  align-items: baseline;
  gap: .42rem;
}

.score-current {
  color: var(--petrol-light);
}

.score-threshold {
  font-family: var(--sans);
  font-size: .42em;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
}

.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(73,183,170,.14); margin-top: 3rem; padding-top: 1.4rem; color: #82938f; font-size: .78rem; }

/* REVEAL */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal, .hero [data-reveal] { opacity: 1 !important; transform: none !important; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 600; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 999px; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.empty-state { padding: 2rem; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; grid-column: 1 / -1; }

/* LEGAL */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 3rem; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: .5rem; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-copy h2 { font-family: var(--serif); font-size: 2rem; margin-top: 2.6rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: #c0cbc8; }
.section-light .legal-copy p, .section-light .legal-copy li { color: #374743; }

@media (min-width: 901px) {
  .hero-inner {
    transform: translateY(-65px);
  }
   .page-hero {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }
    .page-hero h1 {
    font-size: clamp(2.8rem, 4vw, 4rem);
  }
}

@media (max-width: 1080px) {
  .main-nav a { padding-inline: .48rem; font-size: .8rem; }
  .hero-inner { grid-template-columns: minmax(0,1fr) 430px; gap: 2rem; }
  .console-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .console-card,
  .console-card:nth-child(4),
  .console-card:nth-child(5) {
    min-height: 360px;
    grid-template-rows: auto minmax(6.5rem, auto) 1fr auto;
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .collab-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto; display: none; padding: 1rem 20px 1.4rem; background: #061512; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav a, .nav-button { min-height: 46px; padding: .75rem; text-align: left; font-size: 1rem; }
  .main-nav .score-chip, .main-nav .lang-switch { align-self: flex-start; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; padding: 3.8rem 0 4rem; }
  .hero-console { min-height: 430px; width: min(100%, 530px); margin-inline: auto; }
  .console-core { width: min(86%, 430px); }
  .cartridge { width: 112px; min-height: 70px; }
  .section-heading { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .about-grid { grid-template-columns: 280px minmax(0,1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 30px, 1180px); }
  .brand-name { font-size: 1rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-console { min-height: 340px; margin-top: .5rem; }
  .console-core { width: min(76vw, 330px); padding: 20px; border-radius: 26px; }
  .console-screen { padding: 1rem; }
  .swan-symbol { width: 88px; }
  .cartridge-ring { inset: -16px; }
  .cartridge { width: 92px; min-height: 59px; padding: .55rem; font-size: .52rem; }
  .cartridge strong { font-size: .62rem; }
  .cartridge:nth-child(1) { left: -18px; top: 30px; }
  .cartridge:nth-child(2) { right: -16px; top: 45px; }
  .cartridge:nth-child(3) { right: -20px; bottom: 55px; }
  .cartridge:nth-child(4) { bottom: -18px; left: 36%; }
  .cartridge:nth-child(5) { left: -25px; bottom: 62px; }
  .console-grid, .card-grid, .stats-grid, .collab-grid { grid-template-columns: 1fr; }
  .console-card {
    min-height: auto;
    grid-template-rows: auto auto auto auto;
    padding: 1.35rem;
  }
  .console-card h3 {
    align-self: start;
    max-width: none;
    margin: 3rem 0 .75rem;
  }
  .console-card p { max-width: none; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .filter-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-placeholder { width: min(100%, 330px); }
  .dialog-actions { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.hero-title .swan-glow-text {
  display: inline-block;
white-space: nowrap;
  color: #010706;
  -webkit-text-stroke: 1px rgba(69, 230, 205, 0.5);
  text-shadow:
    0 0 2px rgba(69, 230, 205, 1),
    0 0 7px rgba(35, 211, 184, 0.95),
    0 0 15px rgba(20, 180, 157, 0.8),
    0 0 28px rgba(11, 129, 113, 0.65);
}

/* Cigno intercettato */
.swan-symbol.is-caught {
  animation: swan-caught-pulse .7s ease-out;
  filter:
    brightness(1.5)
    drop-shadow(0 0 5px rgba(92, 255, 224, 1))
    drop-shadow(0 0 15px rgba(73, 183, 170, .95))
    drop-shadow(0 0 32px rgba(73, 183, 170, .75));
}

@keyframes swan-caught-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  45% {
    transform: translate(-50%, -50%) scale(1.16);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}


.console-heading h2,
.featured-heading h2,
.stats-heading h2 {
  font-size: clamp(2.7rem, 4vw, 4rem);
  max-width: 760px;
}

/* =========================================================
   BLACK SWAN HUNTER SCORE — POPUP PUNTI
   ========================================================= */

.score-chip {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.score-gain {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  z-index: 50;

  min-width: max-content;
  padding: .42rem .72rem;

  border: 1px solid rgba(133, 255, 207, .48);
  border-radius: 999px;

  background: rgba(5, 24, 20, .96);
  color: #9fffd8;

  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .06em;
  white-space: nowrap;

  box-shadow:
    0 0 0 1px rgba(133, 255, 207, .08),
    0 0 18px rgba(65, 255, 180, .34),
    0 8px 24px rgba(0, 0, 0, .34);

  opacity: 0;
  pointer-events: none;

  transform:
    translateY(-8px)
    scale(.9);

  transition:
    opacity .2s ease,
    transform .28s cubic-bezier(.2, .8, .2, 1);
}

.score-gain.is-visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.score-chip.is-scoring {
  animation: score-chip-pulse .58s ease;
}

@keyframes score-chip-pulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
    box-shadow:
      0 0 0 4px rgba(119, 255, 202, .12),
      0 0 24px rgba(61, 255, 178, .42);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .score-gain {
    right: auto;
    left: 50%;

    transform:
      translateX(-50%)
      translateY(-8px)
      scale(.9);
  }

  .score-gain.is-visible {
    transform:
      translateX(-50%)
      translateY(0)
      scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-chip.is-scoring {
    animation: none;
  }

  .score-gain {
    transition: opacity .15s ease;
    transform: none;
  }

  .score-gain.is-visible {
    transform: none;
  }
}

/* =========================================================
   PAGINE LEGALI — TABELLA COOKIE E PREFERENZE
   ========================================================= */

.legal-table-wrap {
  width: 100%;
  margin: 1.5rem 0 2rem;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  border: 1px solid var(--line);
  border-radius: 20px;

  background: rgba(4, 20, 17, .72);
}

.legal-table {
  width: 100%;
  min-width: 780px;

  border-collapse: collapse;
  border-spacing: 0;

  font-size: .92rem;
  line-height: 1.55;
}

.legal-table th,
.legal-table td {
  padding: 1rem 1.1rem;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  text-align: left;
  vertical-align: top;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: 0;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table thead th {
  background: rgba(14, 55, 46, .8);
  color: var(--white);

  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-table tbody th {
  width: 22%;

  background: rgba(8, 34, 29, .55);
  color: var(--petrol-light);

  font-weight: 700;
}

.legal-table tbody tr:hover {
  background: rgba(111, 255, 198, .035);
}

.legal-table code {
  display: inline-block;

  padding: .22rem .45rem;

  border: 1px solid rgba(137, 255, 211, .2);
  border-radius: 7px;

  background: rgba(0, 0, 0, .22);
  color: var(--petrol-light);

  font-size: .82em;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .legal-table-wrap {
    margin-right: calc(var(--page-padding, 1rem) * -1);
    border-radius: 16px 0 0 16px;
  }

  .legal-table {
    min-width: 680px;
    font-size: .86rem;
  }

  .legal-table th,
  .legal-table td {
    padding: .85rem .9rem;
  }
}

/* =========================================================
   FINESTRA INIZIALE — LINK COOKIE E PREFERENZE
   ========================================================= */

.dialog-privacy-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: .82rem;
  line-height: 1.4;
}

.dialog-privacy-note a {
  color: var(--petrol-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition:
    color .2s ease,
    text-shadow .2s ease;
}

.dialog-privacy-note a:hover,
.dialog-privacy-note a:focus-visible {
  color: var(--white);
  text-shadow: 0 0 14px rgba(111, 255, 198, .35);
}

.dialog-privacy-note a:focus-visible {
  outline: 2px solid var(--petrol-light);
  outline-offset: 4px;
  border-radius: 4px;
}

/* =========================================================
   POPUP INIZIALE — INTESTAZIONE
   ========================================================= */

.intro-dialog-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 94px;
  align-items: start;
  gap: 1.2rem;
  margin-bottom: 1.35rem;
}

.intro-dialog-header h2 {
  margin: 0;
  font-size: clamp(2.45rem, 3.8vw, 3.55rem);
  line-height: .98;
  letter-spacing: -.025em;
}

.intro-dialog-swan {
  width: 64px;
  height: 64px;
  margin-top: .2rem;
  object-fit: contain;
}

.intro-dialog-profile {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow:
    0 0 0 3px rgba(61, 255, 178, .06),
    0 0 20px rgba(61, 255, 178, .2);
}

@media (max-width: 600px) {
  .intro-dialog-header {
    grid-template-columns: minmax(0, 1fr) 66px;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
  }

  .intro-dialog-header h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: clamp(1.9rem, 7.5vw, 2.55rem);
    line-height: 1;
  }

  .intro-dialog-swan {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 46px;
    margin-top: .15rem;
  }

  .intro-dialog-profile {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 62px;
    height: 62px;
  }
}

/* =========================================================
   PAGINE INTERNE — RIDUZIONE SPAZI VERTICALI
   ========================================================= */

body:not([data-page="home"]) .page-hero,
body:not([data-page="home"]) main > .hero {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

body:not([data-page="home"]) .page-hero + .section,
body:not([data-page="home"]) main > .hero + .section {
  padding-top: clamp(3.5rem, 6vw, 5rem);
}

body:not([data-page="home"]) .section {
  padding-top: clamp(4rem, 7vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

@media (max-width: 760px) {
  body:not([data-page="home"]) .page-hero,
  body:not([data-page="home"]) main > .hero {
    padding-top: 3.25rem;
    padding-bottom: 2.75rem;
  }

  body:not([data-page="home"]) .page-hero + .section,
  body:not([data-page="home"]) main > .hero + .section,
  body:not([data-page="home"]) .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* LIBRERIA — FILTRO PER CONSOLE */
.project-filter-stack { display: grid; gap: 1.35rem; margin-bottom: 2.2rem; }
.filter-group { border: 1px solid rgba(73,183,170,.2); border-radius: 16px; padding: 1rem 1rem .25rem; background: rgba(255,255,255,.025); }
.filter-label { margin: 0 0 .8rem; color: var(--petrol-light); font-size: .76rem; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; }
.filter-group .filters { margin-bottom: .8rem; }

/* PROJECT EVIDENCE RECORDS */
.detail-block { margin-top: 2.2rem; }
.detail-block h2 { margin-bottom: .65rem; }
.resource-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1.4rem; }
.resource-list > li { min-width: 0; }
.resource-list h3 { margin-bottom: .35rem; }
.resource-list .resource-meta { font-size: .9rem; }
.project-reading-section { padding: 0 0 1rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.reading-heading { margin-bottom: 1.5rem; }
.reading-heading h2 { margin: 0 0 .45rem; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.reading-heading p { margin: 0; color: var(--muted); }
.reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.reading-card { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); min-width: 0; align-items: start; }
.reading-cover { display: block; border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.reading-cover img { width: 100%; height: auto; border-radius: 4px; }
.reading-body { min-width: 0; }
.reading-body h3 { margin: .4rem 0 .7rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.reading-body p { margin: 0 0 1rem; font-size: .94rem; }
.reading-body .reading-meta { color: var(--petrol-light); font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.reading-body .reading-note { color: var(--muted); font-size: .8rem; line-height: 1.5; }
@media (max-width: 1000px) {
  .reading-card { grid-template-columns: 1fr; }
  .reading-cover { width: min(100%, 230px); margin-inline: auto; }
}
@media (max-width: 600px) {
  .reading-grid { grid-template-columns: 1fr; }
  .reading-card { padding: 1.25rem; }
  .reading-cover { width: min(100%, 260px); }
  .reading-body h3 { font-size: 1.65rem; }
}
.detail-disclaimer {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--petrol-light);
  background: rgba(73,183,170,.07);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0 2.2rem;
}
.metric {
  display: grid;
  gap: .2rem;
  padding: .9rem;
  border: 1px solid rgba(73,183,170,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.metric strong { color: var(--petrol-light); font-size: 1.4rem; }
.metric span { font-size: .82rem; }
.blind-spot-grid { display: grid; gap: 1rem; }
.blind-spot-grid article {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(73,183,170,.24);
  border-radius: 12px;
}
.blind-spot-grid h3 { margin: 0 0 .45rem; font-size: 1rem; }
.linked-records { display: flex; flex-wrap: wrap; gap: .45rem; }
.research-card { scroll-margin-top: 7rem; }

/* Accessible controls and publication groups, September 2026. */
.swan-symbol { padding: 0; border: 0; background: transparent; border-radius: 12px; }
.swan-symbol img { display: block; width: 100%; height: auto; }
.swan-symbol:focus-visible { outline: 3px solid var(--white); outline-offset: 6px; }
.project-count { margin: 0 0 1.5rem; font-size: .95rem; }
.section-heading h2 { font-size: clamp(2.35rem, 4vw, 4rem); overflow-wrap: anywhere; }
.search-result { grid-template-columns: minmax(0,1fr) minmax(0,320px); align-items: start; }
.search-result .card-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.section-light .search-result p, .section-light .empty-state { color: #52635f; }
@media(max-width:900px) { .search-result { grid-template-columns: 1fr; } }
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.publication-group + .publication-group { margin-top: 3rem; }
.publication-group > h3 { margin: 0 0 1.25rem; font-size: 1.2rem; }
.output-count { font-weight: 400; }
.detail-layout > *, .search-result > * { min-width: 0; }
.detail-layout, .publication-card { overflow-wrap: anywhere; }

/* Commercial pathways: retain the petrol/paper palette and serif display type. */
.hero .hero-title { font-size: clamp(2.7rem, 5.4vw, 5.1rem); line-height: 1.02; }
.hero-copy { min-width: 0; }
.experience-note { color: var(--muted); max-width: 44rem; margin-top: 1.8rem; font-size: .95rem; }
.pathway-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.4rem; }
.pathway-card { display: flex; flex-direction: column; align-items: flex-start; }
.pathway-card > .card-link { margin-top: auto; }
.pathway-card h3 { font-size: clamp(1.5rem,2.2vw,2rem); line-height: 1.15; }
.pathway-card h3 a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.contact-panel { overflow-wrap: anywhere; }
.contact-layout .contact-panel { text-align: left; }
.prose li, .process-list li { margin-block: .7rem; }
.detail-sidebar h2 { font: 700 1.7rem/1.15 var(--serif); }
.project-video-section { padding: 0 0 3rem; }
.project-video-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,280px); align-items: center; gap: clamp(1.5rem,5vw,5rem); padding: clamp(1.2rem,4vw,3rem); border: 1px solid var(--line); border-radius: 24px; background: rgba(73,183,170,.045); }
.project-video-copy { min-width: 0; max-width: 39rem; }
.project-video-copy h2 { font: 700 clamp(2rem,4vw,3.3rem)/1.1 var(--serif); margin: 0 0 1.2rem; }
.project-video-copy > p { line-height: 1.7; }
.project-video-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.project-video-poster { position: relative; display: block; width: 100%; max-width: 280px; margin: 0 auto; border-radius: 14px; overflow: hidden; color: white; }
.project-video-poster img { display: block; width: 100%; height: auto; aspect-ratio: 474 / 850; }
.project-video-duration { position: absolute; right: 12px; bottom: 12px; padding: .3rem .55rem; border-radius: 6px; background: rgba(5,33,30,.9); font-size: .85rem; }
@media(max-width:650px) {
  .project-video-panel { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .project-video-copy { order: 0; }
  .project-video-poster { order: 1; max-width: 250px; }
}
.detail-sidebar .button { white-space: normal; }
.project-gallery-section { padding: 1rem 0 3rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.gallery-heading > div { min-width: 0; }
.gallery-heading h2 { margin: 0 0 .65rem; font: 700 clamp(1.8rem,3vw,2.5rem)/1.15 var(--serif); }
.gallery-heading p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
.gallery-controls { display: flex; align-items: center; justify-content: end; gap: .75rem; flex-shrink: 0; }
.gallery-button { display: grid; place-items: center; width: 48px; height: 48px; padding: .5rem; border: 1px solid var(--line); border-radius: 50%; background: var(--ink-2); color: var(--white); font-size: 1.35rem; cursor: pointer; }
.gallery-button:hover:enabled { border-color: var(--petrol-light); background: var(--petrol); }
.gallery-button:disabled { opacity: .35; cursor: default; }
.project-presentation { margin: 2rem 0 0; max-width: 1100px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.project-presentation img { display: block; width: 100%; height: auto; }
.gallery-count { min-width: 3.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.gallery-track { display: flex; gap: 1.25rem; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--petrol-light) var(--ink-2); border-radius: var(--radius); }
.gallery-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.gallery-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--ink); }
.gallery-slide figcaption { padding: 1rem 1.25rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.gallery-track:focus-visible { outline: 3px solid var(--petrol-light); outline-offset: 5px; }
@media(max-width:650px) {
  .gallery-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .gallery-controls { align-self: end; }
  .gallery-slide figcaption { padding: .9rem 1rem; }
}
.breadcrumbs { margin-bottom: 1.3rem; font-size: .9rem; color: var(--muted); }
.page-hero .button { margin-top: .7rem; }
.main-nav .nav-cta { color: var(--white); border: 1px solid var(--line); }
.lang-switch a { min-width: 38px; min-height: 44px; padding: .6rem; text-align: center; border-radius: 999px; }
.lang-switch a[aria-current='true'] { background: var(--petrol); color: var(--white); }
.console-card { text-decoration: none; }
.dialog-dismiss { float: right; margin: 0 0 .8rem .8rem; }
.intro-dialog-header { clear: both; }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.js .reveal { opacity: 1; transform: none; }
.section-light .service-card { color: var(--ink); }
.section-light .eyebrow { color: #17675e; }
.section-light .tag { color: #17675e; }
.section-light .tag-amber { color: #805b1c; }
.section-light .filter-label, .section-light .collab-card .serial { color: #17675e; }
.section-light :focus-visible { outline-color: #17675e; }
.button-primary:hover { background: #17675e; }
.card-link-primary:hover { background: #17675e; color: var(--white); }
@media(max-width:900px) {
  .pathway-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .lang-switch a { min-width: 44px; text-align: center; }
  html:not(.js) .site-header { height: auto; position: relative; }
  html:not(.js) .nav-shell { flex-wrap: wrap; padding-block: 1rem; }
  html:not(.js) .main-nav { position: static; display: flex; width: 100%; }
  html:not(.js) .menu-toggle { display: none; }
}
html:not(.js) [data-open-experience], html:not(.js) [data-open-profile], html:not(.js) [data-open-settings], html:not(.js) [data-open-search], html:not(.js) [data-project-filters], html:not(.js) [data-copy-link], html:not(.js) .swan-symbol { display: none; }
@media(max-width:600px) {
  .hero .hero-title { font-size: clamp(2.5rem,12vw,3.7rem); }
  .page-hero h1 { overflow-wrap: anywhere; }
  .detail-sidebar { min-width: 0; }
}
