@font-face {
  font-family: "PortfolioPixel";
  src: url("./assets/Px437_ToshibaTxL1_8x8.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Departure Mono";
  src: url("./assets/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #1500ff;
  --ink: #1d1d1f;
  --page-pad: clamp(24px, 3.3vw, 68px);
  --bottom-pad: clamp(10px, 1.2vw, 22px);
  --font-ui: "Geist Mono", "GeistMono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-pixel: "Departure Mono", "Courier New", monospace;
  --font-console: "Departure Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: clamp(44px, 7vw, 136px);
  padding: clamp(32px, 4.6vh, 48px) var(--page-pad) clamp(24px, 3.8vh, 34px);
  transition: padding 960ms cubic-bezier(0.22, 1, 0.36, 1), gap 960ms cubic-bezier(0.22, 1, 0.36, 1);
}

.identity {
  display: grid;
  gap: 0;
}

.wordmark {
  display: block;
  color: var(--blue);
  font-family: "PortfolioPixel", "Courier New", monospace;
  font-size: clamp(46px, 3vw, 68px);
  line-height: 0.72;
  letter-spacing: 0;
  white-space: nowrap;
  image-rendering: pixelated;
  transition: font-size 960ms cubic-bezier(0.22, 1, 0.36, 1);
}

.identity-meta {
  display: none;
  justify-content: space-between;
  gap: 28px;
  width: min(100%, 548px);
  color: #202124;
  font-size: clamp(13px, 0.88vw, 17px);
  font-weight: 600;
  line-height: 1;
}

.identity-meta span {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: clamp(28px, 4vw, 60px);
  padding-top: 5px;
  font-size: clamp(20px, 1.55vw, 29px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: font-size 960ms cubic-bezier(0.22, 1, 0.36, 1), gap 960ms cubic-bezier(0.22, 1, 0.36, 1), padding 960ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu-toggle {
  display: none;
}

.mobile-language-label {
  display: inline;
}

.language-picker {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  margin-top: 0;
  font-size: inherit;
  font-weight: inherit;
}

.language-trigger {
  appearance: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #202124;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.language-trigger:hover,
.language-trigger:focus-visible {
  background: transparent;
  color: var(--blue);
}

.language-picker.is-open .language-trigger {
  background: transparent;
  color: var(--blue);
  transform: none;
}

.language-menu img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 158px;
  padding: 6px;
  border: 1px solid #d7d7dc;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  appearance: none;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px;
  background: transparent;
  color: #202124;
  font: inherit;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.language-menu button + button {
  margin-top: 3px;
}

.language-menu button:hover,
.language-menu button:focus-visible {
  background: #f1f1f2;
}

.language-menu button.is-active {
  background: var(--blue);
  color: #ffffff;
}

.cv-picker {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
  font-size: inherit;
  font-weight: inherit;
}

.cv-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: #202124;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}

.cv-trigger:hover,
.cv-trigger:focus-visible,
.cv-picker.is-open .cv-trigger {
  color: var(--blue);
}

@media (min-width: 701px) {
  .language-menu {
    width: 116px;
    padding: 4px;
  }

  .language-menu img {
    width: 14px;
    height: 14px;
  }

  .main-nav .language-menu button {
    grid-template-columns: 14px 1fr;
    gap: 6px;
    min-height: 28px;
    padding: 6px 7px;
    font: 500 12px/1.1 var(--font-ui);
    letter-spacing: -0.02em;
  }

}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.cv-modal[hidden] {
  display: none;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 20, 0.42);
  backdrop-filter: blur(5px);
}

.cv-dialog {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border: 2px solid var(--blue);
  border-radius: 18px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.cv-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.cv-dialog-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.cv-dialog h2 {
  margin: 0;
  color: #17171a;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cv-dialog-close {
  appearance: none;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 0 2px;
  background: #efeff1;
  color: #17171a;
  font: 400 25px/1 var(--font-ui);
  cursor: pointer;
}

.cv-dialog-close:hover,
.cv-dialog-close:focus-visible {
  background: var(--blue);
  color: #ffffff;
}

.cv-dialog-description {
  max-width: 42ch;
  margin: 18px 0 22px;
  color: #66666c;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.cv-download-list {
  display: grid;
  gap: 10px;
}

.cv-download-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border: 1px solid #dadae0;
  border-radius: 13px;
  padding: 13px 15px;
  background: #ffffff;
  color: #202124;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.cv-download-option:hover,
.cv-download-option:focus-visible {
  border-color: var(--blue);
  background: #f7f6ff;
  transform: translateY(-1px);
}

.cv-download-option img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cv-download-details {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cv-download-details strong {
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}

.cv-download-details > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #797980;
  font-size: 11px;
  font-weight: 600;
}

.cv-file-type {
  border-radius: 4px;
  padding: 3px 5px;
  background: var(--blue);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.cv-download-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.main-nav a {
  transition: color 140ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
}

main {
  position: relative;
  height: calc(100vh - 176px);
  padding: 0 var(--page-pad) var(--bottom-pad);
}

.jobias-home {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(520px, 1.38fr);
  gap: clamp(34px, 5vw, 96px);
  align-items: stretch;
  width: 100%;
  height: max(440px, calc(100vh - clamp(168px, 18vw, 232px) - var(--bottom-pad)));
  max-height: 790px;
  min-height: 480px;
}

.jobias-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding-bottom: 3vh;
}

.jobias-kicker {
  margin: 0 0 clamp(20px, 3vh, 42px);
  color: var(--blue);
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.jobias-intro h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(52px, 5.2vw, 104px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.jobias-intro h1 span {
  display: block;
}

.jobias-name {
  color: var(--blue);
  font-family: var(--font-pixel);
  font-size: 1.04em;
  font-weight: 400;
  letter-spacing: 0;
}

.jobias-intro-copy {
  width: min(100%, 38ch);
  margin: clamp(24px, 3.6vh, 44px) 0 0;
  color: #4f4f54;
  font-size: clamp(13px, 0.9vw, 17px);
  font-weight: 500;
  line-height: 1.5;
}

.jobias-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: #74747a;
  font-size: clamp(10px, 0.7vw, 13px);
  font-weight: 600;
}

.status-dot,
.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #70d300;
  box-shadow: 0 0 0 4px rgba(112, 211, 0, 0.12);
}

.chat-window {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #e1e1e4;
  border-radius: clamp(22px, 2vw, 34px);
  background: #f7f7f8;
  box-shadow:
    0 28px 80px rgba(24, 24, 28, 0.09),
    0 2px 8px rgba(24, 24, 28, 0.04);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7e7e9;
  background: rgba(255, 255, 255, 0.86);
}

.jobias-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 26px;
  line-height: 1;
}

.chat-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-identity strong {
  font-size: 14px;
  line-height: 1;
}

.chat-identity span {
  overflow: hidden;
  color: #7b7b80;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #69696e;
  font-size: 10px;
  font-weight: 600;
}

.chat-security .security-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.chat-messages {
  min-height: 0;
  overflow-y: auto;
  padding: 24px clamp(18px, 2vw, 32px);
  scrollbar-color: #c5c5ca transparent;
  scrollbar-width: thin;
}

.chat-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100%;
  padding: 20px;
  text-align: center;
}

.chat-empty h2 {
  margin: 0 0 18px;
  color: #1f1f22;
  font-size: clamp(16px, 1.25vw, 23px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.suggestion-row {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 clamp(18px, 2vw, 28px) 12px;
  scrollbar-width: none;
}

.suggestion-row::-webkit-scrollbar {
  display: none;
}

.suggestion-row button {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid #dedee2;
  border-radius: 999px;
  padding: 8px 11px;
  background: #ffffff;
  color: #4b4b50;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.suggestion-row button:hover,
.suggestion-row button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.chat-composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 clamp(16px, 1.8vw, 26px);
  border: 1px solid #d7d7dc;
  border-radius: 18px;
  padding: 9px 9px 9px 15px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 24, 28, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.chat-composer:focus-within {
  border-color: rgba(21, 0, 255, 0.55);
  box-shadow: 0 8px 30px rgba(21, 0, 255, 0.08);
}

.chat-composer textarea {
  width: 100%;
  max-height: 110px;
  border: 0;
  outline: 0;
  padding: 7px 0 5px;
  resize: none;
  background: transparent;
  color: #202024;
  font: inherit;
  font-size: clamp(12px, 0.78vw, 15px);
  font-weight: 500;
  line-height: 1.35;
}

.chat-composer textarea::placeholder {
  color: #99999f;
}

.send-button {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease;
}

.send-button:hover,
.send-button:focus-visible {
  transform: translateY(-1px);
}

.send-button:disabled {
  opacity: 0.35;
  cursor: wait;
  transform: none;
}

.chat-disclaimer {
  margin: 8px 20px 13px;
  color: #99999e;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 18px;
}

.chat-message.is-user {
  justify-content: flex-end;
}

.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 18px;
}

.message-bubble {
  width: fit-content;
  max-width: min(82%, 58ch);
  border: 1px solid #e1e1e5;
  border-radius: 16px 16px 16px 5px;
  padding: 11px 13px;
  background: #ffffff;
  color: #26262a;
  font-size: clamp(11px, 0.72vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
}

.is-user .message-bubble {
  border-color: var(--blue);
  border-radius: 16px 16px 5px 16px;
  background: var(--blue);
  color: #ffffff;
}

.message-bubble.is-error {
  border-color: #ffb8b8;
  background: #fff5f5;
  color: #8c1d1d;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #85858b;
  animation: typingBounce 1.1s ease-in-out infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.14s; }
.typing-dots span:nth-child(3) { animation-delay: 0.28s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.bot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.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;
}

.turnstile-slot {
  position: absolute;
  right: 18px;
  bottom: 104px;
  z-index: 3;
}

.turnstile-slot:not([hidden]) {
  display: block;
}

.projects-active .site-header {
  align-items: start;
  padding-top: clamp(32px, 4.6vh, 48px);
  padding-bottom: clamp(24px, 3.8vh, 34px);
}

.projects-active .wordmark {
  font-size: clamp(46px, 3vw, 68px);
}

.projects-active .identity {
  gap: 0;
}

.projects-active .identity-meta {
  pointer-events: none;
}

.projects-active .main-nav {
  display: flex;
  align-items: start;
  gap: clamp(28px, 4vw, 60px);
  padding-top: 5px;
  font-size: clamp(20px, 1.55vw, 29px);
}

.jobias-home,
.projects-screen {
  will-change: opacity, transform;
}

.projects-screen {
  position: absolute;
  inset: 0 var(--page-pad) var(--bottom-pad);
  display: grid;
  grid-template-columns: minmax(210px, 22vw) 1fr;
  gap: clamp(28px, 3.5vw, 64px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
}

.projects-active .projects-screen {
  pointer-events: auto;
}

.detail-active .projects-screen {
  pointer-events: none;
}

.detail-active .project-sidebar,
.detail-active .projects-scroll {
  pointer-events: none;
}

.project-sidebar {
  position: relative;
  min-height: 100%;
  font-size: clamp(24px, 1.9vw, 38px);
  line-height: 1.34;
}

.mobile-filter-header {
  display: none;
}

.mobile-filter-track {
  display: contents;
}

.filter-list,
.filter-docked {
  display: grid;
  justify-items: start;
}

.filter-chip {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  color: var(--blue);
}

.filter-docked {
  position: absolute;
  bottom: 0;
  left: 0;
}

.projects-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: start;
  gap: clamp(18px, 1.8vw, 34px);
  padding: 0 4px 68px 0;
  scrollbar-color: var(--blue) #eeeeee;
  scrollbar-width: thin;
}

.projects-scroll::-webkit-scrollbar {
  width: 12px;
}

.projects-scroll::-webkit-scrollbar-track {
  background: #eeeeee;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: var(--blue);
}

.project-row {
  display: flex;
  gap: clamp(18px, 1.8vw, 34px);
  align-items: stretch;
  width: 100%;
}

.project-row,
.project-row-top,
.project-row-feature,
.project-row-bottom {
  min-height: 190px;
}

.project-card,
.project-widget {
  position: relative;
  flex: 1 1 0;
  height: 190px;
  overflow: hidden;
  min-width: 0;
}

.project-card {
  background: #f2f2f2;
  transform-origin: center;
  cursor: pointer;
}

.project-card.is-hidden {
  display: none;
}

.project-widget {
  background: transparent;
  pointer-events: none;
}

.project-clock {
  flex: 0 0 190px;
  height: 190px;
  display: grid;
  place-items: center;
  align-self: stretch;
  aspect-ratio: 1;
}

.chroma-widget {
  flex: 0 0 190px;
  height: 190px;
  display: block;
  aspect-ratio: 1;
  background: #f6f6f3;
  pointer-events: auto;
}

#chromaflow {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: auto;
}

.project-copy {
  position: absolute;
  inset: 18px;
  display: grid;
  align-content: end;
  gap: 10px;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(12px);
  color: #ffffff;
  font-size: clamp(13px, 0.85vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  padding: 6px 8px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-console);
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  pointer-events: auto;
}

.project-action:hover,
.project-action:focus-visible {
  background: #ffffff;
  color: var(--blue);
}

.console-title,
.console-description {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #91ff00;
  font-family: var(--font-console);
  font-weight: 400;
  white-space: normal;
}

.console-title::before {
  content: "> ";
  color: #ffffff;
}

.console-description {
  color: #ffffff;
}

.console-description::before {
  content: "$ ";
  color: #ff00aa;
}

.project-card:hover,
.project-card:focus-visible {
  z-index: 2;
}

.project-media,
.phone-mock,
.monitor-mock,
.book-mock {
  width: 100%;
  height: 100%;
}

.clock-face {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 260px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 auto;
  border: 2px solid #111111;
  border-radius: 22px;
  background: #ffffff;
}

.clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  height: 4px;
  background: #111111;
  transform-origin: 0 50%;
}

.clock-hour {
  width: 25%;
  height: 5px;
}

.clock-minute {
  width: 39%;
}

.clock-second {
  width: 42%;
  height: 4px;
  background: #ff0000;
}

.beach-scene {
  background-image: url("./assets/Silent%20Shores.png");
  background-size: cover;
  background-position: center;
}

.photo-placeholder {
  background-image: url("./assets/aros.jpg");
  background-size: cover;
  background-position: center;
}

.phone-card,
.monitor-card {
  display: grid;
  place-items: center;
}

.trackgpt-preview {
  background-image: url("./assets/TrackGPT.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.jfm-preview {
  background-image: url("./assets/JV.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.ethigo-preview {
  background-image: url("./assets/Ethigo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.auto-plant-preview {
  background-image: url("./assets/Auto_Plant.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.chromaflow-preview {
  background-image: url("./assets/ChromaFlow.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.roomplanner-preview {
  background-image: url("./assets/Roomplanner.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.unfont-preview {
  background-image: url("./assets/unfont.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f2f2f2;
}

.phone-mock {
  display: grid;
  place-items: center;
  width: 88px;
  height: 178px;
  border: 6px solid #111111;
  border-radius: 20px;
  background:
    radial-gradient(circle at 48% 72%, #9fb6ff 0 15%, #1e24ad 34%, transparent 35%),
    radial-gradient(circle at 50% 32%, #4e8dff 0 20%, #101981 48%, #0a0d45 100%);
  color: #ffffff;
  font-size: 26px;
  box-shadow: 0 10px 16px rgba(0,0,0,0.28);
}

.monitor-mock {
  display: grid;
  place-items: center;
  width: min(70%, 430px);
  height: min(55%, 250px);
  background: #171717;
  color: #f7f7f7;
  font-size: 13px;
  box-shadow: 0 120px 42px -88px rgba(0,0,0,0.35);
}

.book-card {
  display: grid;
  place-items: center;
  background: #182398;
}

.linterface-preview {
  background-image: url("./assets/LinterfaceUpdated.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #182398;
}

.weather-card {
  flex: 0 0 190px;
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding-bottom: 0;
  overflow: visible;
}

.weather-temp {
  font-size: clamp(64px, 5.5vw, 112px);
  line-height: 0.85;
  letter-spacing: 0;
}

.weather-place {
  font-size: clamp(25px, 2vw, 40px);
  line-height: 1;
}

.project-detail {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  overflow: hidden;
  z-index: 3;
  padding-top: clamp(116px, 13vh, 150px);
}

.project-detail.is-active {
  pointer-events: auto;
}

.detail-track {
  height: 100%;
  display: flex;
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: auto;
}

.detail-track::-webkit-scrollbar {
  display: none;
}

.detail-panel {
  position: relative;
  flex: 0 0 100vw;
  min-width: 100vw;
  height: calc(100vh - clamp(116px, 13vh, 150px));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.detail-progress {
  position: fixed;
  left: 50%;
  bottom: clamp(72px, 8vh, 96px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.72);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.detail-dots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-arrow {
  appearance: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--blue);
  color: #ffffff;
  font: 500 19px/1 var(--font-ui);
  cursor: pointer;
  transition: opacity 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.detail-arrow:hover,
.detail-arrow:focus-visible {
  background: #111111;
  transform: scale(1.06);
}

.detail-arrow:disabled {
  opacity: 0.22;
  cursor: default;
  transform: none;
}

.detail-dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid #111111;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-dot.is-active {
  width: 22px;
  background: #111111;
}

.detail-copy {
  width: min(500px, 36vw);
  color: #111111;
  font-family: var(--font-ui);
  font-size: clamp(13px, 0.9vw, 18px);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.07em;
  text-align: justify;
  text-justify: inter-word;
  transform: translateY(calc(clamp(116px, 13vh, 150px) * -0.18));
}

.detail-copy p {
  margin: 0 0 28px;
}

.detail-project-title {
  margin: 0 0 18px;
  color: #111111;
  font-size: clamp(26px, 2.2vw, 42px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: left;
}

.detail-stack {
  margin: 0 0 24px;
  text-align: left;
}

.detail-stack-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-stack ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-stack li {
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffff;
  font-size: 0.78em;
  line-height: 1;
  letter-spacing: 0;
}

.roomplanner-detail .detail-copy {
  width: min(640px, 48vw);
}

.roomplanner-case-kicker,
.roomplanner-next-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.detail-slide-title {
  margin: 0 0 20px;
  font-size: clamp(24px, 2vw, 38px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: left;
}

.roomplanner-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: left;
}

.roomplanner-fact,
.roomplanner-stats > div {
  border: 1px solid #c8c8c8;
  padding: 12px;
  background: #ffffff;
}

.roomplanner-fact strong,
.roomplanner-fact span,
.roomplanner-stats strong,
.roomplanner-stats span {
  display: block;
  letter-spacing: 0;
}

.roomplanner-fact strong {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.72em;
  text-transform: uppercase;
}

.roomplanner-fact span {
  font-size: 0.78em;
  line-height: 1.3;
}

.roomplanner-points,
.roomplanner-next-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  text-align: left;
  list-style: none;
}

.roomplanner-points li,
.roomplanner-next-steps li {
  border-left: 3px solid var(--blue);
  padding: 9px 11px;
  background: #f1f1f1;
  font-size: 0.78em;
  line-height: 1.3;
  letter-spacing: 0;
}

.roomplanner-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 18px;
  text-align: left;
}

.roomplanner-stats strong {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 1.45em;
  line-height: 1;
}

.roomplanner-stats span {
  font-size: 0.72em;
}

.roomplanner-next-steps {
  margin-bottom: 16px;
}

.detail-note {
  text-align: center;
}

.text-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 54px);
  transform: translateX(-50%);
  font-size: clamp(15px, 1.1vw, 22px);
  letter-spacing: 0;
  white-space: nowrap;
}

.scroll-cue span {
  display: inline-block;
  animation: scrollCueJump 2.8s ease-in-out infinite;
}

.scroll-cue span:nth-child(2) { animation-delay: 0.04s; }
.scroll-cue span:nth-child(3) { animation-delay: 0.08s; }
.scroll-cue span:nth-child(4) { animation-delay: 0.12s; }
.scroll-cue span:nth-child(5) { animation-delay: 0.16s; }
.scroll-cue span:nth-child(6) { animation-delay: 0.20s; }
.scroll-cue span:nth-child(7) { animation-delay: 0.24s; }
.scroll-cue span:nth-child(8) { animation-delay: 0.28s; }

@keyframes scrollCueJump {
  0%, 72%, 100% {
    transform: translateY(0);
  }

  76% {
    transform: translateY(-5px);
  }

  81% {
    transform: translateY(0);
  }
}

.detail-main-image {
  display: block;
  width: min(78vw, 1280px);
  max-width: none;
  max-height: calc(100vh - clamp(190px, 22vh, 240px));
  object-fit: contain;
}

.detail-video-shell {
  position: relative;
  display: block;
  width: min(78vw, 1280px);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - clamp(190px, 22vh, 240px));
  background: #111111;
}

.detail-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111111;
}

.detail-video-fallback {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  padding: 10px 12px;
  background: #ffffff;
  color: #111111;
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1;
  letter-spacing: 0;
  transform: translateX(-50%);
}

.detail-video-fallback:hover,
.detail-video-fallback:focus-visible {
  background: var(--blue);
  color: #ffffff;
}

.detail-peek-image {
  position: absolute;
  left: calc(100vw - min(18vw, 340px));
  top: 50%;
  display: block;
  width: min(46vw, 760px);
  max-height: calc(100vh - clamp(210px, 24vh, 270px));
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.browser-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
  padding: 12px 16px;
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: clamp(16px, 1.1vw, 22px);
  line-height: 1;
  letter-spacing: 0;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.browser-button:hover,
.browser-button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.cursor-hint {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  padding: 7px 9px;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-console);
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(18px, 18px);
  will-change: transform, opacity;
}

.cursor-hint.is-dark {
  background: #000000;
  color: #ffffff;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: clamp(22px, 6vw, 42px);
    font-size: clamp(19px, 4.4vw, 28px);
    overflow: visible;
    padding-top: 0;
  }

  .jobias-home {
    grid-template-columns: minmax(190px, 0.48fr) minmax(440px, 1.52fr);
    gap: 26px;
    height: max(420px, calc(100vh - 270px - var(--bottom-pad)));
  }

  main {
    height: calc(100vh - 280px);
  }

  .projects-screen {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    display: none;
  }

  .projects-scroll {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 142px;
  }

  .project-row {
    display: contents;
  }

  .project-card,
  .project-widget,
  .project-clock,
  .weather-card {
    grid-column: span 6;
    flex: initial;
    width: auto;
    height: 190px;
  }

  .detail-text-panel {
    padding: 0 28px;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .detail-copy {
    width: min(520px, 82vw);
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .detail-main-image {
    width: 92vw;
  }

  .detail-progress {
    bottom: 34px;
  }

  .detail-peek-image {
    display: none;
  }
}

@media (max-width: 700px) {
  .jobias-home {
    display: block;
    height: max(420px, calc(100vh - 230px - var(--bottom-pad)));
    min-height: 0;
  }

  .jobias-intro {
    display: none;
  }

  .chat-window {
    height: 100%;
    min-height: 420px;
    border-radius: 22px;
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .wordmark {
    font-size: clamp(46px, 14vw, 68px);
  }

  .identity-meta {
    display: grid;
    gap: 12px;
    font-size: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 16px 22px;
    font-size: 20px;
  }

  .language-picker {
    margin-top: -7px;
  }

  .language-trigger {
    height: 38px;
    width: 38px;
  }

  main {
    height: calc(100vh - 240px);
  }

  .chat-header {
    padding: 14px;
  }

  .chat-messages {
    padding: 16px 14px;
  }

  .chat-empty h2 {
    margin: 17px 0 9px;
    font-size: 16px;
  }

  .suggestion-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .chat-composer {
    margin-right: 12px;
    margin-left: 12px;
  }

  .chat-security span:last-child {
    display: none;
  }

}

/* Jobias — white, conversation-first interface */
.jobias-home {
  display: block;
  width: 100%;
  height: max(480px, calc(100vh - clamp(168px, 18vw, 232px) - var(--bottom-pad)));
  max-height: 820px;
  min-height: 480px;
}

.chat-window {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  width: min(100%, 1040px);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.chat-header {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 4px 0 16px;
  border-bottom: 1px solid #ececec;
  background: #ffffff;
}

.jobias-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111111;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
}

.chat-identity {
  gap: 4px;
}

.chat-identity strong {
  font-size: 14px;
  font-weight: 600;
}

.chat-identity span,
.chat-security {
  color: #8a8a8a;
  font-size: 10px;
  font-weight: 500;
}

.chat-security .security-dot,
.status-dot,
.security-dot {
  background: #10a37f;
}

.chat-messages {
  width: 100%;
  padding: 30px 16px 22px;
  background: #ffffff;
  scrollbar-color: #d9d9d9 transparent;
}

.chat-empty {
  align-content: center;
  min-height: 100%;
  padding: 24px 16px 8vh;
}

.chat-empty h2 {
  margin: 0 0 10px;
  color: #202123;
  font-size: clamp(22px, 1.8vw, 29px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.chat-empty-description {
  width: min(100%, 58ch);
  margin: 0;
  color: #777777;
  font-size: clamp(11px, 0.76vw, 13px);
  font-weight: 400;
  line-height: 1.55;
}

.suggestion-row {
  justify-content: center;
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 0 0 12px;
}

.suggestion-row button {
  border-color: #e5e5e5;
  border-radius: 12px;
  padding: 9px 12px;
  background: #ffffff;
  color: #606060;
  font-size: 10px;
  font-weight: 500;
}

.suggestion-row button:hover,
.suggestion-row button:focus-visible {
  border-color: #b7b7b7;
  color: #202123;
  transform: none;
}

.chat-composer {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  border: 1px solid #d9d9d9;
  border-radius: 26px;
  padding: 11px 11px 11px 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.chat-composer:focus-within {
  border-color: #b8b8b8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
}

.chat-composer textarea {
  padding: 7px 0 6px;
  color: #202123;
  font-size: clamp(12px, 0.82vw, 15px);
  font-weight: 400;
}

.chat-composer textarea::placeholder {
  color: #8e8e8e;
}

.send-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 20px;
}

.chat-disclaimer {
  margin: 9px 16px 0;
  color: #9b9b9b;
  font-size: 9px;
  font-weight: 400;
}

.chat-message {
  align-items: flex-start;
  width: min(100%, 780px);
  margin: 0 auto 26px;
}

.chat-message.is-user {
  justify-content: flex-end;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111111;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

.message-bubble {
  max-width: min(86%, 66ch);
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  background: transparent;
  color: #202123;
  font-size: clamp(12px, 0.78vw, 14px);
  font-weight: 400;
  line-height: 1.65;
}

.is-user .message-bubble {
  max-width: min(78%, 58ch);
  border: 0;
  border-radius: 20px;
  padding: 10px 15px;
  background: #f4f4f4;
  color: #202123;
}

.message-bubble.is-error {
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff3f3;
}

.message-bubble p {
  margin: 0 0 0.8em;
}

.message-bubble > :last-child {
  margin-bottom: 0;
}

.message-bubble ul,
.message-bubble ol {
  margin: 0.45em 0 0.85em;
  padding-left: 1.45em;
}

.message-bubble li {
  padding-left: 0.12em;
}

.message-bubble li + li {
  margin-top: 0.28em;
}

.message-bubble strong {
  font-weight: 700;
}

.message-bubble a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.message-bubble code {
  border-radius: 4px;
  padding: 0.12em 0.32em;
  background: #f1f1f1;
  font-family: var(--font-ui);
  font-size: 0.92em;
}

.message-bubble .markdown-heading {
  margin: 0 0 0.55em;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.35;
}

.message-bubble blockquote {
  margin: 0 0 0.8em;
  border-left: 2px solid #d5d5d5;
  padding-left: 0.8em;
  color: #5f5f64;
}

.message-bubble hr {
  margin: 0.9em 0;
  border: 0;
  border-top: 1px solid #dedede;
}

.turnstile-slot {
  right: max(18px, calc((100% - 780px) / 2));
  bottom: 86px;
}

.chat-window.is-empty {
  grid-template-rows: auto auto auto;
  align-content: center;
}

.chat-window.is-empty .chat-messages {
  min-height: 0;
  overflow: visible;
  padding: 0 16px 26px;
}

.chat-window.is-empty .chat-empty {
  min-height: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .jobias-home {
    height: max(430px, calc(100vh - 230px - var(--bottom-pad)));
    min-height: 430px;
  }

  .chat-window {
    min-height: 430px;
    border-radius: 0;
  }

  .chat-header {
    width: calc(100% - 24px);
    padding-top: 0;
  }

  .chat-messages {
    padding: 20px 12px 16px;
  }

  .chat-empty {
    padding-bottom: 5vh;
  }

  .chat-empty h2 {
    font-size: 21px;
  }

  .suggestion-row,
  .chat-composer {
    width: calc(100% - 24px);
  }

  .suggestion-row {
    justify-content: flex-start;
  }

  .message-bubble,
  .is-user .message-bubble {
    max-width: 88%;
  }
}

@media (max-width: 700px) {
  :root {
    --page-pad: 16px;
    --bottom-pad: 12px;
    --mobile-header-offset: calc(76px + env(safe-area-inset-top));
  }

  html {
    height: 100%;
  }

  body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-header,
  .projects-active .site-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 0;
    padding: max(16px, env(safe-area-inset-top)) var(--page-pad) 14px;
    background: #ffffff;
  }

  .identity {
    grid-column: 1;
    grid-row: 1;
  }

  .wordmark,
  .projects-active .wordmark {
    font-size: clamp(38px, 11vw, 46px);
  }

  .identity-meta {
    display: none !important;
  }

  .mobile-menu-toggle {
    appearance: none;
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible,
  .site-header.is-menu-open .mobile-menu-toggle {
    background: #f1f1f2;
    color: var(--blue);
  }

  .menu-line {
    position: absolute;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, top 180ms ease;
  }

  .menu-line-top {
    top: 17px;
  }

  .menu-line-bottom {
    top: 25px;
  }

  .site-header.is-menu-open .menu-line-top {
    top: 21px;
    transform: rotate(45deg);
  }

  .site-header.is-menu-open .menu-line-bottom {
    top: 21px;
    transform: rotate(-45deg);
  }

  .main-nav,
  .projects-active .main-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-header-offset);
    bottom: 0;
    z-index: 20;
    display: grid;
    align-content: start;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    gap: 2px;
    padding: 16px var(--page-pad) max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  }

  .site-header.is-menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    border-radius: 0;
    padding: 0 12px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: #f5f5f6;
  }

  .language-picker,
  .cv-picker {
    width: 100%;
    margin-top: 0;
    font-size: inherit;
    font-weight: inherit;
  }

  .language-trigger,
  .cv-trigger {
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 46px;
    border-radius: 0;
    padding: 0 12px;
    color: inherit;
    text-align: left;
  }

  .mobile-language-label {
    display: inline;
  }

  .language-picker.is-open .language-trigger,
  .cv-picker.is-open .cv-trigger {
    background: #f5f5f6;
    color: inherit;
    transform: none;
  }

  .roomplanner-detail .detail-copy {
    width: min(100%, 560px);
  }

  .detail-slide-title {
    margin-bottom: 16px;
    font-size: clamp(24px, 8vw, 32px);
  }

  .roomplanner-facts {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .roomplanner-fact {
    padding: 9px 10px;
  }

  .roomplanner-points,
  .roomplanner-next-steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .roomplanner-points li,
  .roomplanner-next-steps li {
    padding: 7px 9px;
  }

  .language-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .language-menu button {
    border-radius: 0;
  }

  main {
    height: auto;
    min-height: 0;
    padding: 0 var(--page-pad) max(var(--bottom-pad), env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .jobias-home {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .chat-window {
    height: 100%;
    min-height: 0;
  }

  .chat-window.is-empty {
    align-content: center;
  }

  .chat-window.is-empty .chat-messages {
    padding: 0 8px 20px;
  }

  .chat-empty {
    padding: 16px 8px 4vh;
  }

  .chat-empty h2 {
    margin: 0 0 10px;
    font-size: clamp(19px, 5.7vw, 24px);
    line-height: 1.18;
  }

  .chat-empty-description {
    width: min(100%, 44ch);
    font-size: 12px;
  }

  .chat-messages {
    padding: 18px 4px 14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .chat-composer {
    width: 100%;
    margin: 0;
    padding: 8px 8px 8px 16px;
  }

  .chat-composer textarea {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-x: hidden;
  }

  .chat-composer textarea::placeholder {
    font-size: 12px;
  }

  .chat-composer textarea:placeholder-shown {
    overflow-y: hidden;
  }

  .send-button {
    width: 42px;
    height: 42px;
  }

  .chat-disclaimer {
    margin: 8px 8px 0;
    padding-bottom: 2px;
    line-height: 1.35;
  }

  .chat-message {
    margin-bottom: 20px;
  }

  .message-bubble {
    max-width: calc(100% - 40px);
    font-size: 14px;
    line-height: 1.55;
  }

  .is-user .message-bubble {
    max-width: 88%;
  }

  .turnstile-slot {
    right: 8px;
    bottom: 82px;
  }

  .projects-screen {
    inset: 0 var(--page-pad);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
  }

  .project-sidebar {
    display: none;
  }

  .projects-scroll {
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 30px;
    padding: 4px 0 max(40px, env(safe-area-inset-bottom));
    scroll-padding-top: 4px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .projects-scroll::-webkit-scrollbar {
    display: none;
  }

  .project-row,
  .project-row-top,
  .project-row-feature,
  .project-row-bottom {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    min-height: 0;
  }

  .project-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none !important;
  }

  .project-card .project-media {
    flex: 0 0 clamp(176px, 52vw, 224px);
    width: 100%;
    height: clamp(176px, 52vw, 224px);
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
  }

  .project-copy {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    align-content: start;
    gap: 5px;
    max-width: none;
    padding: 11px 0 0;
    background: #ffffff;
    color: #202124;
    opacity: 1 !important;
    transform: none !important;
    text-shadow: none;
  }

  .console-title,
  .console-description {
    width: 100%;
    padding: 0;
    background: transparent;
    font-family: var(--font-ui);
    white-space: normal;
  }

  .console-title {
    color: #202124;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.2;
  }

  .console-description {
    color: #68686e;
    font-size: 13px;
    font-weight: 450;
    line-height: 1.45;
  }

  .project-action {
    margin-top: 3px;
    padding: 0;
    background: transparent;
    color: var(--blue);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
  }

  .project-action:hover,
  .project-action:focus-visible {
    background: transparent;
    color: #111111;
  }

  .cv-modal {
    padding: 14px;
  }

  .cv-dialog {
    max-height: calc(100dvh - 28px);
    border-radius: 16px;
    padding: 21px 17px 17px;
  }

  .cv-dialog-description {
    margin: 16px 0 18px;
  }

  .cv-download-option {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 72px;
    padding: 12px;
  }

  .cv-download-option img {
    width: 30px;
    height: 30px;
  }

  .cv-download-action span:first-child {
    display: none;
  }

  .cv-download-action span:last-child {
    font-size: 20px;
  }

  .console-title::before,
  .console-description::before {
    content: none;
  }

  .project-widget,
  .project-clock,
  .weather-card {
    display: none;
  }

  .cursor-hint {
    display: none;
  }

  .project-detail {
    padding-top: var(--mobile-header-offset);
  }

  .detail-track {
    height: 100%;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .detail-panel {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--mobile-header-offset));
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
    padding: 22px 18px 86px;
    overflow-y: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .detail-copy {
    width: min(100%, 560px);
    max-width: none;
    margin-block: auto;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    text-align: left;
    transform: none;
  }

  .detail-copy p {
    margin-bottom: 18px;
  }

  .detail-copy > :last-child {
    margin-bottom: 0;
  }

  .detail-main-image,
  .detail-video-shell {
    width: 100%;
    max-width: 620px;
    max-height: calc(100dvh - var(--mobile-header-offset) - 112px);
    margin-block: auto;
  }

  .detail-video-shell {
    margin-top: auto;
  }

  .detail-video-fallback {
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }

  .browser-button {
    padding: 11px 14px;
    font-size: 14px;
  }

  .scroll-cue {
    bottom: 52px;
    font-size: 15px;
  }

  .detail-progress {
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 6px;
    max-width: calc(100vw - 24px);
    padding: 6px 8px;
  }

  .detail-arrow {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .detail-dot {
    width: 14px;
    height: 14px;
  }

  .detail-dot.is-active {
    width: 26px;
  }
}

@media (max-width: 390px) {
  .site-header,
  .projects-active .site-header {
    column-gap: 12px;
    row-gap: 10px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .main-nav,
  .projects-active .main-nav {
    left: 0;
    right: 0;
    gap: 7px;
    font-size: 13px;
  }

  .main-nav .language-trigger {
    width: 100%;
    height: 44px;
  }

  .language-menu {
    right: 0;
  }
}

@media (max-width: 700px) and (max-height: 540px) {
  :root {
    --mobile-header-offset: calc(52px + env(safe-area-inset-top));
  }

  .site-header,
  .projects-active .site-header {
    row-gap: 7px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-bottom: 7px;
  }

  .wordmark,
  .projects-active .wordmark {
    font-size: 36px;
  }

  .main-nav a {
    min-height: 42px;
  }

  .main-nav .language-trigger {
    width: 100%;
    height: 42px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .chat-empty-description,
  .chat-disclaimer {
    display: none;
  }

  .chat-window.is-empty .chat-messages {
    padding-bottom: 12px;
  }

  .project-card {
    height: auto;
    min-height: 0;
  }

  .project-card .project-media {
    flex-basis: 150px;
    height: 150px;
  }

  .project-widget,
  .project-clock,
  .weather-card {
    height: 126px;
    min-height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Games: editorial features with a separate play action. */
body.games-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
}
.games-active main { height: auto; min-height: 0; padding-bottom: 0; }
.games-screen[hidden] { display: none; }
.games-screen {
  position: absolute;
  inset: 0 var(--page-pad) 0;
  overflow-y: auto;
  container-type: size;
  scrollbar-width: thin;
  scrollbar-color: var(--blue) #eee;
  will-change: opacity, transform;
}
.games-screen:focus { outline: none; }
.games-active .jobias-home { visibility: hidden; pointer-events: none; }
.games-list { padding: 24px 8px max(28px, env(safe-area-inset-bottom)); }
.game-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  width: min(100%, 1180px);
  margin-right: auto;
  padding-top: 24px;
  border-top: 1px dotted #bbb;
}
.game-card + .game-card { margin-top: 72px; }
.game-card:nth-child(even) { margin-left: auto; margin-right: 0; }
.game-copy h2 { margin: 0 0 16px; font-family: var(--font-pixel); font-size: clamp(40px, 4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -2px; }
.game-tag { display: inline-block; padding: 6px 9px; margin-bottom: 28px; border-radius: 2px; background: var(--blue); color: white; font-family: var(--font-pixel); font-size: 11px; line-height: 1; }
.game-copy p { margin: 0; max-width: 36ch; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.65; color: #242424; }
.game-copy p:first-of-type::first-letter { float: left; padding: 7px 8px 0 0; font-size: 58px; line-height: .78; color: #111; }
.game-play { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--blue); background: var(--blue); color: white; font-family: var(--font-pixel); font-size: 22px; line-height: 1; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.game-play:hover { background: white; color: var(--blue); transform: translateY(-2px); }
.game-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.game-figure { min-width: 0; width: min(100%, max(240px, calc((100cqh - 130px) * 4 / 3))); margin: 0; padding-top: 0; }
.game-figure img { display: block; width: 100%; height: auto; }
.main-nav a[aria-current="page"] { color: var(--blue); }
@media (max-width: 700px) {
  .games-list { padding: 12px 5px max(24px, env(safe-area-inset-bottom)); }
  .game-card { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .game-copy h2 { font-size: 40px; }
  .game-tag { margin-bottom: 18px; }
  .game-copy p { max-width: none; font-size: 14px; line-height: 1.6; }
  .game-copy p:first-of-type::first-letter { font-size: 50px; }
  .game-play { margin-top: 20px; }
  .game-figure { width: min(100%, 45.33dvh); }

}
@media (prefers-reduced-motion: reduce) {
  .game-play { transition: none; }
  .game-play:hover { transform: none; }
}

.game-copy p { display: flow-root; text-align: justify; text-justify: inter-word; }
.game-copy p + p { margin-top: 18px; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 28px; }
.game-actions .game-play { margin-top: 0; }
.game-report { color: var(--blue); font-family: var(--font-pixel); font-size: 11px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.game-report:hover { text-decoration-thickness: 2px; }
.game-report:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

.game-copy .revo-title { width: fit-content; max-width: 100%; font-size: clamp(28px, 2.7vw, 40px); line-height: 1; letter-spacing: 0; }
.revo-title > span { display: block; width: max-content; }
.revo-title-top { font-size: 1.72em; }
.revo-title > span + span { margin-top: 4px; }
.game-tag-construction { background: #f0ce87; color: #573d13; }
.game-placeholder { aspect-ratio: 4 / 3; background: #e8e8e8; }
.game-coming-soon:disabled { background: #eee; border-color: #d4d4d4; color: #717171; cursor: not-allowed; transform: none; }

@media (min-width: 701px) {
  .game-card { align-items: end; }
}

/* Let the text column set the image height on side-by-side articles. */
@media (min-width: 701px) {
  .game-card { align-items: stretch; }
  .game-card .game-figure {
    position: relative;
    align-self: stretch;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  .game-figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.revo-figure { background: #dff8d0; }
.revo-figure img { object-fit: contain; }
