﻿/* Font files served with the portfolio on every device. */
@font-face { font-family: 'Portfolio Bastion'; src: url('assets/bastion-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Portfolio Candara'; src: url('assets/candara-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Portfolio Candara'; src: url('assets/candara-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  color-scheme:light;
  --paper:#dfe0e1;
  --ink:#262728;
  --muted:color-mix(in srgb, var(--ink) 75%, var(--paper));
  --accent:#b5cd15;
  --line:color-mix(in srgb, var(--ink) 25%, var(--paper));
  --surface:color-mix(in srgb, var(--ink) 6%, var(--paper));
  --font-title: 'Portfolio Bastion', Bastion, Georgia, serif;
  --font-text: 'Portfolio Candara', Candara, 'Trebuchet MS', sans-serif;
  font-family:var(--font-text);
  background:var(--paper);
  color:var(--ink)
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #262728;
  --ink: #dfe0e1;
}


* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-height, 105px) + 24px)
}

body {
  margin:0
}

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

button,input {
  font:inherit
}

button,a,input {
  touch-action:manipulation
}

button {
  cursor:pointer
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid var(--ink);
  outline-offset:6px
}

a:hover {
  text-decoration:underline;
  text-underline-offset:5px
}

button:disabled,input:disabled {
  cursor:default;
  opacity:.5
}

[hidden] {
  display:none!important
}

.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  background:var(--paper);
  padding:16px;
  z-index:5
}

.skip-link:focus {
  top:12px
}


.site-header,main,footer {
  max-width:1600px;
  margin:auto;
  padding-inline:clamp(22px,5vw,88px)
}

.site-header {
  position:sticky;
  top:0;
  z-index:4;
  max-width:none;
  background:var(--paper);
  gap:24px;
  height:105px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}

.wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.wordmark .brand-full { display: block; width: 240px; height: auto; }
.wordmark .brand-symbol, .wordmark .brand-dark-mode { display: none; }
:root[data-theme="dark"] .wordmark .brand-normal { display: none; }
:root[data-theme="dark"] .wordmark .brand-full.brand-dark-mode { display: block; }
@media (max-width: 740px) {
  .wordmark .brand-full, :root[data-theme="dark"] .wordmark .brand-full.brand-dark-mode { display: none; }
  .wordmark .brand-symbol.brand-normal { display: block; width: 36px; height: auto; }
  :root[data-theme="dark"] .wordmark .brand-symbol.brand-normal { display: none; }
  :root[data-theme="dark"] .wordmark .brand-symbol.brand-dark-mode { display: block; width: 36px; height: auto; }
}

nav {
  margin-left:auto;
  display:flex;
  gap:36px;
  font-size:14px
}

.title-period {
  color:var(--accent)
}

.hero {
  padding:clamp(28px, 3vw, 40px) 0 clamp(36px, 3vw, 48px)
}

.eyebrow {
  text-transform:uppercase;
  font-family:var(--font-text);
  font-size:12px;
  letter-spacing:.08em;
  margin:0;
  line-height:1.5
}

.hero>.eyebrow {
  display:flex;
  align-items:center;
  gap:10px
}

.red-dot {
  width:7px;
  height:7px;
  background:var(--accent);
  display:inline-block;
  flex-shrink:0;
  border-radius:50%
}

.edition {
  margin-left:auto;
  color:var(--muted)
}

h1 {
  font-size:clamp(65px,12.8vw,190px);
  line-height:.87;
  font-weight:400;
  letter-spacing: .12em;
  margin:44px 0 48px
}

h1>span:first-of-type {
  padding-left:10vw
}

.title-period {
  letter-spacing: .12em
}

.hero-composition { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 72px); margin-block: clamp(28px, 3vw, 40px); }
.hero-composition h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(72px, 9.5vw, 144px); line-height: .94; }
.hero-composition h1 > span { display: block; }
.hero-composition h1 > span:first-of-type { padding: 0; }
.hero-composition .hero-surname { margin-top: 10px; }
.hero-mark { position: relative; z-index: 2; width: clamp(144px, 16vw, 220px); padding: 0; border: 0; background: transparent; color: var(--ink); justify-self: end; }
.hero-mark:disabled { opacity: 1; }
.hero-mark-surface { display: block; position: relative; aspect-ratio: 642 / 710; }
.mark-piece { position: absolute; inset: 0; pointer-events: none; background: url('assets/milogobola_dark.png') center / contain no-repeat; }
.mark-physics-layer { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.mark-physics-layer .mark-piece { inset: auto; left: 0; top: 0; }
:root[data-theme="dark"] .mark-piece { background-image: url('assets/milogobola_light.png'); }
.mark-piece-one { clip-path: polygon(0 0, 45% 0, 0 78%);  }
.mark-piece-two { clip-path: polygon(46% 0, 100% 0, 100% 57%, 24% 82%);  }
.mark-piece-three { clip-path: polygon(24% 82%, 100% 57%, 100% 100%, 0 100%);  }
.mark-caption { display: block; margin-top: 12px; text-align: center; font: 11px/1.5 var(--font-text); }
.hero-mark:disabled .mark-caption { visibility: hidden; }

@media (max-width: 740px) {
  .hero-composition { display: block; margin-block: 28px 30px; }
  .hero-mark { position: absolute; width: clamp(44px, 11vw, 76px); top: -4px; right: 0; }
  .hero-composition h1 { font-size: clamp(32px, 10vw, 78px); }
  .hero-composition h1 > span:first-of-type { padding-left: 0; padding-top: 0; }
  .hero-composition .hero-surname { margin-top: 18px; }
  .hero-mark .mark-caption { position: absolute; right: 0; bottom: calc(100% + 6px); margin: 0; white-space: nowrap; font-size: 9px; }
}
@media (max-width: 480px) {
  .hero-composition .hero-surname { margin-top: 18px; }
  .hero-composition h1 { font-size: clamp(32px, 10vw, 48px); }
}


.hero-bottom {
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-end
}

.hero-bottom>p {
  font-size:clamp(18px,2vw,26px);
  line-height:1.45;
  margin:0;
  max-width:35ch
}

.hero-aside {
  text-align:right
}

.disciplines {
  font-family:var(--font-text);
  font-size:12px;
  margin:0 0 24px
}

.text-link {
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:32px
}

.text-link span {
  color:var(--accent);
  font-size:20px
}

/* Career: editorial rows with portrait screenshot slots. */
.career { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 64px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); padding: 48px 0; border-top: 1px solid var(--line); }
.job-copy { padding-top: 12px; }
.job h3, .job h2 { margin: 24px 0 12px; font-size: clamp(36px, 4.5vw, 64px); font-weight: 400; line-height: 1; letter-spacing: .12em; }
.games-section { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 64px; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (max-width: 640px) {
  .site-header { gap: 16px; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-end; }
  .games-section { margin-bottom: 32px; }
}
.job-role { margin: 0 0 28px; color: var(--ink); font-size: 14px; }
.job-description { max-width: 36ch; font-size: 17px; line-height: 1.65; }
.job-placeholder-note { margin-top: 28px; font: 11px/1.6 var(--font-text); color: var(--muted); }
.job-gallery { min-width: 0; max-width: 600px; width: 100%; justify-self: end; }
.job-screens {
  --slide-gap: clamp(12px, 2.5vw, 32px);
  display: flex;
  gap: var(--slide-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  padding: 6px 6px 14px;
}
.job-screens > .mobile-shot { flex: 0 0 calc((100% - var(--slide-gap)) / 2); scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.carousel-count { color: var(--muted); font: 11px/1.5 var(--font-text); }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 22px; }
.carousel-arrows button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.mobile-shot { min-width: 0; margin: 0; }
.screenshot-placeholder { position: relative; aspect-ratio: 9 / 16; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-align: center; font: 12px/1.6 var(--font-text); }
.placeholder-cross { font-size: 32px; color: var(--accent); }
.shot-format { position: absolute; bottom: 16px; font-size: 10px; }
.mobile-shot figcaption { margin-top: 12px; color: var(--muted); font: 10px/1.5 var(--font-text); overflow-wrap: anywhere; }
.mobile-shot img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--surface); }
#pitchlabs .mobile-shot img, #egogames .mobile-shot img, #tritap .mobile-shot img, #gluck-games .mobile-shot img { height: auto; aspect-ratio: auto; }
.job-overview { grid-column: 1 / -1; min-width: 0; margin: 12px 0 0; }
.job-overview a { display: block; }
.job-overview img { display: block; width: 100%; height: auto; }
.job-overview figcaption { margin-top: 12px; color: var(--muted); font: 10px/1.5 var(--font-text); }
.mobile-shot a { display: block; }
.mobile-shot video { display: block; width: 100%; height: auto; aspect-ratio: 606 / 1080; object-fit: contain; background: #262728; }
.video-error { font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.video-error a { text-decoration: underline; }
@media (max-width: 640px) {
  .job { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .job-copy { padding-top: 0; }
  .job-description { max-width: none; font-size: 15px; }
  .job-screens { justify-self: start; }
  .screenshot-placeholder { font-size: 10px; }
  .shot-format { font-size: 9px; bottom: 12px; }
  .career { margin-bottom: 32px; }
  .site-header nav { gap: 12px; font-size: 11px; }
}

.lab {
  border-top:1px solid var(--line);
  padding-top:32px
}

.section-heading {
  display:grid;
  grid-template-columns:1fr 1.5fr 1.25fr;
  align-items:start;
  gap:24px;
  margin-bottom:36px
}

.section-heading h2 {
  font-size:clamp(32px,4vw,54px);
  letter-spacing: .12em;
  font-weight:400;
  margin:0;
  line-height:1
}

.section-heading>p:last-child {
  font-size:14px;
  line-height:1.6;
  margin:0;
  color:var(--muted)
}

.experiment {
  display:grid;
  grid-template-columns:minmax(0,2.3fr) minmax(260px,1fr);
  border:1px solid var(--line)
}

.lab-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.lab-track > .experiment { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.lab-carousel { min-width: 0; }
.lab-carousel .carousel-controls { margin-top: 18px; }

.viewport {
  position:relative;
  min-height:560px;
  background:#171c1d;
  color:#e8e9dd;
  overflow:hidden
}

.fallback,canvas {
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  display:block
}

.viewer-top,.viewer-bottom {
  position:absolute;
  z-index:1;
  left:24px;
  right:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font:10px/1.5 var(--font-text);
  letter-spacing:.06em
}

.viewer-top {
  top:22px
}

.viewer-top>span:last-child {
  color:#b8bcb3
}

.viewer-bottom {
  bottom:20px
}

.viewer-bottom button {
  color:inherit;
  background:#171c1dcc;
  border:1px solid #71776e;
  padding:10px 14px;
  font-size:11px;
  min-height:42px
}

.control-panel {
  padding:32px;
  display:flex;
  flex-direction:column;
  background:var(--surface)
}

.control-panel h3 {
  font-size:29px;
  letter-spacing: .12em;
  font-weight:400;
  margin:18px 0 12px
}

.control-intro {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  margin:0 0 32px
}

.control {
  margin:0 0 26px
}

.control label {
  display:flex;
  justify-content:space-between;
  font-size:14px
}

.control output {
  font:12px var(--font-text);
  color:var(--muted)
}

input[type=range] {
  width:100%;
  accent-color:var(--accent);
  height:28px;
  margin:8px 0 0;
  cursor:pointer
}

.control p {
  font-size:11px;
  line-height:1.5;
  color:var(--muted);
  margin:2px 0 0
}

.reset-button {
  width:100%;
  display:flex;
  justify-content:space-between;
  border:0;
  border-top:1px solid var(--line);
  background:none;
  color:var(--ink);
  padding:18px 0 0;
  font-size:13px;
  min-height:44px
}

.reset-button:hover {
  color:var(--accent)
}

.fallback-note {
  font-size:12px;
  line-height:1.5;
  margin:22px 0 0;
  color:var(--muted)
}

.prototype-note {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  margin:18px 0 0
}

.contact {
  margin:90px 0 80px;
  display:grid;
  grid-template-columns:1fr 2.75fr;
  gap:24px
}

.contact h2 {
  font-size:clamp(38px,6vw,86px);
  font-weight:400;
  letter-spacing: .12em;
  line-height:1.02;
  margin:0
}

.email-link {
  grid-column:2;
  font-size:clamp(15px,2vw,25px);
  overflow-wrap:anywhere;
  line-height:1.5
}

.email-link span {
  color:var(--accent)
}

.linkedin {
  grid-column:2;
  justify-self:start
}

footer {
  border-top:1px solid var(--line);
  padding-block:24px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:11px;
  color:var(--muted)
}


@media(min-width:1600px) {
  h1>span:first-of-type {
  padding-left:160px
}


}

@media(max-width:900px) {
  .section-heading {
  grid-template-columns:1fr 2fr
}

.section-heading>p:last-child {
  grid-column:2
}

.experiment {
  grid-template-columns:minmax(0,1.7fr) minmax(245px,1fr)
}

.viewport {
  min-height:540px
}

.control-panel {
  padding:24px
}

.contact {
  grid-template-columns:1fr 2fr
}


}

@media(max-width:640px) {
  .site-header {
  height:80px
}

nav {
  gap:20px;
  font-size:12px
}

.hero {
  padding:30px 0 42px
}

.edition {
  font-size:9px
}

h1 {
  margin:40px 0;
  font-size:clamp(54px,13vw,84px)
}

h1>span:first-of-type {
  padding-left:4vw
}

.hero-bottom {
  display:block
}

.hero-aside {
  text-align:left;
  margin-top:28px;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:space-between;
  align-items:center
}

.disciplines {
  margin:0;
  font-size:10px
}

.section-heading {
  display:block
}

.section-heading h2 {
  margin:18px 0
}

.section-heading>p:last-child {
  font-size:13px
}

.experiment {
  display:block
}

.viewport {
  min-height:0;
  aspect-ratio:1/1.1
}

.viewer-top,.viewer-bottom {
  left:16px;
  right:16px;
  font-size:9px
}

.viewer-bottom>span {
  max-width:130px
}

.control-panel {
  padding:26px
}

.control-intro {
  margin-bottom:24px
}

.contact {
  display:block;
  margin:64px 0
}

.contact h2 {
  margin:22px 0 26px
}

.email-link {
  display:block;
  margin-bottom:22px
}

footer {
  flex-wrap:wrap;
  font-size:10px
}

footer>span:first-child {
  flex-basis:100%
}

.prototype-note {
  align-items:flex-start
}

.prototype-note .red-dot {
  margin-top:5px
}


}


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


}

/* Persistent header and accessible theme switch. */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--ink); font-size: 12px; }
.theme-switch { display: inline-block; width: 36px; height: 22px; padding: 3px; border-radius: 20px; background: var(--ink); }
.theme-switch::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.theme-toggle[aria-checked="true"] .theme-switch { background: var(--accent); }
.theme-toggle[aria-checked="true"] .theme-switch::before { transform: translateX(14px); background: #262728; }
.carousel-arrows button:hover:not(:disabled), .reset-button:hover { color: var(--ink); background: var(--accent); }
@media (max-width: 1000px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; height: auto; min-height: 105px; gap: 4px 16px; padding-block: 12px; }
  .site-header .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; margin: 0; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
}


h1, h2, h3, h4, h5, h6 { font-family: var(--font-title); text-transform: uppercase; }
strong, b { font-weight: 700; }

/* Personal notebook: readable without JavaScript. */
.about-section { border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 64px; }
.about-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(32px,6vw,88px); align-items: center; margin: 48px 0 64px; }
.about-intro-copy > p { max-width: 48ch; font-size: 18px; line-height: 1.65; }
.about-intro-copy .about-lead { font-size: clamp(30px,3.4vw,48px); line-height: 1.15; margin: 0 0 28px; }
.about-intro-copy .text-link { margin-top: 24px; }
.about-feature, .about-inline-image, .about-plan-gallery figure, .about-tracks figure { margin: 0; min-width: 0; }
.about-feature img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-section figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.personal-note { border-top: 1px solid var(--line); }
.personal-note:last-child { border-bottom: 1px solid var(--line); }
.personal-note summary { display: grid; grid-template-columns: minmax(110px,.4fr) minmax(0,2fr) 32px; align-items: center; gap: 24px; padding: 28px 0; cursor: pointer; list-style: none; }
.personal-note summary::-webkit-details-marker { display: none; }
.personal-note summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.note-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(20px,2.4vw,32px); line-height: 1.25; }
.note-toggle { font-size: 30px; line-height: 1; text-align: right; color: var(--ink); }
.personal-note[open] .note-toggle { font-size: 0; }
.personal-note[open] .note-toggle::after { content: '\2212'; font-size: 30px; }
.personal-note summary:hover .note-title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.note-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(24px,6vw,88px); padding: 12px 0 48px; }
.note-copy p { font-size: 17px; line-height: 1.65; max-width: 52ch; margin: 0 0 20px; }
.reflection-question, .note-copy .reflection-question { font-size: 24px; line-height: 1.4; margin: 0 0 28px; }
.note-copy h3 { font-size: 20px; font-weight: 400; letter-spacing: .12em; margin: 30px 0 16px; }
.archive-link, .about-crosslink a { text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.note-copy .about-crosslink { margin-top: 28px; }
.about-plan-gallery { display: grid; gap: 28px; align-content: start; }
.about-plan-gallery img { display: block; width: 100%; max-height: 340px; object-fit: contain; background: var(--surface); }
.about-inline-image img { display: block; width: 100%; height: auto; }
.about-tracks figure { padding: 20px 0; border-top: 1px solid var(--line); }
.about-tracks figcaption { font-size: 20px; color: var(--ink); margin: 0 0 16px; }
.about-tracks audio { width: 100%; }
@media (max-width: 740px) {
  .about-intro, .note-content { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .about-intro { margin: 32px 0 40px; }
  .about-intro-copy > p { font-size: 17px; }
  .personal-note summary { grid-template-columns: minmax(0,1fr) 28px; gap: 10px; padding: 24px 0; }
  .personal-note summary .eyebrow { grid-column: 1; }
  .note-title { grid-column: 1; }
  .note-toggle { grid-column: 2; grid-row: 1 / 3; }
  .note-content { padding-bottom: 32px; }
  .site-header nav { gap: 8px; font-size: 11px; }
}

/* Dedicated personal project pages share the site identity and header. */
.project-page { padding-top: 32px; }
.project-back { display: inline-block; padding-block: 12px; }
.project-heading { padding-block: 32px; border-bottom: 1px solid var(--line); }
.project-heading h1 { display: block; font-size: clamp(32px,5.8vw,76px); letter-spacing: .12em; line-height: 1.12; overflow-wrap: anywhere; margin: 24px 0 0; }
.project-heading h1 > .title-period { padding: 0; }
.project-content { max-width: 1100px; margin: 40px auto 64px; }
.project-content h2, .project-content h3 { letter-spacing: .12em; font-weight: 400; line-height: 1.25; margin: 40px 0 20px; }
.project-content h2 { font-size: clamp(24px,3vw,40px); }
.project-content p, .project-content li { max-width: 75ch; font-size: 18px; line-height: 1.7; }
.project-content figure { margin: 32px 0; }
.project-content img { display: block; width: 100%; height: auto; }
.project-content figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.project-gallery figure { margin: 0; }
.project-gallery img { aspect-ratio: 16/10; object-fit: contain; background: var(--surface); }
.project-tracks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.project-tracks figure { min-width: 0; margin: 0; padding-block: 24px; border-top: 1px solid var(--line); }
.project-tracks figcaption { margin: 0 0 16px; color: var(--ink); font-size: 22px; }
.project-tracks audio { width: 100%; }
.project-video { background: var(--surface); border: 1px solid var(--line); aspect-ratio: 16/9; display: grid; place-items: center; margin: 32px 0 12px; }
.project-video button { background: var(--accent); color: #262728; border: 0; padding: 16px 24px; min-height: 44px; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-return { margin: 0 0 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
@media (max-width: 740px) { .project-gallery, .project-tracks { grid-template-columns: minmax(0,1fr); } .project-heading h1 { font-size: clamp(30px,7vw,48px); } .project-content p, .project-content li { font-size: 17px; } }

/* Project editorial rhythm: hero, intent, process, then optional collections. */
.case-introduction { display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:48px;align-items:start;margin-top:32px; }
.case-lead { font-size:clamp(22px,2.6vw,34px);line-height:1.35;max-width:38ch;margin:0; }
.case-facts { list-style:none;margin:0;padding:0;font-size:14px;color:var(--muted); }
.case-facts li { padding:10px 0;border-bottom:1px solid var(--line); }
.case-index { margin:0;padding:20px 0;gap:24px;flex-wrap:wrap;font-size:14px; }
.case-cover { margin:12px 0 64px; }
.case-image { margin:0;min-width:0; }
.case-image img { display:block;width:100%;height:auto;max-height:680px;object-fit:contain; }
.case-image figcaption { margin-top:12px;font-size:12px;line-height:1.5;color:var(--muted); }
.case-cover>.case-image img { max-height:none;aspect-ratio:16/9;object-fit:cover; }
.case-dual { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px; }
.case-dual img { aspect-ratio:16/10;object-fit:cover; }
.case-section { padding:40px 0;border-top:1px solid var(--line); }
.case-section-heading { display:grid;grid-template-columns:minmax(120px,.45fr) minmax(0,1.55fr);gap:32px;margin-bottom:32px; }
.case-section h2 { font-size:clamp(25px,3vw,42px);font-weight:400;line-height:1.2;letter-spacing:.12em;margin:0; }
.case-split { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:clamp(28px,5vw,72px);align-items:start; }
.case-copy p { font-size:18px;line-height:1.7;margin:0 0 20px;max-width:55ch; }
.case-aside { padding:28px;background:var(--surface);border-left:4px solid var(--accent);font-size:18px;line-height:1.6; }
.case-collection,.case-notes { border-top:1px solid var(--line);margin-top:28px; }
.case-collection summary,.case-notes summary { cursor:pointer;min-height:56px;padding:18px 4px;list-style:none;font-size:17px;display:flex;justify-content:space-between;gap:18px; }
.case-collection summary::-webkit-details-marker,.case-notes summary::-webkit-details-marker { display:none; }
.case-collection summary span { color:var(--muted);font-size:13px;white-space:nowrap; }
.case-notes li { font-size:17px;line-height:1.7;max-width:75ch; }
.case-gallery-track { display:flex;overflow-x:auto;gap:20px;scroll-snap-type:x mandatory;padding:4px 0 16px; }
.case-gallery-track>.case-image { flex:0 0 calc((100% - 20px)/2);scroll-snap-align:start; }
.case-gallery-track img { aspect-ratio:16/10;object-fit:contain;background:var(--surface); }
.case-gallery-cards .case-gallery-track>.case-image { flex-basis:calc((100% - 60px)/4); }
.case-gallery-cards img { aspect-ratio:3/4; }
.case-film { margin:0;min-width:0; }
.case-film .project-video { position:relative;overflow:hidden;margin:0;min-height:200px; }
.video-poster { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.65); }
.project-video button,.video-open-link { position:relative;z-index:1;background:var(--accent);color:#262728;padding:16px 24px;min-height:44px;border:0; }
.case-film figcaption { display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-size:13px;color:var(--muted); }
.case-film-pair { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.soundcloud-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:28px; }
.soundcloud-track { margin:0;padding:20px;border:1px solid var(--line);min-width:0; }
.soundcloud-track figcaption { margin-bottom:16px;font-size:20px; }
.soundcloud-player { min-height:166px;display:grid;place-items:center;background:var(--surface);margin-bottom:12px; }
.soundcloud-player button { padding:14px;border:1px solid var(--line);background:var(--accent);color:#262728; }
.soundcloud-player iframe { border:0; }
.case-lightbox { width:min(94vw,1300px);max-height:94vh;padding:20px;background:var(--paper);color:var(--ink);border:1px solid var(--line); }
.case-lightbox::backdrop { background:rgb(0 0 0 / .8); }
.case-lightbox img { display:block;width:100%;max-height:75vh;object-fit:contain; }
.case-lightbox button { display:block;margin:0 0 14px auto;min-height:44px;padding:8px 16px;color:var(--ink);background:var(--surface);border:1px solid var(--line); }
.case-lightbox p { font-size:14px;margin-bottom:0; }
summary:focus-visible,.case-gallery-track:focus-visible { outline:3px solid var(--ink);outline-offset:4px; }
@media(max-width:740px) {
 .case-introduction,.case-split,.case-section-heading,.case-film-pair,.soundcloud-grid { grid-template-columns:minmax(0,1fr);gap:24px; }
 .case-introduction { margin-top:24px; }
 .case-section { padding:32px 0; }
 .case-cover { margin-bottom:36px; }
 .case-copy p { font-size:17px; }
 .case-dual { grid-template-columns:minmax(0,1fr); }
 .case-gallery-track>.case-image { flex-basis:90%; }
 .case-gallery-cards .case-gallery-track>.case-image { flex-basis:calc((100% - 20px)/2); }
 .case-film figcaption { flex-wrap:wrap; }
}
.project-video { width:100%;min-width:0; }
.project-video button,.video-open-link { max-width:100%;text-align:center; }

.case-top-film { margin:16px 0 32px; }
.case-top-film .project-video { max-height:65vh;aspect-ratio:16/9;background:#171c1d; }
.pipeline-tools { grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:24px;list-style:none;padding:18px 22px;margin:0;background:#262728;color:#dfe0e1;border-radius:2px; }
.pipeline-tools li { display:flex;align-items:center;gap:12px;font-size:13px; }
.pipeline-tools img { width:32px;height:32px;object-fit:contain; }
@media(max-width:740px) { .pipeline-tools { gap:16px;padding:16px; } .pipeline-tools li { font-size:12px; } .case-top-film .project-video { max-height:none; } }
.case-tools { background:#262728;color:#dfe0e1;padding:20px 24px;min-width:0; }
.case-tools .pipeline-tools { flex-direction:column;gap:16px;padding:0; }
.case-tool-note { margin:20px 0 0;padding-top:16px;border-top:1px solid rgb(223 224 225 / .25);font-size:13px; }

/* The Bunker header: one reading column, then a quiet horizontal tools line. */
:is(.project-bunker, .project-abduction, .project-vfx) .project-heading { padding-block:24px 28px; }
:is(.project-bunker, .project-abduction, .project-vfx) .case-introduction { display:block;margin-top:24px; }
:is(.project-bunker, .project-abduction, .project-vfx) .case-lead { max-width:58ch;font-size:clamp(21px,2.2vw,30px); }
:is(.project-bunker, .project-abduction, .project-vfx) .case-tools { display:flex;align-items:center;flex-wrap:wrap;gap:20px 32px;background:transparent;color:var(--ink);padding:0;margin-top:28px; }
:is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools { display:flex;flex-direction:row;flex-wrap:wrap;gap:28px;padding:0;background:transparent;color:var(--ink); }
:is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools img { width:26px;height:26px;filter:brightness(0); }
:root[data-theme="dark"] :is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools img { filter:brightness(0) invert(1); }
:is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools li { gap:10px;font-size:13px; }
:is(.project-bunker, .project-abduction, .project-vfx) .case-tool-note { margin:0 0 0 auto;padding:0;border:0;color:var(--muted);font-size:12px; }
:is(.project-bunker, .project-abduction, .project-vfx) .case-top-film { margin-top:24px; }
@media(max-width:740px) {
 :is(.project-bunker, .project-abduction, .project-vfx) .case-tools { display:block;margin-top:24px; }
 :is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools { flex-wrap:nowrap;gap:12px;justify-content:flex-start; }
 :is(.project-bunker, .project-abduction, .project-vfx) .pipeline-tools li { flex:1;flex-direction:column;align-items:flex-start;gap:8px;font-size:11px; }
 :is(.project-bunker, .project-abduction, .project-vfx) .case-tool-note { margin-top:18px; }
}
.lightbox-navigation { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px; }
.case-lightbox .lightbox-navigation button { margin:0; }
.lightbox-count { font-size:14px;color:var(--muted);white-space:nowrap; }
.case-lightbox img { max-height:calc(94vh - 180px); }
@media(max-width:740px) { .case-lightbox { padding:14px; } .case-lightbox .lightbox-navigation button { padding:8px;font-size:13px; } }

.case-gallery-title { font-size:clamp(20px,2vw,26px);margin:32px 0 20px; }

.project-vfx .pipeline-tools img { filter:none; }
:root[data-theme="dark"] .project-vfx .pipeline-tools img { filter:none; }
.project-vfx .pipeline-tools li { flex:none; }

/* Card families: one visible collection beside its design notes. */
.project-dungeon .case-gallery-cards .case-gallery-track > .case-image { flex-basis:calc((100% - 20px)/2); }
.project-dungeon .case-gallery-cards img { aspect-ratio:3/4;max-height:460px;background:transparent; }
.project-dungeon .case-visual { min-width:0; }
@media(max-width:740px) { .project-dungeon .case-gallery-cards .case-gallery-track > .case-image { flex-basis:78%; } }

/* Final illustration: full composition, without height limits or cropping. */
.illustration-final { margin:24px 0 64px; }
.illustration-final .case-image img { width:100%;height:auto;max-height:none;object-fit:contain; }

/* Music follows a single vertical listening sequence on every screen. */
.project-tracks, .soundcloud-grid { grid-template-columns:minmax(0,1fr);gap:16px; }

/* Wildbytes uses the full carousel width for landscape project media. */
.job-landscape .job-screens > .mobile-shot { flex-basis:100%; }
.job-landscape .mobile-shot img, .job-landscape .mobile-shot video { width:100%;height:auto;aspect-ratio:16/9;object-fit:contain; }

.job-dates { margin:12px 0 16px;color:var(--muted);font-size:14px;line-height:1.5; }

/* Wildbytes always occupies exactly one viewport per landscape slide. */
#wildbytes .job-screens { gap:0;padding-inline:0;scroll-padding-inline:0; }
#wildbytes .job-screens > .mobile-shot { flex:0 0 100%;width:100%;min-width:100%;max-width:100%;scroll-snap-stop:always; }

#pitchlabs-title { overflow-wrap:anywhere; }
