:root {
  --ink: #121214;
  --muted: #6d6d72;
  --faint: #8e8e93;
  --paper: #f6f6f7;
  --panel: #efeff1;
  --line: rgba(18, 18, 20, 0.08);
  --green: #009e05;
  --green-deep: #009e05;
  --hero: #0c0c0c;
  --header: rgba(255, 255, 255, 0.78);
  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1840px;
  --font: "Google Sans Flex", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

button, a { font: inherit; }

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--green);
  color: #041407;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.micro {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad) 0;
}

.brand-block, .lang-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.lang-block { align-items: flex-end; text-align: right; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--green); }

.site-nav a.nav-portfolio::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 2px;
  vertical-align: top;
  letter-spacing: 0;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23000' d='M7 5h16v4.8H7zm12-.2h4v16.2h-4zM6 20l4 3 12-12-4-3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23000' d='M7 5h16v4.8H7zm12-.2h4v16.2h-4zM6 20l4 3 12-12-4-3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.menu-toggle { display: none; }

.lang-switch { display: flex; align-items: center; gap: 2px; }

.lang-switch button {
  min-width: 28px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.lang-switch button.is-active,
.lang-switch button:hover {
  background: none;
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hero);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 128px var(--pad) 96px;
  overflow: hidden;
}

.hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-layers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.layer-clear {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero.is-lit .layer-clear { opacity: 1; }

.viewfinder {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: min(460px, 70vw);
  margin: 0;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.hero.is-tracking .viewfinder { opacity: 1; }

.hero.is-tracking { cursor: none; }

.frame {
  position: relative;
  aspect-ratio: 1;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid currentColor;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.hero.is-lit .frame { color: var(--green); }

.hud {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  color: #fff;
}

.hud svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
  shape-rendering: crispEdges;
}

.hud .icon-scan { transition: color 0.35s ease; }

.hero.is-lit .hud .icon-scan { color: var(--green); }

.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: inherit;
  transition: width 0.45s ease;
}

.hero.is-lit .reticle { width: 29.5%; }

.reticle .c {
  position: absolute;
  width: 32%;
  height: 32%;
  border: 1.5px solid currentColor;
}

.reticle .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.reticle .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.reticle .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.reticle .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.reticle .cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.frame figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 14px;
  margin: 0;
}

.frame figcaption .cap {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.hero.is-lit .cap { color: var(--green); }

.cap.is-typing::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 0.9em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -1px;
}

.scroll-down {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--green);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
}

.scroll-down svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  animation: bob 1.6s ease-in-out infinite;
}

.scroll-down:hover { color: var(--green); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.sheet { background: var(--paper); }

#about,
#about .sheet-inner {
  background: #0d0d0d;
  color: #fff;
}

#about .index { color: rgba(255, 255, 255, 0.55); }

#about .lede { color: rgba(255, 255, 255, 0.72); }

.sheet-experience,
.sheet-experience .sheet-inner { background: #f5f5f7; }

#contact { border-top: 1px solid #d9d9d9; }

.sheet-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 9vw, 56px) var(--pad);
}

.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d9d9d9;
}

#about .section-kicker { border-bottom-color: #2d2d2d; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--green);
  display: block;
}

.index {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.split-start { align-items: start; }

h1, h2 {
  margin: 0.12em 0 0;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-size: clamp(42px, 5.1vw, 68px);
}

#about h1 { font-size: clamp(38px, 4.6vw, 60px); }

.lede {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.55;
  color: #3c3c40;
}

.jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.job {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.job-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
}

.job-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.job-head time {
  color: #0D0D0D;
  font-size: 11px;
  font-weight: 300;
  white-space: nowrap;
}

.job p {
  margin: 10px 0 0;
  max-width: 62ch;
  color: #898989;
  font-size: 13px;
  line-height: 1.55;
}

.job .highlight {
  color: var(--green);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tags span {
  display: inline-block;
  background: #ededed;
  color: #2a2a2e;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 8px 12px;
}

.contacts { display: flex; flex-direction: column; }

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-row:last-child { border-bottom: 0; }

.contact-row strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.contact-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.contact-row svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  stroke: none;
  transition: transform 0.2s ease;
}

.contact-row:hover svg { transform: translate(3px, -3px); }

.contact-row:hover strong,
.contact-row:hover svg { color: var(--green); }

.site-footer { background: var(--paper); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 28px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }

  .menu-toggle {
    display: inline-flex;
    align-self: flex-start;
    color: #fff;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 12px;
  }

  .site-nav.is-open { display: flex; }

  .brand-block { flex: 1; }

  .split, .split-start { grid-template-columns: 1fr; }

  .lede { justify-self: start; }

  .viewfinder { width: min(300px, 78vw); }
}

@media (hover: none), (pointer: coarse), (max-width: 1199px) {
  .viewfinder {
    position: relative;
    opacity: 1;
    width: min(340px, 86vw);
    transform: none;
  }

  .hero.is-tracking { cursor: auto; }
}

@media (max-width: 720px) {
  .viewfinder { width: min(300px, 78vw); }
}

@media (max-width: 560px) {
  .lang-block .micro { display: none; }

  .site-header { padding-top: 16px; }

  h1, h2 { font-size: clamp(36px, 11vw, 48px); }

  .job-head { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-down svg { animation: none; }
  .layer-clear,
  .frame,
  .reticle,
  .frame figcaption span,
  .hud .icon-scan,
  .contact-row svg { transition: none; }
}
