
:root {
  color-scheme: dark; --amber: #ffb000; --amber-hover: #ffc247; --bg: #101b26; --surface: #243849; --surface-2: #192b39; --text: #e6edf2;
  --muted: #a9bfcd; --cyan: #527f94; --border: #385265; --radius: 16px; --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible { outline: 3px solid var(--amber); outline-offset: 5px; }
::selection { background: var(--amber); color: var(--bg); }
.container { width: min(var(--max),calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: -100px; left: 16px; padding: 10px 18px; background: var(--amber); color: var(--bg); }
.skip-link:focus { top: 12px; }
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(16,27,38,.95); border-bottom: 1px solid rgba(82,127,148,.25);
  backdrop-filter: blur(16px);
}
.nav-shell { display: flex; align-items: center; gap: 30px; min-height: 76px; }
.brand { font-size: 1.18rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand-icon { color: var(--amber); font-size: 1.65rem; margin-right: 6px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { font-size: .93rem; padding: 8px 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--amber); transition: width .25s; }
.site-nav a:hover::after,.site-nav a[aria-current]::after { width: 100%; }
.site-nav a[aria-current] { color: var(--amber); }
.menu-toggle { display: none; }
.hero {
  min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; position: relative; isolation: isolate;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg,#101b26 10%,#182d3d 70%,#243849); z-index: -2; }
.hero-copy { padding: clamp(65px,9vw,120px) 30px clamp(65px,9vw,120px) max(24px,calc((100vw - var(--max))/2)); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.7rem,5vw,4.7rem); line-height: 1.09; letter-spacing: -.055em; margin: 15px 0 20px; max-width: 680px; }
.hero h1 span,.accent { color: var(--amber); }
.eyebrow { color: #8ec3d9; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 800; }
.hero-copy>p,.page-intro>p { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.hero-art { position: relative; min-height: 440px; margin-left: -70px; clip-path: polygon(22% 0,100% 0,100% 100%,0 100%); overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(16,27,38,.4),transparent 55%); z-index: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after {
  content: "";
  position: absolute;

  /* Preserve the original diagonal position */
  top: -20%;
  right: calc(88% - 4px);

  /* Extend the overlay to the left of the line */
  width: 100%;
  height: 150%;
  box-sizing: border-box;

  /* Original yellow diagonal */
  border-right: 5px solid var(--amber);

  /* Blur everything to the left of the diagonal */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  /* Subtle dark tint over the blurred area */
  background: rgba(16, 27, 38, 0.10);

  /* Preserve the original 18-degree angle */
  transform: rotate(18deg);
  transform-origin: right center;

  pointer-events: none;
  z-index: 1;
}
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 22px; border-radius: 9px; font-weight: 750;
  border: 1px solid var(--cyan); transition: transform .2s,background .2s,box-shadow .2s; cursor: pointer;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--amber); color: #101b26; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-hover); box-shadow: 0 8px 30px rgba(255,176,0,.18); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--surface); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .86rem; margin-top: 36px; }
.hero-tags span::before { content: "◇"; color: var(--amber); margin-right: 8px; }
.section { padding: 80px 0; }
.section-alt { background: #132330; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2,.page-intro h1 { margin: 0; letter-spacing: -.045em; line-height: 1.15; font-size: clamp(2rem,4vw,3rem); }
.section-head h2::before,.page-intro h1::before { content: "/"; color: var(--amber); margin-right: 16px; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.text-link { color: var(--amber); font-weight: 700; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.project-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s,border-color .3s,box-shadow .3s;
}
.project-card:hover,.project-card:focus-within { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 16px 34px rgba(0,0,0,.18); }
.project-open { display: block; width: 100%; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; }
.project-image { height: 200px; display: block; overflow: hidden; position: relative; }

.project-image::after {
  content: "";
  position: absolute;

  /* Preserve the original diagonal position */
  top: -20%;
  right: calc(88% - 4px);

  /* Extend the overlay to the left of the line */
  width: 100%;
  height: 150%;
  box-sizing: border-box;

  /* Original yellow diagonal */
  border-right: 4px solid var(--amber);

  /* Blur everything to the left of the diagonal */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);

  /* Subtle dark tint over the blurred area */
  background: rgba(16, 27, 38, 0.10);

  /* Preserve the original 18-degree angle */
  transform: rotate(18deg);
  transform-origin: right center;

  pointer-events: none;
  z-index: 1;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.project-card:hover img { transform: scale(1.06); }
.project-info { display: block; padding: 20px 22px 12px; }
.project-type { color: #91c1d6; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.project-heading { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.28rem; margin: 4px 0; }
.arrow { color: var(--amber); transition: transform .2s; }
.project-card:hover .arrow { transform: translate(3px,-3px); }
.project-description { display: block; color: var(--muted); font-size: .9rem; min-height: 68px; }
.card-tech {
  border-top: 1px solid var(--border); margin: 0 22px; padding: 13px 0 18px; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
}
.tech-caption { color: var(--muted); font-size: .77rem; }
.tech-badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tech-badge {
  display: inline-flex; justify-content: center; align-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid var(--badge-color); border-radius: 7px; color: var(--badge-color); font-weight: 800; font-size: .72rem;
}
.page-intro { padding: 80px 0 38px; }
.page-intro h1 { margin-bottom: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); padding: 9px 17px; border-radius: 100px; cursor: pointer;
  transition: background .2s,color .2s;
}
.filter-btn:hover { border-color: var(--amber); }
.filter-btn[aria-pressed=true] { background: var(--amber); color: var(--bg); border-color: var(--amber); font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.tool-card {
  padding: 25px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s,border-color .25s;
}
.tool-card:hover { transform: translateY(-4px); border-color: var(--amber); }
.tool-symbol {
  display: inline-flex; align-items: center; justify-content: center; color: var(--badge-color); border: 1px solid var(--badge-color);
  border-radius: 12px; min-width: 62px; height: 62px; padding: 6px; font-size: 1.35rem; font-weight: 850;
}
.tool-card h3 { margin: 17px 0 6px; }
.tool-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.split-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.split-content img { width: 100%; border-radius: var(--radius); }
.split-content p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { border-top: 2px solid var(--amber); padding: 22px; background: var(--surface-2); border-radius: 0 0 12px 12px; }
.step span { color: var(--amber); font-weight: 800; }
.step p { color: var(--muted); }
.site-footer { padding: 45px 0; background: #0b151e; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--amber); }
.footer-inner p,.footer-inner small { color: var(--muted); font-size: .86rem; }
.project-dialog {
  padding: 0; width: min(720px,calc(100% - 24px)); max-height: 85vh; overflow: auto; border: 1px solid var(--border); border-radius: 16px;
  background: var(--bg); color: var(--text);
}
.project-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(5px); }
.dialog-content { position: relative; }
.dialog-content>img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.dialog-body { padding: 25px; }
.dialog-body h2 { font-size: 2rem; margin: 8px 0; }
.dialog-body p { color: var(--muted); }
.dialog-body strong { color: var(--text); }
.dialog-close {
  position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); border-radius: 50%; cursor: pointer;
}
.small { font-size: .8rem; }
.muted { color: var(--muted); }
.empty-state { grid-column: 1/-1; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width:900px) {
  .nav-shell { gap: 14px; }
  .site-nav { gap: 14px; }
  .hero { grid-template-columns: 1.15fr 1fr; }
  .hero-copy { padding: 75px 24px; }
  .hero-art { margin-left: -30px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner small { grid-column: 1/-1; }
}
@media (max-width:680px) {
  .container { width: min(100% - 32px,var(--max)); }
  .nav-shell { min-height: 66px; }
  .menu-toggle {
    display: flex; margin-left: auto; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
    background: transparent; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  }
  .menu-toggle span { width: 21px; height: 2px; background: var(--text); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 12px 20px 20px; background: var(--bg);
    border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; box-shadow: 0 15px 20px #0003;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 8px; }
  .site-nav a::after { display: none; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { padding: 65px 24px 38px; }
  .hero h1 { font-size: clamp(2.5rem,10vw,4rem); }
  .hero-art { margin: 0; height: 280px; min-height: 0; clip-path: polygon(0 10%,100% 0,100% 100%,0 100%); }
  .hero-art::after { display: none; }
  .hero-tags { gap: 10px 18px; margin-top: 25px; }
  .section { padding: 55px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .page-intro { padding: 55px 0 25px; }
  .project-grid,.tool-grid,.steps,.split-content { grid-template-columns: 1fr; }
  .project-image { height: 220px; }
  .project-description { min-height: 0; padding-bottom: 12px; }
  .split-content { gap: 25px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner small { grid-column: auto; }
  .button-row .btn { flex: 1; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-card { padding: 18px; }
}
@media (max-width:390px) {
  .tool-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.05rem; }
  .hero-copy { padding-inline: 18px; }
  .hero h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* --- Additional content styles for the expanded multi-discipline portfolio --- */
.section-tight { padding-top: 0; }
.section-head.small-heading h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.project-counter { color: var(--amber); font-size: .88rem; font-weight: 800; white-space: nowrap; }
.project-subtitle { display: block; color: var(--text); font-size: .84rem; margin: 2px 0 8px; }
.project-description { min-height: 68px; }
.project-card .project-info { min-height: 186px; }
.discipline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.discipline-tile, .info-panel {
  position: relative; display: block; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.discipline-tile:hover, .discipline-tile:focus-visible { transform: translateY(-6px); border-color: var(--amber); box-shadow: 0 18px 34px #0003; }
.discipline-tile h3, .info-panel h3 { margin: 14px 0 8px; font-size: 1.28rem; line-height: 1.3; }
.discipline-tile p, .info-panel p { margin: 0; color: var(--muted); font-size: .94rem; }
.tile-index { display: block; color: var(--amber); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.tile-arrow { display: block; margin-top: 20px; font-size: 1.45rem; color: var(--amber); }
.feature-list { padding-left: 1.2em; color: var(--muted); margin: 22px 0 28px; }
.feature-list li { margin-bottom: 12px; padding-left: .25em; }
.feature-list li::marker { color: var(--amber); }
.feature-list strong { color: var(--text); }
.approach-layout h2, .split-content h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); letter-spacing: -.045em; line-height: 1.16; margin: 14px 0 20px; }
.image-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 20px 55px #0002;
}
.image-frame img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .6s ease; }
.image-frame:hover img { transform: scale(1.035); }
.demo-note {
  margin-bottom: 38px; padding: 14px 18px; border-left: 3px solid var(--amber); color: var(--muted); background: #152938; font-size: .84rem;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 26px; }
.pill-list span { padding: 6px 13px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); font-size: .85rem; }
.steps-four { grid-template-columns: repeat(4, 1fr); }
.tool-section + .tool-section { margin-top: 58px; }
.tool-card { display: flex; flex-direction: column; min-height: 230px; }
.tool-card h3 { font-size: 1.08rem; line-height: 1.3; }
.tool-card .tool-usage { margin-top: auto; padding-top: 16px; font-size: .78rem; }
.tool-card .tool-usage strong { color: var(--amber); }
.dialog-body .lead { font-size: 1.02rem; }
.dialog-body h3 { margin: 26px 0 10px; }
.dialog-highlights { color: var(--muted); margin: 8px 0; padding-left: 1.3em; }
.dialog-highlights li { margin-bottom: 6px; }
.dialog-highlights li::marker { color: var(--amber); }
.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;
}
@media (max-width: 900px) {
  .discipline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-four { grid-template-columns: repeat(2, 1fr); }
  .project-card .project-info { min-height: 0; }
}
@media (max-width: 680px) {
  .discipline-grid, .steps-four { grid-template-columns: 1fr; }
  .discipline-tile, .info-panel { padding: 22px; }
  .section-head.small-heading { gap: 8px; }
  .tool-card { min-height: 0; }
  .project-card .project-info { min-height: 0; }
  .project-description { min-height: 0; }
  .project-counter { font-size: .82rem; }
  .site-nav a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .image-frame img, .discipline-tile { transform: none !important; }
}
/* ---------------------------------------------------------- */
/* SVG technology logos */
/* ---------------------------------------------------------- */
.tech-badge {
  width: 36px; height: 36px; min-width: 36px; padding: 6px; background: rgba(255, 255, 255, .035); border-color: var(--border);
  border-radius: 8px; transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.tech-badge:hover { transform: translateY(-3px); border-color: var(--amber); background: rgba(255, 176, 0, .08); }
.tech-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.tool-symbol { width: 68px; height: 68px; min-width: 68px; padding: 12px; background: rgba(255, 255, 255, .035); border-color: var(--border); }
.tool-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.has-icon > .logo-fallback { display: none; }
/* Don't scale tool logos when hovering over the project image. */
.project-card:hover .tech-logo { transform: none; }
/* ---------------------------------------------------------- */
/* Steam and itch.io store buttons in project details */
/* ---------------------------------------------------------- */
.store-links { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--border); }
.store-links h3 { margin-bottom: 14px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 16px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 700;
  text-decoration: none; transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.store-button img { display: block; width: 22px; height: 22px; object-fit: contain; }
.store-button:hover { transform: translateY(-3px); border-color: var(--amber); background: var(--surface-2); }
.store-arrow { color: var(--amber); font-size: 1.05rem; }
.store-button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (max-width: 480px) {
  .store-buttons { flex-direction: column; }
  .store-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-badge,
  .store-button { transition: none; }
  .tech-badge:hover,
  .store-button:hover { transform: none; }
}
