:root {
  --bg: #eef3f6;
  --surface: #ffffff;
  --surface-soft: #e7eef3;
  --surface-muted: #f7f9fb;
  --ink: #0f1822;
  --muted: #5f6f7d;
  --muted-2: #81909c;
  --line: #d5dfe6;
  --line-strong: #becbd5;
  --media-line: #afbdc8;
  --dark: #0d1723;
  --dark-2: #182534;
  --blue-dark: #2f6398;
  --focus: #2d70b3;
  --shell: 1180px;
  --content: 1160px;
  --gutter: 24px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open,
body.contact-modal-open,
body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.shell {
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.content-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--content));
  margin-inline: auto;
}

.formatted-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 9999;
  transform: translateY(-180%);
  padding: 9px 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  flex: 0 0 auto;
  border-bottom: 1px solid #223040;
  background: var(--dark);
  color: #fff;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 106px;
  height: 36px;
  flex: 0 0 auto;
  background: url('/assets/img/evs-logo.webp') center / contain no-repeat;
}

.brand-person {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .17);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}

.main-nav a,
.main-nav .nav-write {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dfe7ef;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a.is-active,
.main-nav .nav-write:hover,
.main-nav .nav-write:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle > span[aria-hidden="true"] {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

main {
  width: 100%;
  flex: 1 0 auto;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #cbd6de;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}


.button:hover {
  border-color: #aebdc8;
  background: #f8fafb;
}

.button-primary {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--dark-2);
  background: var(--dark-2);
}

.button-quiet {
  background: var(--surface-muted);
}

.text-link {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-card,
.home-info-card,
.project-card,
.home-blog-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hero {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.hero-inner {
  padding-top: 58px;
  padding-bottom: 60px;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 4.4vw, 54px);
  line-height: 1.07;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 960px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-intro {
  margin-top: 40px;
  margin-bottom: 24px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-intro--narrow {
  max-width: var(--content);
}

.page-intro h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.page-intro > p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.page-intro--privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.page-intro--privacy .page-intro-copy {
  min-width: 0;
}

.page-intro--privacy .page-intro-copy > p,
.page-intro--privacy .page-intro-copy > .rich-text {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.privacy-updated {
  position: relative;
  min-width: 220px;
  padding-left: 29px;
  transform: translateX(20px);
}

.privacy-updated::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 54px;
  transform: translateY(-50%);
  background: var(--line);
}

.privacy-updated span {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.privacy-updated time {
  display: block;
  margin-top: 3px;
  color: #344653;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-intro--projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: center;
}

.page-intro-copy {
  min-width: 0;
}

.page-intro--projects .page-intro-copy > p,
.page-intro--projects .page-intro-copy > .rich-text {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.projects-summary {
  width: 360px;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.projects-summary__row {
  min-width: 0;
  display: block;
  padding: 4px 16px;
  border-left: 1px solid var(--line);
}

.projects-summary__row:first-child {
  padding-left: 0;
  border-left: 0;
}

.projects-summary__row:last-child {
  padding-right: 0;
}

.projects-summary__row strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  text-align: left;
}

.projects-summary__row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.featured-section {
  padding: 58px 0 66px;
}


.home-info-section {
  padding: 60px 0 70px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.featured-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-color: #cfd9e1;
}

.project-card-media {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border-bottom: 1px solid #c7d3dc;
  background: #e5edf2;
}

.project-card-cover {
  display: block;
  color: inherit;
  text-decoration: none;
}

.screenshot-surface {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #e8eef2;
}

.screenshot-surface img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.project-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.image-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(13, 23, 35, .94);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.project-card-body {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--muted-2);
  font-size: 12px;
}

.project-meta span + span::before {
  content: "·";
  margin-right: 9px;
  color: #aab6c0;
}

.project-card h2,
.project-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.project-card h2 a,
.project-card h3 a {
  text-decoration: none;
}

.project-card h2 a:hover,
.project-card h3 a:hover {
  color: var(--blue-dark);
}

.project-card-subtitle {
  margin: 9px 0 8px;
  color: #253644;
  font-size: 16px;
  line-height: 1.45;
}

.project-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.project-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
}


.home-info-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 20px;
}

.home-info-grid--single {
  grid-template-columns: 1fr;
}

.home-info-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.home-info-card:first-child .text-link {
  align-self: flex-start;
  margin-top: 16px;
}

.home-info-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.home-info-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-grid section {
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(95, 111, 125, .16);
  border-radius: 8px;
  background: rgba(247, 250, 252, .55);
}


.work-grid h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.35;
}

.work-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}


.catalog {
  padding-bottom: 72px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filters a {
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.filters a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}

.filters a.is-active {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.filters-mobile {
  position: relative;
  z-index: 20;
  display: none;
  margin-bottom: 24px;
}

.filters-mobile summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.filters-mobile summary::-webkit-details-marker {
  display: none;
}

.filters-mobile__chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .14s ease;
}

.filters-mobile[open] .filters-mobile__chevron {
  transform: translateY(2px) rotate(225deg);
}

.filters-mobile__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(13, 23, 35, .12);
}

.filters-mobile__menu a {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.filters-mobile__menu a:last-child {
  border-bottom: 0;
}

.filters-mobile__menu a.is-active {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
}

.filters-mobile__menu a:active {
  background: #eef3f6;
}

@media (max-width: 620px) {
  .filters {
    display: none;
  }

  .filters-mobile {
    display: block;
  }
}

.empty-state {
  padding: 30px;
}

.empty-state h2 {
  margin-top: 0;
}

.page-intro--about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
}

.page-intro--about .page-intro-copy {
  min-width: 0;
}

.page-intro--about .page-intro-copy > p,
.page-intro--about .page-intro-copy > .rich-text {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.about-intro-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-right: 12px;
  color: #aebfcb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .085em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.about-intro-art span + span::before {
  content: "·";
  margin-right: 9px;
  color: #c7d4dd;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}

.about-story,
.about-work {
  padding: 28px;
}

.about-lead {
  margin: 0 0 26px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
}

.about-narrative p {
  margin: 0 0 17px;
  color: #364754;
  font-size: 15px;
  line-height: 1.66;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-work h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.about-work-grid {
  display: grid;
  gap: 20px;
}

.about-work-grid section {
  min-width: 0;
}

.about-work-grid h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.35;
}

.about-work-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 72px;
}

.policy-grid .content-card {
  padding: 26px;
}

.policy-grid h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.policy-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.policy-grid p:last-child {
  margin-bottom: 0;
}

.policy-wide {
  grid-column: 1 / -1;
}

.project-page {
  padding-top: 40px;
  padding-bottom: 76px;
}

.project-header-card {
  overflow: hidden;
  padding: 28px;
}

.project-header-card--github {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 40px;
  align-items: center;
}

.project-header-main {
  min-width: 0;
}

.project-github-summary {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: .9fr 1.25fr .85fr;
  align-items: center;
  padding-left: 26px;
}

.project-github-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 46px;
  transform: translateY(-50%);
  background: var(--line);
}

.project-github-summary__item {
  position: relative;
  min-width: 0;
  padding: 3px 12px;
}

.project-github-summary__item:first-child {
  padding-left: 0;
}

.project-github-summary__item:last-child {
  padding-right: 0;
}

.project-github-summary__item + .project-github-summary__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 46px;
  transform: translateY(-50%);
  background: var(--line);
}

.project-github-summary__item strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-github-summary__item:nth-child(2) strong {
  font-size: 18px;
  letter-spacing: -.015em;
}

.project-github-summary__item span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.project-header-card h1 {
  max-width: 920px;
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.project-lead {
  max-width: 860px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-links form {
  margin: 0;
}

.project-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 30px;
  align-items: stretch;
  margin-top: 22px;
  padding: 28px;
  overflow: hidden;
}

.project-overview-card--text-only,
.project-overview-card--media-only {
  grid-template-columns: 1fr;
}

.project-overview-card--media-only .project-detail-media {
  width: min(100%, 760px);
  justify-self: center;
}

.project-overview-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.project-overview-section h2,
.project-story-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.project-overview-text p,
.project-story-text p {
  margin: 0;
  color: #344653;
  font-size: 15px;
  line-height: 1.68;
}

.project-overview-text p + p,
.project-story-text p + p {
  margin-top: 16px;
}

.project-tech {
  margin-top: auto;
  padding-top: 24px;
}

.project-tech-list {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.project-tech-list > div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.project-tech-list dt,
.project-tech-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.project-tech-list dt {
  color: var(--muted);
}

.project-tech-list dd {
  color: #1b2a36;
  text-align: right;
  overflow-wrap: anywhere;
}

.project-tech-stack {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.project-detail-media {
  min-width: 0;
  align-self: start;
  padding: 10px;
  border: 1px solid #d0dae1;
  border-radius: 6px;
  background: #e6edf2;
}

.project-gallery-main,
.project-gallery-thumb {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.project-gallery-main {
  display: block;
  text-align: left;
  cursor: zoom-in;
}

.project-gallery-main-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--media-line);
  border-radius: 3px;
  background: transparent;
}

.project-gallery-main-frame img {
  width: 100%;
  height: auto;
  margin: 0;
}

.project-gallery-main small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.project-gallery-source {
  display: none;
}

.project-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: 10px;
}

.project-gallery-thumb {
  border-radius: 3px;
  cursor: pointer;
}

.project-gallery-thumb-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #c4d0d9;
  border-radius: 3px;
  background: transparent;
}

.project-gallery-thumb-frame img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.project-gallery-thumb:hover .project-gallery-thumb-frame {
  border-color: #8fa5b6;
}

.project-gallery-thumb.is-active .project-gallery-thumb-frame {
  border-color: #5f83a8;
  box-shadow: 0 0 0 1px #5f83a8 inset;
}

.project-story-card {
  margin-top: 22px;
  padding: 28px;
  overflow: hidden;
}

.error-content {
  position: relative;
  min-height: 228px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 70px;
  margin-bottom: 70px;
  padding: 34px clamp(250px, 28vw, 390px) 34px 34px;
}

.error-content h1 {
  margin-top: 0;
}

.error-content__copy {
  position: relative;
  z-index: 1;
}

.error-code {
  position: absolute;
  top: calc(50% - 5px);
  right: 48px;
  bottom: auto;
  display: block;
  transform: translateY(-50%);
  color: rgba(13, 23, 35, .055);
  font-size: clamp(124px, 15vw, 190px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.065em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.site-footer {
  flex: 0 0 auto;
  border-top: 1px solid #223040;
  background: var(--dark);
  color: #dfe7ef;
}

.footer-main {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.footer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}


.footer-logo {
  display: block;
  width: 94px;
  height: 32px;
  background: url('/assets/img/evs-logo.webp') center / contain no-repeat;
}

.footer-policy {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: #dfe7ef;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.footer-policy:hover,
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.footer-links a {
  color: #dfe7ef;
  font-size: 13px;
  text-decoration: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, .76);
}

.contact-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 30px;
  border: 1px solid #d6e0e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  outline: none;
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover {
  background: #edf2f5;
}

.contact-modal__header {
  margin-bottom: 22px;
  padding-right: 44px;
}

.contact-modal__header h2 {
  margin: 0 0 7px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.contact-modal__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-modal__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.contact-modal__header + .contact-modal__row {
  margin-top: 0;
}

.contact-modal__row > .contact-option:only-child {
  grid-column: 1 / -1;
}

.contact-option {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  text-decoration: none;
}

.contact-option:hover {
  border-color: var(--line-strong);
  background: #f0f4f7;
}

.contact-option__icon {
  display: block;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-option__icon img {
  width: 100%;
  height: 100%;
}

.contact-option strong,
.contact-option small {
  display: block;
  min-width: 0;
}

.contact-option strong {
  font-size: 14px;
}

.contact-option small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-option__external {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 16, .92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  outline: none;
}

.lightbox-figure {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: min(92vw, 1460px);
  max-height: calc(100vh - 140px);
  isolation: isolate;
}

.lightbox-image {
  position: relative;
  z-index: 2;
  display: block;
  max-width: min(92vw, 1380px);
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, .42),
    0 6px 18px rgba(0, 0, 0, .28);
  cursor: pointer;
}

.lightbox-meta {
  max-width: min(92vw, 860px);
  min-height: 36px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(184, 199, 212, .18);
  border-radius: 999px;
  background: rgba(24, 37, 52, .92);
  color: #e7eef5;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.lightbox-meta[hidden] {
  display: none;
}

.lightbox-caption:empty {
  display: none;
}

.lightbox-counter {
  color: #bcc9d3;
  white-space: nowrap;
}

.lightbox-caption:not(:empty) + .lightbox-counter::before {
  content: "·";
  margin-right: 8px;
  color: #8fa0af;
}

@media (max-width: 900px) {
  .featured-grid,
  .catalog-grid {
    gap: 18px;
  }

  .project-overview-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
    gap: 22px;
  }

  .page-intro--about {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-intro-art {
    display: none;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .home-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    min-height: 60px;
    align-items: center;
  }

  .brand-mark {
    width: 92px;
    height: 31px;
  }

  .brand-person {
    padding-left: 14px;
    font-size: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    border-top: 1px solid #223040;
    border-bottom: 1px solid #223040;
    background: var(--dark);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a,
  .main-nav .nav-write {
    min-height: 50px;
    justify-content: flex-start;
    padding: 0 var(--gutter);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }

  .page-intro {
    margin-top: 28px;
    margin-bottom: 18px;
    padding: 22px;
  }

  .page-intro--projects {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-intro--projects .page-intro-copy > p,
.page-intro--projects .page-intro-copy > .rich-text {
    max-width: 780px;
  }

  .projects-summary {
    width: 100%;
    align-self: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 17px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .projects-summary__row {
    padding: 0 12px;
    border-left: 1px solid var(--line);
  }

  .projects-summary__row:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .projects-summary__row strong {
    margin-bottom: 3px;
    font-size: 22px;
  }

  .projects-summary__row span {
    font-size: 11px;
  }

  .page-intro h1 {
    font-size: 30px;
  }

  .page-intro--privacy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .privacy-updated {
    min-width: 0;
    padding-top: 16px;
    padding-left: 0;
  }

  .privacy-updated::before {
    left: 0;
    top: 0;
    width: 54px;
    height: 1px;
    transform: none;
  }

  .privacy-updated time {
    font-size: 19px;
  }

  .featured-section,
  .home-blog-section,
  .home-info-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .section-head {
    align-items: flex-end;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .featured-grid,
  .catalog-grid,
  .home-blog-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .project-card-body {
    padding: 18px 18px 20px;
  }

  .project-card h2,
  .project-card h3 {
    font-size: 23px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .policy-wide {
    grid-column: auto;
  }

  .project-page {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .project-header-card,
  .project-overview-card,
  .project-story-card,
  .about-story,
  .about-work,
  .policy-grid .content-card,
  .home-info-card {
    padding: 22px;
  }

  .project-header-card h1 {
    font-size: 30px;
  }

  .project-header-card--github {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-github-summary {
    display: none;
  }

  .project-lead {
    font-size: 17px;
  }

  .project-overview-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-tech {
    margin-top: 22px;
    padding-top: 0;
  }

  .project-detail-media {
    padding: 9px;
  }

  .project-gallery-thumbs {
    gap: 6px;
  }

  .footer-main {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .contact-modal__row {
    grid-template-columns: 1fr;
  }

  .contact-modal__row > .contact-option:only-child {
    grid-column: auto;
  }


}

@media (max-width: 520px) {
  .error-content {
    min-height: 220px;
    padding: 28px;
  }

  .error-code {
    top: 28px;
    right: 28px;
    bottom: 28px;
    transform: none;
    color: rgba(13, 23, 35, .04);
    font-size: 88px;
  }


  .brand-person {
    display: none;
  }

  .hero-actions,
  .project-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .page-intro {
    padding: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-card-body {
    padding: 17px 17px 19px;
  }

  .project-meta {
    margin-bottom: 7px;
  }

  .project-tech-list > div {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
  }

  .project-tech-list dt,
  .project-tech-list dd {
    font-size: 12.5px;
  }

  .project-detail-media {
    padding: 8px;
  }

  .project-gallery-thumbs {
    gap: 5px;
    margin-top: 8px;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .footer-policy {
    padding-left: 0;
    border-left: 0;
    white-space: normal;
  }

  .contact-modal {
    padding: 14px;
  }

  .contact-modal__dialog {
    padding: 24px 18px 18px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-dialog {
    width: 100%;
    height: 100%;
  }

  .lightbox-figure {
    gap: 12px;
  }

  .lightbox-stage {
    max-width: 100%;
    max-height: calc(100vh - 126px);
  }

  .lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 156px);
  }

  .lightbox-meta {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }


}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Markdown / rich text */
.rich-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 14px; }

.rich-text h2 {
  margin: 30px 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.rich-text h3 {
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.35;
}

.rich-text h4 {
  margin: 22px 0 10px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.rich-text ul,
.rich-text ol {
  margin: 14px 0 18px;
  padding-left: 26px;
}

.rich-text li {
  margin: 5px 0;
  line-height: 1.65;
}

.rich-text li::marker {
  color: #667d8f;
}

.rich-text strong { font-weight: 700; }
.rich-text em { font-style: italic; }
.rich-text a {
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.rich-text code {
  padding: 2px 5px;
  border: 1px solid #d7e0e6;
  border-radius: 4px;
  background: #f4f7f9;
  color: #253746;
  font: 500 .92em/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.rich-text pre {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid #253544;
  border-radius: 6px;
  background: #101b27;
  color: #eef5f9;
}
.rich-text pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  white-space: pre;
}
.rich-text blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid #7d96aa;
  background: #f5f8fa;
  color: #40525f;
}
.rich-text blockquote > :last-child { margin-bottom: 0; }

/* Blog on home */
.home-blog-section {
  padding: 56px 0 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-blog-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface-muted);
}
.home-blog-card time,
.blog-card time,
.blog-post__header time {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}
.home-blog-card h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}
.home-blog-card h3 a { text-decoration: none; }
.home-blog-card h3 a:hover { color: var(--blue-dark); }
.home-blog-card__excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.home-blog-card__excerpt p { margin-bottom: 0; }
.home-blog-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
}

/* Blog listing */
.blog-intro__text {
  max-width: 800px;
  color: var(--muted);
  font-size: 14px;
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  padding-bottom: 72px;
}
.blog-feed { display: grid; gap: 16px; }
.blog-card { padding: 26px 28px; }
.blog-card h2 {
  margin: 7px 0 10px;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { color: var(--blue-dark); }
.blog-card__excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.blog-card__link {
  display: inline-flex;
  margin-top: 14px;
}
.blog-popular {
  position: sticky;
  top: 84px;
  padding: 22px;
}
.blog-popular h2 {
  margin: 0 0 16px;
  font-size: 19px;
  line-height: 1.3;
}
.blog-popular ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: popular;
}
.blog-popular li {
  position: relative;
  padding: 13px 0 13px 31px;
  border-top: 1px solid var(--line);
  counter-increment: popular;
}
.blog-popular li:first-child { border-top: 0; padding-top: 0; }
.blog-popular li::before {
  content: counter(popular, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  color: #9aabb7;
  font-size: 11px;
  font-weight: 700;
}
.blog-popular li:first-child::before { top: 0; }
.blog-popular a {
  display: block;
  color: #273a49;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}
.blog-popular a:hover { color: var(--blue-dark); }
.blog-popular li span {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11px;
}
.blog-popular > p { margin: 0; color: var(--muted); font-size: 13px; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 8px;
}
.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #405362;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover,
.pagination a.is-active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

/* Blog article */
.blog-post {
  display: grid;
  gap: 18px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.blog-post__header,
.blog-post__body,
.blog-post__gallery { padding: 28px 30px; }
.blog-post__header .back-link { margin-bottom: 18px; }
.blog-post__header h1 {
  max-width: 900px;
  margin: 8px 0 14px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.blog-post__lead {
  max-width: 900px;
  color: #4b5d6a;
  font-size: 17px;
  line-height: 1.7;
}
.blog-post__body {
  color: #2f414f;
  font-size: 16px;
  line-height: 1.75;
}
.blog-post__body p { margin-bottom: 18px; }
.blog-post__gallery .section-head { margin-bottom: 18px; }
.blog-post__gallery .section-head h2 { font-size: 24px; }
.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.blog-gallery-item {
  display: grid;
  gap: 7px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef3f6;
  text-align: left;
  cursor: pointer;
}
.blog-gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #e4ebef;
}
.blog-gallery-item span {
  padding: 0 10px 9px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-popular { position: static; }
  .blog-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .home-blog-section { padding-top: 42px; padding-bottom: 48px; }
  .home-blog-grid { grid-template-columns: 1fr; }
  .blog-post { padding-top: 24px; padding-bottom: 52px; }
  .blog-post__header,
  .blog-post__body,
  .blog-post__gallery { padding: 22px; }
}

@media (max-width: 520px) {
  .blog-card { padding: 21px; }
  .blog-post__header h1 { font-size: 32px; }
  .blog-gallery-grid { grid-template-columns: 1fr; }
}

.home-info-card > .rich-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-work-grid .rich-text { color: var(--muted); font-size: 14px; line-height: 1.58; }
