/* ==========================================================================
   MeedLight — main stylesheet
   1. Fonts   2. Tokens   3. Base   4. Utilities   5. Header   6. Hero
   7. About   8. Projects 9. Cooperation 10. Contact 11. Footer
   12. Legal page  13. Error page  14. Motion and print
   ========================================================================== */

/* 1. Fonts (self-hosted; Jost: SIL OFL 1.1, Ubuntu: Ubuntu Font Licence 1.0) */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/jost-300-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/jost-300-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/jost-300-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ubuntu-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ubuntu-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ubuntu-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ubuntu-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ubuntu-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ubuntu-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ubuntu-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ubuntu-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ubuntu-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* 2. Tokens */
:root {
  --navy-950: #12151c;
  --navy-900: #171a23;
  --navy-800: #1b1f29;   /* brand navy */
  --navy-700: #23262e;   /* brand secondary navy */
  --navy-600: #2d313c;
  --yellow: #ffc11e;     /* brand accent */
  --yellow-soft: #ffd35c;
  --white: #fff;
  --text: #e6e8ee;
  --text-muted: #b1b6c3;
  --text-dim: #8f95a3;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .2);
  --surface: rgba(255, 255, 255, .035);
  --danger: #ff9385;
  --success: #86e0a3;

  --font-display: 'Jost', 'Century Gothic', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Ubuntu', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; color: var(--white); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--yellow); color: var(--navy-950); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* 4. Utilities */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--yellow); color: var(--navy-950); font-weight: 500; }
.skip-link:focus { top: 12px; }

.section { position: relative; padding-block: var(--section-y); }
.section--alt { background: var(--navy-900); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -.01em; }
.eyebrow { margin-bottom: 14px; color: var(--yellow); font-size: .8125rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-align: center;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn--primary { background: var(--yellow); color: var(--navy-950); }
.btn--primary:hover { background: var(--yellow-soft); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Brand motif: yellow bar link, as on the original "contact us" links */
.link-bar { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-left: 18px; color: var(--yellow); font-family: var(--font-display); font-size: 1.25rem; }
.link-bar::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 28px; background: var(--yellow); transform: translateY(-50%); transition: height .2s var(--ease); }
.link-bar:hover::before { height: 40px; }
.link-bar:hover { color: var(--yellow-soft); }

/* Brand motif: dot grids */
.dots {
  position: absolute; z-index: 0; width: 224px; height: 216px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .5) 1px, transparent 1.5px);
  background-size: 28px 24px;
}
.dots--yellow { background-image: radial-gradient(circle, rgba(255, 193, 30, .75) 1px, transparent 1.5px); }

/* Scroll reveal: content is visible by default; only hidden when JS is running */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 5. Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(23, 26, 35, .92); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(23, 26, 35, .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand img { width: 208px; }
.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.site-nav__list { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 20px); }
.site-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--text); font-size: .9375rem; font-weight: 500; transition: color .18s; }
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--yellow); }
.site-nav__list a.site-nav__cta { margin-left: 8px; padding: 0 20px; border: 1px solid rgba(255, 193, 30, .6); color: var(--yellow); transition: background-color .18s, color .18s; }
.site-nav__list a.site-nav__cta:hover, .site-nav__list a.site-nav__cta.is-active { background: var(--yellow); color: var(--navy-950); }
.lang { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--text-muted); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; transition: color .18s, background-color .18s; }
.lang a:hover { color: var(--white); }
.lang a[aria-current], .lang a.is-current { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { width: 176px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px;
    border: 0; border-radius: 12px; background: transparent;
  }
  .nav-toggle__bars { position: relative; width: 24px; height: 16px; }
  .nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--white); transition: transform .22s var(--ease), opacity .15s; }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars span { top: 7px; }
  .nav-toggle__bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* Positioned against the sticky header (not the viewport): the header's backdrop-filter
     would otherwise become the containing block of a fixed panel and collapse it. */
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px;
    padding: 28px var(--gutter) 40px; overflow-y: auto;
    background: var(--navy-900);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav__list li { border-bottom: 1px solid var(--line); }
  .js .site-nav__list a { min-height: 64px; padding: 0 4px; border-radius: 0; font-family: var(--font-display); font-size: 1.625rem; font-weight: 400; }
  .js .site-nav__list a.site-nav__cta { margin: 0; padding: 0 4px; border: 0; background: none; color: var(--yellow); }
  .js .lang { align-self: flex-start; }
  .js .lang a { min-width: 56px; min-height: 44px; }
  /* without JavaScript the navigation simply wraps under the logo */
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px 16px; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
}
body.nav-open { overflow: hidden; }

/* 6. Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-900); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(40px, 6vw, 96px); padding-block: clamp(64px, 9vw, 132px) clamp(72px, 9vw, 132px); }
.hero h1 { font-size: clamp(2.75rem, 1.1rem + 6vw, 5.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--yellow); }
.hero__lead { max-width: 33rem; margin-top: clamp(20px, 2.4vw, 32px); color: var(--text-muted); font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3.4vw, 44px); }

.pillars { position: relative; display: grid; gap: clamp(30px, 3.6vw, 50px); }
.pillars::before { content: ''; position: absolute; z-index: -1; right: -6%; top: -9%; width: 82%; aspect-ratio: 607 / 333; background: url('../img/blueprint.webp') center / contain no-repeat; opacity: .5; }
.pillar { position: relative; display: block; width: var(--w, 100%); }
.pillar img { width: 100%; transition: transform .35s var(--ease); transform-origin: left center; }
.pillar:hover img { transform: translateX(6px); }
.pillar__tags { display: block; margin-top: 10px; color: var(--text-muted); font-family: var(--font-display); font-size: 1rem; letter-spacing: .02em; transition: color .2s; }
.pillar:hover .pillar__tags { color: var(--white); }
.pillar--promotion { --w: 79.6%; }
.pillar--analytics { --w: 78.8%; }
.pillar--monetization::before { content: ''; position: absolute; z-index: -1; right: 13%; bottom: 50%; width: 34%; aspect-ratio: 300 / 210; background: url('../img/gears.svg') center / contain no-repeat; opacity: .6; }

.hero .dots--a { left: max(8px, calc(50% - 716px)); top: 36px; height: 144px; opacity: .28; }
.hero .dots--b { right: 15%; bottom: -70px; opacity: .22; }
.hero__vertical {
  position: absolute; z-index: 0; right: -18px; top: 50%; display: none;
  font-family: var(--font-body); font-size: 148px; font-weight: 700; line-height: 1; letter-spacing: -.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 193, 30, .5);
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); pointer-events: none; user-select: none;
}
@media (min-width: 1560px) { .hero__vertical { display: block; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .pillars { max-width: 520px; }
  .hero .dots--a { display: none; }
  .hero .dots--b { right: -56px; bottom: 56px; }
}
@media (max-width: 520px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .pillar__tags { font-size: .9375rem; }
}

/* 7. About */
.areas { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: 148px minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(24px, 4vw, 64px); align-items: start; padding-block: clamp(36px, 4.6vw, 60px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 8px); }
.area__num { font-family: var(--font-body); font-size: clamp(4rem, 2.4rem + 5vw, 6.5rem); font-weight: 700; line-height: .8; letter-spacing: -.04em; color: rgba(255, 255, 255, .16); }
.area__pillar { margin-bottom: 10px; color: var(--yellow); font-size: .8125rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.area h3 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.125rem); font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .875rem; line-height: 1.5; }
.notes { display: grid; gap: 14px; }
.notes li { position: relative; padding-left: 30px; color: var(--text-muted); }
.notes li::before { content: ''; position: absolute; left: 0; top: .8em; width: 16px; height: 2px; background: var(--yellow); }
.about__outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(36px, 4.6vw, 60px); }
.about__outro p { max-width: 40rem; font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.3; color: var(--white); }

@media (max-width: 960px) {
  .area { grid-template-columns: 96px minmax(0, 1fr); }
  .area .notes { grid-column: 2; }
}
@media (max-width: 600px) {
  .area { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .area .notes { grid-column: auto; }
  .area__num { font-size: 4rem; }
}

/* 8. Projects */
.section-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font-size: .9375rem; font-weight: 500; text-transform: lowercase; transition: border-color .18s, background-color .18s, color .18s; }
.chip:hover { border-color: var(--yellow); color: var(--yellow); }
.chip[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--navy-950); }

.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(14px, 1.8vw, 24px); }
.project { display: flex; flex-direction: column; min-width: 0; }
.project.is-entering { animation: project-in .3s var(--ease) both; }
@keyframes project-in { from { opacity: 0; transform: translateY(8px); } }
.project__cover { position: relative; overflow: hidden; aspect-ratio: 380 / 470; border-radius: 12px; background: var(--navy-700); }
.project__cover::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: inherit; pointer-events: none; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project:hover .project__cover img { transform: scale(1.035); }
.project__body { display: flex; flex: 1; flex-direction: column; padding-top: 14px; }
.project__title { font-family: var(--font-body); font-size: .875rem; font-weight: 700; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; }
.project__genre { margin-top: 3px; color: var(--text-dim); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.project__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: auto; padding-top: 12px; }
.store { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-size: .75rem; font-weight: 500; white-space: nowrap; transition: border-color .18s, color .18s, background-color .18s; }
.store:hover { border-color: var(--yellow); background: var(--yellow); color: var(--navy-950); }

@media (max-width: 1180px) {
  .project-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project__title { font-size: .9375rem; }
  .store { min-height: 40px; font-size: .8125rem; }
}
@media (max-width: 820px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .project__title { font-size: .875rem; }
  .store { min-height: 44px; padding: 0 4px; font-size: .75rem; }
}
@media (max-width: 350px) { .project__links { grid-template-columns: minmax(0, 1fr); } }

/* 9. Cooperation */
.coop { overflow: hidden; }
.coop__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.coop__intro .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.coop__lead { position: relative; padding-left: 26px; color: var(--yellow); font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); line-height: 1.5; }
.coop__lead::before { content: ''; position: absolute; left: 0; top: .35em; bottom: .35em; width: 3px; background: var(--yellow); }
.roles { display: grid; gap: 20px; }
.role { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 24px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.role__icon { grid-row: span 2; width: 56px; height: 56px; }
.role h3 { align-self: center; font-size: 1.5rem; }
.role p { grid-column: 2; color: var(--text-muted); }
.coop .dots { left: max(8px, calc(50% - 716px)); bottom: 56px; opacity: .2; }

@media (max-width: 960px) {
  .coop__grid { grid-template-columns: minmax(0, 1fr); }
  .coop .dots { display: none; }
}
@media (max-width: 520px) {
  .role { grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px; }
  .role__icon { grid-row: auto; width: 44px; height: 44px; }
  .role p { grid-column: 1 / -1; margin-top: 8px; }
}

/* 10. Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.contact__intro .section-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.contact__intro p + p { margin-top: 16px; }
.contact__intro > p { color: var(--text-muted); max-width: 34rem; }
.contact__intro > p.contact__ask { color: var(--white); font-family: var(--font-display); font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.375rem); line-height: 1.45; margin-top: 24px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--white); font-size: .9375rem; font-weight: 500; }
.field .optional { color: var(--text-dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: rgba(10, 12, 18, .35); color: var(--white); font-size: 1rem; line-height: 1.5;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .34); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 193, 30, .22); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 147, 133, .22); }
.field__hint { color: var(--text-dim); font-size: .875rem; }
.field__error { color: var(--danger); font-size: .875rem; }
.field__error:empty { display: none; }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.check input { position: relative; width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; padding: 0; appearance: none; -webkit-appearance: none; border: 1px solid var(--line-strong); border-radius: 6px; background: rgba(10, 12, 18, .35); cursor: pointer; transition: border-color .18s, background-color .18s; }
.check input:checked { border-color: var(--yellow); background: var(--yellow); }
.check input:checked::after { content: ''; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid var(--navy-950); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.check label { color: var(--text-muted); font-size: .9375rem; font-weight: 400; cursor: pointer; }
.check label a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .45); }
.check label a:hover { color: var(--yellow); text-decoration-color: currentColor; }
.check .field__error { grid-column: 2; }

.form__footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__footer .btn { min-width: 168px; }
.form__status { flex: 1 1 240px; min-height: 1.6em; font-size: .9375rem; }
.form__status.is-success { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__noscript { grid-column: 1 / -1; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--text-muted); font-size: .9375rem; }
.form__noscript a { color: var(--yellow); text-decoration: underline; }
/* Without JavaScript the form cannot be sent: show only the notice with the contact address. */
html:not(.js) .form .field, html:not(.js) .form .form__footer { display: none; }
.form noscript { display: block; grid-column: 1 / -1; }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__intro { position: static; }
}
@media (max-width: 600px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .form__footer .btn { width: 100%; }
}

/* 11. Footer */
.site-footer { background: var(--navy-700); color: var(--text-muted); font-size: .9375rem; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 44px 32px; }
.site-footer__brand { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__brand img { width: 216px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-inline: -12px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); font-weight: 500; transition: color .18s; }
.site-footer__nav a:hover { color: var(--yellow); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 48px; padding-block: 28px 44px; border-top: 1px solid var(--line); }
.site-footer__legal { display: grid; gap: 2px; max-width: 46rem; }
.site-footer__legal li { line-height: 1.6; }
.site-footer__meta { display: grid; gap: 6px; justify-items: end; text-align: right; }
.site-footer__meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 193, 30, .5); }
.site-footer__meta a:hover { text-decoration-color: currentColor; }
@media (max-width: 680px) {
  .site-footer__meta { justify-items: start; text-align: left; }
}

/* 12. Legal page */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section-y); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem); font-weight: 300; letter-spacing: -.02em; margin-bottom: clamp(28px, 4vw, 44px); }
.prose { color: var(--text-muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); line-height: 1.25; }
.prose strong { color: var(--white); font-weight: 500; }
.prose ul, .prose ol { display: grid; gap: .55em; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--yellow); }
.prose a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 193, 30, .45); overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.legal__back { margin-bottom: 28px; }

/* 13. Error page */
.error-page { display: grid; align-content: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: 72px; background: var(--navy-900); }
.error-page__code { font-family: var(--font-body); font-size: clamp(6rem, 3rem + 14vw, 12rem); font-weight: 700; line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 193, 30, .65); }
.error-page h1 { margin-top: 28px; font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); font-weight: 300; }
.error-page p { max-width: 32rem; margin-top: 16px; color: var(--text-muted); }
.error-page .hero__actions { margin-top: 32px; }

/* 14. Motion and print */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pillar:hover img, .project:hover .project__cover img, .btn--primary:hover { transform: none; }
}
@media print {
  .site-header, .nav-toggle, .filters, .form, .dots, .hero__vertical, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .project__title { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
