/* Shared visual system, loaded after the original component styles. */
:root { color-scheme: dark; --bg:#101215; --panel:#191c21; --line:#30343b; --text:#f2f3f5; --muted:#b5bac4; --accent:#e8c47c; }
* { box-sizing:border-box; }
html { background:var(--bg); scroll-behavior:smooth; scroll-padding-top:100px; overflow-y:auto; }
body.projects-page { overflow:hidden; height:100dvh; min-height:0; --project-nav-height:72px; }
body, body.fade-in { margin:0; min-height:100vh; background:var(--bg); color:var(--text); opacity:1; font-family:Inter, system-ui, sans-serif; font-size:16px; line-height:1.7; letter-spacing:0; }
body { opacity:0; transition:opacity .3s ease-in-out; }
body.fade-in { opacity:1; }
a:link, a:visited { color:var(--accent); }
a:hover { color:#fff0cb; }
button, textarea { font:inherit; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
h1,h2,h3 { color:var(--text); line-height:1.15; letter-spacing:-.035em; }
h1::after { display:none; }
p { line-height:1.75; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:2000; padding:12px; background:var(--panel); }
.skip-link:focus { top:12px; }
#navbar { position:fixed; top:0; left:0; width:100%; z-index:100; display:flex; align-items:center; justify-content:center; gap:8px; height:72px; padding:0 20px; background:rgba(16,18,21,.95); border:0; border-bottom:1px solid var(--line); font-size:14px; }
#navbar a { padding:10px 18px; margin:0; min-height:0; color:var(--muted); line-height:1.5; border-radius:6px; text-decoration:none; }
#navbar a:hover, #navbar a[aria-current="page"] { background:#24272d; color:var(--text); }
#navbar a[aria-current="page"] { box-shadow:inset 0 -2px var(--accent); }
.contact-fab { display:none; }
.eyebrow { color:var(--accent); text-transform:uppercase; letter-spacing:.16em; font-size:12px; font-weight:600; }
.portfolio-main { width:100%; max-width:1920px; margin:auto; padding:0 clamp(20px, 4vw, 96px); font-size:clamp(16px, calc(11px + .35vw), 23px); }
.portfolio-hero { padding:150px 0 70px; display:block; }
.portfolio-hero h1 { font-size:clamp(50px,8vw,96px); margin:20px 0; font-weight:600; }
.portfolio-hero .hero-summary { max-width:52ch; color:var(--muted); font-size:clamp(18px, calc(14px + .4vw), 28px); }
.hero-links { display:flex; flex-wrap:wrap; gap:24px; margin-top:30px; }
.hero-links a { text-decoration:none; border-bottom:1px solid #68593c; padding-bottom:4px; }
.gw3-feature { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr); align-items:center; gap:clamp(24px, 3vw, 56px); padding:clamp(22px, 2.5vw, 48px); border:1px solid var(--line); border-radius:12px; background:var(--panel); margin-bottom:clamp(48px, 5vw, 96px); }
.gw3-feature h2 { font-size:clamp(32px,4vw,48px); margin:14px 0 20px; }
.project-title-link:link, .project-title-link:visited { color:inherit; text-decoration:none; }
.project-title-link:hover { color:var(--accent); }
.gw3-feature p { color:var(--muted); }
.gw3-feature .credit { color:var(--text); }
.gw3-feature .gw3-role { color:var(--accent); margin:0 0 20px; font-size:.9em; }
.trailer-frame { display:block; width:100%; height:auto; aspect-ratio:16/9; border:0; border-radius:8px; background:#08090b; }
.trailer-caption { margin:8px 0 0; font-size:12px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:28px; }
.section-heading h2 { font-size:36px; margin:12px 0 0; }
.work-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px, 2.5vw, 48px); }
.game-jams-section { margin-top:clamp(48px, 5vw, 96px); }
.work-card { min-width:0; padding-bottom:28px; }
.work-card>a { display:block; aspect-ratio:16/9; overflow:hidden; border-radius:8px; background:var(--panel); }
.work-card img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .25s; }
.work-card>a:hover img { transform:scale(1.025); }
.work-card h3 { font-size:clamp(24px, calc(18px + .5vw), 36px); margin:22px 0 8px; }
.work-card .work-meta { color:var(--accent); font-size:.85em; margin:0 0 12px; }
.work-card p { color:var(--muted); margin:0; }
.portfolio-footer { width:100%; max-width:none; margin:80px auto 0; padding:28px 0; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:20px; color:var(--muted); font-size:13px; }
body > .portfolio-footer { padding:28px clamp(20px, 4vw, 96px); }
.about-section { width:100%; max-width:1760px; padding:120px clamp(20px, 4vw, 96px) 0; margin:auto; }
.aboutTitle { text-align:left; font-size:16px; margin:0 0 48px; }
.aboutTitle h1 { font-size:clamp(38px,6vw,64px); margin:0 0 16px; }
.aboutTitle h3 { font-size:14px; color:var(--muted); }
.about-row { max-width:none; padding:32px 0; margin-bottom:32px; gap:4vw; border-bottom:1px solid var(--line); }
.about-row::before, .about-row::after { display:none; }
.about-text h3 { font:600 clamp(26px, calc(20px + .5vw), 36px)/1.2 Inter,system-ui,sans-serif; }
.about-text p { max-width:68ch; font:400 clamp(16px, calc(11px + .35vw), 23px)/1.7 Inter,system-ui,sans-serif; color:var(--muted); }
.about-image, .about-image.wide-image { flex:0 0 32%; border-radius:8px; box-shadow:none; }
.about-image, .about-image.wide-image { height:auto; }
.about-image img, .about-image.wide-image img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; }
.bottom-headline-wrapper { z-index:0; }
.bottom-headline { background:transparent; color:var(--muted); font-size:13px; }
.contact-container { max-width:1600px; margin:0 auto; padding:140px clamp(20px, 4vw, 96px) 64px; gap:clamp(32px, 4vw, 80px); width:100%; font-size:clamp(16px, calc(11px + .35vw), 23px); }
.contact-info { flex:1; min-width:0; }
.contact-form { flex:1.3; min-width:0; }
.chat-text-wrapper { margin-top:12px; letter-spacing:0; }
.chat-text { font-size:clamp(32px,4vw,48px); line-height:1.15; letter-spacing:-.035em; }
.chat-subtext { color:var(--muted); }
.message-box-wrapper { background:var(--panel); border:1px solid var(--line); box-shadow:none; padding:28px; }
.message-box-title { font-size:20px; justify-content:flex-start; }
.message-box, .message-box-description { background:var(--bg); border-color:var(--line); padding:12px; }
.message-box textarea, .message-box-description textarea { font-family:inherit; color:var(--text); line-height:1.6; }
.message-box:focus-within,.message-box-description:focus-within { border-color:var(--accent); }
.send-button { background:var(--accent); color:#161616; border:0; box-shadow:none; }
.upper-container { position:relative; top:auto; height:auto; min-height:0; overflow:visible; padding:112px 28px 40px; background:transparent; }
.upper-container::before,.lower-container::before,.lower-container::after { display:none; }
.game-container { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:32px; max-width:1160px; margin:auto; }
.game-container>* { min-width:0; }
.aboutTitle .fade-word { opacity:1; transform:none; }
.game-text-container { position:static; margin:0; width:auto; max-width:none; font-family:inherit; font-size:16px; }
.game-text-container h1 { font-size:clamp(30px,4vw,48px); margin:0 0 16px; }
.game-text-container p { width:auto; font-size:16px; line-height:1.75; color:var(--muted); }
.game-text-role { font-size:14px; color:var(--accent); line-height:1.65; }
.game-text-link { margin-top:0; }
.slideshow-container { position:relative; inset:auto; width:100%; height:auto; aspect-ratio:16/10; grid-column:2; grid-row:1 / span 2; }
.player-button { position:static; width:fit-content; height:auto; padding:12px 22px; font-size:14px; background:var(--accent); color:#171717; }
.player-button i { font-size:16px; }
.slide-icon { width:32px; height:32px; border-radius:4px; }
.lower-container { position:relative; top:auto; height:auto; overflow:hidden; padding:24px 0 60px; background:transparent; }
.lower-container>br { display:none; }
.titleWord { position:static; margin:32px 5% 22px; font-size:24px; color:var(--text); letter-spacing:-.02em; }
.carousel-container { top:auto; margin-bottom:44px; }
/* Keep the selected project in place while browsing the project library. */
.projects-page .upper-container { position:fixed; inset:var(--project-nav-height) 0 auto; height:calc((100dvh - var(--project-nav-height)) * .6); padding:24px 4vw; overflow:auto; overscroll-behavior:contain; }
.projects-page .lower-container { position:fixed; inset:auto 0 0; height:calc((100dvh - var(--project-nav-height)) * .4); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; padding:0 0 32px; }
.projects-page .game-container { max-width:none; width:100%; height:100%; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); grid-template-rows:auto minmax(0,1fr); column-gap:5vw; row-gap:20px; align-items:start; }
.projects-page .slideshow-container { height:100%; max-height:none; aspect-ratio:auto; align-self:stretch; }
.projects-page .player-button { align-self:start; justify-self:start; height:auto; min-height:44px; }
@media(min-width:761px) {
  .projects-page .game-text-container { position:static; width:auto; display:flex; flex-direction:column; max-height:calc(49vh - var(--project-nav-height) - 48px); font-size:clamp(17px, calc(.4vw + .8vh), 30px); }
  .projects-page .game-text-container h1, .projects-page .game-text-role { flex-shrink:0; }
  .projects-page .game-description { min-height:0; overflow-y:auto; padding-right:8px; }
  .projects-page .game-text-container h1 { font-size:clamp(34px, 2.2vw, 72px); margin:0 0 12px; }
  .projects-page .game-text-container p { width:auto; font-size:1em; line-height:1.6; margin:16px 0; }
  .projects-page .game-text-role { font-size:.9em; line-height:1.5; margin:0 0 16px; }
  .projects-page .game-text-link { font-size:.95em; margin-top:4vh; }
  .projects-page .project-actions { position:fixed; left:4vw; top:49vh; height:6.5vh; display:flex; align-items:center; gap:16px; }
  .projects-page .project-actions .game-text-link { margin:0; }
  .projects-page .player-button { position:fixed; left:35%; top:49vh; width:8vw; height:6.5vh; min-height:0; padding:0; font-size:calc(.5vw + .5vh + .5vmin); background:rgb(51,51,51); color:rgb(159,159,159); }
  .projects-page .player-button i { font-size:calc(.7vw + .7vh); }
  .projects-page .slide-icon { position:static; width:calc(2.5vh + 2.5vw); height:calc(2.5vh + 2.5vw); border-radius:16px; }
  .projects-page .titleWord { font-size:clamp(22px, 1.25vw, 40px); }
}
@media(max-width:760px) {
  body.projects-page { --project-nav-height:64px; }
  #navbar { height:64px; gap:0; padding:0 8px; } #navbar a { padding:10px 14px; }
  #navbar { padding-right:52px; }
  .portfolio-main { padding:0 20px; } .portfolio-hero { padding:112px 0 44px; grid-template-columns:1fr; gap:20px; }
  .portfolio-hero .hero-summary { font-size:18px; }
  .gw3-feature { grid-template-columns:1fr; gap:24px; padding:22px; margin-bottom:48px; }
  .work-grid { grid-template-columns:1fr; } .section-heading { align-items:start; flex-direction:column; gap:12px; }
  .portfolio-footer { margin-top:48px; flex-direction:column; }
  .about-row, .about-row.reverse { flex-direction:column !important; gap:20px; align-items:stretch; }
  .about-section { padding:110px 20px 0; }
  .about-image,.about-image.wide-image { flex:auto; width:100%; max-width:420px; }
  .about-row.right-edge .about-image { order:0; } .about-row.right-edge .about-text { order:1; }
  .contact-container { flex-direction:column; gap:28px; padding:110px 20px 40px; } .contact-info,.contact-form { flex:auto; width:100%; }
  .game-container { grid-template-columns:1fr; } .slideshow-container { grid-column:1; grid-row:auto; }
  .projects-page .game-container { height:auto; grid-template-columns:minmax(0,1fr); grid-template-rows:auto; gap:20px; }
  .projects-page .slideshow-container { height:auto; aspect-ratio:16/9; }
  .upper-container { padding:96px 20px 24px; } .game-text-container { font-size:16px; }
  .carousel-slide .carousel-image { width:52vw; } .hero-media-comment { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } body { opacity:1; } *,*::before,*::after { animation:none !important; transition:none !important; } }
