:root{--bg:#08110f;--panel:#11201c;--panel2:#0c1714;--text:#edf7f2;--muted:#95aaa2;--accent:#84e5ba;--accent2:#c8ff61;--line:rgba(220,255,240,.12);--danger:#ff8179}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 15% 20%,#132a20 0,transparent 32rem),var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.55}.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:16px 4vw;background:#08110fdd;backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;color:inherit;text-decoration:none;align-items:center}.brand>b{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,var(--accent),var(--accent2));color:#07100e;display:grid;place-items:center}.brand strong,.brand small{display:block}.brand small{color:var(--muted);font-size:.72rem}.site-header nav{display:flex;gap:22px}.site-header nav a{color:#c6d5d0;text-decoration:none;font-size:.88rem}.hero,.section{max-width:1320px;margin:auto;padding:100px 5vw}.hero{min-height:78vh;display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:center}.eyebrow{color:var(--accent);text-transform:uppercase;letter-spacing:.17em;font-weight:800;font-size:.72rem}h1{font-size:clamp(3rem,6vw,6rem);line-height:.96;letter-spacing:-.06em;margin:15px 0 26px}h1 em{font-style:normal;color:var(--accent)}h2{font-size:clamp(2rem,4vw,4rem);line-height:1;letter-spacing:-.04em}.hero p,.muted{color:var(--muted)}.hero-card{min-height:350px;border:1px solid var(--line);border-radius:32px;background:radial-gradient(circle,#21463a,#0b1713 65%);display:grid;place-items:center;align-content:center;gap:12px}.hero-card span{color:var(--accent);letter-spacing:.15em}.hero-card strong{font-size:1.7rem}.button,.secondary-button{border:0;border-radius:99px;padding:13px 20px;font:inherit;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.button{background:linear-gradient(120deg,var(--accent),var(--accent2));color:#06100d}.secondary-button{background:#182823;color:var(--text);border:1px solid var(--line)}.card,.lp-shell{border:1px solid var(--line);background:#10201bdb;border-radius:24px;padding:26px}.skills{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.skills .card{min-height:180px}.skills p{color:var(--muted)}.code-section{max-width:none;background:#0a1512;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.code-section>*{max-width:1188px;margin-left:auto;margin-right:auto}.lp-shell{margin-top:36px;box-shadow:0 30px 70px #0004}.lp-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:16px}.lp-tab,.side-switch button{border:1px solid var(--line);background:transparent;color:#cbd9d4;border-radius:99px;padding:9px 15px;cursor:pointer}.lp-tab.active,.side-switch button.active{background:var(--accent);color:#06100d;font-weight:800}.status{margin:18px 0;padding:12px 14px;border-radius:12px;font-size:.86rem}.status.checking{background:#243029}.status.ready{background:#14382a;color:#b9f4d5}.status.missing{background:#3b2622;color:#ffd0ca}.lp-panel{display:none}.lp-panel.active{display:block}.lp-form-grid{display:grid;grid-template-columns:1fr 2fr;gap:14px;margin:18px 0}label{display:block;color:#b8cbc4;font-size:.85rem}input,select,textarea{width:100%;margin-top:7px;background:#08130f;color:white;border:1px solid var(--line);border-radius:12px;padding:12px 13px;font:inherit}textarea{resize:vertical;min-height:160px}.check{display:flex;gap:9px;align-items:center;margin:18px 0}.check input{width:auto;margin:0}.lp-help{margin:15px 0;color:var(--muted);font-size:.85rem}.lp-help summary{cursor:pointer;color:#d9e7e2}.error{color:var(--danger);min-height:1.4em}.plate-preview{margin-top:24px;min-height:220px;border:1px dashed #ffffff22;border-radius:18px;background:#08130f;display:grid;place-items:center;padding:22px;overflow:auto}.plate-preview img{max-width:100%;height:auto;filter:drop-shadow(0 12px 18px #0007)}.plate-preview.empty{color:#6f837c}.side-switch{display:flex;gap:8px;align-items:center;margin-top:14px}.side-switch .secondary-button{margin-left:auto}.small{font-size:.8rem}.model-gallery{display:flex;gap:18px;overflow-x:auto;padding:5px 0 18px;scroll-snap-type:x mandatory}.model-placeholder{min-width:min(560px,85vw);scroll-snap-align:start}code{color:#c8ff9b}footer{padding:30px 5vw;border-top:1px solid var(--line);color:var(--muted)}@media(max-width:850px){.site-header nav{display:none}.hero{grid-template-columns:1fr;min-height:auto}.skills{grid-template-columns:1fr 1fr}.lp-form-grid{grid-template-columns:1fr}.side-switch{flex-wrap:wrap}.side-switch .secondary-button{margin-left:0}.hero,.section{padding:75px 20px}}@media(max-width:560px){.skills{grid-template-columns:1fr}.brand small{display:none}h1{font-size:3.25rem}.plate-preview{min-height:170px}}

/* 3D GLB gallery */
.model-gallery{display:flex;gap:18px;overflow-x:auto;overflow-y:hidden;padding:8px 2px 20px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--accent) #0b1713}
.model-gallery::-webkit-scrollbar{height:10px}.model-gallery::-webkit-scrollbar-track{background:#0b1713;border-radius:999px}.model-gallery::-webkit-scrollbar-thumb{background:#315f50;border-radius:999px}.model-gallery::-webkit-scrollbar-thumb:hover{background:var(--accent)}
.model-card{flex:0 0 min(620px,86vw);scroll-snap-align:start;border:1px solid var(--line);background:#10201bdb;border-radius:24px;overflow:hidden;box-shadow:0 24px 60px #0003}
.model-card-head{padding:20px 22px 14px;display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.model-card-head h3{margin:0 0 4px;font-size:1.25rem}.model-card-head p{margin:0;color:var(--muted);font-size:.82rem}.model-variant-wrap{min-width:180px}.model-variant-wrap label{font-size:.72rem;color:var(--muted)}.model-variant-select{margin-top:5px;padding:8px 10px;border-radius:10px}
.model-canvas-wrap{position:relative;height:420px;background:radial-gradient(circle at 50% 35%,#1c3b31,#07100e 72%);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.model-canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none}.model-loading,.model-error{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:30px;color:var(--muted);pointer-events:none}.model-error{color:#ffc1bb;background:#160d0ccc}.model-loading[hidden],.model-error[hidden]{display:none}
.model-toolbar{display:flex;gap:8px;align-items:center;padding:13px 16px;flex-wrap:wrap}.model-toolbar button{border:1px solid var(--line);background:#0b1713;color:#cbd9d4;border-radius:999px;padding:8px 12px;cursor:pointer}.model-toolbar button.active{background:var(--accent);color:#06100d;font-weight:800}.model-toolbar .model-reset{margin-left:auto}.model-placeholder{flex:0 0 min(560px,85vw);scroll-snap-align:start}
@media(max-width:650px){.model-card{flex-basis:90vw}.model-card-head{flex-direction:column}.model-variant-wrap{width:100%}.model-canvas-wrap{height:340px}.model-toolbar .model-reset{margin-left:0}}

/* Audio gallery */
.audio-section{max-width:1320px}
.audio-group{margin-top:46px}
.audio-group-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:15px;padding:0 2px}
.audio-group-head h3{margin:2px 0 0;font-size:1.55rem;letter-spacing:-.025em}
.audio-kicker{display:block;color:var(--accent);font-size:.68rem;text-transform:uppercase;letter-spacing:.15em;font-weight:800}
.audio-gallery{display:flex;gap:16px;overflow-x:auto;overflow-y:hidden;padding:4px 2px 18px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--accent) #0b1713}
.audio-gallery::-webkit-scrollbar{height:10px}.audio-gallery::-webkit-scrollbar-track{background:#0b1713;border-radius:999px}.audio-gallery::-webkit-scrollbar-thumb{background:#315f50;border-radius:999px}.audio-gallery::-webkit-scrollbar-thumb:hover{background:var(--accent)}
.audio-card{flex:0 0 min(390px,82vw);scroll-snap-align:start;border:1px solid var(--line);background:#10201bdb;border-radius:22px;padding:20px;box-shadow:0 20px 50px #0003;display:flex;flex-direction:column;min-height:225px}
.audio-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.audio-card h4{font-size:1.05rem;margin:0 0 4px}.audio-card-format{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 8px}
.audio-wave{height:62px;margin:22px 0 18px;display:flex;align-items:center;gap:3px;overflow:hidden;opacity:.88}.audio-wave i{display:block;flex:1;min-width:2px;max-width:5px;border-radius:999px;background:linear-gradient(to top,var(--accent),var(--accent2));height:var(--h,45%);opacity:.78}
.audio-player-controls{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;margin-top:auto}.audio-loop{grid-column:2 / 4;justify-self:end;border:1px solid var(--line);background:#0b1713;color:var(--muted);border-radius:999px;padding:6px 10px;cursor:pointer;font-size:.72rem;display:inline-flex;align-items:center;gap:6px;transition:.2s ease}.audio-loop:hover{border-color:#84e5ba66;color:var(--text)}.audio-loop.active{background:#17372d;color:var(--accent);border-color:#84e5ba66;box-shadow:0 0 0 1px #84e5ba18 inset}.audio-loop span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.audio-play{width:44px;height:44px;border-radius:50%;border:0;background:var(--accent);color:#06100d;font-weight:900;cursor:pointer;display:grid;place-items:center}.audio-play:hover{background:var(--accent2)}
.audio-progress{height:6px;border-radius:999px;background:#ffffff14;position:relative;cursor:pointer;overflow:hidden}.audio-progress-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:inherit}.audio-time{min-width:78px;text-align:right;color:var(--muted);font-size:.72rem;font-variant-numeric:tabular-nums}.audio-placeholder{flex:0 0 min(460px,82vw);scroll-snap-align:start;color:var(--muted)}
.audio-card.is-playing{border-color:#84e5ba66;box-shadow:0 22px 55px #0004,0 0 0 1px #84e5ba22 inset}
@media(max-width:650px){.audio-group{margin-top:38px}.audio-card{flex-basis:88vw}.audio-time{min-width:68px}.audio-player-controls{grid-template-columns:42px 1fr auto}.audio-loop{grid-column:1 / 4;justify-self:end}}

/* Project asset gallery */
.project-intro { max-width: 760px; margin-bottom: 26px; }
.project-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px 0 20px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(119,224,181,.42) rgba(255,255,255,.04);
}
.project-gallery::-webkit-scrollbar { height: 9px; }
.project-gallery::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 20px; }
.project-gallery::-webkit-scrollbar-thumb { background: rgba(119,224,181,.38); border-radius: 20px; }
.project-window {
  flex: 0 0 min(720px, calc(100vw - 52px));
  width: min(720px, calc(100vw - 52px));
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}
.project-window-copy { padding: 26px 28px 22px; }
.project-window-copy h3 { margin: 5px 0 10px; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.project-window-copy > p:last-child { color: var(--muted); margin-bottom: 0; }
.project-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: .69rem; font-weight: 800; margin: 0; }
.project-media-stack { border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.project-video { aspect-ratio: 16 / 9; width: 100%; background: #050807; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-images { display: grid; gap: 3px; padding-top: 3px; background: var(--line); }
.project-images-1 { grid-template-columns: 1fr; }
.project-images-2 { grid-template-columns: repeat(2, 1fr); }
.project-images-3, .project-images-4 { grid-template-columns: repeat(2, 1fr); }
.project-images-3 .project-image-button:first-child { grid-row: span 2; }
.project-image-button { display: block; padding: 0; border: 0; min-height: 155px; max-height: 235px; overflow: hidden; cursor: zoom-in; background: #0a1210; }
.project-image-button img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; transition: transform .25s ease; }
.project-image-button:hover img { transform: scale(1.025); }
.project-placeholder { flex: 0 0 420px; padding: 28px; color: var(--muted); }
.project-image-dialog { width: min(1100px, calc(100vw - 34px)); max-height: calc(100vh - 34px); border: 1px solid var(--line); border-radius: 20px; padding: 10px; background: #08110f; }
.project-image-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.project-image-dialog img { display: block; max-width: 100%; max-height: calc(100vh - 60px); margin: auto; object-fit: contain; border-radius: 12px; }
.project-image-close { position: fixed; z-index: 2; top: 22px; right: 24px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(5,8,7,.78); color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 650px) {
  .project-window { flex-basis: calc(100vw - 40px); width: calc(100vw - 40px); }
  .project-images-2, .project-images-3, .project-images-4 { grid-template-columns: 1fr 1fr; }
  .project-image-button { min-height: 110px; }
}


/* Personal profile */
.profile-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:18px;align-items:start;margin-top:34px}.profile-main{padding:30px}.profile-intro{display:grid;grid-template-columns:190px minmax(0,1fr);gap:30px;align-items:start}.profile-avatar{aspect-ratio:.82;border-radius:20px;border:1px solid var(--line);background:radial-gradient(circle at 50% 25%,#244d3e,#0a1713 70%);display:grid;place-items:center;align-content:center;position:sticky;top:100px}.profile-avatar span{font-size:3.2rem;line-height:1;font-weight:900;color:var(--accent)}.profile-avatar small{margin-top:8px;color:var(--muted)}.profile-role{margin:0 0 5px;color:var(--accent);font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.profile-main h3{font-size:clamp(1.8rem,3vw,2.7rem);letter-spacing:-.04em;margin:0 0 18px}.profile-main p{color:#b8cbc4}.profile-main p strong{color:var(--text)}.profile-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px;padding-top:22px;border-top:1px solid var(--line)}.profile-tags span{border:1px solid var(--line);border-radius:999px;padding:7px 11px;color:#cbd9d4;background:#0b1713;font-size:.76rem}.profile-side{display:grid;gap:12px}.profile-fact{padding:20px 22px}.profile-fact small,.profile-fact strong,.profile-fact span{display:block}.profile-fact small{color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.65rem;font-weight:800;margin-bottom:7px}.profile-fact strong{font-size:1.03rem;margin-bottom:4px}.profile-fact span{color:var(--muted);font-size:.8rem;line-height:1.45}@media(max-width:900px){.profile-layout{grid-template-columns:1fr}.profile-side{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.profile-intro{grid-template-columns:1fr}.profile-avatar{position:static;max-width:210px}.profile-side{grid-template-columns:1fr}.profile-main{padding:22px}}

/* ========================================================================== */
/* Responsive layout overhaul                                                  */
/* ========================================================================== */
:root{
  --page-max: 1760px;
  --page-pad: clamp(18px, 3.25vw, 64px);
  --section-gap: clamp(72px, 7vw, 118px);
}

html,body{width:100%;max-width:100%;overflow-x:hidden}
body{min-width:0}
img,video,iframe,canvas,svg{max-width:100%}
main,.hero,.section,.card,.lp-shell,.profile-layout,.profile-main,.profile-side{min-width:0}

/* Use substantially more of wide desktop displays without letting prose become
   uncomfortably wide. */
.site-header{padding-left:var(--page-pad);padding-right:var(--page-pad)}
.hero,.section{
  width:min(100%, var(--page-max));
  max-width:var(--page-max);
  padding-left:var(--page-pad);
  padding-right:var(--page-pad);
  padding-top:var(--section-gap);
  padding-bottom:var(--section-gap);
}
.code-section{width:100%;max-width:none}
.code-section>*{
  width:min(100%, var(--page-max));
  max-width:var(--page-max);
  margin-left:auto;
  margin-right:auto;
}
.audio-section{max-width:var(--page-max)}
footer{padding-left:var(--page-pad);padding-right:var(--page-pad)}

/* Horizontal asset shelves always use the complete width of their section. */
.model-gallery,.audio-gallery,.project-gallery{
  width:100%;
  max-width:100%;
  min-width:0;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scroll-padding-inline:2px;
}

/* Larger desktop cards make better use of the available space. */
.model-card{flex:0 0 clamp(560px, 43vw, 760px);max-width:760px}
.audio-card{flex:0 0 clamp(340px, 27vw, 460px);max-width:460px}
.project-window{flex:0 0 clamp(620px, 48vw, 860px);width:auto;max-width:860px}

/* Prevent form controls, long names and media from forcing the viewport wider. */
input,select,textarea{min-width:0;max-width:100%}
.model-card-head>*,.audio-card-top>*,.project-window-copy,.profile-intro>*{min-width:0}
.model-card-head h3,.audio-card h4,.project-window-copy h3{overflow-wrap:anywhere}

@media (min-width:1800px){
  :root{--page-max:1880px;--page-pad:clamp(44px,4vw,84px)}
  .model-card{flex-basis:720px;max-width:720px}
  .audio-card{flex-basis:440px;max-width:440px}
  .project-window{flex-basis:820px;max-width:820px}
}

@media (max-width:850px){
  :root{--page-pad:20px;--section-gap:74px}
  .hero,.section{width:100%;max-width:none;padding-left:var(--page-pad);padding-right:var(--page-pad)}
  .code-section>*{width:100%;max-width:none}
}

@media (max-width:650px){
  :root{--page-pad:16px;--section-gap:62px}
  .site-header{padding-left:16px;padding-right:16px}
  .hero,.section{padding-left:16px;padding-right:16px}
  h1{font-size:clamp(2.55rem,13vw,3.25rem);overflow-wrap:anywhere}
  h2{font-size:clamp(2rem,10vw,3rem)}

  /* Each first card exactly fills the usable screen width. The following cards
     remain horizontally accessible by swipe, without creating page overflow. */
  .model-card,.model-placeholder,
  .audio-card,.audio-placeholder,
  .project-window,.project-placeholder{
    flex:0 0 100%;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .model-gallery,.audio-gallery,.project-gallery{gap:12px;padding-right:0}
  .model-canvas-wrap{height:clamp(285px,78vw,350px)}
  .model-card-head{padding:18px 18px 12px}
  .model-toolbar{padding:12px}
  .audio-card{padding:18px}
  .project-window-copy{padding:20px 20px 18px}
  .project-video{width:100%}
  .project-images{width:100%}
  .project-image-button{min-width:0}
  .lp-shell,.card{max-width:100%}
  .lp-shell{padding:20px}
  .lp-tabs{overflow-x:auto;white-space:nowrap;padding-bottom:12px}
  .lp-tab{flex:0 0 auto}
  .plate-preview{padding:12px;overflow:hidden}
  .plate-preview img{width:auto;max-width:100%;height:auto}
}

@media (max-width:390px){
  :root{--page-pad:14px}
  .site-header,.hero,.section{padding-left:14px;padding-right:14px}
  .brand>b{width:38px;height:38px}
  .card,.lp-shell{border-radius:18px}
  .lp-shell{padding:16px}
  .audio-player-controls{gap:8px}
  .audio-time{min-width:60px;font-size:.68rem}
}


/* Clear affordances for horizontally scrollable galleries ------------------- */
.horizontal-scroll-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.horizontal-scroll {
  min-width: 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 224, 181, .45) rgba(255, 255, 255, .04);
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .04);
  border-radius: 999px;
}
.horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(119, 224, 181, .45);
  border-radius: 999px;
}

.scroll-arrow {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 48px;
  height: 48px;
  display: none;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(8, 17, 15, .88);
  color: var(--accent, #77e0b5);
  box-shadow: 0 8px 28px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.has-horizontal-overflow .scroll-arrow {
  display: grid;
}
.scroll-arrow:hover:not(:disabled) {
  background: rgba(18, 38, 32, .96);
  transform: translateY(-50%) scale(1.07);
}
.scroll-arrow:disabled {
  opacity: .18;
  cursor: default;
}
.scroll-arrow-left {
  left: 10px;
}
.scroll-arrow-right {
  right: 10px;
}

.scroll-hint {
  display: none;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 10px 6px 0 auto;
  color: var(--muted, #9bb1a9);
  font-size: .76rem;
  letter-spacing: .02em;
  user-select: none;
  pointer-events: none;
}
.has-horizontal-overflow .scroll-hint {
  display: flex;
}
.scroll-hint b {
  color: var(--accent, #77e0b5);
  font-size: 1rem;
}

/* Edge fades make it visually obvious that more content continues sideways. */
.horizontal-scroll-shell.has-horizontal-overflow::before,
.horizontal-scroll-shell.has-horizontal-overflow::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 22px;
  width: 52px;
  pointer-events: none;
}
.horizontal-scroll-shell.has-horizontal-overflow::before {
  left: 0;
  background: linear-gradient(90deg, rgba(8,17,15,.72), transparent);
}
.horizontal-scroll-shell.has-horizontal-overflow::after {
  right: 0;
  background: linear-gradient(270deg, rgba(8,17,15,.72), transparent);
}

@media (max-width: 700px) {
  .scroll-arrow {
    width: 42px;
    height: 42px;
    top: 48%;
    font-size: 1.15rem;
  }
  .scroll-arrow-left { left: 6px; }
  .scroll-arrow-right { right: 6px; }

  .scroll-hint {
    margin-top: 8px;
    margin-right: 2px;
    font-size: .72rem;
  }

  .horizontal-scroll-shell.has-horizontal-overflow::before,
  .horizontal-scroll-shell.has-horizontal-overflow::after {
    width: 34px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .scroll-arrow {
    background: rgba(8, 17, 15, .92);
  }
}


/* Rich Markdown project descriptions ---------------------------------------- */
.project-description {
  color: var(--muted, #9bb1a9);
  line-height: 1.72;
  font-size: .94rem;
  overflow-wrap: anywhere;
}

.project-description > :first-child {
  margin-top: 0;
}
.project-description > :last-child {
  margin-bottom: 0;
}
.project-description p {
  margin: 0 0 1em;
}
.project-description h3,
.project-description h4,
.project-description h5,
.project-description h6 {
  color: var(--text, #edf7f2);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 1.35em 0 .55em;
}
.project-description h3 { font-size: 1.18rem; }
.project-description h4 { font-size: 1.06rem; }
.project-description h5,
.project-description h6 { font-size: 1rem; }

.project-description strong {
  color: var(--text, #edf7f2);
  font-weight: 750;
}
.project-description em {
  color: #c8d8d2;
}
.project-description ul,
.project-description ol {
  margin: .7em 0 1.1em;
  padding-left: 1.35em;
}
.project-description li + li {
  margin-top: .35em;
}
.project-description blockquote {
  margin: 1em 0;
  padding: .2em 0 .2em 1em;
  border-left: 3px solid var(--accent, #77e0b5);
  color: #c4d5cf;
}
.project-description a {
  color: var(--accent, #77e0b5);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.project-description code {
  padding: .12em .35em;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  background: rgba(255,255,255,.05);
  color: #d8eee5;
  font-size: .88em;
}


/* Project media robustness */
.project-media-stack,
.project-images,
.project-image-button {
  min-width: 0;
}
.project-image-button {
  overflow: hidden;
}
.project-image-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.project-description-empty {
  color: var(--muted, #9bb1a9);
  font-style: italic;
}


/* ==========================================================================
   Consistent card alignment — scoped v2
   ========================================================================== */

/* ----- 3D model cards ------------------------------------------------------ */

/* Preserve the original vertical flex stack: head -> viewer -> toolbar. */
.model-card {
  display: flex;
  flex-direction: column;
}

/* Every model card reserves exactly the same header height. */
.model-card-head {
  flex: 0 0 104px;
  height: 104px;
  min-height: 104px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Reserve the same area for the variant selector whether it exists or not. */
.model-variant-slot {
  flex: 0 0 190px;
  width: 190px;
  min-width: 190px;
  min-height: 50px;
}

.model-variant-slot-empty {
  visibility: hidden;
  pointer-events: none;
}

/* Long titles/descriptions may not push the viewer down. */
.model-card-head > div:first-child {
  min-width: 0;
  overflow: hidden;
}

.model-card-head h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.model-card-head p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Viewer and toolbar keep their original fixed positions/sizes. */
.model-canvas-wrap {
  flex: 0 0 420px;
  height: 420px;
}

.model-toolbar {
  flex: 0 0 auto;
  min-height: 62px;
}

/* ----- Project cards ------------------------------------------------------- */

/* Keep flex-column architecture. */
.project-window {
  display: flex;
  flex-direction: column;
}

/*
  The copy area has one fixed height on all cards.
  Long Markdown scrolls INSIDE this area instead of moving the media.
*/
.project-window-copy {
  flex: 0 0 310px;
  height: 310px;
  min-height: 310px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.project-window-copy > .project-kicker,
.project-window-copy > h3 {
  flex: 0 0 auto;
}

.project-window .project-description {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 7px;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 224, 181, .32) transparent;
}

.project-window .project-description::-webkit-scrollbar {
  width: 6px;
}
.project-window .project-description::-webkit-scrollbar-thumb {
  background: rgba(119, 224, 181, .32);
  border-radius: 999px;
}

/* Every project gets the same media zone starting at the same vertical point. */
.project-media-slot {
  flex: 0 0 440px;
  height: 440px;
  min-height: 440px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(0,0,0,.12);
  border-top: 1px solid var(--line);
}

.project-media-stack {
  height: 100%;
  min-height: 0;
  border-top: 0; /* border is handled by the media slot */
  display: flex;
  flex-direction: column;
}

/* Video only / images only: use the whole media zone. */
.project-media-stack.has-video.no-images .project-video,
.project-media-stack.no-video.has-images .project-images {
  flex: 1 1 100%;
  height: 100%;
  min-height: 0;
}

/* Mixed media: fixed split, no overlap and no compression outside the slot. */
.project-media-stack.has-video.has-images .project-video {
  flex: 0 0 56%;
  height: 56%;
  min-height: 0;
}
.project-media-stack.has-video.has-images .project-images {
  flex: 1 1 44%;
  height: 44%;
  min-height: 0;
}

/* Override the old aspect-ratio only inside the fixed project media zone. */
.project-media-slot .project-video {
  width: 100%;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
}

.project-media-slot .project-video iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

/* Images always fit the allocated media area. */
.project-media-slot .project-images {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  grid-auto-rows: minmax(0, 1fr);
}

.project-media-slot .project-images-1,
.project-media-slot .project-images-2 {
  grid-template-rows: minmax(0, 1fr);
}

.project-media-slot .project-images-3,
.project-media-slot .project-images-4 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.project-media-slot .project-image-button {
  min-height: 0;
  max-height: none;
  height: 100%;
}

.project-media-slot .project-image-button img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.project-media-empty {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.012);
}

/* Cards in each horizontal gallery start and end aligned. */
.model-gallery,
.project-gallery {
  align-items: stretch;
}

/* ----- Responsive adjustments -------------------------------------------- */
@media (max-width: 650px) {
  /* On mobile model heads stack vertically, so reserve enough space for the
     selector slot on every card, including single-variant models. */
  .model-card-head {
    flex: 0 0 142px;
    height: 142px;
    min-height: 142px;
  }

  .model-variant-slot {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    min-height: 50px;
  }

  .model-canvas-wrap {
    flex-basis: clamp(285px, 78vw, 350px);
    height: clamp(285px, 78vw, 350px);
  }

  .project-window-copy {
    flex-basis: 280px;
    height: 280px;
    min-height: 280px;
  }

  .project-media-slot {
    flex-basis: 360px;
    height: 360px;
    min-height: 360px;
  }
}

@media (min-width: 1500px) {
  .project-window-copy {
    flex-basis: 330px;
    height: 330px;
    min-height: 330px;
  }

  .project-media-slot {
    flex-basis: 470px;
    height: 470px;
    min-height: 470px;
  }
}


/* ==========================================================================
   Project card sizing v3
   Full Markdown text + equalized text zones + taller media
   ========================================================================== */

/*
  The actual copy height is calculated in project-gallery.js from the longest
  visible Markdown text. No project description scrolls internally.
*/
.project-window-copy {
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  overflow: visible;
}

.project-window .project-description {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  overflow-y: visible;
  padding-right: 0;
  scrollbar-width: auto;
}

/* Disable the old internal project-description scrollbar completely. */
.project-window .project-description::-webkit-scrollbar {
  display: none;
}

/*
  Give project media substantially more vertical space.
  This prevents videos and image grids from looking compressed.
*/
.project-media-slot {
  flex: 0 0 620px;
  height: 620px;
  min-height: 620px;
  overflow: hidden;
}

/* Media stack always consumes the whole reserved zone. */
.project-media-stack {
  height: 100%;
  min-height: 100%;
}

/* A project with only one media type gets the full available height. */
.project-media-stack.has-video.no-images .project-video,
.project-media-stack.no-video.has-images .project-images {
  flex: 1 1 100%;
  height: 100%;
  min-height: 100%;
}

/*
  Mixed media gets a generous split:
  - video: 360px-ish on desktop
  - image area: 260px-ish
*/
.project-media-stack.has-video.has-images .project-video {
  flex: 0 0 58%;
  height: 58%;
  min-height: 0;
}

.project-media-stack.has-video.has-images .project-images {
  flex: 1 1 42%;
  height: 42%;
  min-height: 0;
}

/* Ensure video frames fill their allocation without aspect-ratio compression. */
.project-media-slot .project-video,
.project-media-slot .project-video iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/*
  Image grids use every pixel of their allocation. Individual images crop
  naturally rather than being squashed vertically.
*/
.project-media-slot .project-images {
  height: 100%;
  min-height: 0;
  gap: 10px;
}

.project-media-slot .project-image-button,
.project-media-slot .project-image-button img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-media-slot .project-image-button img {
  object-fit: cover;
}

/* One image: large showcase image. */
.project-media-slot .project-images-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* Two images: side-by-side, both full height. */
.project-media-slot .project-images-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
}

/* Three images: one large + two stacked if supported by existing markup. */
.project-media-slot .project-images-3 {
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.project-media-slot .project-images-3 .project-image-button:first-child {
  grid-row: 1 / span 2;
}

/* Four images: balanced 2x2 grid. */
.project-media-slot .project-images-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

/* Larger desktops can afford even taller project media. */
@media (min-width: 1500px) {
  .project-media-slot {
    flex-basis: 700px;
    height: 700px;
    min-height: 700px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .project-media-slot {
    flex-basis: 540px;
    height: 540px;
    min-height: 540px;
  }
}

/* Smartphone */
@media (max-width: 650px) {
  .project-media-slot {
    flex-basis: 480px;
    height: 480px;
    min-height: 480px;
  }

  .project-media-stack.has-video.has-images .project-video {
    flex-basis: 56%;
    height: 56%;
  }

  .project-media-stack.has-video.has-images .project-images {
    flex-basis: 44%;
    height: 44%;
  }
}


/* Video Production / Editing */
.video-section { overflow: hidden; }

.video-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  align-items: stretch;
  padding: 4px 0 18px;
}

.video-window {
  flex: 0 0 clamp(420px, 36vw, 620px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.video-window-copy {
  flex: 0 0 180px;
  height: 180px;
  min-height: 180px;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.video-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
}

.video-window h3 { margin: 0 0 10px; }

.video-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.video-media-slot {
  flex: 0 0 360px;
  height: 360px;
  min-height: 360px;
  background: rgba(0,0,0,.16);
  border-top: 1px solid var(--line);
}

.video-embed,
.video-embed iframe {
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  display: block;
  border: 0;
}

.video-missing {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 1500px) {
  .video-window { flex-basis: clamp(520px, 34vw, 700px); }
  .video-media-slot {
    flex-basis: 400px;
    height: 400px;
    min-height: 400px;
  }
}

@media (max-width: 900px) {
  .video-window { flex-basis: min(82vw, 560px); }
}

@media (max-width: 650px) {
  .video-window { flex-basis: calc(100vw - 40px); }

  .video-window-copy {
    flex-basis: 160px;
    height: 160px;
    min-height: 160px;
    padding: 20px;
  }

  .video-media-slot {
    flex-basis: 300px;
    height: 300px;
    min-height: 300px;
  }
}


/* ==========================================================================
   Video Production / Editing — overlap fix
   ========================================================================== */

/*
  Keep copy and video in separate, non-overlapping flex rows.
  The text area is allowed to grow naturally if a description needs more room.
*/
.video-window {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  height: auto;
}

/* Remove the previously fixed 180px copy height that could clip text. */
.video-window-copy {
  flex: 0 0 auto;
  height: auto;
  min-height: 190px;
  padding: 24px;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 1;
  background: inherit;
}

.video-window h3 {
  margin-bottom: 12px;
}

.video-description {
  display: block;
  margin: 0;
  line-height: 1.65;
  overflow: visible;
  white-space: normal;
}

/*
  Media is a completely separate block below the text.
  It can never move over the description.
*/
.video-media-slot {
  flex: 0 0 380px;
  height: 380px;
  min-height: 380px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  margin-top: 0;
  background: rgba(0,0,0,.16);
  border-top: 1px solid var(--line);
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Make all cards within the horizontal strip align cleanly. */
.video-gallery {
  align-items: stretch;
}

.video-gallery > .video-window {
  align-self: stretch;
}

/* Large desktops */
@media (min-width: 1500px) {
  .video-window-copy {
    min-height: 200px;
  }

  .video-media-slot {
    flex-basis: 420px;
    height: 420px;
    min-height: 420px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .video-window-copy {
    min-height: 185px;
    padding: 22px;
  }

  .video-media-slot {
    flex-basis: 340px;
    height: 340px;
    min-height: 340px;
  }
}

/* Smartphone */
@media (max-width: 650px) {
  .video-window-copy {
    min-height: 0;
    padding: 20px;
  }

  .video-media-slot {
    flex-basis: 300px;
    height: 300px;
    min-height: 300px;
  }
}


/* ==========================================================================
   Video cards — equal text heights
   ========================================================================== */

/*
  video-gallery.js calculates the natural height of the longest title +
  description and applies it to every video card. Text is never clipped or
  internally scrolled.
*/
.video-window-copy {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.video-description {
  display: block;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  -webkit-line-clamp: unset;
}

/* Keep the video as a separate fixed media row below the equalized copy area. */
.video-media-slot {
  flex-shrink: 0;
}

/* Remove older breakpoint-specific text-area heights. */
@media (min-width: 1500px) {
  .video-window-copy {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 900px) {
  .video-window-copy {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 650px) {
  .video-window-copy {
    min-height: 0;
    height: auto;
  }
}


/* ==========================================================================
   Skills / Programs accordion
   ========================================================================== */

.skills-section {
  overflow: visible;
}

.skills-accordion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-dropdown {
  overflow: hidden;
  align-self: start;
}

.skill-dropdown summary {
  list-style: none;
}
.skill-dropdown summary::-webkit-details-marker {
  display: none;
}

.skill-summary {
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
}

.skill-summary-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.skill-category {
  margin: 0 0 5px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  font-weight: 750;
}

.skill-summary h3 {
  margin: 0;
  font-size: 1.28rem;
}

.skill-level-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .8rem;
}

.skill-level-compact strong {
  color: var(--text);
  font-weight: 700;
}

.skill-chevron {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: transform .2s ease;
}

.skill-dropdown[open] .skill-chevron {
  transform: rotate(180deg);
}

.skill-meter {
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}

.skill-meter span {
  display: block;
  width: var(--skill-level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.skill-dropdown-body {
  padding: 0 24px 24px;
  border-top: 1px solid var(--line);
}

.skill-experience {
  margin: 20px 0;
  color: #bdcec8;
  line-height: 1.68;
}

.skill-detail-list {
  margin: 0 0 22px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.skill-detail-list li + li {
  margin-top: 7px;
}

.skill-subheading {
  margin: 0 0 10px;
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
}

.skill-reference-list {
  display: grid;
  gap: 8px;
}

.skill-reference {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 14px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.skill-reference:hover {
  border-color: rgba(119,224,181,.38);
  background: rgba(119,224,181,.05);
  transform: translateY(-1px);
}

.skill-reference span {
  color: var(--text);
  font-size: .86rem;
}

.skill-reference small {
  grid-column: 1;
  color: var(--muted);
  font-size: .72rem;
}

.skill-reference b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--accent);
}

/* "Other programs" aggregate card */
.skill-dropdown-other {
  grid-column: 1 / -1;
}

.other-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.other-program {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.other-program strong,
.other-program span,
.other-program small {
  display: block;
}

.other-program strong {
  color: var(--text);
}

.other-program span {
  margin-top: 4px;
  color: var(--accent);
  font-size: .74rem;
}

.other-program small {
  margin-top: 5px;
  color: var(--muted);
}

/* Brief target emphasis after a skill-reference click. */
.portfolio-reference-highlight {
  animation: portfolioReferencePulse 1.8s ease;
}

@keyframes portfolioReferencePulse {
  0%, 100% { box-shadow: inherit; }
  30% { box-shadow: 0 0 0 3px rgba(119,224,181,.32), 0 0 45px rgba(119,224,181,.16); }
}

@media (max-width: 900px) {
  .skills-accordion {
    grid-template-columns: 1fr;
  }

  .skill-dropdown-other {
    grid-column: auto;
  }

  .other-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .skill-summary {
    padding: 19px;
  }

  .skill-dropdown-body {
    padding: 0 19px 20px;
  }

  .skill-summary-main {
    gap: 12px;
  }

  .skill-level-compact {
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
  }

  .other-program-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   Tool Experience scale
   Grundlagen → Vertraut → Sicher → Fortgeschritten → Schwerpunkt
   ========================================================================== */

.skill-meter {
  display: none;
}

.tool-experience-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
  position: relative;
}

.tool-experience-scale::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: rgba(255,255,255,.09);
}

.tool-experience-step {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tool-experience-step:not(:first-child) {
  text-align: center;
}

.tool-experience-step:last-child {
  text-align: right;
}

.tool-experience-dot {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 8px;
  border: 2px solid rgba(255,255,255,.20);
  border-radius: 50%;
  background: var(--card-strong, #12211d);
}

.tool-experience-step:not(:first-child) .tool-experience-dot {
  margin-left: auto;
  margin-right: auto;
}

.tool-experience-step:last-child .tool-experience-dot {
  margin-left: auto;
  margin-right: 0;
}

.tool-experience-step.is-reached .tool-experience-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(119,224,181,.08);
}

.tool-experience-step.is-current .tool-experience-dot {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(200,255,97,.10);
}

.tool-experience-step small {
  display: block;
  color: #788d85;
  font-size: .62rem;
  line-height: 1.2;
  white-space: nowrap;
}

.tool-experience-step.is-reached small {
  color: var(--muted);
}

.tool-experience-step.is-current small {
  color: var(--text);
  font-weight: 750;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.skill-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(119,224,181,.18);
  border-radius: 999px;
  background: rgba(119,224,181,.045);
  color: #c9ddd5;
  font-size: .75rem;
}

.skills-section .section-heading > .muted::after {
  content: " Die höchste Stufe „Schwerpunkt“ bezeichnet besonders häufig oder intensiv eingesetzte Werkzeuge – nicht einen absoluten Expertenstatus.";
}

@media (max-width: 620px) {
  .tool-experience-step small {
    font-size: .53rem;
    transform-origin: top center;
  }

  .tool-experience-scale {
    margin-top: 16px;
  }
}


/* ==========================================================================
   Compact skills cards
   ========================================================================== */

.skills-accordion {
  gap: 10px;
}

.skill-dropdown {
  border-radius: 16px;
}

.skill-summary {
  padding: 14px 16px;
}

.skill-summary-main {
  gap: 12px;
  align-items: center;
}

.skill-summary h3 {
  font-size: 1.05rem;
  line-height: 1.15;
}

.skill-category {
  display: none !important;
}

.skill-level-compact {
  gap: 8px;
  font-size: .72rem;
}

.skill-level-compact strong {
  font-size: .74rem;
  font-weight: 700;
}

.skill-chevron {
  width: 24px;
  height: 24px;
  font-size: .85rem;
}

.tool-experience-scale {
  margin-top: 11px;
}

.tool-experience-scale::before {
  top: 5px;
}

.tool-experience-dot {
  width: 10px;
  height: 10px;
  margin-bottom: 5px;
  border-width: 1.5px;
}

.tool-experience-step.is-reached .tool-experience-dot {
  box-shadow: 0 0 0 3px rgba(119,224,181,.06);
}

.tool-experience-step.is-current .tool-experience-dot {
  box-shadow: 0 0 0 3px rgba(200,255,97,.08);
}

.tool-experience-step small {
  font-size: .56rem;
}

.skill-dropdown-body {
  padding: 0 16px 15px;
}

.skill-experience {
  margin: 13px 0 14px;
  line-height: 1.55;
  font-size: .84rem;
}

.skill-tags,
.skill-detail-list {
  display: none !important;
}

.skill-subheading {
  margin-bottom: 7px;
  font-size: .72rem;
}

.skill-reference-list {
  gap: 6px;
}

.skill-reference {
  padding: 8px 10px;
  border-radius: 10px;
}

.skill-reference span {
  font-size: .78rem;
}

.skill-reference small {
  font-size: .66rem;
}

.other-program-grid {
  gap: 7px;
}

.other-program {
  padding: 10px;
  border-radius: 10px;
}

.other-program strong {
  font-size: .84rem;
}

.other-program span,
.other-program small {
  font-size: .68rem;
}

.skill-dropdown-other .skill-summary {
  padding-top: 13px;
  padding-bottom: 13px;
}

@media (max-width: 600px) {
  .skills-accordion {
    gap: 8px;
  }

  .skill-summary {
    padding: 12px 13px;
  }

  .skill-dropdown-body {
    padding: 0 13px 13px;
  }

  .skill-summary h3 {
    font-size: 1rem;
  }

  .skill-level-compact {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .tool-experience-step small {
    font-size: .49rem;
  }
}


/* ==========================================================================
   Skills compact v2 — renderer + strongly scoped layout
   ========================================================================== */

.skills-accordion {
  gap: 8px !important;
}

.skill-dropdown.skill-dropdown-compact {
  border-radius: 12px !important;
  min-height: 0 !important;
}

.skill-dropdown.skill-dropdown-compact > .skill-summary {
  padding: 10px 12px !important;
  min-height: 0 !important;
}

.skill-dropdown.skill-dropdown-compact .skill-summary-main {
  align-items: center !important;
  gap: 8px !important;
}

.skill-dropdown.skill-dropdown-compact .skill-summary h3 {
  margin: 0 !important;
  font-size: .96rem !important;
  line-height: 1.1 !important;
}

.skill-dropdown.skill-dropdown-compact .skill-category,
.skill-dropdown.skill-dropdown-compact .skill-tags,
.skill-dropdown.skill-dropdown-compact .skill-detail-list {
  display: none !important;
}

.skill-dropdown.skill-dropdown-compact .skill-level-compact {
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: .67rem !important;
}

.skill-dropdown.skill-dropdown-compact .skill-level-compact strong {
  font-size: .68rem !important;
}

.skill-dropdown.skill-dropdown-compact .skill-chevron {
  width: 20px !important;
  height: 20px !important;
  font-size: .72rem !important;
}

/* Experience scale is intentionally much flatter than before. */
.skill-dropdown.skill-dropdown-compact .tool-experience-scale {
  margin-top: 7px !important;
}

.skill-dropdown.skill-dropdown-compact .tool-experience-scale::before {
  top: 4px !important;
  height: 1px !important;
}

.skill-dropdown.skill-dropdown-compact .tool-experience-dot {
  width: 8px !important;
  height: 8px !important;
  margin-bottom: 3px !important;
  border-width: 1px !important;
  box-shadow: none !important;
}

.skill-dropdown.skill-dropdown-compact .tool-experience-step small {
  font-size: .48rem !important;
  line-height: 1 !important;
}

/* Open state: concise description and references only. */
.skill-dropdown.skill-dropdown-compact > .skill-dropdown-body {
  padding: 0 12px 11px !important;
}

.skill-dropdown.skill-dropdown-compact .skill-experience {
  margin: 9px 0 10px !important;
  font-size: .78rem !important;
  line-height: 1.45 !important;
}

.skill-dropdown.skill-dropdown-compact .skill-subheading {
  margin: 0 0 5px !important;
  font-size: .65rem !important;
}

.skill-dropdown.skill-dropdown-compact .skill-reference-list {
  gap: 4px !important;
}

.skill-dropdown.skill-dropdown-compact .skill-reference {
  padding: 6px 8px !important;
  border-radius: 8px !important;
}

.skill-dropdown.skill-dropdown-compact .skill-reference span {
  font-size: .72rem !important;
}

.skill-dropdown.skill-dropdown-compact .skill-reference small {
  font-size: .61rem !important;
}

.skill-dropdown.skill-dropdown-compact .other-program-grid {
  gap: 5px !important;
}

.skill-dropdown.skill-dropdown-compact .other-program {
  padding: 7px 8px !important;
  border-radius: 8px !important;
}

.skill-dropdown.skill-dropdown-compact .other-program strong {
  font-size: .76rem !important;
}

.skill-dropdown.skill-dropdown-compact .other-program span,
.skill-dropdown.skill-dropdown-compact .other-program small {
  font-size: .62rem !important;
}

@media (max-width: 600px) {
  .skill-dropdown.skill-dropdown-compact > .skill-summary {
    padding: 9px 10px !important;
  }

  .skill-dropdown.skill-dropdown-compact > .skill-dropdown-body {
    padding: 0 10px 10px !important;
  }

  .skill-dropdown.skill-dropdown-compact .tool-experience-step small {
    font-size: .43rem !important;
  }
}

.static-tool-card{width:min(1188px,100%);margin:32px auto 0;padding:26px;border:1px solid var(--line);border-radius:24px;background:#10201bdb;display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);gap:28px;align-items:start}
.static-tool-copy{min-width:0}.static-tool-copy .tool-label{margin:0 0 8px;color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;font-weight:800}
.static-tool-copy h2{margin:0 0 18px;font-size:clamp(1.7rem,2.6vw,2.55rem);letter-spacing:-.035em}
.static-tool-copy p:not(.tool-label){margin:0 0 14px;color:var(--muted)}.static-tool-copy p:last-child{margin-bottom:0}
.static-tool-media{min-width:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:18px;background:#08130f}
.static-tool-media img{display:block;width:100%;height:auto;border-radius:11px}
.static-tool-media figcaption{padding:9px 4px 2px;color:var(--muted);font-size:.76rem}
@media(max-width:900px){.static-tool-card{grid-template-columns:1fr}}
@media(max-width:560px){.static-tool-card{margin-top:22px;padding:16px;border-radius:18px;gap:20px}.static-tool-media{padding:6px;border-radius:14px}}


/* ColorTextureMaker: same card width as the Kennzeichen Generator */
#code .static-tool-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}


/* Portfolio identity images */
.site-logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.profile-photo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}


/* Identity images — exact current markup */
.brand > .brand-logo {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.brand > .brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.profile-avatar {
  overflow: hidden;
  padding: 0;
  background: #0a1713;
}

.profile-avatar > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}


/* ==========================================================================
   Footer modal links
   ========================================================================== */
.footer-legal-links{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-top:10px;
}
.footer-legal-links button{
  appearance:none;
  border:0;
  padding:3px 0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:.82rem;
  cursor:pointer;
  transition:color .18s ease;
}
.footer-legal-links button:hover,
.footer-legal-links button:focus-visible{
  color:var(--accent);
  outline:none;
}

.footer-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, visibility .18s ease;
}
.footer-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.footer-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,8,6,.78);
  backdrop-filter:blur(8px);
}
.footer-modal-dialog{
  position:relative;
  z-index:1;
  width:min(680px,100%);
  max-height:min(78vh,760px);
  overflow:auto;
  padding:28px 30px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#0d1b17;
  box-shadow:0 24px 80px rgba(0,0,0,.42);
}
.footer-modal-dialog h2{
  margin:0 44px 18px 0;
  font-size:1.65rem;
}
.footer-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(255,255,255,.025);
  color:var(--text);
  font-size:1.45rem;
  line-height:1;
  cursor:pointer;
}
.footer-modal-close:hover,
.footer-modal-close:focus-visible{
  border-color:var(--accent);
  color:var(--accent);
  outline:none;
}
.footer-modal-content{
  color:var(--muted);
  line-height:1.65;
}
.footer-modal-content p{
  margin:0;
}
body.footer-modal-open{
  overflow:hidden;
}
@media(max-width:600px){
  .footer-modal{padding:12px}
  .footer-modal-dialog{
    max-height:85vh;
    padding:22px 20px;
    border-radius:17px;
  }
  .footer-modal-dialog h2{font-size:1.4rem}
}


/* Legal modal content ------------------------------------------------------ */
.footer-modal-dialog{
  width:min(780px,100%);
}
.footer-modal-content a{
  color:var(--accent);
  text-decoration:none;
}
.footer-modal-content a:hover{
  text-decoration:underline;
}
.legal-copy h3{
  margin:26px 0 9px;
  color:var(--text);
  font-size:1.03rem;
}
.legal-copy h3:first-child{margin-top:0}
.legal-copy p{
  margin:0 0 12px;
}
.legal-copy strong{color:var(--text)}
.privacy-lead{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:#c8d8d2;
}
.legal-domain{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  color:#c6dbd3;
}

/* Contact modal ------------------------------------------------------------ */
.contact-modal-grid{
  display:grid;
  gap:10px;
}
.contact-modal-item{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.018);
  color:inherit !important;
  text-decoration:none !important;
}
a.contact-modal-item:hover{
  border-color:rgba(119,224,181,.38);
  background:rgba(119,224,181,.045);
}
.contact-modal-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:rgba(119,224,181,.08);
  color:var(--accent);
}
.contact-modal-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contact-modal-item small,
.contact-modal-item strong{
  display:block;
}
.contact-modal-item small{
  margin-bottom:2px;
  color:var(--muted);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.contact-modal-item strong{
  color:var(--text);
  font-size:.94rem;
  line-height:1.4;
}

/* YouTube two-click privacy placeholder ----------------------------------- */
.youtube-consent-placeholder{
  width:100%;
  height:100%;
  min-height:100%;
  display:grid;
  place-items:center;
  padding:22px;
  box-sizing:border-box;
  background:
    radial-gradient(circle at 50% 20%, rgba(119,224,181,.08), transparent 48%),
    #07120f;
}
.youtube-consent-inner{
  width:min(390px,100%);
  text-align:center;
}
.youtube-consent-mark{
  width:54px;
  height:54px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border:1px solid rgba(119,224,181,.28);
  border-radius:50%;
  background:rgba(119,224,181,.07);
  color:var(--accent);
  font-size:1.25rem;
}
.youtube-consent-inner strong{
  display:block;
  margin-bottom:6px;
  color:var(--text);
  font-size:1rem;
}
.youtube-consent-inner p{
  margin:0 auto 14px;
  color:var(--muted);
  font-size:.78rem;
  line-height:1.45;
}
.youtube-consent-button,
.youtube-privacy-link{
  border:0;
  cursor:pointer;
  font:inherit;
}
.youtube-consent-button{
  padding:9px 13px;
  border-radius:999px;
  background:var(--accent);
  color:#06100d;
  font-size:.78rem;
  font-weight:800;
}
.youtube-privacy-link{
  margin-left:7px;
  padding:8px 5px;
  background:transparent;
  color:var(--muted);
  font-size:.73rem;
}
.youtube-privacy-link:hover{
  color:var(--accent);
}
