/* AMAKARENKOV Personal Orbit v16 */
:root {
  color-scheme: dark;
  --bg: #04080a;
  --bg-soft: #071116;
  --panel: rgba(6, 13, 18, .76);
  --panel-strong: rgba(4, 8, 12, .92);
  --text: #f7f2e7;
  --muted: rgba(247, 242, 231, .68);
  --muted-2: rgba(247, 242, 231, .48);
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .22);
  --green: #20e7aa;
  --green-soft: rgba(32, 231, 170, .18);
  --gold: #eadbb2;
  --pink: #ff6bd6;
  --blue: #7fb7ff;
  --shadow: 0 34px 100px rgba(0, 0, 0, .44);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1180px;
  --header: 84px;
  --pointer-x: 50vw;
  --pointer-y: 0vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 28px);
}
body {
  margin: 0;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(760px circle at var(--pointer-x) var(--pointer-y), rgba(32, 231, 170, .12), transparent 42%),
    radial-gradient(circle at 10% 0%, rgba(32, 231, 170, .18), transparent 33%),
    radial-gradient(circle at 94% 10%, rgba(82, 137, 255, .16), transparent 31%),
    linear-gradient(135deg, #030607 0%, #071116 48%, #02140f 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../img/noise.svg');
  opacity: .15;
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
img, picture { display: block; max-width: 100%; }
img { height: auto; }
.portrait-card, .project-card, .contact-card, .seo-card { contain: layout paint; }
.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}
.section {
  position: relative;
  padding: clamp(76px, 9vw, 132px) 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #06100d;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(4, 9, 12, .68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
body.admin-bar .site-header { top: 32px; }
.header-shell {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 0;
  font-weight: 820;
  letter-spacing: -.04em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, rgba(32, 231, 170, .3), rgba(234, 219, 178, .1));
  box-shadow: 0 0 30px rgba(32, 231, 170, .18);
  font-size: 20px;
}
.brand-text {
  font-size: 20px;
  line-height: 1;
}
.brand-text span { color: var(--green); }

.hero {
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding-top: clamp(52px, 6vw, 92px);
  padding-bottom: clamp(60px, 7vw, 104px);
  overflow: hidden;
}
.orbital-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 61% 48%, rgba(32, 231, 170, .14), transparent 62%),
    radial-gradient(closest-side at 30% 56%, rgba(234, 219, 178, .1), transparent 55%);
}
.orbital-bg::before,
.orbital-bg::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  inset: 14% 9%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 34px rgba(32, 231, 170, .12));
}
.orbital-bg::after {
  inset: 22% 17%;
  transform: rotate(18deg);
  border-color: rgba(234, 219, 178, .1);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(300px, .64fr);
  grid-template-areas:
    "copy portrait"
    "meta portrait";
  column-gap: clamp(28px, 4.4vw, 64px);
  row-gap: clamp(20px, 2.8vw, 38px);
  align-items: center;
}
.hero-copy { grid-area: copy; min-width: 0; max-width: 820px; }
.hero-portrait { grid-area: portrait; min-width: 0; max-width: 500px; justify-self: end; width: 100%; }
.hero-meta { grid-area: meta; min-width: 0; max-width: 760px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 840;
}
h1, h2, h3 {
  margin: 0;
  letter-spacing: -.06em;
  line-height: .95;
}
.hero-name {
  display: grid;
  gap: .03em;
  max-width: 100%;
  overflow: visible;
  font-size: clamp(64px, 6.35vw, 96px);
  line-height: .91;
  letter-spacing: -.04em;
  padding-right: .34em;
  background: linear-gradient(115deg, #fffaf0 0%, #f5f2e8 42%, #b7ffe7 82%, #eadbb2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-name span {
  display: block;
  white-space: nowrap;
  padding-right: .24em;
}
.hero-surname {
  letter-spacing: -.034em;
  max-width: 100%;
  overflow: visible;
}
h2 { font-size: clamp(38px, 6vw, 78px); max-width: 900px; }
h3 { font-size: clamp(27px, 2.8vw, 40px); }
p { color: var(--muted); line-height: 1.7; }
.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.58;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 820;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--text); color: #06100d; }
.button.ghost { background: rgba(255, 255, 255, .06); }
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hero-facts li {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-facts span {
  display: block;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 820;
}
.portrait-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: clamp(400px, 35vw, 520px);
  background: linear-gradient(145deg, rgba(32, 231, 170, .13), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: var(--shadow);
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .56) 100%);
  pointer-events: none;
}
.portrait-card picture,
.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
}
.portrait-card img {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(.98) contrast(1.04) brightness(.96);
}
.portrait-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(4, 9, 12, .68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.portrait-panel span { color: var(--muted); font-size: 13px; }
.portrait-panel strong { color: var(--text); }

.section-head { margin-bottom: 34px; }
.section-head p { max-width: 760px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.project-card { min-width: 0; min-height: clamp(430px, 38vw, 540px); }
.project-card a {
  position: relative;
  display: grid;
  align-content: end;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028));
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.project-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(2, 5, 8, .96) 0%, rgba(2, 5, 8, .9) 36%, rgba(2, 5, 8, .34) 70%, rgba(2, 5, 8, .08) 100%),
    radial-gradient(circle at 78% 12%, rgba(32, 231, 170, .12), transparent 36%);
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
  filter: saturate(.96) contrast(1.08) brightness(.88);
  transition: transform .6s ease, opacity .4s ease;
}
.project-card:hover img { transform: scale(1.045); opacity: .84; }
.project-index {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  color: var(--gold);
  font-weight: 820;
}
.project-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
}
.project-status {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  background: rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 820;
}
.project-content h3 {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(30px, 2.65vw, 42px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.project-lead {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.35;
}
.project-content p:not(.project-lead) {
  max-width: 96%;
  margin-bottom: 0;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--gold);
  font-weight: 820;
}
.project-link::after { content: "→"; }

.contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(20px, 5vw, 70px);
  align-items: start;
}
.contact-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 20px 80px rgba(0, 0, 0, .2);
}
.contact-card a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .055);
}
.contact-card a:hover { border-color: rgba(32, 231, 170, .42); }
.contact-card a span {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.site-footer {
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28));
}
.footer-minimal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer-minimal span {
  display: inline-flex;
  color: var(--text);
  font-weight: 780;
}
.footer-minimal p {
  margin: 7px 0 0;
  max-width: 620px;
  font-size: 13px;
  color: rgba(247, 242, 231, .56);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.footer-legal a {
  display: inline-flex;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(247, 242, 231, .58);
  font-size: 12px;
}
.footer-legal a:hover { color: var(--text); border-color: rgba(32, 231, 170, .32); }

.content-shell { padding-top: 40px; }
.entry-card {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.seo-card {
  max-width: 1040px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
}
.seo-card h2 {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 820px;
}
.seo-card p:last-child {
  max-width: 860px;
  margin: 20px 0 0;
  font-size: clamp(17px, 1.8vw, 20px);
}

.entry-card h1 { font-size: clamp(42px, 7vw, 86px); }
.entry-content { margin-top: 28px; }
.entry-content a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .project-card:hover img { transform: none; }
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
    gap: clamp(24px, 4vw, 52px);
  }
  .hero-name { font-size: clamp(58px, 6.5vw, 86px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  :root { --header: 72px; }
  .shell { width: min(var(--shell), calc(100% - 28px)); }
  .site-header { min-height: var(--header); }
  .header-shell { min-height: var(--header); }
  .brand { gap: 10px; padding: 8px 0; }
  .brand-mark { width: 46px; height: 46px; border-radius: 16px; font-size: 19px; }
  .brand-text { font-size: 20px; }
  .section { padding: 62px 0; }
  .hero {
    min-height: auto;
    display: block;
    padding-top: 32px;
    padding-bottom: 50px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "portrait"
      "meta";
    gap: 22px;
    align-items: start;
  }
  .hero-copy,
  .hero-meta,
  .hero-portrait {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
  }
  .eyebrow {
    margin-bottom: 14px;
    max-width: 100%;
    font-size: 11px;
    letter-spacing: .115em;
    word-spacing: .08em;
  }
  .hero-name {
    width: 100%;
    max-width: 100%;
    font-size: clamp(44px, 12.2vw, 55px);
    line-height: .92;
    letter-spacing: -.04em;
    padding-right: .18em;
  }
  .hero-name span { white-space: nowrap; padding-right: .14em; }
  .hero-lead {
    max-width: 100%;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.52;
  }
  .portrait-card {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
    border-radius: 28px;
  }
  .portrait-card picture,
  .portrait-card img {
    min-height: 0;
    height: 100%;
  }
  .portrait-card img { object-position: 50% 48%; }
  .portrait-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 13px 15px;
    border-radius: 20px;
  }
  .portrait-panel span,
  .portrait-panel strong { font-size: 14px; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 18px;
  }
  .button { width: 100%; min-height: 54px; padding: 14px 18px; font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 8px; }
  .hero-facts li { padding: 14px 16px; border-radius: 16px; }
  .orbital-bg::before { inset: 20% -56% 20% -42%; opacity: .55; }
  .orbital-bg::after { inset: 31% -35% 21% -45%; opacity: .5; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card { min-height: 410px; }
  .project-content { padding: 24px; }
  .project-content h3 { font-size: clamp(32px, 10vw, 46px); }
  .project-content p:not(.project-lead) { max-width: 100%; }
  .seo-card { padding: 24px; border-radius: 26px; }
  .seo-card p:last-child { font-size: 15.8px; line-height: 1.62; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card a { align-items: flex-start; flex-direction: column; gap: 6px; }
  .footer-minimal { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 430px) {
  :root { --header: 68px; }
  .shell { width: min(var(--shell), calc(100% - 24px)); }
  .brand-text { font-size: 19px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 15px; }
  .hero { padding-top: 28px; }
  .hero-name { font-size: clamp(42px, 11.8vw, 51px); letter-spacing: -.038em; padding-right: .18em; }
  .hero-lead { font-size: 16.5px; }
  .portrait-card { max-height: 470px; border-radius: 26px; }
  .portrait-panel { display: grid; gap: 4px; justify-content: stretch; }
  .project-card { min-height: 390px; }
  .project-status { font-size: 11px; letter-spacing: .1em; }
  .project-content h3 { font-size: clamp(30px, 9.6vw, 40px); }
}

@media (max-width: 360px) {
  :root { --header: 64px; }
  .brand-text { font-size: 18px; }
  .hero-name { font-size: 42px; }
  .hero-lead { font-size: 16px; }
  .project-content { padding: 21px; }
  .project-content h3 { font-size: 30px; }
  .portrait-card { max-height: 430px; }
}


/* Mobile polish: iPhone SE / 13 / 14 / 15 safe cards */
@media (max-width: 430px) {
  .projects-section .section-head { margin-bottom: 24px; }
  .projects-section .section-head p { font-size: 15.5px; line-height: 1.58; }
  .project-grid { gap: 16px; }
  .project-card { min-height: 358px; }
  .project-card a { border-radius: 26px; }
  .project-content { padding: 22px; }
  .project-status {
    margin-bottom: 12px;
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: .095em;
  }
  .project-content h3 {
    font-size: clamp(28px, 8.7vw, 37px);
    letter-spacing: -.052em;
  }
  .project-lead {
    margin-top: 10px;
    font-size: 16px;
  }
  .project-content p:not(.project-lead) {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.52;
  }
  .project-link { margin-top: 13px; }
  .contact-card { padding: 18px; border-radius: 24px; }
  .contact-card a { padding: 15px; font-size: 15px; }
  .footer-minimal p { font-size: 12.5px; line-height: 1.6; }
}

@media (max-width: 390px) {
  .hero { padding-top: 24px; padding-bottom: 44px; }
  .hero-grid { gap: 18px; }
  .hero-name { font-size: clamp(38px, 11.2vw, 45px); letter-spacing: -.036em; }
  .hero-lead { font-size: 15.8px; line-height: 1.5; }
  .portrait-card { aspect-ratio: 1 / 1.18; max-height: 438px; }
  .portrait-panel { padding: 12px 13px; }
  .button { min-height: 50px; font-size: 15px; }
  .hero-facts li { padding: 12px 14px; font-size: 14px; }
  .project-card { min-height: 342px; }
  .project-content { padding: 20px; }
  .project-content h3 { font-size: clamp(27px, 8.2vw, 34px); }
  .project-lead { font-size: 15.5px; }
  .project-content p:not(.project-lead) { font-size: 13.5px; }
}

@media (max-width: 340px) {
  .shell { width: min(var(--shell), calc(100% - 20px)); }
  .brand-mark { width: 40px; height: 40px; border-radius: 14px; }
  .brand-text { font-size: 16.5px; }
  .hero-name { font-size: 37px; }
  .project-card { min-height: 330px; }
  .project-content { padding: 18px; }
  .project-content h3 { font-size: 27px; }
}


@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .hero-facts li,
  .portrait-panel,
  .project-status {
    background: rgba(4, 9, 12, .94);
  }
  .project-card a,
  .contact-card {
    background: rgba(6, 13, 18, .94);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (prefers-reduced-data: reduce) {
  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(32, 231, 170, .12), transparent 35%),
      linear-gradient(135deg, #030607 0%, #071116 48%, #02140f 100%);
  }
  body::before { opacity: .08; }
  .orbital-bg::before,
  .orbital-bg::after { display: none; }
  .project-card img { opacity: .62; }
}


.hero-copy, .hero-copy * { overflow: visible; }


/* SEO-safe performance and typography polish */
.hero-name,
.hero-name span,
.hero-surname {
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
.hero-surname { padding-right: .32em; }
.portrait-card img { aspect-ratio: 2 / 3; }
.project-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.seo-card p + p { margin-top: 14px; }

@media (min-width: 761px) and (max-width: 1180px) {
  .hero-name { font-size: clamp(60px, 6.1vw, 88px); padding-right: .42em; }
}

@media (pointer: coarse) {
  .site-header,
  .portrait-panel,
  .hero-facts li,
  .project-card a,
  .contact-card,
  .seo-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .project-card a { box-shadow: 0 24px 72px rgba(0, 0, 0, .34); }
}

@media (prefers-reduced-data: reduce), (update: slow) {
  .site-header,
  .portrait-panel,
  .hero-facts li,
  .project-card a,
  .contact-card,
  .seo-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .project-card a,
  .portrait-card { box-shadow: 0 16px 44px rgba(0, 0, 0, .32); }
  body::before { display: none; }
}

/* Final upload safety: WordPress admin bar and Cyrillic headline rendering */
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.hero-name,
.hero-surname {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero-surname::after {
  content: "";
  display: inline-block;
  width: .18em;
}
@media (min-width: 1181px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .58fr); }
  .hero-portrait { max-width: 474px; }
}
