/* Self-hosted fonts, SIL Open Font License 1.1 (see fonts/OFL-*.txt). Two families only. */
@font-face{font-family:"Roboto Flex";font-style:normal;font-weight:100 1000;font-stretch:25% 151%;font-display:swap;src:url("fonts/roboto-flex-cyrillic-standard-normal.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Roboto Flex";font-style:normal;font-weight:100 1000;font-stretch:25% 151%;font-display:swap;src:url("fonts/roboto-flex-latin-standard-normal.woff2") format("woff2-variations");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,U+2192;}
@font-face{font-family:"Geologica";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geologica-cyrillic-wght-normal.woff2") format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
@font-face{font-family:"Geologica";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/geologica-latin-wght-normal.woff2") format("woff2-variations");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,U+2192;}

/* Layout: one project = one screen. Head on top, works strip at the bottom;
   opening a work grows the stage and shrinks the strip down to a filmstrip. */
:root {
  --paper: #ffffff;
  --ink: #0b0b0d;
  --blue: #1f3dff;
  --muted: #5e6272;
  --line: #e2e4ec;
  --soft: #f3f4f8;
  --on-blue: #ffffff;

  --f-display: "Roboto Flex", "Arial", system-ui, sans-serif;
  --f-body: "Geologica", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --top: 60px;
  --ease: cubic-bezier(.65, .05, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #09090b; --ink: #f1f2f6; --blue: #5470ff; --muted: #9196a8;
    --line: #23252e; --soft: #131419; --on-blue: #ffffff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #09090b; --ink: #f1f2f6; --blue: #5470ff; --muted: #9196a8;
  --line: #23252e; --soft: #131419; --on-blue: #ffffff; color-scheme: dark;
}
@media (min-width: 900px) { :root { --gut: max(40px, env(safe-area-inset-left, 0px)); --gut-r: max(40px, env(safe-area-inset-right, 0px)); } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 350 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--f-body); font-weight: 450; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20;
  height: var(--top); display: flex; align-items: center; gap: 24px;
  padding-left: var(--gut); padding-right: var(--gut-r);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 500; text-decoration: none; white-space: nowrap; font-size: 15px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; margin-right: 7px; vertical-align: 2px; }
.hdr-cta { margin-left: 4px; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--f-body); font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { padding: 5px 10px; border-radius: 99px; color: var(--muted); letter-spacing: .06em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav { position: fixed; top: calc(var(--top) + env(safe-area-inset-top, 0px)); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut-r) 16px var(--gut);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
  .nav.show { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 20px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .lang { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; width: 36px; height: 36px; }
  .menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
}

/* ---------- hero ---------- */
.hero {
  min-height: min(100svh, 960px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: calc(var(--top) + 40px) var(--gut-r) 64px var(--gut);
}
.hero-text { display: grid; gap: 28px; max-width: 640px; min-width: 0; }
.eyebrow { margin: 0; color: var(--blue); }
.hero-name {
  margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 780;  
  font-size: clamp(32px, 4.5vw, 70px); line-height: 1.02; text-wrap: balance;
 letter-spacing: -.04em; }
.hero-bio { margin: 0; font-weight: 300; font-size: clamp(16px, 1.35vw, 19px); color: var(--ink); max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 0 0; display: grid; gap: 4px; }
.facts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--f-display); font-stretch: 151%; font-weight: 750; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.contacts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: background .2s, color .2s, border-color .2s;
}
.chip b { font-family: var(--f-body); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chip:hover { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.chip:hover b { color: var(--on-blue); }
.status { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.hero-visual { margin: 0; position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: min(520px, 62svh); justify-self: end; }
.hero-visual canvas, .hero-visual img, .hero-visual video { width: 100%; height: 100%; display: block; }
.hero-visual video { object-fit: cover; border-radius: 4px; background: var(--soft); }
.hero-visual img { object-fit: cover; border-radius: 4px; }
.hero-visual figcaption { position: absolute; left: 0; right: 0; bottom: -28px; display: flex; justify-content: space-between; color: var(--muted); }
.hero-visual figcaption a { text-decoration: none; color: var(--ink); }
.hero-visual figcaption a:hover { color: var(--blue); }
.scroll-cue { position: absolute; left: var(--gut); bottom: 24px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 32px; padding-top: calc(var(--top) + 32px); }
  .hero-visual { max-width: 340px; justify-self: center; width: 72%; }
  .scroll-cue { display: none; }
}

/* ---------- project screen ---------- */
.project {
  height: 100svh; min-height: 560px; display: flex; flex-direction: column;
  padding: calc(var(--top) + 28px) 0 24px; border-top: 1px solid var(--line);
  scroll-margin-top: 0; position: relative;
}
.p-head {
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding-left: var(--gut); padding-right: var(--gut-r); flex: none;
}
.p-idx { color: var(--blue); padding-top: 10px; font-variant-numeric: tabular-nums; }
.p-title { min-width: 0; }
.p-name { margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 780;  font-size: clamp(30px, 4.6vw, 72px); line-height: 1;  text-wrap: balance; transition: font-size .6s var(--ease);  letter-spacing: -.04em; }
.p-sub { margin: 12px 0 0; color: var(--muted); }
.p-desc { margin: 6px 0 0; font-weight: 300; max-width: 46ch; color: var(--ink); font-size: 15px; transition: opacity .4s, max-height .6s var(--ease); max-height: 12em; overflow: hidden; }
.p-count { color: var(--muted); padding-top: 10px; white-space: nowrap; }

.stage { flex: 0 1 0%; min-height: 0; overflow: hidden; transition: flex .75s var(--ease); }
.strip-wrap { flex: 1 1 0%; min-height: 96px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; transition: flex .75s var(--ease); padding-top: 28px; }
.strip {
  flex: 1 1 auto; min-height: 0; max-height: 600px; display: flex; gap: 12px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-left: var(--gut);
  padding-left: var(--gut); padding-right: var(--gut-r); scrollbar-width: none; overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
.strip::after { content: ""; flex: 0 0 1px; }
.w {
  flex: none; height: 100%; position: relative; scroll-snap-align: start; overflow: hidden;
  background: var(--soft); border-radius: 3px; aspect-ratio: var(--ar, 1);
  transition: opacity .3s, transform .5s var(--ease);
}
.w img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.w:hover img { transform: scale(1.035); }
.w .tag { position: absolute; left: 8px; top: 8px; padding: 4px 7px; border-radius: 2px; background: var(--blue); color: var(--on-blue); font-size: 10px; }
.w .n { position: absolute; left: 8px; bottom: 8px; color: #fff; mix-blend-mode: difference; }
.w::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 3px; transition: border-color .3s; pointer-events: none; }
.w.on::after { border-color: var(--blue); }
.w.off { display: none; }
.edit-on .w.off { display: block; opacity: .35; }

.strip-ctl { display: flex; gap: 8px; justify-content: flex-end; padding: 12px var(--gut-r) 0 var(--gut); align-items: center; }
.strip-ctl .hint { margin-right: auto; color: var(--muted); }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.arrow:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.arrow svg { width: 16px; height: 16px; }

/* open state */
.project.open .stage { flex: 1 1 0%; }
.project.open .strip-wrap { flex: 0 0 auto; padding-top: 16px; }
.project.open .strip { flex: none; height: clamp(64px, 11svh, 104px); }
.project.open .p-desc { opacity: 0; max-height: 0; }
.project.open .p-name { font-size: clamp(24px, 2.6vw, 38px); }
.project.open .strip-ctl .hint { visibility: hidden; }
.project.open .w:not(.on) { opacity: .55; }
.project.open .w:hover { opacity: 1; }
.project.open .w .n { display: none; }
.project.open .w .tag { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; left: 6px; top: 6px; }

.stage-in {
  height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px;
  padding: 24px var(--gut-r) 0 var(--gut);
}
.d-main { min-height: 0; min-width: 0; display: flex; align-items: center; justify-content: center; position: relative; }
.d-main img, .d-main video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 3px; animation: rise .6s var(--ease) both; background: var(--soft); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.d-side { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: rise .6s .08s var(--ease) both; }
.d-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.close { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line); }
.close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.d-side h3 { margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 700;  font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; text-wrap: balance;  letter-spacing: -.02em; }
.d-side p { margin: 0; color: var(--ink); font-size: 15px; }
.d-rel-h { color: var(--muted); margin-top: 8px; }
.d-rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-rel button { aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--soft); position: relative; }
.d-rel img { width: 100%; height: 100%; object-fit: cover; }
.d-rel button::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: 3px; }
.d-rel button.on::after { border-color: var(--blue); }
.d-rel .tag { position: absolute; left: 4px; top: 4px; background: var(--blue); color: var(--on-blue); font-size: 9px; padding: 2px 5px; border-radius: 2px; }
.d-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }

@media (max-width: 860px) {
  .project { padding-top: calc(var(--top) + 20px); min-height: 520px; padding-bottom: 16px; }
  .p-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .p-idx { grid-column: 1; padding: 0; order: -2; }
  .p-count { grid-column: 2; padding: 0; order: -1; text-align: right; }
  .p-title, .p-desc { grid-column: 1 / -1; }
  .p-sub { margin-top: 8px; }
  .strip-wrap { padding-top: 20px; }
  .strip { gap: 8px; }
  .strip-ctl .arrow { display: none; }
  .strip-ctl { padding-top: 10px; }
  .project.open .strip { height: 64px; }
  .project.open .strip-ctl { display: none; }
  .project.open .p-sub { display: none; }
  .stage-in { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding-top: 14px; }
  .d-side { max-height: 34svh; gap: 10px; }
  .d-side h3 { font-size: 18px; }
  .d-side p { font-size: 14px; }
  .d-rel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; }
  .d-nav { display: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 72px var(--gut-r) 32px var(--gut); display: grid; gap: 48px; }
.foot-big { margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 780;  font-size: clamp(30px, 5vw, 72px); line-height: 1;  max-width: 16ch; text-wrap: balance;  letter-spacing: -.04em; }
.foot-big em { font-style: normal; color: var(--blue); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; color: var(--muted); }
.foot-row .contacts { gap: 10px; }
.edit-btn { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.edit-btn:hover { color: var(--blue); }

/* ---------- edit mode ---------- */
.edit-on [data-edit] { outline: 1px dashed color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 4px; cursor: text; border-radius: 2px; }
.edit-on [data-edit]:focus { outline: 2px solid var(--blue); background: color-mix(in srgb, var(--blue) 6%, transparent); }
.editbar {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(760px, calc(100% - 32px));
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.editbar p { margin: 0; font-size: 13px; flex: 1 1 240px; min-width: 0; }
.editbar button { padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); }
.editbar button.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.editbar .msg { font-size: 12px; opacity: .7; width: 100%; }
.hide-btn { align-self: flex-start; padding: 6px 10px; border-radius: 99px; border: 1px dashed var(--blue); color: var(--blue); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons / CTA ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; border-radius: 99px;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: var(--on-blue); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--blue) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--blue) 85%, var(--ink)); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost .mono { color: var(--muted); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost:hover .mono { color: var(--paper); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 8px; }
.btn-lg { height: 60px; padding: 0 30px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.cta-row .status { margin-left: 6px; }
.tools { margin: 0; display: grid; gap: 6px; }
.tools div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tools dt { color: var(--muted); }
.tools dd { margin: 0; font-size: 14px; }
.facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* end-of-strip CTA card */
.w-cta {
  flex: none; height: 100%; aspect-ratio: 4 / 5; border-radius: 3px; background: var(--blue); color: var(--on-blue);
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px; text-decoration: none; scroll-snap-align: start;
  transition: background .2s;
}
.w-cta:hover { background: color-mix(in srgb, var(--blue) 85%, var(--ink)); }
.w-cta-t { font-family: var(--f-display); font-stretch: 151%; font-weight: 720; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.15; text-wrap: balance;  letter-spacing: -.02em; }
.w-cta-b { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; }
.w-cta-b .arr { width: 44px; height: 44px; border-radius: 50%; background: var(--on-blue); color: var(--blue); display: grid; place-items: center; transition: transform .3s var(--ease); }
.w-cta:hover .w-cta-b .arr { transform: translateX(4px); }
.project.open .w-cta { aspect-ratio: 1; padding: 0; align-items: center; justify-content: center; }
.project.open .w-cta-t, .project.open .w-cta-b > span:first-child { display: none; }
.project.open .w-cta-b .arr { width: 36px; height: 36px; }
.count { color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.strip-ctl .hint { margin-right: 0; }
.strip-ctl .count { margin-left: auto; }

.d-role { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.d-role .mono { color: var(--muted); }
.d-role span:last-child { font-size: 14px; }
.sound { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: var(--soft); }
.sound[aria-pressed="true"] { background: var(--blue); color: var(--on-blue); }
.sound-ic { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sound[aria-pressed="true"] .sound-ic { animation: pulse 1s infinite; }

@media (max-width: 860px) {
  .hdr-cta { margin-left: 0; height: 34px; padding: 0 12px; }
  .hdr-cta .arr { display: none; }
  .lang { margin-left: auto; }
  .btn { height: 50px; padding: 0 20px; }
  .btn-lg { height: 56px; font-size: 17px; }
  .cta-row .btn-primary { flex: 1 1 100%; justify-content: space-between; }
  .cta-row .btn-ghost { flex: 1 1 auto; justify-content: center; }
  .cta-row .status { margin-left: 0; }
  .tools div { grid-template-columns: 120px minmax(0, 1fr); }
  .hero-visual { max-width: 300px; width: 70%; margin-bottom: 24px; }
  .d-role { padding-top: 8px; }
  .w-cta { padding: 16px; }
  .strip-ctl .count { margin-left: 0; }
  .logo { font-size: 14px; }
}
@media (max-width: 860px) { .top { gap: 10px; } }
@media (max-width: 520px) {
  .logo { display: none; }
  .lang { margin-left: 0; }
  .hdr-cta { margin-left: auto; }
}
.project.open .count { visibility: hidden; }

.p-period { margin: 6px 0 0; color: var(--blue); }
.edit-on [data-optional]:empty::before { content: attr(data-ph); color: var(--muted); }
.legal { color: var(--muted); font-size: 13px; max-width: 72ch; }
.legal summary { cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; font-size: 14px; }
.legal[open] summary::after { content: "−"; }
.legal p { margin: 12px 0 0; line-height: 1.6; }

/* hero: top text, visual, facts — visual moves between them on phones */
.hero { grid-template-areas: "top vis" "bot vis"; grid-template-rows: auto auto; align-content: center; row-gap: 28px; }
.hero-top { grid-area: top; align-self: end; }
.hero-bot { grid-area: bot; align-self: start; }
.hero-visual { grid-area: vis; align-self: center; }
@media (max-width: 860px) { .hero { grid-template-areas: "top" "vis" "bot"; row-gap: 32px; } }

.p-period { display: flex; flex-wrap: wrap; gap: 4px 0; }
.p-ag { color: var(--muted); }
.p-period > span:not([hidden]) + span:not([hidden])::before { content: "·"; margin: 0 8px; color: var(--muted); }

/* about */
.about { border-top: 1px solid var(--line); padding: calc(var(--top) + 32px) var(--gut-r) 72px var(--gut); display: grid; gap: 40px; }
.about-h { margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 780; letter-spacing: -.04em; font-size: clamp(30px, 4.6vw, 72px); line-height: 1; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 64px; }
.ab { display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--ink); padding-top: 16px; min-width: 0; }
.ab-exp { grid-row: span 3; }
.ab-h { margin: 0; font-family: var(--f-display); font-stretch: 151%; font-weight: 750; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(18px, 1.6vw, 24px); }
.xp { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; }
.xp + .xp { border-top: 1px solid var(--line); padding-top: 20px; }
.xp-p { color: var(--blue); padding-top: 4px; }
.xp-b { display: grid; gap: 4px; min-width: 0; }
.xp-b b { font-weight: 600; font-size: 17px; }
.xp-r { color: var(--muted); font-size: 14px; }
.xp-b p { margin: 6px 0 0; font-weight: 300; font-size: 15px; max-width: 60ch; }
.xp-s { padding-bottom: 0; }
.lg { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lg b { font-weight: 500; }
.lg .mono { color: var(--muted); }
.about .tools div { grid-template-columns: 140px minmax(0, 1fr); }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ab-exp { grid-row: auto; }
  .xp { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .about .tools div { grid-template-columns: 110px minmax(0, 1fr); }
}
.status { align-items: flex-start; }
.status::before { flex: none; margin-top: .55em; }
.xp { grid-template-columns: 210px minmax(0, 1fr); }
@media (max-width: 860px) { .xp { grid-template-columns: minmax(0, 1fr); } }

/* CV dialog */
.cv { position: fixed; inset: 0; z-index: 50; background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); animation: cvIn .45s var(--ease) both; }
@keyframes cvIn { from { opacity: 0; transform: translateY(24px); } }
.cv-open, .cv-open body { overflow: hidden; }
.cv-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: var(--top);
  padding-left: var(--gut); padding-right: var(--gut-r); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cv-bar > span.mono { margin-right: auto; color: var(--muted); }
.cv-in { max-width: 1200px; margin: 0 auto; padding: 48px var(--gut-r) 80px var(--gut); display: grid; gap: 48px; }
.cv-head { display: grid; gap: 14px; }
.cv-head .eyebrow { margin: 0; }
.cv-st { margin: 0; color: var(--muted); }
.cv-sum { margin: 8px 0 0; max-width: 62ch; font-weight: 300; font-size: 17px; }
#cvContacts .lg { text-decoration: none; }
#cvContacts .lg:hover b { color: var(--blue); }
#cvContacts .lg span { color: var(--muted); }
@media (max-width: 860px) { .cv-in { padding-top: 28px; gap: 32px; } .cv-bar .btn .arr { display: none; } }

.cv .ab-exp { grid-row: span 4; }
@media (max-width: 860px) { .cv .ab-exp { grid-row: auto; } }
