@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  color-scheme:light;
  --ocean:#79c9dc;
  --ocean-soft:#e4f3f5;
  --black:#17243b;
  --white:#ffffff;
  --page:#fbf9f4;
  --text:#17243b;
  --hero-bg:#101729;
  --contact-bg:#79c9dc;
  --contact-text:#17243b;
  --ocean-dark:#397f96;
  --gray:#6d7888;
  --ink:#17243b;
  --muted:#687588;
  --line:3px solid var(--black);
  --shadow:7px 7px 0 var(--black);
}

:root[data-theme="dark"]{
  color-scheme:dark;
  --ocean:#81cde0;
  --ocean-soft:#263b50;
  --black:#08111f;
  --white:#192943;
  --page:#0e192b;
  --text:#f0ece3;
  --hero-bg:#101b2e;
  --contact-bg:#203751;
  --contact-text:#f0ece3;
  --ocean-dark:#a4dfeb;
  --gray:#b7c2ce;
  --ink:#08111f;
  --muted:#b5c0cd;
  --line:3px solid #2a3d57;
  --shadow:7px 7px 0 #070d18;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body,.site-header,.hero-card,.about-box,.stack-card,.project-card,.contact-card,footer{
  transition:background-color .24s ease,color .24s ease,border-color .24s ease;
}
body{
  margin:0;
  color:var(--text);
  background:var(--page);
  font-family:"Space Grotesk",Arial,sans-serif;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.section{width:min(1120px,calc(100% - 80px));margin:auto}

.site-header{
  height:78px;
  border-bottom:var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 46px;
  position:sticky;
  top:0;
  z-index:50;
  background:var(--white);
}
.logo{font-weight:700;font-size:22px;letter-spacing:-1px}
.logo span{color:var(--ocean-dark)}
.site-header nav{display:flex;gap:46px;font-weight:600}
.site-header nav a{position:relative}
.site-header nav a::after{
  content:"";
  position:absolute;
  left:0;right:100%;bottom:-8px;
  height:3px;
  background:var(--ocean);
  transition:right .25s ease;
}
.site-header nav a:hover::after{right:0}
.theme-control{
  display:flex;align-items:center;gap:3px;
  padding:4px;
  border:2px solid var(--black);
  border-radius:13px;
  background:var(--white);
  box-shadow:4px 4px 0 var(--black);
}
.theme-choice{
  display:grid;place-items:center;
  width:38px;height:34px;padding:0;
  border:0;border-radius:8px;
  color:var(--text);background:transparent;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.theme-choice:hover{transform:translateY(-1px)}
.theme-choice[aria-pressed="true"]{color:var(--black);background:var(--ocean)}
.theme-choice:focus-visible{outline:3px solid var(--ocean-dark);outline-offset:2px}

.hero{
  min-height:570px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
  padding-top:65px;
  padding-bottom:70px;
}

.discord-status{display:inline-flex;flex-direction:column;align-items:flex-start;gap:10px;max-width:100%}
.ds-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:var(--line);
  background:var(--ocean-soft);
  padding:9px 15px;
  font:500 14px "DM Mono",monospace;
}
.ds-dot{
  width:11px;height:11px;border-radius:50%;
  background:#8a8a8a;border:2px solid var(--black);
  flex:none;
}
.discord-status[data-state="online"] .ds-dot{background:#2fb36b}
.discord-status[data-state="idle"] .ds-dot{background:var(--ocean-dark)}
.discord-status[data-state="dnd"] .ds-dot{background:#e5484d}
.discord-status[data-state="offline"] .ds-dot{background:#8a8a8a}
.discord-status[data-state="online"] .ds-dot{animation:pulse 2.4s ease-in-out infinite}
.ds-activity{
  display:flex;
  align-items:center;
  gap:12px;
  max-width:100%;
  border:var(--line);
  background:var(--white);
  box-shadow:4px 4px 0 var(--black);
  padding:8px 16px 8px 8px;
}
.ds-activity[hidden]{display:none}
.ds-art{
  width:46px;height:46px;flex:none;
  border:2px solid var(--black);
  background:var(--ocean) center/cover no-repeat;
  display:grid;place-items:center;
  font-size:22px;
}
.ds-art.no-image::before{content:"";width:22px;height:16px;background:var(--black);clip-path:polygon(0 25%,18% 0,82% 0,100% 25%,100% 80%,82% 100%,18% 100%,0 80%)}
.ds-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.ds-kind{font:500 11px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.ds-name{font-size:16px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-detail{font:400 12px "DM Mono",monospace;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ds-detail:empty{display:none}
.ds-vinyl{width:54px;height:54px;flex:none;object-fit:contain;margin-left:auto;filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))}
.ds-vinyl[hidden]{display:none}
:root[data-theme="dark"] .ds-vinyl{filter:drop-shadow(0 3px 6px rgba(0,0,0,.4))}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(47,179,107,.55)}50%{box-shadow:0 0 0 5px rgba(47,179,107,0)}}

.hero h1{
  font-size:64px;
  font-weight:700;
  line-height:.95;
  letter-spacing:-4px;
  margin:30px 0 12px;
}
.nameplate{
  display:inline-block;
  background:var(--ocean);
  border:var(--line);
  box-shadow:var(--shadow);
  padding:7px 18px 10px;
  font-size:64px;
  line-height:1;
  font-weight:700;
  letter-spacing:-4px;
  transform:rotate(-1.3deg);
  color:var(--black);
}
.tagline{color:var(--muted);font-size:18px;line-height:1.7;margin:38px 0 35px}
.actions{display:flex;gap:18px}
.button{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  border:var(--line);
  padding:15px 29px;
  font-weight:700;
  background:var(--white);
  box-shadow:5px 5px 0 var(--black);
  transition:transform .15s ease,box-shadow .15s ease;
}
.button:hover{transform:translate(3px,3px);box-shadow:2px 2px 0 var(--black)}
.button-ocean{background:var(--ocean);color:var(--black)}

.hero-card{
  position:relative;
  overflow:hidden;
  max-width:380px;
  width:100%;
  aspect-ratio:1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  background-color:var(--hero-bg);
  background-image:
    linear-gradient(rgba(25,181,216,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(25,181,216,.12) 1px,transparent 1px);
  background-size:24px 24px;
  border:var(--line);
  box-shadow:10px 10px 0 var(--ocean),10px 10px 0 3px var(--ink);
}
.hero-card .skin{
  display:block;
  height:60%;
  width:auto;
  aspect-ratio:1 / 2;
  image-rendering:pixelated;
  image-rendering:crisp-edges;
  margin:0 0 26px;
  filter:drop-shadow(0 8px 0 rgba(0,0,0,.55));
  animation:bob 3s ease-in-out infinite;
  position:relative;
  z-index:3;
}
.skin-grid::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:3px;
  background:var(--ocean);
  opacity:.9;
}
.nametag{
  position:absolute;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(0,0,0,.65);
  color:#fff;
  border:2px solid rgba(255,255,255,.25);
  padding:4px 12px;
  font:700 .8rem "DM Mono",monospace;
  letter-spacing:.02em;
  white-space:nowrap;
  z-index:4;
}
.skin-info{
  position:absolute;
  bottom:14px;
  left:14px;
  right:14px;
  z-index:5;
  background:var(--white);
  border:2px solid var(--ink);
  padding:10px 14px;
  display:flex;
  flex-direction:column;
  gap:2px;
  font:400 .82rem "DM Mono",monospace;
}
.skin-info span{
  font-size:.7rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}
.skin-info strong{font-size:.82rem}

#siteMusic{display:none}
.music-toggle{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:60;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  padding:0;
  color:var(--black);
  background:var(--ocean);
  border:var(--line);
  box-shadow:5px 5px 0 var(--black);
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.music-toggle:hover{transform:translate(3px,3px);box-shadow:2px 2px 0 var(--black)}
.music-toggle:focus-visible{outline:3px solid var(--black);outline-offset:3px}
.music-toggle .icon-off{display:none}
.music-toggle.is-off{background:var(--white);color:var(--text)}
.music-toggle.is-off .icon-on{display:none}
.music-toggle.is-off .icon-off{display:block}

.music-toggle.is-waiting{animation:nudge 1.6s ease-in-out infinite}
.music-toggle:not(.is-off):not(.is-waiting) .wave{animation:wave 1.4s ease-in-out infinite}
.music-toggle .wave-2{animation-delay:.25s}
@keyframes wave{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes nudge{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}

.section-title{
  position:relative;
  display:inline-block;
  width:max-content;
  max-width:100%;
  margin:0;
  font-size:58px;
  line-height:1.02;
  font-weight:700;
  letter-spacing:-3.5px;
}
.section-title.highlight::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:13px;
  background:var(--ocean);
  z-index:-1;
}
.section-subtitle{
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
  line-height:1.5;
}

.about{padding:70px 0 100px}
.about-box{
  margin-top:42px;
  border:var(--line);
  box-shadow:var(--shadow);
  padding:38px 34px;
  font-size:18px;
  line-height:1.7;
  background:var(--white);
}
.about-box p{margin:0}.about-box p+p{margin-top:25px}

.stack{padding:65px 0 95px}
.stack-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:42px;
}
.stack-card{
  min-height:165px;
  border:var(--line);
  box-shadow:5px 5px 0 var(--black);
  padding:18px;
  background:var(--white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease;
}
.stack-card:hover{transform:translate(-2px,-4px);box-shadow:7px 9px 0 var(--black)}
:root[data-theme="dark"] .stack-card{
  border:1px solid rgba(151,181,207,.32);
  border-radius:0;
  background:#15243a;
  box-shadow:0 5px 14px rgba(0,0,0,.16);
}
:root[data-theme="dark"] .stack-card:hover{box-shadow:0 8px 18px rgba(0,0,0,.22)}
.tech-logo{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  margin-bottom:14px;
  background:transparent;
  overflow:visible;
}
.tech-logo img{
  display:block;
  width:70px;
  height:70px;
  object-fit:contain;
}
:root[data-theme="dark"] .tech-logo{
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
:root[data-theme="dark"] .tech-logo img{border-radius:0}
.stack-card strong{font-size:17px;font-weight:700}

.projects{
  background:var(--white);
  border-top:var(--line);
  border-bottom:var(--line);
}
.project-inner{padding:78px 0 95px}
.project-title-row{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
}
.project-button{background:var(--ocean);color:var(--black);white-space:nowrap}
.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:stretch; /* all three cards share one height */
  grid-auto-rows:1fr;  /* ...also when the grid collapses to one column on tablet / phone */
  gap:28px;
  margin-top:44px;
}
.project-card{
  background:var(--white);
  border:var(--line);
  box-shadow:7px 7px 0 var(--black);
  overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease;
}
.project-card:hover{transform:translateY(-5px);box-shadow:7px 12px 0 var(--black)}
.project-launch{
  display:block;
  width:100%;
  padding:0;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.project-launch:focus-visible{outline:3px solid var(--ocean-dark);outline-offset:4px}
.project-launch .project-content{display:block}
.tessera-preview-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  inset:0;
  color:#111;
  font-size:clamp(2.3rem,4vw,3.6rem);
  font-weight:700;
  letter-spacing:-.06em;
  background:#ffda4e;
  z-index:0;
}
.tessera-preview-fallback span{color:#149f8b}
.project-launch .project-content p{min-height:52px}
.project-dialog{
  position:relative;
  padding:0;
  width:min(540px,calc(100vw - 32px));
  max-width:none;
  max-height:calc(100dvh - 32px);
  overflow:auto;
  color:var(--text);
  background:var(--white);
  border:var(--line);
  box-shadow:9px 9px 0 var(--black);
}
.project-dialog::backdrop{background:rgba(5,12,24,.72);backdrop-filter:blur(3px)}
.project-dialog[open]{animation:dialog-pop .22s ease-out both}
@keyframes dialog-pop{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.project-dialog-inner{position:relative;padding:24px}
.project-dialog-close{
  position:absolute;top:12px;right:12px;z-index:5;
  display:grid;place-items:center;
  width:38px;height:38px;padding:0;
  color:#111;background:var(--ocean);
  border:2px solid #08111f;
  box-shadow:3px 3px 0 #08111f;
  font:500 27px/1 Arial,sans-serif;
  cursor:pointer;
}
.dialog-banner-wrap{
  position:relative;overflow:hidden;
  display:block;
  box-sizing:content-box; /* aspect-ratio applies to the picture area, not the border */
  aspect-ratio:var(--preview-ratio,680 / 240);
  background:#ffda4e;border:2px solid var(--black);
}
.dialog-tessera-banner{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.dialog-tessera-fallback{display:flex;position:absolute;inset:0;align-items:center;justify-content:center;background:#ffda4e;color:#111;font-size:clamp(2.5rem,8vw,4rem);font-weight:700;letter-spacing:-.06em}
.dialog-tessera-fallback span{color:#149f8b}
.dialog-eyebrow{margin:23px 0 5px;font:500 12px "DM Mono",monospace;letter-spacing:.16em;color:var(--ocean-dark)}
.project-dialog h2{margin:0 0 10px;font-size:36px;letter-spacing:-1.5px}
.dialog-description,.dialog-invite-copy{color:var(--muted);line-height:1.6}
.dialog-invite-copy{margin-top:20px}
.dialog-invite{margin:3px 5px 5px 0;gap:10px}
@media (prefers-reduced-motion:reduce){.project-dialog[open]{animation:none}}
.project-preview{
  width:100%;
  border-bottom:var(--line);
  position:relative;
  overflow:hidden;
}
.coming-preview{
  background:var(--white);
  display:grid;
  place-items:center;
}
.coming-preview span{
  border:var(--line);
  padding:12px 16px;
  background:var(--ocean);
  color:var(--black);
  box-shadow:5px 5px 0 var(--black);
  font:600 14px "DM Mono",monospace;
  letter-spacing:1px;
}
.project-content{padding:20px 20px 18px}
.project-content h3{font-size:23px;font-weight:700;margin-bottom:8px}
.project-content p{color:var(--muted);line-height:1.45;min-height:51px;margin-bottom:15px}
.tags{display:flex;flex-wrap:wrap;gap:7px}
.tags span{
  background:var(--ocean-soft);
  color:var(--text);
  padding:8px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:600;
}

.contact{background:var(--contact-bg);border-bottom:var(--line);color:var(--contact-text)}
.contact .section{padding:72px 0 95px}
.contact-subtitle{color:var(--contact-text);font-size:18px;line-height:1.5;margin:15px 0 0}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:42px}
.contact-card{
  background:var(--white);
  color:var(--text);
  border:var(--line);
  box-shadow:6px 6px 0 var(--black);
  padding:26px;
  min-height:145px;
  display:flex;
  flex-direction:column;
  gap:9px;
  transition:transform .2s ease,box-shadow .2s ease;
}
:root[data-theme="dark"] .contact-card{
  border:1px solid rgba(151,181,207,.35);
  border-radius:0;
  box-shadow:0 5px 14px rgba(0,0,0,.16);
}
.contact-card:hover{transform:translate(-3px,-3px);box-shadow:9px 9px 0 var(--black)}
.contact-card.has-sticker{position:relative;padding-right:78px;overflow:hidden}
.contact-sticker{position:absolute;right:12px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 5px rgba(0,0,0,.18))}
.contact-heart{width:48px;height:48px;bottom:12px;transform:rotate(-8deg)}
.contact-teddy{width:62px;height:62px;top:50%;transform:translateY(-50%) rotate(4deg)}
:root[data-theme="dark"] .contact-sticker{filter:drop-shadow(0 3px 6px rgba(0,0,0,.34))}
.contact-icon{font-size:24px;margin-bottom:5px}
.contact-card strong{font-size:17px;font-weight:700}
.contact-card span{
  color:var(--muted);
  font:14px "DM Mono",monospace;
  overflow-wrap:anywhere;
}
.coming-contact{cursor:default}

footer{
  height:105px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8%;
  background:var(--white);
}

@keyframes bob{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}
@keyframes popIn{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}
.reveal{opacity:0}
.reveal.is-visible{opacity:1;animation:popIn .65s cubic-bezier(.2,.7,.2,1) backwards}
.delay-1.is-visible{animation-delay:.08s}
.delay-2.is-visible{animation-delay:.16s}

.project-card:nth-child(1){transform:rotate(-.6deg)}
.project-card:nth-child(3){transform:rotate(.5deg)}
.project-card:hover{transform:translateY(-5px) rotate(0deg)}
.contact-icon{display:flex}

.stack-title-row{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%}
.contact-title-row{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%}
.contact-exclamation{width:32px;height:40px;object-fit:contain;transform:rotate(7deg)}

/* Transparent sticker art — layered into existing cards and headings. */
.hero-card .hero-sticker{
  position:absolute;
  z-index:2;
  display:block;
  height:auto;
  object-fit:contain;
  pointer-events:none;
  filter:drop-shadow(2px 2px 0 #fff) drop-shadow(4px 5px 0 rgba(0,0,0,.32));
}
.hero-card .hero-sticker-mushroom{
  width:25%;max-width:94px;right:2%;bottom:17%;
  transform:rotate(8deg);
}
.hero-card .hero-sticker-sparkle{
  width:11%;max-width:42px;left:8%;top:13%;
  transform:rotate(-8deg);
}
.hero-card .hero-sticker-denim{
  width:18%;max-width:68px;right:8%;top:10%;z-index:6;
  transform:rotate(9deg);
}
.heading-sticker{
  display:inline-block;
  width:48px;height:48px;
  margin-left:7px;
  object-fit:contain;
  vertical-align:-5px;
  filter:drop-shadow(2px 3px 0 rgba(0,0,0,.18));
  transform:rotate(8deg);
}
.heading-camcorder{width:62px;height:52px;margin:0;transform:rotate(-7deg);object-fit:contain}
:root[data-theme="dark"] .hero-card .hero-sticker,
:root[data-theme="dark"] .about-sticker,
:root[data-theme="dark"] .preview-sticker{filter:drop-shadow(0 4px 7px rgba(0,0,0,.38))}
.about-box{position:relative;min-height:228px;padding-right:290px}
.about-sticker-cluster{
  position:absolute;right:24px;top:32px;
  width:145px;height:160px;
  pointer-events:none;
}
.about-sticker{
  position:absolute;display:block;object-fit:contain;
  filter:drop-shadow(2px 2px 0 #fff) drop-shadow(4px 5px 0 rgba(0,0,0,.22));
}
.about-mug{width:126px;right:2px;top:2px;transform:rotate(5deg)}
.coming-preview .preview-sticker{
  position:absolute;top:8px;left:50%;
  width:116px;height:116px;
  object-fit:contain;
  transform:translateX(-50%);
  filter:drop-shadow(2px 2px 0 #fff) drop-shadow(4px 5px 0 rgba(0,0,0,.3));
}
.coming-preview .preview-tulips{width:100px;height:120px;top:0;transform:translateX(-50%) rotate(-4deg)}
.coming-preview .preview-cloud{width:145px;height:112px;transform:translateX(-50%) rotate(-3deg)}
.coming-preview .preview-player{width:88px;height:132px;top:0;transform:translateX(-50%) rotate(5deg)}
.coming-preview span{position:relative;z-index:2;align-self:end;margin-bottom:12px}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  html{scroll-behavior:auto}
  .reveal{opacity:1}
}

@media(max-width:900px){
  .hero{grid-template-columns:1fr;gap:50px}
  .hero-card{max-width:430px;width:100%}
  .stack-grid{grid-template-columns:repeat(2,1fr)}
  .project-grid{grid-template-columns:1fr}
  .project-card{max-width:600px;width:100%;margin:0 auto}
  .project-launch{max-width:600px}
  .about-box{padding-right:235px}
  .about-sticker-cluster{right:14px;width:145px;transform:scale(.9);transform-origin:right center}
}
@media(max-width:650px){
  .section{width:min(100% - 34px,1120px)}
  .site-header{padding:11px 18px;height:auto;min-height:68px;flex-wrap:wrap;gap:10px}
  .site-header nav{order:3;flex:0 0 100%;justify-content:space-between;gap:12px;font-size:14px}
  .hero{padding-top:45px}
  .hero h1{font-size:48px}
  .ds-name{max-width:210px}
  .nameplate{font-size:45px;letter-spacing:-3px}
  .tagline{font-size:16px}
  .hero-card{max-width:360px}
  .about,.stack{padding:55px 0 70px}
  .about-box{min-height:0;padding:190px 24px 26px}
  .about-sticker-cluster{top:18px;right:50%;width:230px;transform:translateX(50%)}
  .heading-sticker{width:39px;height:39px;vertical-align:-4px}
  .heading-camcorder{width:48px;height:42px}
  .section-title{font-size:43px}
  .stack-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .stack-card{min-height:145px;padding:12px}
  .tech-logo{width:70px;height:70px}
  .tech-logo img{width:62px;height:62px}
  .project-inner{padding:55px 0 70px}
  .project-title-row{align-items:flex-start;gap:20px;flex-direction:column}
  .project-dialog-inner{padding:16px}
  .project-dialog h2{font-size:31px}
  .contact-grid{grid-template-columns:1fr}
  .contact-card{min-height:125px}
  .music-toggle{right:14px;bottom:14px;width:52px;height:52px}
  footer{padding:0 20px}
}


/* LIQUOS portfolio project: animated preview card */
.project-web-card{
  display:block;
  min-width:0;
  color:inherit;
  text-decoration:none;
  position:relative;
}
.project-web-card:focus-visible{
  outline:3px solid var(--ocean-dark);
  outline-offset:4px;
}
.project-web-badge,
.project-open-badge{
  position:absolute;
  z-index:2;
  font:600 10px "DM Mono",monospace;
  letter-spacing:.08em;
  color:#17243b;
  background:rgba(251,249,244,.94);
  border:1px solid rgba(23,36,59,.72);
  box-shadow:3px 3px 0 rgba(23,36,59,.8);
  padding:7px 9px;
}
.project-web-badge{left:12px;top:12px}
.project-open-badge{right:12px;bottom:12px;opacity:0;transform:translateY(4px);transition:opacity .2s ease,transform .2s ease}
.project-web-card:hover .project-open-badge,
.project-web-card:focus-visible .project-open-badge{opacity:1;transform:translateY(0)}
.project-meta-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  color:var(--muted);
  font:500 10px "DM Mono",monospace;
  letter-spacing:.06em;
}
.project-external-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:15px;
  padding-top:12px;
  border-top:1px solid color-mix(in srgb,var(--muted) 36%,transparent);
  font-size:14px;
  font-weight:700;
}
.project-external-link span{transition:transform .2s ease}
.project-web-card:hover .project-external-link span,
.project-web-card:focus-visible .project-external-link span{transform:translate(3px,-3px)}
@media (prefers-reduced-motion:reduce){
  .project-open-badge,.project-external-link span{transition:none}
}

.project-type-note{
  display:inline-block;
  margin-left:.3em;
  font-size:.58em;
  font-weight:500;
  letter-spacing:0;
  color:var(--muted);
  vertical-align:middle;
}


/* Project previews: all three cards use the SAME preview window (16:9) and the SAME card height.
   Each GIF keeps its own aspect ratio inside that window (object-fit:contain), so nothing is
   cropped or stretched:
     Tessera banner  680 x 240  (17:6)  -> fits the width; the window is the same yellow, so no visible bars
     LIQUOS preview  800 x 450  (16:9)  -> fills the window exactly
   Change --preview-frame to resize every preview window at once. */
.project-grid{--preview-frame:16 / 9}
.project-preview{
  display:block;
  box-sizing:content-box; /* aspect-ratio applies to the picture area, not the bottom border */
  width:100%;
  height:auto;
  aspect-ratio:var(--preview-frame);
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.coming-preview{display:grid}
.tessera-preview{background:#ffda4e}
.liquos-project-preview{background:#e8eddc}
.tessera-banner,
.liquos-project-gif{
  display:block;
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.tessera-banner{background:#ffda4e}
.liquos-project-gif{background:#e8eddc}
.project-preview img[hidden],
.dialog-banner-wrap img[hidden]{display:none !important}

/* Same card box: stack preview + content, and push the tags / link row to the bottom of every card. */
.project-grid > .project-card{display:flex;flex-direction:column}
.project-grid .project-content{flex:1 1 auto;display:flex;flex-direction:column}
.project-grid .project-content p{margin-bottom:auto;padding-bottom:15px}
