/* AGP Global, sitio corporativo V3
   Layout: retícula de 12 columnas a 1320 px, fotografía a sangre en cabeceras, bandas navy y blancas alternas,
   texto alineado a la izquierda y separación vertical amplia entre secciones. Tema único claro, deliberado. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/InterDisplay-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/InterDisplay-Regular.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Color */
  --navy: #03112B;
  --navy-2: #0B1F40;
  --teal: #00BA9B;
  --teal-ink: #007663;
  --ink: #03112B;
  --text: #33404F;
  --muted: #5A6575;
  --line: #DCE1E7;
  --line-strong: #C3CBD5;
  --mist: #F2F4F6;
  --paper: #FFFFFF;
  --on-dark: #FFFFFF;
  --on-dark-muted: rgba(255, 255, 255, 0.76);
  --on-dark-line: rgba(255, 255, 255, 0.22);
  /* Type */
  --font-display: "Aptos Display", "Aptos", "Inter Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-text: "Aptos", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --fs-hero: clamp(2.375rem, 1.35rem + 3.9vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.1vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-statement: clamp(1.375rem, 1.05rem + 1.25vw, 2.125rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  /* Space */
  --max: 1320px;
  --gutter: clamp(20px, 4.6vw, 64px);
  --section: clamp(80px, 9.5vw, 152px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 400; text-wrap: balance; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(0, 186, 155, 0.24); }

:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
.on-dark :focus-visible, .site-header:not(.solid) :focus-visible, .hero :focus-visible, .page-head :focus-visible { outline-color: var(--teal); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(56px, 6vw, 96px); }
.section:not(.mist):not(.on-dark) + .section:not(.mist):not(.on-dark) { padding-top: 0; }
.section.tight:not(.mist) + .section.tight:not(.mist) { padding-top: 0; }
.mist { background: var(--mist); }
.on-dark { background: var(--navy); color: var(--on-dark-muted); }
.on-dark h2, .on-dark h3 { color: var(--on-dark); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--paper); color: var(--navy); font-weight: 500; text-decoration: none; }
.skip:focus { top: 16px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Type */
.t-hero, .t-h1 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.028em; line-height: 1.04; }
.t-hero { font-size: var(--fs-hero); }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 400; letter-spacing: -0.02em; line-height: 1.12; }
.t-h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.006em; line-height: 1.35; }
.t-statement { font-family: var(--font-display); font-size: var(--fs-statement); font-weight: 300; letter-spacing: -0.014em; line-height: 1.34; color: var(--ink); }
.lede { font-size: var(--fs-lede); line-height: 1.55; }
.small { font-size: var(--fs-small); line-height: 1.55; }
.prose { display: grid; gap: 1.15em; max-width: 64ch; }
.prose p { font-size: 1.125rem; line-height: 1.7; }

/* Links and buttons */
.link {
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.42em;
  text-decoration-color: currentColor;
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-thickness: 2px; text-decoration-color: var(--teal); }
.on-dark .link:hover, .hero .link:hover, .band .link:hover { text-decoration-color: var(--teal); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 1px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--on-dark);
  font-size: 0.9375rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--navy-2); }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.btn.light:hover { background: transparent; color: var(--on-dark); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--on-dark); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--on-dark);
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 17, 43, 0.5), rgba(3, 17, 43, 0));
  transition: opacity .3s;
}
.site-header.solid { background: var(--paper); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.site-header.solid::before { opacity: 0; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.brand svg { width: 124px; height: 28px; display: block; }
.nav > ul { display: flex; align-items: center; gap: clamp(24px, 2.6vw, 40px); }
.nav > ul > li > a, .nav > ul > li > button {
  position: relative; display: inline-flex; align-items: center; height: var(--header-h);
  padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.005em; text-decoration: none; color: inherit;
}
.nav > ul > li > a::after, .nav > ul > li > button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > ul > li > a:hover::after, .nav > ul > li > button:hover::after, .nav > ul > li > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav > ul > li > [aria-current="page"]::after, .nav > ul > li > .current::after { transform: scaleX(1); background: var(--teal); height: 2px; }
.menu-btn { display: none; height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.01em; color: inherit; }

/* Activities panel (desktop) */
.panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper); color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(3, 17, 43, 0.22);
}
.panel .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; padding-block: 44px 52px; }
.panel .intro .title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.panel .intro p:not(.title) { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.panel .intro .link { margin-top: 24px; color: var(--navy); }
.panel ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.panel li a { display: block; padding: 18px 0 20px; border-top: 1px solid var(--line); text-decoration: none; }
.panel li a b { display: block; color: var(--ink); font-weight: 500; font-size: 1.0625rem; line-height: 1.35; }
.panel li a span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.panel li a:hover b, .panel li a[aria-current="page"] b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--teal); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--navy); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
  padding-top: var(--header-h);
}
.menu .wrap { display: grid; gap: 40px; padding-block: 24px 48px; }
.menu .main a { display: block; padding: 10px 0; font-family: var(--font-display); font-size: 1.875rem; font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; text-decoration: none; }
.menu .sub { display: grid; gap: 2px; margin: 4px 0 12px; padding-left: 2px; }
.menu .sub a { font-family: var(--font-text); font-size: 1.0625rem; font-weight: 400; color: var(--on-dark-muted); padding: 7px 0; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.menu .foot { padding-top: 28px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); font-size: 0.9375rem; display: grid; gap: 8px; }
.menu .foot a { color: var(--on-dark); }
.site-header.menu-on { background: var(--navy); color: var(--on-dark); box-shadow: none; }
.site-header.menu-on::before { opacity: 0; }

/* Media */
.media { position: relative; overflow: hidden; background: var(--navy-2); }
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(580px, 92svh, 920px); color: var(--on-dark); background: var(--navy); overflow: hidden; }
.hero .media { position: absolute; inset: 0; }
.hero .media img { animation: settle 2.4s var(--ease) both; }
.hero::after, .page-head::after, .band::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::after {
  background:
    linear-gradient(to top, rgba(3, 17, 43, 0.88) 0%, rgba(3, 17, 43, 0.58) 38%, rgba(3, 17, 43, 0.12) 70%, rgba(3, 17, 43, 0) 86%),
    linear-gradient(to right, rgba(3, 17, 43, 0.74) 0%, rgba(3, 17, 43, 0.42) 48%, rgba(3, 17, 43, 0) 78%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 64px) clamp(56px, 7.5vw, 112px); }
.hero h1 { color: var(--on-dark); max-width: 17em; }
.hero .lede { margin-top: clamp(20px, 2.2vw, 28px); max-width: 40em; color: rgba(255, 255, 255, 0.88); }
.hero .links { margin-top: clamp(28px, 3.2vw, 44px); }
@keyframes settle { from { transform: scale(1.045); } to { transform: scale(1); } }

/* Inner page head */
.page-head { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 66svh, 640px); background: var(--navy); color: var(--on-dark); overflow: hidden; }
.page-head .media { position: absolute; inset: 0; }
.page-head::after {
  background:
    linear-gradient(to top, rgba(3, 17, 43, 0.84) 0%, rgba(3, 17, 43, 0.42) 42%, rgba(3, 17, 43, 0.06) 72%),
    linear-gradient(to right, rgba(3, 17, 43, 0.6) 0%, rgba(3, 17, 43, 0.12) 60%, rgba(3, 17, 43, 0) 85%);
}
.page-head .wrap { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 56px) clamp(48px, 6vw, 88px); }
.page-head h1 { color: var(--on-dark); max-width: 14em; }
.page-head .lede { margin-top: 20px; max-width: 38em; color: rgba(255, 255, 255, 0.88); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.86); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, 0.6); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

/* Plain page head (no photograph) */
.plain-head { padding-block: calc(var(--header-h) + clamp(56px, 7vw, 104px)) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.plain-head + .section { padding-top: clamp(48px, 6vw, 88px); }
.plain-head .crumbs { color: var(--muted); }
.plain-head .crumbs li + li::before { color: var(--line-strong); }
.plain-head .lede { margin-top: 20px; max-width: 40em; color: var(--muted); }

/* Grid helpers */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 32px; }
.split > .a { grid-column: 1 / span 5; min-width: 0; }
.split > .b { grid-column: 7 / span 6; min-width: 0; }
.split > .wide { grid-column: 1 / span 9; min-width: 0; }

/* Statement */
.statement .t-statement { max-width: 27em; }
.statement .links { margin-top: clamp(28px, 3vw, 40px); }

/* Feature: image beside navy panel */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy); color: var(--on-dark-muted); }
.feature .media { min-height: clamp(360px, 46vw, 680px); }
.feature .body { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(48px, 7vw, 112px) clamp(24px, 6vw, 104px); max-width: 720px; }
.feature h2 { color: var(--on-dark); }
.feature p { font-size: 1.125rem; line-height: 1.7; max-width: 34em; }
.feature .links { margin-top: 12px; color: var(--on-dark); }

/* Section heading row */
.head-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 20px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.head-row h2 { grid-column: 1 / span 5; }
.head-row.solo h2 { grid-column: 1 / span 8; }
.head-row .aside { grid-column: 7 / span 6; display: grid; gap: 20px; justify-items: start; }
.head-row .aside p { font-size: 1.125rem; line-height: 1.65; max-width: 36em; }

/* Sector cards */
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: clamp(48px, 5vw, 72px); }
.card { grid-column: span 4; position: relative; display: grid; align-content: start; gap: 0; min-width: 0; }
.card.lg { grid-column: span 6; }
.card .media { aspect-ratio: 4 / 3; }
.card.lg .media { aspect-ratio: 16 / 10; }
.card .media img { transition: transform .9s var(--ease); }
.card h3 { margin-top: 24px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { margin-top: 10px; color: var(--muted); max-width: 34em; }
.card:hover .media img { transform: scale(1.035); }
.card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: var(--teal); }
.card:focus-within .media img { transform: scale(1.035); }
.also { margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.also p { color: var(--muted); }
.also .link { color: var(--navy); }

/* Full-bleed band with text over photograph */
.band { position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 72svh, 760px); color: var(--on-dark); background: var(--navy); overflow: hidden; }
.band .media { position: absolute; inset: 0; }
.band::after {
  background:
    linear-gradient(to top, rgba(3, 17, 43, 0.84) 0%, rgba(3, 17, 43, 0.4) 40%, rgba(3, 17, 43, 0) 70%),
    linear-gradient(to right, rgba(3, 17, 43, 0.55) 0%, rgba(3, 17, 43, 0) 65%);
}
.band .wrap { position: relative; z-index: 1; padding-block: 120px clamp(56px, 7vw, 104px); }
.band h2 { color: var(--on-dark); max-width: 16em; }
.band p { margin-top: 20px; max-width: 38em; font-size: 1.125rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }

/* Contact call */
.call .split { align-items: end; }
.call .b { display: grid; gap: 28px; justify-items: start; }
.call .b p { font-size: 1.125rem; line-height: 1.7; max-width: 34em; }
.call .mail-line { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; color: var(--on-dark); }
.mail { font-weight: 500; letter-spacing: 0.005em; }
a.mail { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: rgba(127, 140, 160, 0.6); }
a.mail:hover { text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
abbr[title] { text-decoration: none; }
.copy-btn { padding: 0; border: 0; background: none; cursor: pointer; font-size: 0.9375rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.42em; color: inherit; }
.copy-btn:hover { text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.copy-status { font-size: 0.875rem; min-height: 1.4em; }

/* Definition rows */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.rows > div { padding: 26px 0 30px; border-top: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.rows dt { color: var(--ink); font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; }
.rows dd { color: var(--muted); max-width: 34em; }
.rows.single { grid-template-columns: minmax(0, 1fr); }
.rows.single > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(20px, 2.4vw, 32px); }
.rows.single dt { padding-right: 24px; }

/* Columns on the mist band */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 40px; }
.cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > div { padding-top: 24px; border-top: 1px solid var(--line-strong); display: grid; gap: 12px; align-content: start; min-width: 0; }
.cols h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; }
.cols .unit { font-size: 0.875rem; color: var(--muted); font-feature-settings: "tnum" 1; }
.cols p { color: var(--text); }
.note { margin-top: clamp(36px, 4vw, 56px); max-width: 52em; color: var(--muted); }

/* Process sequence */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 32px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-size: 0.9375rem; color: var(--teal-ink); font-feature-settings: "tnum" 1; }
.steps b { color: var(--ink); font-weight: 500; font-size: var(--fs-h3); line-height: 1.35; }
.steps span { color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 20px 24px 22px 0; border-top: 1px solid var(--line-strong); }
table.data thead th { padding-top: 0; border-top: 0; padding-bottom: 14px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
table.data tbody th { color: var(--ink); font-weight: 500; width: 24%; }
table.data td:nth-child(2) { width: 24%; color: var(--ink); }
table.data td:last-child { color: var(--text); }
table.data.payments td:nth-child(2) { width: 46%; color: var(--text); }
table.data.payments td:last-child { color: var(--ink); }
.after-table { margin-top: clamp(56px, 6vw, 88px); }

/* Sector index */
.index { display: grid; }
.index > li { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 20px; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); align-items: center; }
.index > li:last-child { border-bottom: 1px solid var(--line); }
.index .media { grid-column: 1 / span 4; aspect-ratio: 3 / 2; }
.index .media img { transition: transform .9s var(--ease); }
.index .body { grid-column: 6 / span 7; display: grid; gap: 14px; justify-items: start; min-width: 0; }
.index .parent { font-size: 0.875rem; color: var(--muted); }
.index h2 a { text-decoration: none; }
.index h2 a::after { content: ""; position: absolute; inset: 0; }
.index p { color: var(--muted); max-width: 36em; font-size: 1.0625rem; }
.index > li:hover .media img, .index > li:focus-within .media img { transform: scale(1.035); }
.index > li:hover h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--teal); }
.index > li.sub .media { grid-column: 2 / span 3; }

/* Teaser (energy to carbon capture) */
.teaser { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 24px; align-items: center; }
.teaser .media { grid-column: 1 / span 6; aspect-ratio: 16 / 10; }
.teaser .media img { transition: transform .9s var(--ease); }
.teaser .body { grid-column: 8 / span 5; display: grid; gap: 16px; justify-items: start; }
.teaser h2 a { text-decoration: none; }
.teaser h2 a::after { content: ""; position: absolute; inset: 0; }
.teaser p { color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.teaser:hover .media img, .teaser:focus-within .media img { transform: scale(1.035); }
.teaser:hover h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--teal); }

/* Wide figure */
.figure { aspect-ratio: 21 / 9; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 6px; padding: 32px 0 8px; text-decoration: none; }
.pager a + a { text-align: right; justify-items: end; padding-left: 24px; }
.pager span { font-size: 0.875rem; color: var(--muted); }
.pager b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.014em; line-height: 1.2; color: var(--ink); }
.pager a:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: var(--teal); }

/* Contact page */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 56px; }
.contact .info { grid-column: 1 / span 4; display: grid; gap: 40px; align-content: start; }
.contact .info h2 { font-size: 0.875rem; font-weight: 500; color: var(--muted); font-family: var(--font-text); letter-spacing: 0; margin-bottom: 10px; }
.contact .info .mail { font-size: 1.375rem; color: var(--ink); font-family: var(--font-display); font-weight: 400; }
.contact .info .mail-line { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.contact .info p .link { font-weight: 400; }
.contact .info p { color: var(--muted); }
.contact .form-col { grid-column: 6 / span 7; min-width: 0; }
.contact .form-col > p { margin-top: 12px; color: var(--muted); max-width: 38em; }
form.compose { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 0; border-color: var(--teal-ink); }
.field [aria-invalid="true"] { border-color: #B42318; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-error { color: #B42318; font-size: 0.9375rem; }
.composed { grid-column: 1 / -1; margin-top: 8px; padding: 28px; background: var(--mist); display: grid; gap: 16px; }
.composed h3 { font-size: 1.0625rem; font-weight: 500; }
.composed pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font-text); font-size: 0.9375rem; line-height: 1.6; color: var(--text); }
.composed .links { gap: 12px 24px; }

/* Legal page */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); }
.legal .body { grid-column: 1 / span 8; display: grid; gap: clamp(40px, 4vw, 56px); }
.legal section { display: grid; gap: 14px; }
.legal h2 { font-size: 1.375rem; font-weight: 500; font-family: var(--font-text); letter-spacing: -0.006em; }
.legal p { max-width: 62ch; }
.credits { display: grid; border-top: 1px solid var(--line); }
.credits li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; align-items: baseline; }
.credits li span:first-child { color: var(--ink); }
.credits li span:nth-child(2) { color: var(--muted); }
.legal .updated { color: var(--muted); }

/* Footer */
.site-footer { background: #020C21; color: var(--on-dark-muted); font-size: 0.9375rem; }
.site-footer .top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: 48px; padding-block: clamp(64px, 7vw, 104px) clamp(48px, 5vw, 72px); }
.site-footer .who { grid-column: 1 / span 4; display: grid; gap: 22px; align-content: start; }
.site-footer .who svg { width: 124px; height: 28px; color: var(--on-dark); }
.site-footer .who p { max-width: 30em; line-height: 1.6; }
.site-footer .slogan { color: var(--on-dark); font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; letter-spacing: -0.01em; }
.site-footer nav { grid-column: span 2; }
.site-footer nav.wide { grid-column: span 3; }
.site-footer .col-title { font-size: 0.8125rem; font-weight: 500; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.site-footer nav ul { display: grid; gap: 10px; }
.site-footer nav a { color: var(--on-dark); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--teal); }
.site-footer .contact-col { grid-column: span 3; display: grid; gap: 10px; align-content: start; }
.site-footer .contact-col .mail { color: var(--on-dark); justify-self: start; }
.menu .foot .mail { justify-self: start; }
.site-footer .legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 28px 36px; border-top: 1px solid var(--on-dark-line); font-size: 0.8125rem; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
.site-footer .legal-row p { max-width: 70em; }
.site-footer .legal-row a { color: rgba(255, 255, 255, 0.86); }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .panel { display: none !important; }
  .site-footer .who { grid-column: 1 / -1; }
  .site-footer nav, .site-footer nav.wide, .site-footer .contact-col { grid-column: span 4; }
  .teaser .media { grid-column: 1 / span 7; }
  .teaser .body { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand svg, .site-footer .who svg { width: 106px; height: 24px; }
  .split > .a, .split > .b, .split > .wide { grid-column: 1 / -1; }
  .head-row h2, .head-row .aside { grid-column: 1 / -1; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature .media { min-height: 0; aspect-ratio: 16 / 10; }
  .feature .body { max-width: none; padding-inline: var(--gutter); }
  .card, .card.lg { grid-column: span 6; }
  .card.lg .media { aspect-ratio: 4 / 3; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .rows.single > div { grid-template-columns: minmax(0, 1fr); }
  .cols, .cols.two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index .media, .index > li.sub .media { grid-column: 1 / -1; }
  .index .body { grid-column: 1 / -1; }
  .teaser .media, .teaser .body { grid-column: 1 / -1; }
  .contact .info, .contact .form-col { grid-column: 1 / -1; }
  .legal .body { grid-column: 1 / -1; }
  .site-footer nav, .site-footer nav.wide, .site-footer .contact-col { grid-column: span 6; }
  .figure { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .card, .card.lg { grid-column: 1 / -1; }
  .card .media, .card.lg .media { aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  form.compose { grid-template-columns: minmax(0, 1fr); }
  .site-footer nav, .site-footer nav.wide, .site-footer .contact-col { grid-column: 1 / -1; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a + a { text-align: left; justify-items: start; padding-left: 0; border-top: 1px solid var(--line); margin-top: 8px; }
  .credits li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: auto !important; }
  table.data tr { padding: 18px 0 20px; border-top: 1px solid var(--line-strong); }
  table.data tbody th, table.data td { border: 0; padding: 0 0 4px; }
  table.data td:nth-child(2) { color: var(--muted); font-size: 0.9375rem; padding-bottom: 8px; }
  .hero { min-height: clamp(560px, 88svh, 760px); }
  .band { min-height: 560px; }
  .hero::after, .page-head::after, .band::after {
    background: linear-gradient(to top, rgba(3, 17, 43, 0.9) 0%, rgba(3, 17, 43, 0.74) 45%, rgba(3, 17, 43, 0.3) 78%, rgba(3, 17, 43, 0.1) 100%);
  }
  .composed { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
@media print {
  .site-header, .menu, .skip, .call { display: none !important; }
  .hero, .page-head, .band { min-height: 0; color: var(--ink); background: none; }
  .hero::after, .page-head::after, .band::after, .hero .media, .page-head .media, .band .media { display: none; }
  .hero h1, .page-head h1, .band h2, .hero .lede, .page-head .lede, .band p, .crumbs { color: var(--ink); }
}

/* Project entry follows the V3 line-based layout; no authentication in the public page. */
.project-list{margin-top:40px}.project-list article{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;border-top:1px solid var(--line);padding-top:28px}.project-list h3+p{margin-top:12px}.project-action .small{margin-top:12px;color:var(--muted)}.project-action .btn{max-width:100%}@media(min-width:1300px){.project-list article{grid-template-columns:minmax(0,1fr) auto;gap:24px}}
