@font-face {
  font-family: "Silkscreen";
  src: url("fonts/silkscreen-regular-latin.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Silkscreen";
  src: url("fonts/silkscreen-bold-latin.woff2") format("woff2");
  font-display: block;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --bg: #050605;
  --bg-deep: #030403;
  --hero: #060706;
  --section: #090b0a;
  --section-alt: #0c0e0d;
  --elevated: #111411;
  --media: #0d100f;
  --frame: #171b19;
  --border: #303632;
  --border-strong: #454c47;
  --ink: #f0f0e9;
  --muted: #a6aaa4;
  --quiet: #858b85;
  --teal: #5ba7a3;
  --teal-dim: #315f5d;
  --font-ui: "Silkscreen", "Courier New", monospace;
  --font-body: "Trebuchet MS", "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(76px, 8vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-color: var(--border-strong) var(--bg);
  scrollbar-width: thin;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(240, 240, 233, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 240, 233, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--teal);
  color: var(--bg-deep);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a:focus,
button:focus {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  padding: 12px 16px;
  transform: translateY(-180%);
  border: 1px solid var(--teal);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1;
}

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

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

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding-block: clamp(78px, 7.2vw, 104px) clamp(64px, 5.8vw, 84px);
  background: var(--hero);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(91, 167, 163, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 167, 163, 0.035) 1px, transparent 1px);
  background-size: clamp(56px, 7vw, 96px) clamp(56px, 7vw, 96px);
  -webkit-mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.32));
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.32));
}

.hero__layout {
  display: block;
}

.hero__main {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero__role {
  margin: 0 0 clamp(18px, 2vw, 26px);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.hero__title-wrap {
  max-width: 100%;
}

.hero__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(48px, 7.2vw, 104px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-wrap: balance;
  white-space: nowrap;
}

.hero__title .extension {
  display: inline-block;
  color: var(--teal);
}

.motion-ready body.is-ready .hero__title .extension {
  animation: hero-extension-signal 7200ms cubic-bezier(0.16, 1, 0.3, 1) 900ms infinite;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(30px, 3.4vw, 42px);
}

.button {
  display: inline-flex;
  min-width: 144px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 160ms steps(2, end), background-color 160ms steps(2, end), color 160ms steps(2, end);
}

.button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg-deep);
}

.button:hover {
  border-color: var(--teal);
  background: var(--elevated);
}

.button--primary:hover {
  background: var(--teal);
  color: var(--bg-deep);
}

.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-space);
  border-top: 1px solid var(--border-strong);
}

.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  z-index: 2;
  width: clamp(44px, 5vw, 72px);
  height: 2px;
  background: var(--teal);
}

.work {
  padding-top: clamp(58px, 5vw, 72px);
  background: var(--section);
}

.about {
  background: var(--section-alt);
}

.contact {
  background: #070807;
}

.section-header {
  margin-bottom: clamp(36px, 4vw, 48px);
}

.section-title-row {
  margin-top: 0;
}

.section-title {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(30px, 3.9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-header.section-header--compact {
  margin-bottom: clamp(20px, 2vw, 24px);
}

.section-title.section-title--compact {
  color: var(--muted);
  font-size: clamp(10px, 0.75vw, 11px);
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-list {
  display: grid;
  gap: clamp(72px, 8vw, 104px);
}

.project {
  position: relative;
}

.project__header {
  margin-bottom: 14px;
}

.project__meta {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.project__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--media);
}

.lite-video {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--media);
  cursor: pointer;
}

.lite-video:focus {
  outline-offset: -4px;
}

.lite-video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(0.94) contrast(1.03);
  transition: transform 240ms steps(4, end), filter 180ms steps(3, end);
}

.lite-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 240, 233, 0.8);
  background: rgba(3, 4, 3, 0.82);
  transition: border-color 160ms steps(2, end), background-color 160ms steps(2, end), transform 160ms steps(2, end);
}

.lite-video__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink);
}

.lite-video:hover > img,
.lite-video:focus-visible > img {
  transform: scale(1.008);
  filter: brightness(0.96) saturate(1) contrast(1.01);
}

.lite-video:hover .lite-video__play,
.lite-video:focus-visible .lite-video__play {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--teal);
  background: var(--bg-deep);
}

.project__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about__layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.portrait {
  width: min(100%, 180px);
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border-strong);
  background: var(--frame);
}

.portrait picture {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eaded5;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.about__copy {
  max-width: 660px;
  padding-top: 2px;
}

.about__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.about__text {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.about__text + .about__text {
  margin-top: 6px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.tool {
  display: grid;
  min-height: 92px;
  grid-template-columns: 72px auto;
  align-items: center;
  gap: 12px;
  padding: 9px 18px 9px 9px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.3;
  text-transform: uppercase;
  transition: border-color 160ms steps(2, end), color 160ms steps(2, end);
}

.tool-icon-stage {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  perspective: 320px;
  transform-style: preserve-3d;
}

.tool-icon-turn {
  display: grid;
  width: 64px;
  height: 64px;
  transform-style: preserve-3d;
}

.tool-icon-face {
  grid-area: 1 / 1;
  width: 64px;
  height: 64px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tool-icon-back {
  transform: rotateY(180deg);
}

.tools.is-coin-active .tool:nth-child(1) .tool-icon-turn {
  animation: tool-coin-turn 4800ms linear 500ms infinite;
}

.tools.is-coin-active .tool:nth-child(1) .tool-icon-stage {
  animation: tool-coin-hop 4800ms linear 500ms infinite;
}

.tools.is-coin-active .tool:nth-child(2) .tool-icon-turn {
  animation: tool-coin-turn 4800ms linear 2900ms infinite;
}

.tools.is-coin-active .tool:nth-child(2) .tool-icon-stage {
  animation: tool-coin-hop 4800ms linear 2900ms infinite;
}

.tool:hover {
  border-color: var(--teal-dim);
  color: var(--ink);
}

.contact__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 62px);
}

.contact__statement {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}

.contact__availability {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
}

.contact-list {
  max-width: 1000px;
  margin-left: auto;
  border-top: 1px solid var(--border-strong);
}

.contact-row {
  position: relative;
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(124px, 0.3fr) minmax(0, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  display: flex;
  align-items: center;
  padding: 20px 24px 20px 0;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-action {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0 14px 24px;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

button.contact-action {
  width: 100%;
  cursor: pointer;
}

.contact-action:hover {
  background: var(--elevated);
}

.contact-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.35;
}

.contact-command {
  display: inline-flex;
  min-width: 88px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  color: var(--teal);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.contact-action:hover .contact-command {
  color: var(--ink);
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border-strong);
  background: var(--bg-deep);
}

.site-footer__inner {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__brand {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.language-switch a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.language-switch a[aria-current="page"] {
  color: var(--teal);
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms steps(4, end), transform 460ms steps(6, end);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion-ready .hero__main {
  opacity: 0;
}

.motion-ready body.is-ready .hero__main {
  animation: hero-enter 480ms 40ms steps(6, end) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-extension-signal {
  0%,
  74%,
  100% {
    filter: brightness(1);
    text-shadow: 0 0 0 rgba(91, 167, 163, 0);
  }
  82% {
    filter: brightness(1.14);
    text-shadow: 0 0 9px rgba(91, 167, 163, 0.16);
  }
  90% {
    filter: brightness(1.03);
    text-shadow: 0 0 3px rgba(91, 167, 163, 0.06);
  }
}

@keyframes tool-coin-turn {
  0% {
    transform: rotateY(0deg) rotateZ(0deg);
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  4% {
    transform: rotateY(-10deg) rotateZ(-1deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  42% {
    transform: rotateY(372deg) rotateZ(1deg);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }
  50%,
  100% {
    transform: rotateY(360deg) rotateZ(0deg);
  }
}

@keyframes tool-coin-hop {
  0%,
  4%,
  50%,
  100% {
    transform: translateY(0) scale(1);
  }
  24% {
    transform: translateY(-8px) scale(1.03);
  }
  42% {
    transform: translateY(2px) scale(0.98);
  }
}

@media (max-width: 860px) {
  .about__layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
  }

  .contact__intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --section-space: 72px;
  }

  body {
    background-size: 48px 48px;
  }

  .hero {
    padding-block: 64px 58px;
  }

  .hero__title {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero__role {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .hero__actions {
    display: grid;
    width: 100%;
    max-width: 312px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 30px;
  }

  .button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 9px;
  }

  .section::before {
    left: var(--gutter);
  }

  .work {
    padding-top: 58px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(28px, 7.4vw, 36px);
    line-height: 1.16;
  }

  .project-list {
    gap: 64px;
  }

  .project__header {
    margin-bottom: 14px;
  }

  .project__meta {
    font-size: 10px;
  }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .portrait {
    width: min(46vw, 180px);
  }

  .about__title {
    font-size: clamp(32px, 9vw, 42px);
  }

  .about__text {
    margin-top: 20px;
    font-size: 17px;
  }

  .tools {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .tool {
    min-height: 62px;
  }

  .contact__intro {
    margin-bottom: 36px;
  }

  .contact-row {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .contact-label {
    min-height: 44px;
    padding: 14px 12px 4px 0;
  }

  .contact-action {
    min-height: 68px;
    padding: 10px 0 14px;
    border-left: 0;
  }

  .contact-value {
    font-size: 16px;
  }

  .contact-command {
    min-width: 78px;
  }
}

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

  .hero__title {
    font-size: 34px;
  }

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

  .section-title {
    font-size: 27px;
  }

  .contact-action {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .motion-ready .reveal,
  .motion-ready .hero__main {
    opacity: 1;
    transform: none;
  }

}
