/* Layout and motion tokens shared by the portfolio and article pages. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Primitives, semantic roles, then component roles. */
  --charcoal-900: #191c19;
  --ivory-50: #f0f0e9;
  --sage-200: #c4d6a4;
  --ink: var(--charcoal-900);
  --paper: var(--ivory-50);
  --soft: #e3e5dc;
  --surface: #252a25;
  --text: #f0f0e9;
  --secondary: #b6bcb3;
  --accent: var(--sage-200);
  --page-ground: var(--ink);
  --page-text: var(--text);
  --button-background: var(--accent);
  --button-foreground: var(--ink);
  --muted: #4c5348;
  --image-ground: #d9dfce;
  --gutter: clamp(22px, 4.2vw, 80px);
  --space: clamp(88px, 10vw, 168px);
  --small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --body: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
  --lead: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  --head: clamp(2.75rem, 1rem + 4.2vw, 5.75rem);
  --display: clamp(4rem, 16.7vw, 19rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height, 88px) + 24px);
}
body {
  margin: 0;
  background: var(--page-ground);
  color: var(--page-text);
  font:
    var(--body) / 1.6 "Schibsted Grotesk",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open {
  overflow: hidden;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 500;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
h2 {
  font-size: var(--head);
  line-height: 1.04;
}
h3 {
  font-size: clamp(1.65rem, 1.1rem + 1.4vw, 2.75rem);
  line-height: 1.13;
}
h4 {
  font-size: var(--body);
  letter-spacing: -0.02em;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}
button,
input,
textarea {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
  color: inherit;
}
a,
button,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 6px;
}
.frame {
  padding-inline: var(--gutter);
  max-width: 1920px;
  margin-inline: auto;
}
.section {
  padding-block: var(--space);
}
.light {
  background: var(--paper);
  color: var(--ink);
  --secondary: var(--muted);
}
.soft-light {
  background: var(--soft);
  color: var(--ink);
  --secondary: var(--muted);
}
.secondary {
  color: var(--secondary);
  font-size: var(--small);
}
.lead {
  font-size: var(--lead);
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 100;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--text);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--gutter);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}
.site-header::before {
  background: rgb(240 240 233 / 12%);
}
.site-header::after {
  background: var(--accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}
.brand {
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding-block: 10px;
}
.desktop-nav {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  margin-left: auto;
  font-size: var(--small);
}
.desktop-nav a,
.header-actions a {
  padding-block: 12px;
}
.desktop-nav a {
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current]::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: var(--small);
}
.contact-link {
  color: var(--accent);
}
.contact-link span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms;
}
.contact-link:hover span {
  transform: translate(3px, -3px);
}
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 12px 0 12px 12px;
  font-size: var(--small);
}
.menu-symbol {
  display: grid;
  gap: 5px;
  width: 22px;
}
.menu-symbol i {
  height: 2px;
  background: currentColor;
  transition: transform 180ms;
}
.menu-toggle:hover .menu-symbol i:last-child {
  transform: translateX(-4px);
}
.hero {
  padding-top: 22px;
}
.hero-name {
  font-size: var(--display);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.075em;
  white-space: nowrap;
  display: flex;
  justify-content: space-between;
  margin-left: -0.012em;
  margin-right: 0.015em;
  padding-bottom: 30px;
  overflow: visible;
}
.hero-name > span {
  /* Negative tracking leaves the final glyph outside its advance width. */
  padding-inline-end: 0.08em;
}
.hero-name span {
  display: inline-block;
}
.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8%;
  align-items: start;
}
.hero-intro {
  padding-top: clamp(28px, 3vw, 60px);
  max-width: 490px;
}
.hero-profession {
  font-size: clamp(1.75rem, 2.75vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-description {
  max-width: 360px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
  min-height: 56px;
  padding: 15px 25px;
  border-radius: 0;
  font-weight: 500;
  line-height: 1.4;
  transition:
    background 180ms,
    transform 180ms var(--ease);
}
.button-accent {
  background: var(--button-background);
  color: var(--button-foreground);
}
.button:hover {
  background: var(--paper);
  color: var(--ink);
}
.button:active {
  transform: scale(0.97);
}
.button span {
  transition: transform 180ms;
}
.button:hover span {
  transform: translate(3px, 3px);
}
.hero-intro > .button {
  margin-top: 32px;
}
.hero-socials {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: var(--small);
}
.text-link,
.hero-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  transition: text-underline-offset 180ms;
}
.text-link:hover,
.hero-socials a:hover {
  text-underline-offset: 0.45em;
}
.hero-location {
  margin-top: 54px;
  font-size: var(--small);
  color: var(--secondary);
}
.hero-portrait {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.hero-portrait picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.07;
}
.hero-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: none;
}
.hero-portrait figcaption {
  padding: 10px 16px;
}
figcaption {
  font-size: var(--small);
  color: var(--secondary);
  padding-top: 12px;
}
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 24px;
  color: var(--secondary);
  font-size: var(--small);
}
.down-link {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  font-size: 28px;
  color: var(--paper);
  transition: transform 180ms;
}
.down-link:hover {
  transform: translateY(5px);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8%;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-heading h2 {
  max-width: 15ch;
}
.section-intro {
  max-width: 430px;
  justify-self: end;
}
.about {
  padding-top: 88px;
}
.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 15%;
  align-items: start;
}
.about-photo {
  margin-top: 8px;
}
.about-photo-frame {
  overflow: clip;
}
.about-photo img {
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-photo figcaption {
  padding-top: 26px;
}
.about-copy > p {
  margin-bottom: 26px;
}
.about-copy > .lead {
  margin-bottom: 32px;
}
details {
  min-width: 0;
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding-block: 14px;
  list-style: none;
  font-size: var(--small);
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: transform 240ms var(--ease);
}
details[open] > summary > span {
  transform: rotate(45deg);
}
summary:hover {
  color: var(--accent);
}
.light summary:hover,
.soft-light summary:hover {
  color: var(--ink);
  text-decoration: underline;
}
.life-gallery {
  margin-top: 24px;
  background: var(--surface);
  padding-inline: 20px;
}
.life-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 20px;
}
.life-photos img {
  aspect-ratio: 3/4;
  object-fit: cover;
}
.life-photos img:first-child {
  grid-column: 1/-1;
  aspect-ratio: 3/2;
}
.scale-proof {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr;
  gap: 40px;
  margin-top: 100px;
}
.proof-number {
  font-size: clamp(3.5rem, 7.5vw, 8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-bottom: 14px;
}
.proof-number span {
  font-size: var(--body);
  letter-spacing: -0.025em;
  margin-left: 12px;
}
.scale-proof > div > p:last-child {
  font-size: var(--small);
  color: var(--secondary);
}
.work .section-heading h2 {
  max-width: none;
}
.project {
  margin-bottom: 100px;
}
.project-media {
  background: var(--image-ground);
  padding: clamp(20px, 5vw, 80px);
  overflow: hidden;
}
.cognify-media {
  display: grid;
  place-items: center;
}
.cognify-media,
.cryptme-composition,
.role-backdrop {
  position: relative;
  isolation: isolate;
}
.cognify-media::before,
.cryptme-composition::before,
.role-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: center / cover no-repeat;
  filter: grayscale(1);
  pointer-events: none;
}
.cognify-media::before {
  background-image: url("../images/Freelance Background.jpg");
  opacity: 0.18;
}
.cryptme-composition::before {
  background-image: url("../images/a1.jpg");
  opacity: 0.1;
}
.role-backdrop {
  padding: 28px;
  background: var(--surface);
}
.role-backdrop::before {
  opacity: 0.12;
}
.role-backdrop-1::before {
  background-image: url("../images/Freelance Background.jpg");
}
.role-backdrop-2::before {
  background-image: url("../images/e1.jpg");
}
.role-backdrop-3::before {
  background-image: url("../images/a1.jpg");
}
.role-backdrop-4::before {
  background-image: url("../images/ulak.jpg");
}
.cognify-media > img {
  aspect-ratio: 1908/908;
  object-fit: contain;
  background: var(--ink);
  transition: transform 700ms var(--ease);
}
.cognify-media:hover > img {
  transform: scale(1.015);
}
.shot-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.shot-controls button {
  background: transparent;
  color: var(--ink);
  font-size: var(--small);
  padding: 12px 18px;
  min-height: 44px;
  transition:
    background 180ms,
    color 180ms;
}
.shot-controls button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.shot-controls button:hover {
  background: var(--paper);
}
.shot-controls button[aria-pressed="true"]:hover {
  background: var(--surface);
}
.project-caption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  padding-block: 32px 20px;
}
.project-caption h3 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  margin-bottom: 8px;
  letter-spacing: -0.06em;
}
.project-caption .secondary {
  font-size: var(--body);
}
.project-tech {
  font-size: var(--small);
  color: var(--secondary);
  margin-top: 18px;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 12px;
}
.project-details {
  background: var(--soft);
  padding-inline: 24px;
}
.project-details > summary {
  font-size: var(--body);
}
.project-details .project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 6%;
  max-width: none;
  padding-block: 24px 36px;
}
.overview-part {
  min-width: 0;
}
.overview-part h4 {
  font-size: var(--lead);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.035em;
}
.overview-part p {
  max-width: none;
}
.overview-flow {
  font-size: var(--small);
  font-weight: 600;
}
.overview-stack {
  grid-column: 1 / -1;
}
.project-overview > .overview-stack {
  margin-top: 0;
}
.overview-demo figure {
  margin-block: 8px 18px;
}
.disclosure-content {
  display: flow-root;
}
details:not([open]) > .disclosure-content {
  display: none;
}
.disclosure-body {
  padding: 8px 0 30px;
  max-width: 900px;
  overflow-wrap: anywhere;
}
.disclosure-body p + p,
.disclosure-body p + ul,
.disclosure-body ul + p {
  margin-top: 18px;
}
.disclosure-body ul {
  padding-left: 1.2em;
  margin-block: 18px;
}
.disclosure-body li {
  padding-left: 5px;
  margin-block: 10px;
}
.technology-list {
  font-size: var(--small);
  color: var(--secondary);
}
.project-cryptme {
  margin-left: 12%;
  margin-top: 110px;
}
.cryptme-composition {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 7%;
  align-items: center;
  background: var(--soft);
  padding: clamp(26px, 4vw, 64px);
}
.cryptme-copy h3 {
  font-size: clamp(2.75rem, 4vw, 4.5rem);
  margin-bottom: 22px;
}
.cryptme-copy > .lead {
  margin-bottom: 20px;
}
.cryptme-copy > .text-link {
  margin-top: 14px;
}
.cryptme-media {
  background: var(--image-ground);
  padding: 20px;
}
.cryptme-media img {
  aspect-ratio: 1.25;
  object-fit: contain;
  background: white;
}
.cryptme-server {
  max-width: 650px;
}
.cryptme-demo {
  max-width: 360px;
  max-height: 560px;
  object-fit: contain;
  object-position: left;
}
.demo-toggle {
  background: transparent;
  padding: 8px 0;
  margin-top: 20px;
}
.more-work {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.project-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 8%;
  background: var(--soft);
  padding: 32px;
  transition:
    background 200ms,
    transform 200ms var(--ease);
}
.project-row h3 {
  font-size: var(--lead);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.project-row span {
  font-size: var(--small);
  text-decoration: underline;
  white-space: nowrap;
}
.project-row:hover {
  background: var(--image-ground);
  transform: translateX(4px);
}
.experience-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 12%;
}
.experience-intro {
  position: sticky;
  top: 40px;
  align-self: start;
}
.experience-intro > p {
  max-width: 330px;
  margin-block: 32px 16px;
}
.role-row {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 30px;
  margin-bottom: 56px;
}
.role-row:last-child {
  margin-bottom: 0;
}
.role-date {
  font-size: var(--small);
  color: var(--secondary);
  padding-top: 6px;
}
.role-title {
  margin-block: 10px 18px;
  font-size: var(--small);
  color: var(--secondary);
}
.role-body > h3 a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.role-body > h3 a:hover {
  color: var(--accent);
}
.role-body details {
  margin-top: 16px;
  background: var(--surface);
  padding-inline: 18px;
}
.role-body .disclosure-body {
  font-size: var(--small);
}
.role-body .technology-list {
  color: var(--text);
}
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px 12%;
}
.capability h3 {
  margin-bottom: 20px;
  font-size: var(--lead);
  letter-spacing: -0.035em;
}
.capability > p {
  max-width: 480px;
}
.capability .secondary {
  margin-top: 16px;
}
.all-technologies {
  margin-top: 64px;
  background: var(--soft);
  padding-inline: 24px;
}
.all-technologies > summary {
  font-size: var(--body);
}
.technology-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 8%;
  padding-block: 20px 32px;
}
.technology-columns h4 {
  margin-bottom: 8px;
  font-weight: 600;
}
.technology-columns p {
  font-size: var(--small);
}
.languages {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: var(--small);
}
.languages strong {
  font-weight: 500;
  margin-right: 8px;
}
.education-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: start;
}
.education-photo {
  position: sticky;
  top: 40px;
}
.education-photo img {
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(100%);
}
.education-row + .education-row {
  margin-top: 52px;
}
.education-row h3 {
  font-size: var(--lead);
  letter-spacing: -0.035em;
  margin-block: 10px 16px;
}
.education-row h3 a:hover {
  text-decoration: underline;
}
.education-row > p + .secondary {
  margin-top: 8px;
}
.education-row details {
  margin-top: 12px;
}
.education-row .disclosure-body {
  font-size: var(--small);
}
.research {
  background: var(--accent);
  color: var(--ink);
  --secondary: var(--muted);
}
.research-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
  align-items: start;
}
.research-media {
  padding-top: 8px;
}
.research-media img {
  aspect-ratio: 1.2;
  object-fit: cover;
  background: var(--ink);
}
.research-copy h3 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.research-copy > .lead {
  margin-bottom: 24px;
}
.research-copy > p + .secondary {
  margin-top: 18px;
}
.research-links {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.research-copy details {
  margin-top: 20px;
}
.research-copy summary:hover {
  color: var(--ink);
  text-decoration: underline;
}
.research-copy .disclosure-body {
  font-size: var(--small);
}
.article-row {
  display: grid;
  grid-template-columns: 0.55fr 1.8fr auto;
  gap: 5%;
  align-items: center;
  padding: 30px 0;
  transition: transform 240ms var(--ease);
}
.article-row + .article-row {
  margin-top: 20px;
}
.article-row img {
  aspect-ratio: 1.25;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 350ms;
}
.article-row h3 {
  font-size: var(--lead);
  margin-block: 8px 12px;
  letter-spacing: -0.035em;
}
.article-row .article-description {
  font-size: var(--small);
  color: var(--secondary);
  margin-top: 8px;
}
.article-action {
  font-size: var(--small);
  text-decoration: underline;
}
.article-row:hover {
  transform: translateX(5px);
}
.article-row:hover img {
  filter: grayscale(0);
}
.writing-all {
  margin-top: 30px;
}
.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6%;
  margin-bottom: 64px;
}
.contact-heading h2 {
  font-size: clamp(2.6rem, 5.8vw, 7rem);
  max-width: 17ch;
  line-height: 1.06;
}
.contact-arrow {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  width: clamp(80px, 12vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: clamp(2.5rem, 6vw, 6rem);
  transition:
    transform 300ms var(--ease),
    background 180ms;
}
.contact-arrow:hover {
  transform: rotate(45deg);
  background: var(--paper);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
}
.contact-copy > .lead {
  max-width: 490px;
}
.contact-emails {
  display: grid;
  gap: 6px;
  margin-top: 32px;
}
.contact-emails a {
  display: flex;
  align-items: center;
  min-height: 44px;
  overflow-wrap: anywhere;
  width: fit-content;
}
.contact-emails a:hover {
  text-decoration: underline;
}
.copy-email {
  background: transparent;
  color: var(--secondary);
  padding: 0;
  font-size: var(--small);
  margin-top: 4px;
}
.contact-socials {
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: var(--small);
}
.contact-compose {
  align-self: start;
  background: var(--surface);
  padding: 8px 24px;
}
.contact-compose summary {
  font-size: var(--body);
}
.contact-compose form {
  padding-block: 16px 24px;
}
#form-help {
  font-size: var(--small);
  color: var(--secondary);
  margin-bottom: 20px;
}
.form-fields {
  display: grid;
  gap: 8px;
}
.form-fields label {
  font-size: var(--small);
  margin-top: 8px;
}
.form-fields input,
.form-fields textarea {
  background: var(--surface);
  border: 1px solid var(--secondary);
  color: var(--text);
  min-width: 0;
  width: 100%;
  padding: 12px;
  border-radius: 0;
  line-height: 1.5;
}
.form-fields textarea {
  resize: vertical;
}
.form-fields button {
  margin-top: 12px;
  justify-content: center;
}
#form-status {
  font-size: var(--small);
  margin-top: 12px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: var(--small);
  padding-block: 24px;
}
.footer-meta a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-meta a:hover {
  text-decoration: underline;
}
.site-footer {
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  max-width: none;
}
.footer-name {
  font-size: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.075em;
  white-space: nowrap;
  text-align: center;
  margin-block: 16px -28px;
}
.index-dialog {
  background: var(--paper);
  color: var(--ink);
  border: 0;
  padding: 28px clamp(24px, 4vw, 48px);
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(540px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
}
.index-dialog::backdrop {
  background: rgb(0 0 0 / 0.55);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  gap: 24px;
}
.dialog-top h2 {
  font-size: var(--lead);
}
.close-menu {
  background: transparent;
  color: var(--ink);
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  padding: 10px 0;
}
.close-menu span {
  font-size: 30px;
  line-height: 1;
}
.index-dialog nav {
  display: grid;
  gap: 5px;
}
.index-dialog nav a {
  display: block;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
  padding-block: 7px;
  transition: transform 180ms var(--ease);
}
.index-dialog nav a:hover {
  transform: translateX(8px);
}
.dialog-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: var(--small);
}
@media screen {
  :where(html:not([data-motion="reduce"])) .hero-name span {
    animation: name-enter 1050ms var(--ease) both;
  }
  :where(html:not([data-motion="reduce"])) .hero-name span:last-child {
    animation-delay: 90ms;
  }
  :where(html:not([data-motion="reduce"])) .hero-intro {
    animation: content-enter 900ms 140ms var(--ease) both;
  }
  :where(html:not([data-motion="reduce"])) .hero-portrait {
    animation: media-enter 1200ms 80ms var(--ease) both;
  }
  :where(html:not([data-motion="reduce"])) .reveal.is-revealing {
    animation: content-enter 800ms var(--ease) both;
  }
  :where(html:not([data-motion="reduce"])) .reveal:nth-child(2).is-revealing {
    animation-delay: 65ms;
  }
  :where(html:not([data-motion="reduce"])) .reveal:nth-child(3).is-revealing {
    animation-delay: 130ms;
  }
  :where(html:not([data-motion="reduce"])) .role-row.is-revealing,
  :where(html:not([data-motion="reduce"])) .article-row.is-revealing {
    animation-name: row-enter;
    animation-duration: 650ms;
  }
  :where(html:not([data-motion="reduce"])) figure.reveal.is-revealing,
  :where(html:not([data-motion="reduce"])) .project-media.reveal.is-revealing {
    animation-name: media-enter;
    animation-duration: 1000ms;
  }
  :where(html:not([data-motion="reduce"])) .index-dialog[open] {
    animation: menu-enter 350ms var(--ease);
  }
  @keyframes name-enter {
    from {
      transform: translateY(100%);
    }
    to {
      transform: none;
    }
  }
  @keyframes content-enter {
    from {
      opacity: 0.2;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes media-enter {
    from {
      opacity: 0.35;
      transform: translateY(28px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes row-enter {
    from {
      opacity: 0.2;
      transform: translateX(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes menu-enter {
    from {
      transform: translateX(100%);
    }
    to {
      transform: none;
    }
  }
}
@media (min-width: 1600px) {
  .hero-name {
    font-size: clamp(240px, 16.7vw, 310px);
  }
  .hero-portrait picture {
    aspect-ratio: 1.2;
  }
  .hero-stage {
    gap: 12%;
  }
  .hero-location {
    margin-top: 70px;
  }
}
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 22px;
  }
  .site-header {
    gap: 24px;
  }
  .header-actions {
    gap: 22px;
  }
  .hero-stage {
    gap: 7%;
  }
  .hero-portrait picture {
    aspect-ratio: 0.9;
  }
  .hero-location {
    margin-top: 30px;
  }
  .experience-layout {
    gap: 7%;
  }
  .role-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .role-date {
    padding: 0;
  }
  .project-cryptme {
    margin-left: 7%;
  }
  .cryptme-composition {
    gap: 6%;
    grid-template-columns: 1fr 1fr;
  }
  .cryptme-media {
    padding: 12px;
  }
  .article-row {
    grid-template-columns: 0.6fr 1.8fr;
    gap: 5%;
  }
  .article-action {
    grid-column: 2;
    margin-top: 12px;
  }
}
@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .site-header {
    padding-block: 16px;
  }
  .hero {
    padding-top: 28px;
  }
  .hero-name {
    padding-bottom: 24px;
  }
  .hero-stage {
    grid-template-columns: 1fr 1fr;
    gap: 6%;
  }
  .hero-profession {
    font-size: var(--lead);
  }
  .hero-intro {
    padding-top: 14px;
  }
  .hero-intro > .button {
    padding: 13px 18px;
    gap: 20px;
  }
  .hero-socials {
    gap: 20px;
    margin-top: 18px;
  }
  .hero-location {
    margin-top: 24px;
  }
  .hero-portrait picture {
    aspect-ratio: 0.72;
  }
  .hero-portrait figcaption {
    padding: 10px 12px;
    font-size: 13px;
  }
  .section-heading {
    gap: 7%;
    align-items: start;
  }
  .about-layout {
    gap: 8%;
    grid-template-columns: 0.85fr 1fr;
  }
  .about-copy > .lead {
    font-size: var(--body);
  }
  .scale-proof {
    gap: 24px;
    margin-top: 70px;
  }
  .proof-number {
    font-size: clamp(2.6rem, 6.7vw, 4.5rem);
  }
  .proof-number span {
    display: block;
    margin-left: 0;
    margin-top: 8px;
  }
  .project-caption {
    gap: 7%;
  }
  .project-cryptme {
    margin-left: 0;
  }
  .capabilities {
    gap: 40px 8%;
  }
  .education-layout {
    gap: 8%;
    grid-template-columns: 0.8fr 1fr;
  }
  .research-layout {
    gap: 7%;
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    gap: 8%;
  }
  .contact-compose {
    padding-inline: 18px;
  }
  .footer-name {
    margin-bottom: -12px;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 22px;
    --space: 88px;
    --head: clamp(2.4rem, 9.5vw, 3.7rem);
    --display: 17.1vw;
    --lead: 1.375rem;
  }
  html {
    scroll-padding-top: calc(var(--header-height, 72px) + 18px);
  }
  .site-header {
    gap: 16px;
    padding-block: 14px;
  }
  .brand {
    font-size: 15px;
  }
  .header-actions {
    gap: 12px;
  }
  .contact-link {
    display: none;
  }
  .menu-toggle {
    font-size: 14px;
  }
  .hero {
    padding-top: 26px;
  }
  .hero-name {
    line-height: 1.05;
    font-size: clamp(3rem, 16.7vw, 7rem);
    margin: 0;
    padding-bottom: 28px;
  }
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-intro {
    max-width: none;
    padding-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .hero-profession {
    grid-column: 1/-1;
    font-size: 25px;
    margin-bottom: 14px;
  }
  .hero-description {
    grid-column: 1/-1;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-intro > .button {
    grid-column: 1/-1;
    justify-self: start;
    margin-top: 24px;
    gap: 32px;
    padding: 14px 22px;
    min-height: 54px;
  }
  .hero-socials {
    grid-column: 1/-1;
    gap: 26px;
    margin-top: 10px;
    font-size: 14px;
  }
  .hero-location {
    grid-column: 1/-1;
    font-size: 14px;
    margin-top: 16px;
  }
  .hero-portrait picture {
    aspect-ratio: 1.1;
  }
  .hero-portrait img {
    object-position: 50% 37%;
  }
  .hero-portrait figcaption {
    font-size: 13px;
  }
  .hero-bottom {
    padding-block: 16px;
    gap: 12px;
    font-size: 13px;
  }
  .hero-bottom p {
    max-width: 230px;
  }
  .down-link {
    flex-shrink: 0;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .section-heading h2 {
    max-width: 100%;
  }
  .section-intro {
    justify-self: start;
    max-width: 100%;
  }
  .about {
    padding-top: 60px;
  }
  .about-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .about-photo {
    width: 82%;
    margin: 0;
  }
  .about-photo img {
    aspect-ratio: 1.05;
    object-position: 50% 35%;
  }
  .about-copy > .lead {
    font-size: 22px;
  }
  .about-copy > p {
    margin-bottom: 22px;
  }
  .scale-proof {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }
  .scale-proof > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
  }
  .proof-number {
    font-size: 48px;
    margin: 0;
  }
  .proof-number span {
    display: inline;
    font-size: 16px;
    margin-left: 8px;
  }
  .scale-proof > div > p:last-child {
    font-size: 14px;
  }
  .project {
    margin-bottom: 56px;
  }
  .project-media {
    padding: 18px 14px;
  }
  .shot-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 2px;
    margin-top: 14px;
  }
  .shot-controls button {
    padding: 10px 8px;
    font-size: 13px;
  }
  .project-caption {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 24px 18px;
  }
  .project-caption h3 {
    font-size: 42px;
  }
  .project-caption .secondary {
    font-size: 16px;
  }
  .project-tech {
    font-size: 14px;
  }
  .project-links {
    gap: 8px 24px;
  }
  .project-details {
    padding-inline: 16px;
  }
  .project-cryptme {
    margin-top: 56px;
  }
  .cryptme-composition {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 28px;
  }
  .cryptme-copy h3 {
    font-size: 42px;
    margin-bottom: 16px;
  }
  .cryptme-copy > .lead {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .cryptme-media {
    padding: 12px;
  }
  .cryptme-demo {
    max-width: 100%;
  }
  .project-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 22px;
  }
  .project-row h3 {
    max-width: none;
    font-size: 24px;
  }
  .project-row span {
    font-size: 14px;
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .more-work {
    gap: 12px;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .experience-intro {
    position: static;
  }
  .experience-intro h2 br {
    display: none;
  }
  .experience-intro > p {
    max-width: none;
    margin-top: 24px;
  }
  .role-row {
    margin-bottom: 40px;
  }
  .role-body h3 {
    font-size: 28px;
  }
  .role-title {
    margin-block: 6px 14px;
    font-size: 14px;
  }
  .role-body .disclosure-body {
    font-size: 16px;
  }
  .role-date {
    font-size: 14px;
  }
  .role-body details {
    padding-inline: 16px;
  }
  summary {
    font-size: 14px;
    gap: 16px;
  }
  .capabilities {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .capability h3 {
    font-size: 24px;
    margin-bottom: 14px;
  }
  .capability .secondary {
    font-size: 14px;
  }
  .all-technologies {
    margin-top: 36px;
    padding-inline: 16px;
  }
  .all-technologies > summary {
    font-size: 16px;
  }
  .technology-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .technology-columns p {
    font-size: 16px;
  }
  .languages {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    font-size: 14px;
  }
  .education-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .education-photo {
    position: static;
  }
  .education-photo img {
    aspect-ratio: 1.3;
  }
  .education-row h3 {
    font-size: 24px;
    max-width: 23ch;
  }
  .education-row + .education-row {
    margin-top: 36px;
  }
  .education-row .disclosure-body {
    font-size: 16px;
  }
  .research-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .research-media img {
    aspect-ratio: 1.25;
  }
  .research-copy h3 {
    font-size: 58px;
    margin-bottom: 18px;
  }
  .research-copy > .lead {
    font-size: 22px;
  }
  .research-copy .disclosure-body {
    font-size: 16px;
  }
  .research-links {
    gap: 8px 22px;
  }
  .article-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0;
  }
  .article-row + .article-row {
    margin-top: 44px;
  }
  .article-row img {
    aspect-ratio: 2.1;
  }
  .article-row h3 {
    font-size: 26px;
  }
  .article-row .article-description {
    font-size: 14px;
  }
  .article-action {
    grid-column: 1;
    margin-top: -10px;
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .writing-all {
    margin-top: 36px;
  }
  .contact-heading {
    gap: 14px;
    margin-bottom: 32px;
    align-items: flex-start;
  }
  .contact-heading h2 {
    font-size: clamp(1.85rem, 7.8vw, 3rem);
    max-width: 17ch;
  }
  .contact-arrow {
    width: 52px;
    margin-top: 4px;
    font-size: 28px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-copy > .lead {
    font-size: 22px;
  }
  .contact-emails {
    margin-top: 24px;
    gap: 4px;
  }
  .contact-emails a {
    font-size: 15px;
  }
  .contact-socials {
    gap: 8px 22px;
    margin-top: 24px;
    font-size: 14px;
  }
  .contact-compose {
    padding-inline: 18px;
  }
  .contact-compose summary {
    font-size: 16px;
  }
  .footer-meta {
    flex-wrap: wrap;
    gap: 4px 20px;
    font-size: 13px;
    padding-block: 20px;
  }
  .footer-meta > p {
    flex-basis: 100%;
    margin-bottom: 8px;
  }
  .footer-name {
    font-size: 17.1vw;
    line-height: 1.2;
    margin-block: 14px -8px;
  }
  .dialog-top {
    margin-bottom: 28px;
  }
  .index-dialog {
    padding: 24px;
  }
  .index-dialog nav a {
    font-size: 29px;
    padding-block: 7px;
  }
  .dialog-links {
    margin-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="full"]) {
    scroll-behavior: auto;
  }
  html:not([data-motion="full"]) *,
  html:not([data-motion="full"]) *::before,
  html:not([data-motion="full"]) *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  body,
  .light,
  .soft-light,
  .research,
  .site-footer {
    background: white;
    color: black;
  }
  .site-header,
  .hero-bottom,
  .menu-toggle,
  .contact-arrow,
  .contact-compose,
  .shot-controls,
  .demo-toggle,
  .back-top {
    display: none !important;
  }
  .section {
    padding-block: 36px;
  }
  .frame {
    padding-inline: 0;
  }
  .hero-name,
  .footer-name {
    font-size: 80px;
  }
  .role-row,
  .project,
  .education-row {
    break-inside: avoid;
  }
  .secondary {
    color: #444;
  }
  .hero-portrait {
    max-width: 350px;
  }
  .experience-intro,
  .education-photo {
    position: static;
  }
}

.fallback-nav {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-block: 16px;
}
.fallback-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: underline;
}
.role-body .disclosure-body,
.education-row .disclosure-body,
.research-copy .disclosure-body,
.technology-columns p {
  font-size: var(--body);
}

/* Keep the principal type roles consistent across chapters. */
.hero-profession,
.project-row h3,
.capability h3,
.education-row h3,
.article-row h3 {
  font-size: var(--lead);
}
.project-caption h3,
.cryptme-copy h3,
.research-copy h3,
.contact-heading h2,
.proof-number {
  font-size: var(--head);
}
.experience-intro {
  position: static;
}
.disclosure-body p {
  max-width: 66ch;
}
.cryptme-media img {
  aspect-ratio: 3/4;
}
.research-media img {
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 850px) {
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-intro {
    justify-self: start;
  }
  .proof-number span {
    display: inline;
    margin-left: 8px;
  }
  .about-copy > .lead {
    font-size: var(--lead);
  }
  .project-details .project-overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .role-backdrop {
    padding: 20px;
  }
  .contact-heading h2 {
    font-size: clamp(1.85rem, 7.8vw, 3rem);
  }
  .proof-number {
    font-size: 48px;
  }
  .role-body h3 {
    font-size: var(--lead);
  }
}
@media (max-width: 360px) {
  .scale-proof > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .proof-number {
    font-size: var(--head);
  }
}
