/* Portfolio styles — self-hosted, no third-party site CSS */

/* Satoshi stands in for Apercu (Valve's licensed face). Free via Fontshare. */
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --accent: #f74843;
  --panel: #ededed;
  --panel-ink: #101114;
  --panel-muted: #585758;
  --footer-bg: #ffffff;
  --footer-ink: #000000;
  --font: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-pad: clamp(1.5rem, 5vw, 5rem);
  --content-max: 1200px;

  --cursor-default: url("../cursors/pointer.png") 4 1, url("../cursors/pointer.cur"), auto;
  --cursor-pointer: url("../cursors/link.png") 9 1, url("../cursors/link.cur"), pointer;
  --cursor-text: url("../cursors/text.png") 11 11, url("../cursors/text.cur"), text;
  --cursor-help: url("../cursors/help.png") 3 7, url("../cursors/help.cur"), help;
  --cursor-grab: url("../cursors/grabbing.png") 11 5, url("../cursors/grabbing.cur"), grabbing;
  --cursor-move: url("../cursors/move.png") 11 11, url("../cursors/move.cur"), move;
  --cursor-not-allowed: url("../cursors/unavailable.png") 4 1, url("../cursors/unavailable.cur"), not-allowed;
  --cursor-crosshair: url("../cursors/cross.png") 11 11, url("../cursors/cross.cur"), crosshair;
}

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

html {
  overflow-x: hidden;
  height: 100%;
}

html,
body,
a,
button,
[role="button"],
label,
input,
textarea,
select {
  cursor: var(--cursor-default);
}

a,
button,
[role="button"],
.job_tag > a,
.project-gallery-button,
summary {
  cursor: var(--cursor-pointer);
}

input,
textarea,
[contenteditable="true"] {
  cursor: var(--cursor-text);
}

button:disabled,
[aria-disabled="true"],
.unavailable {
  cursor: var(--cursor-not-allowed);
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  position: relative;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
}

.site_wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

#content_outer_wrapper {
  flex: 1 0 auto;
  width: 100%;
  position: relative;
}

#content {
  position: relative;
  color: var(--ink);
}

#page_background_videos {
  position: absolute;
  inset: 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#page_background_videos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

#page_background_videos .background_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#jobs {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 8vw, 6rem) var(--page-pad) clamp(4rem, 10vw, 8rem);
}

.section_inner_wrapper {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
}

.job_skills_title h3 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.25rem, 3vw, 2.375rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ink);
}

.job_skills_title p {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}

.job_tags {
  list-style: none;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
}

.job_tag {
  position: relative;
  margin: 1.25rem 0 0;
  font-family: var(--font);
  font-size: clamp(2.75rem, 12vw, 4.375rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  transition: padding 0.25s ease, opacity 0.35s ease;
}

@media (min-width: 668px) {
  .job_tag { font-size: clamp(3rem, 8vw, 4.375rem); }
}

@media (min-width: 820px) {
  .job_tag {
    font-size: clamp(3.25rem, 6vw, 4.375rem);
    line-height: 1.2;
  }
}

@media (min-width: 1200px) {
  .job_tag { font-size: 70px; }
}

.job_tag > a {
  display: block;
  color: var(--accent);
  border: none;
  transition: color 0.2s ease;
}

.job_tag > a:hover,
.job_tag.selected > a {
  color: var(--ink);
}

.job_tag.selected {
  padding-bottom: clamp(18rem, 42vw, 28rem);
}

.job_openings_wrapper {
  position: absolute;
  left: 50%;
  right: auto;
  top: auto;
  width: 100vw;
  margin: 1.75rem 0 0;
  padding: 0;
  background: var(--panel);
  color: var(--panel-ink);
  height: 0;
  overflow: hidden;
  transform: translateX(-50%);
  transition: height 0.28s ease;
}

.job_tag.selected .job_openings_wrapper {
  height: clamp(16rem, 38vw, 26rem);
}

.job_openings_inner_wrapper,
.project-card-layout {
  width: min(100% - 2 * var(--page-pad), var(--content-max));
  margin: clamp(1.75rem, 4vw, 3.5rem) auto;
}

.project-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 42%);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.job_openings_category_description {
  color: var(--panel-muted);
  font-family: var(--font);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
}

.job_openings_category_description b {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--panel-ink);
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.job_openings_category_description p {
  margin: 0;
  color: var(--panel-muted);
  font-weight: 400;
}

.project-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d8d8;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-gallery-controls {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-gallery-button {
  width: 2.3rem;
  height: 2.3rem;
  padding: 0;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 1.15rem;
  line-height: 1;
  cursor: var(--cursor-pointer);
}

.project-gallery-button:hover {
  background: #111;
  color: #fff;
}

.project-gallery-count {
  min-width: 3rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: #000;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.projects-loading,
.projects-empty {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.portfolio-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.75rem) max(2rem, 8vw);
  background: var(--footer-bg);
  color: var(--footer-ink);
  font-family: var(--font);
}

.portfolio-footer h2,
.portfolio-footer h3,
.portfolio-footer p {
  margin: 0;
}

.portfolio-footer h2 {
  font-family: var(--font);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.portfolio-footer h3 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.portfolio-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-footer li + li {
  margin-top: 0.35rem;
}

.portfolio-footer a {
  color: var(--footer-ink);
  text-decoration: none;
  cursor: var(--cursor-pointer);
}

.portfolio-footer a:hover {
  text-decoration: underline;
  color: var(--footer-ink);
}

.portfolio-footer .footer-note {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: #333;
}

/* Detail pages (project / page) */
.detail-page #page_background_videos {
  position: fixed;
  inset: 0;
  height: 100%;
  z-index: 0;
}

.detail-page #content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: clamp(4rem, 15vh, 8rem) var(--page-pad) 4rem;
}

.detail-page .job_skills_title {
  max-width: 42rem;
}

.detail-page .back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  font-weight: 700;
  cursor: var(--cursor-pointer);
}

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

.detail-page #meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-page #body p {
  max-width: 40rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .project-card-layout {
    grid-template-columns: 1fr;
  }

  .project-card-visual {
    max-width: 38rem;
  }

  .job_tag.selected {
    padding-bottom: clamp(28rem, 95vw, 36rem);
  }

  .job_tag.selected .job_openings_wrapper {
    height: clamp(24rem, 88vw, 34rem);
  }

  .portfolio-footer {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 520px) {
  .portfolio-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
