/* Shared visual language with shop.cneqq.com. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #040f1b;
  --sur: rgba(9, 30, 47, .66);
  --sur-hover: rgba(34, 71, 91, .72);
  --bdr: rgba(162, 203, 224, .23);
  --bdr-hover: rgba(158, 214, 237, .44);
  --txt: #f2f9fc;
  --txt2: #9ab3c2;
  --txt3: #8faabb;
  --r: 12px;
  --r-lg: 12px;
}

#wrapper { overflow: clip; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background-color: var(--bg) !important;
  background-image: radial-gradient(ellipse at 15% 8%, rgba(90,164,198,.13), transparent 48%), linear-gradient(rgba(2,13,26,.74),rgba(2,15,28,.88) 55%,rgba(2,11,22,.91)), url('ice.webp') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid #a2dbed; outline-offset: 4px; }
#noise-overlay { display: none; }
#snow-back { opacity: .5; }
#snow-container { opacity: .75; }
#snow-front { opacity: .45; }
.sec-inner {
  max-width: 1000px;
  padding: 38px;
  border: 1px solid var(--bdr-hover);
  border-radius: 32px;
  background: linear-gradient(125deg, rgba(18,44,61,.25), rgba(4,19,32,.36));
  box-shadow: inset 0 1px 0 rgba(225,247,255,.08), 0 20px 80px rgba(0,8,16,.2);
  backdrop-filter: blur(2px);
}
.hero-flex { gap: 44px !important; }
.hero-avatar, .hero-avatar:hover {
  width: 210px !important;
  height: 210px !important;
  border-radius: 50% !important;
  border-color: var(--bdr-hover) !important;
  box-shadow: 0 0 0 6px rgba(162,219,237,.06), 0 0 0 1px rgba(221,249,255,.4), 0 0 48px rgba(119,219,247,.24), 0 12px 36px rgba(0,0,0,.2) !important;
}
.hero-info h1 { font-weight: 650 !important; font-size: clamp(40px,6vw,68px) !important; letter-spacing: -.045em !important; color: var(--txt) !important; -webkit-text-fill-color: var(--txt) !important; }
.hero-info .bio { font-weight: 400 !important; font-size: 16px !important; margin-bottom: 0; }
.card-link, .project-card, .about-card, .spec-card, .m3-chip {
  background: linear-gradient(125deg, rgba(39,78,102,.32), rgba(8,27,43,.46)) !important;
  border: 1px solid var(--bdr) !important;
  border-radius: 24px !important;
  box-shadow: inset 0 2px 0 rgba(225,247,255,.3), inset 1px 0 0 rgba(191,235,251,.13), inset 0 -1px 0 rgba(133,208,240,.08), 0 5px 24px rgba(0,10,22,.15) !important;
  backdrop-filter: blur(4px) !important;
}
.card-link:nth-child(even), .about-card:nth-child(even), .other-projects .project-card:nth-child(even) {
  background: linear-gradient(125deg, rgba(36,99,89,.28), rgba(8,27,43,.48)) !important;
  border-color: rgba(72,192,154,.32) !important;
}
.card-link:hover, .project-card:hover, .about-card:hover {
  background-color: rgba(48,91,113,.38) !important;
  border-color: #a2dbed !important;
}
.card-link .icon, .about-icon { color: #a2dbed !important; }
.card-link .text { color: var(--txt) !important; font-weight: 600 !important; }
.pj-title { color: var(--txt) !important; font-weight: 600 !important; font-size: 19px !important; }
.pj-desc { color: var(--txt2) !important; }
.sec-title, .links-slide-header, .about-slide-header { color: #b7d5e3 !important; font: 600 11px ui-monospace, Consolas, monospace !important; letter-spacing: .12em !important; }
.links-slide-header::after, .about-slide-header::after { background: var(--bdr) !important; }
#links .grid-links { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: 0; }
#links .links-slide-header { margin-bottom: 18px; }
.links-carousel-track { align-items: flex-start; }
.links-slide { min-width: 0; }
.about-label { color: var(--txt2) !important; }
.about-val { font-weight: 500 !important; }
.projects-slide .other-projects { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 12px; margin: 0; }
.other-projects .project-card { padding: 24px !important; min-height: 176px; }
.other-projects .project-showcase {
  display: grid !important; grid-template-columns: 1.1fr .9fr; grid-template-rows: auto 1fr auto; grid-template-areas: "heading art" "description art" "foot art"; column-gap: 36px;
  width: 100%; max-width: 900px; min-height: 382px; padding: 24px !important;
  text-decoration: none; color: var(--txt); overflow: hidden; background: linear-gradient(145deg,rgba(38,82,109,.34),rgba(7,25,40,.57)) !important;
  border-color: rgba(162,203,224,.3) !important; border-radius: 28px !important;
  box-shadow: inset 0 1px 0 rgba(235,250,255,.36), inset 0 0 30px rgba(128,205,234,.035), 0 12px 36px rgba(0,8,18,.18) !important;
}
.project-showcase > * { position: relative; z-index: 1; }
.project-art {
  grid-area: art; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 20px; border: 1px solid rgba(183,226,242,.22); border-radius: 20px;
  background: radial-gradient(circle at 76% 20%,rgba(209,246,255,.21),transparent 35%), linear-gradient(135deg,rgba(113,178,207,.28),rgba(14,40,59,.2));
  box-shadow: inset 0 1px 0 rgba(240,251,255,.24), inset 0 -14px 30px rgba(119,203,231,.045); overflow: hidden;
}
.project-art::after { content:''; position:absolute; width:140px; height:140px; right:-32px; top:-56px; border:1px solid rgba(210,245,255,.13); border-radius:42% 58% 61% 39%; transform:rotate(28deg); box-shadow:0 0 0 12px rgba(210,245,255,.025),0 0 42px rgba(145,220,246,.08); }
.project-art > .material-symbols-rounded { font-size: clamp(78px,10vw,120px); color: #c1e8f4; text-shadow: 0 0 28px rgba(130,212,241,.48); }
.project-art-label { color: #c4e3ee; font: 600 9px ui-monospace,Consolas,monospace; letter-spacing: .11em; text-align: right; }
.projects-slide:nth-child(3n) .project-art { background: radial-gradient(circle at 24% 22%,rgba(202,243,255,.17),transparent 35%),linear-gradient(140deg,rgba(42,120,129,.32),rgba(12,41,49,.27)); }
.projects-slide:nth-child(3n) .project-art > .material-symbols-rounded { color:#aee9dc; text-shadow:0 0 28px rgba(107,220,191,.35); }
.projects-slide:nth-child(3n + 1) .project-art { background: radial-gradient(circle at 80% 20%,rgba(219,232,255,.2),transparent 34%),linear-gradient(140deg,rgba(78,91,141,.32),rgba(18,31,56,.27)); }
.project-showcase .project-art { grid-column:2; grid-row:1 / 4; }
.project-showcase .pj-header { grid-area:heading; display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 24px 4px 9px; }
.project-showcase .pj-title { font-size: clamp(23px,2.5vw,34px) !important; line-height:1.2; letter-spacing:-.035em; }
.project-arrow { color: #a6ccdc; font-size: 18px; flex: 0 0 auto; opacity:.7; }
.project-showcase .pj-desc { grid-area:description; margin: 0 4px 18px; font-size:15px; line-height:1.75; }
.project-foot { grid-area:foot; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px 4px 2px; margin: auto 4px 0; border-top:1px solid rgba(170,215,234,.18); color:#bbdce8; font-size:12px; }
.project-foot span:last-child { font-size:16px; color:#a2dbed; }
.projects-carousel-track { align-items: flex-start; }
.shop-feature.project-card { padding: 0 !important; background: linear-gradient(115deg,rgba(25,60,81,.42),rgba(9,27,43,.5)) !important; border-color: var(--bdr-hover) !important; }
.shop-feature::after { pointer-events: none; }
.shop-main-link { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 32px; padding: 36px; text-decoration: none; color: var(--txt); position: relative; z-index: 1; }
.shop-copy { min-width: 0; }
.shop-eyebrow { display: block; color: #b7e6f6; font: 600 10px ui-monospace,Consolas,monospace; letter-spacing: .13em; margin-bottom: 16px; }
.shop-copy h2 { font-size: clamp(28px,3.6vw,40px); font-weight: 650; letter-spacing: -.04em; line-height: 1.12; margin-bottom: 16px; }
.shop-copy p { color: var(--txt2); font-size: 14px; line-height: 1.7; max-width: 440px; }
.shop-stat { border-left: 2px solid #9ed2bd; padding-left: 16px; margin: 26px 0; display: flex; flex-direction: column; gap: 5px; }
.shop-stat strong { color: #c2ecdb; font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.shop-stat span { color: var(--txt2); font-size: 12px; }
.shop-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px 18px; border: 1px solid #b6e0ed; border-radius: 12px; color: #102b3b; background: #b6e0ed; font-size: 13px; font-weight: 600; }
.shop-visual { display: flex; align-items: center; flex-direction: column; gap: 12px; }
.shop-emblem { font-size: 106px; line-height: 1; color: #a2dbed; font-family: 'Segoe UI Symbol',sans-serif; font-weight: 400; text-shadow: 0 0 42px rgba(110,176,208,.28); margin-bottom: 8px; }
.shop-category { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; font-size: 14px; font-weight: 500; border: 1px solid rgba(87,161,230,.32); border-radius: 12px; background: linear-gradient(120deg,rgba(54,115,156,.44),rgba(8,27,43,.6)); box-shadow: inset 0 1px 0 rgba(225,247,255,.18); }
.shop-category span { color: #a2dbed; font-size: 25px; width: 32px; text-align: center; }
.shop-category.username { background: linear-gradient(120deg,rgba(45,133,112,.35),rgba(8,27,43,.6)); border-color: rgba(72,192,154,.32); }
.shop-category.username span { color: #9ed2bd; }
.shop-domain { color: var(--txt2); font: 11px ui-monospace,Consolas,monospace; letter-spacing: .05em; padding-top: 5px; }
.shop-bot-link { display: flex; justify-content: space-between; padding: 16px 36px; color: #b7e6f6; border-top: 1px solid var(--bdr); font-size: 12px; position: relative; z-index: 1; text-decoration: none; }
.shop-bot-link:hover { background: rgba(48,91,113,.25); }
.links-carousel-arrow, .about-carousel-arrow, .projects-carousel-arrow, .btn-top {
  background: linear-gradient(125deg,rgba(39,78,102,.48),rgba(8,27,43,.65)) !important;
  border: 1px solid var(--bdr-hover) !important;
  border-radius: 12px !important;
  color: #b7e6f6 !important;
  box-shadow: inset 0 1px 0 rgba(225,247,255,.15) !important;
}
.links-dot, .about-dot, .projects-dot, .nd { border-radius: 8px !important; }
.footer-wrap { padding: 24px !important; }
.footer-nav a { border-radius: 12px !important; color: #b7e6f6 !important; }
.footer-logo { font-weight: 650 !important; }
#preloader { background: #040f1b !important; }

/* Full-width rows, including the device cards that used to span two columns. */
.about-carousel-track { align-items: flex-start; }
.about-slide, .projects-slide { min-width: 0; }
.about-grid.tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.about-grid.devices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-grid .about-card { min-width: 0; border-radius: 24px !important; }
.about-grid .about-card.wide-card { grid-column: auto !important; }
.tech-grid .about-card { padding: 20px 16px !important; flex-direction: column; align-items: flex-start; gap: 16px; }
.devices-grid .about-card { padding: 22px !important; align-items: flex-start; gap: 16px; }
.about-info { min-width: 0; }
.about-val { overflow-wrap: anywhere; line-height: 1.5; }
.tech-grid .about-label { font-size: 10px !important; letter-spacing: .06em; }

/* Cold reflected light, frosted edges and slow glints on the glass. */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  background: radial-gradient(ellipse at 8% 15%, rgba(112,205,237,.12), transparent 42%), radial-gradient(ellipse at 85% 78%, rgba(91,192,166,.09), transparent 45%);
  animation: ice-atmosphere 18s ease-in-out infinite alternate;
}
body::after {
  background: linear-gradient(126deg, transparent 18%, rgba(191,235,252,.065) 18.1%, transparent 18.3%, transparent 72%, rgba(170,226,247,.04) 72.1%, transparent 72.3%), radial-gradient(ellipse at center, transparent 45%, rgba(2,11,22,.36));
}
.sec-inner { isolation: isolate; box-shadow: inset 0 1px 0 rgba(225,247,255,.25), inset 1px 0 0 rgba(190,231,250,.06), 0 20px 80px rgba(0,8,16,.25), 0 0 50px rgba(125,211,245,.045); }
.sec-inner::before, .sec-inner::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
}
.sec-inner::before {
  z-index: 0;
  background: radial-gradient(ellipse at var(--ice-x,0%) var(--ice-y,0%), rgba(190,235,252,.14), transparent 32%), linear-gradient(var(--ice-angle,133deg), transparent 80%, rgba(199,239,255,.09) 80.1%, transparent 80.4%), linear-gradient(var(--ice-angle,48deg), transparent 13%, rgba(199,239,255,.06) 13.1%, transparent 13.4%);
}
.sec-inner::after {
  z-index: 4;
  background: linear-gradient(112deg, transparent 43%, rgba(210,245,255,.04) 46%, rgba(210,245,255,.16) 49%, rgba(210,245,255,.04) 52%, transparent 55%);
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: ice-glint 10s ease-in-out infinite;
  animation-play-state: paused;
}
.sec[style*="visibility: visible"] .sec-inner::after { animation-play-state: running; }
.card-link, .about-card, .hero-avatar, .project-card { position: relative; overflow: hidden; isolation: isolate; }
.card-link::before, .about-card::before, .project-card::before {
  content: ''; display: block !important; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at var(--ice-x,0%) var(--ice-y,0%), rgba(217,249,255,.2), transparent 40%), linear-gradient(var(--ice-angle,135deg), rgba(210,245,255,.1), transparent 27%), linear-gradient(var(--ice-angle,155deg), transparent 78%, rgba(192,235,250,.14) 78.3%, transparent 78.8%), url('ice.webp') var(--ice-x,50%) var(--ice-y,50%) / var(--ice-size,180%) auto no-repeat !important;
  transform: scaleX(var(--ice-flip,1));
  background-blend-mode: screen;
  opacity: .25 !important;
}
.card-link::after, .about-card::after, .hero-avatar::after, .project-card.spotlight-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), rgba(210,246,255,.3), rgba(141,213,242,.07) 40%, transparent 72%);
}
.about-icon, .card-link .icon { text-shadow: 0 0 22px rgba(162,219,237,.25); }
.shop-emblem { animation: ice-emblem 8s ease-in-out infinite alternate; }
.shop-open { box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 22px rgba(162,219,237,.1); }
@media (hover: hover) {
  .card-link:hover::after, .about-card:hover::after, .hero-avatar:hover::after, .project-card.spotlight-card:hover::after { opacity: 1; }
  .card-link:hover, .about-card:hover, .project-card:hover {
    box-shadow: inset 0 1px 0 rgba(225,247,255,.38), inset 0 0 24px rgba(137,217,247,.055), 0 0 16px rgba(137,217,247,.06) !important;
  }
}
@keyframes ice-atmosphere { from { opacity: .45; } to { opacity: 1; } }
@keyframes ice-glint { 0%, 55% { background-position: 150% 0; } 88%, 100% { background-position: -50% 0; } }
@keyframes ice-emblem { from { text-shadow: 0 0 24px rgba(110,176,208,.22); } to { text-shadow: 0 0 42px rgba(155,226,248,.5), 0 0 80px rgba(110,176,208,.15); } }
@media (max-width: 700px) {
  .si { padding: 48px 16px 32px; }
  .sec-inner { padding: 22px 18px; }
  .hero-flex { gap: 26px !important; flex-direction: column; text-align: center; }
  .hero-avatar, .hero-avatar:hover { width: 160px !important; height: 160px !important; }
  .hero-info .bio { font-size: 14px !important; }
  .shop-main-link { padding: 24px; grid-template-columns: 1fr; gap: 24px; }
  .shop-visual { display: none; }
  .shop-stat { margin: 22px 0; }
  .shop-bot-link { padding: 16px 24px; font-size: 11px; }
  .projects-slide .other-projects { grid-template-columns: minmax(0,1fr); }
  .other-projects .project-card { padding: 20px !important; min-height: 0; }
  .other-projects .project-showcase { grid-template-columns: 1fr; grid-template-rows: 132px auto 1fr auto; grid-template-areas: "art" "heading" "description" "foot"; row-gap: 0; padding: 14px !important; min-height: 390px; }
  .project-showcase .project-art { grid-column:1; grid-row:1; min-height:0; padding:12px; flex-direction:row; justify-content:space-between; }
  .project-art > .material-symbols-rounded { font-size:64px; }
  .project-showcase .pj-header { margin:18px 4px 8px; }
  .project-showcase .pj-title { font-size:22px !important; }
  .project-showcase .pj-desc { font-size:14px; }
  .projects-carousel-viewport { touch-action: pan-y; }
  .projects-carousel-controls { margin-top: 18px; }
  .about-grid, .about-grid.tech-grid, .about-grid.devices-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .about-grid .about-card { width: 100%; padding: 20px !important; flex-direction: row; align-items: center; gap: 16px; }
  .about-carousel-viewport { touch-action: pan-y; }
  .sec-inner::after { animation-duration: 14s; }
}
@media (prefers-reduced-motion: reduce) {
  #snow-back, #snow-container, #snow-front { display: none; }
  body::before, .sec-inner::after, .shop-emblem { animation: none !important; }
  .sec-inner::after { opacity: 0; }
  .card-link::after, .about-card::after, .hero-avatar::after, .project-card.spotlight-card::after { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
