/*
   BASE CARD
*/
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; position: relative;
  transition: border-color .3s, transform .25s, background .4s, box-shadow .3s;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at var(--mx,50%) var(--my,50%), rgba(165,151,232,0.13) 0%, transparent 68%);
  opacity: 0; transition: opacity .4s; pointer-events: none; z-index: 0; border-radius: inherit;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--adim2), 0 4px 28px rgba(0,0,0,0.65), 0 0 20px var(--adim2);
}
.card > * { position: relative; z-index: 1; }
.card-link { cursor: pointer; }



/*
   HERO CARD
*/
.card-hero { padding: 0; background: transparent; border: none; display: flex; }
.hero-wrap {
  width: 100%; border-radius: 16px; border: 1px solid var(--border);
  overflow: hidden; background: var(--surface); display: flex; flex-direction: column;
  transition: border-color .3s;
}
.hero-wrap:hover { border-color: var(--border-h); }
.hero-cover {
  position: relative; height: 105px; overflow: hidden;
  background: var(--cover-bg); flex-shrink: 0; transition: background .4s;
}
.hero-cover-aurora { position: absolute; inset: 0; overflow: hidden; }
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(38px);
  animation-iteration-count: infinite; animation-direction: alternate;
}
.ab1 { width: 260px; height: 130px; background: lab(18.87% 29.4 -43.27 / 0.6); top: -40px; left: -40px; animation: blob1 5s infinite alternate ease-in-out; }
.ab2 { width: 220px; height: 110px; background: #1a156980; top: -30px; right: -20px; animation: blob2 6.5s infinite alternate ease-in-out; }
.ab3 { width: 240px; height: 130px; background: rgba(73, 60, 143, 0.4); bottom: -50px; left: 35%; animation: blob3 7s infinite alternate ease-in-out; }

.hero-cover-overlay {
  position: absolute; inset: 0; background: var(--cover-overlay);
  z-index: 1; transition: background .4s;
}
.hero-cover-grid {
  position: absolute; inset: -60%; width: 220%; height: 220%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px; animation: grid-move 20s linear infinite; z-index: 2;
}
.hero-cover-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; z-index: 3; flex-direction: column; gap: 3px;
}
.tw-static {
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--tw-static-color); transition: color .4s;
}
.typewriter-wrap {
  font-family: 'Instrument Serif', serif; font-size: clamp(15px,1.8vw,22px);
  font-style: italic; color: var(--tw-text-color); display: flex; align-items: center; gap: 2px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.15), 0 0 40px rgba(165,151,232,0.2);
  transition: color .4s;
}
.tw-cursor {
  display: inline-block; width: 1.5px; height: 1em; background: var(--tw-cursor-color);
  border-radius: 1px; opacity: .9; animation: cur-blink .75s step-end infinite;
  margin-left: 2px; vertical-align: middle; transition: background .4s;
}
.hero-lower { padding: 0 22px 18px; display: flex; flex-direction: column; flex: 1; }
.hero-avatar-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.hero-avatar {
  width: 90px; height: 90px; border-radius: 50%; background: var(--surface-3);
  border: 3px solid var(--surface); flex-shrink: 0; position: relative; z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,.35); overflow: hidden; margin-top: -45px;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gdim);
  border: 1px solid var(--gborder); border-radius: 20px; padding: 4px 12px;
  font-family: 'DM Mono', monospace; font-size: 9px; color: var(--green);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px;
}
.hero-badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: blink 2.2s ease-in-out infinite;
}
.hero-name { font-family: 'Fraunces', serif; font-size: clamp(20px,2.2vw,28px); font-weight: 600; line-height: 1.1; color: var(--t1); letter-spacing: -.01em; margin-bottom: 5px; }
.hero-bio { font-size: 12.5px; color: var(--t2); line-height: 1.6; font-weight: 300; margin-bottom: 12px; }
.hero-bio strong { color: var(--t1); font-weight: 500; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: 'DM Mono', monospace; font-size: 10px; padding: 3px 9px;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--t2); letter-spacing: .03em; transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--border-h); color: var(--t1); }
.tag.hi { background: var(--adim); border-color: var(--adim2); color: var(--accent); }


/*
   WEATHER / CLOCK CARD
*/
.card-weather { background: var(--surface-2); display: flex; flex-direction: column; padding: 18px 18px 14px; }
.wth-loc {
  display: flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace;
  font-size: 9px; color: var(--t3); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 10px; flex-shrink: 0;
}
.wloc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.clock-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; }
.digital-clock { display: flex; align-items: center; gap: 2px; margin-bottom: 5px; }
.dc-pair { display: flex; gap: 2px; }
.dc-digit {
  background: var(--dbg); border: 1px solid var(--dborder); border-radius: 7px;
  width: 34px; height: 50px; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace; font-size: 26px; font-weight: 400; color: var(--accent);
  letter-spacing: -.05em; box-shadow: 0 0 14px var(--dglow), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative; overflow: hidden;
}
.dc-digit::after { display: none; }
.dc-sep {
  font-family: 'DM Mono', monospace; font-size: 24px; font-weight: 300; color: var(--t3);
  width: 12px; text-align: center; padding-bottom: 2px; animation: sep-blink 1s step-end infinite;
}
.dc-ampm { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--t3); align-self: flex-end; margin-bottom: 5px; margin-left: 3px; letter-spacing: .08em; }
.clock-date { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--t3); letter-spacing: .05em; margin-bottom: 10px; }
.weather-temp { display: flex; align-items: flex-start; gap: 2px; margin-bottom: 2px; }
.temp-num { font-family: 'Fraunces', serif; font-size: 42px; font-weight: 500; color: var(--t1); line-height: 1; }
.temp-unit { font-size: 15px; color: var(--t3); margin-top: 7px; }
.weather-desc { font-size: 10.5px; color: var(--t2); font-weight: 300; margin-bottom: 10px; }
.forecast { flex-shrink: 0; display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.fday { text-align: center; flex: 1; }
.fday .dn { font-family: 'DM Mono', monospace; font-size: 8px; color: var(--t3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 3px; }
.fday .dt { font-size: 12px; color: var(--t2); font-weight: 500; }


/*
   BOTTOM ROW TILES
*/
.card-bottom { padding: 18px 20px; cursor: pointer; }
.card-bottom .tile-icon { width: 32px; height: 32px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.card-bottom .tile-icon svg { width: 22px; height: 22px; stroke: var(--t2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: stroke .2s; }
.card-bottom:hover .tile-icon svg { stroke: var(--t1); }
.tile-eyebrow { font-family: 'DM Mono', monospace; font-size: 8.5px; color: var(--t3); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px;}
.tile-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: var(--t1); line-height: 1.2; margin-bottom: 4px; }
.tile-sub { font-size: 11px; color: var(--t3); line-height: 1.5; }
.card-bottom:hover .tile-title { color: var(--accent); }
.tile-arrow { position: absolute; bottom: 14px; right: 16px; font-size: 13px; color: var(--t3); transition: transform .2s, color .2s; opacity: 0; }
.card-bottom:hover .tile-arrow { opacity: 1; transform: translate(2px,-2px); color: var(--accent); }


/*
   PROJECTS PAGE
*/
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 16px; padding-bottom: 24px; }
.proj-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s; cursor: pointer;
}
.proj-card:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.proj-thumb { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--surface-2); }
.proj-thumb-placeholder { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; font-size: 32px; position: relative; overflow: hidden; }
.proj-thumb-placeholder::before { content: ''; position: absolute; inset: 0; opacity: .5; }
.proj-body { padding: 18px 20px 20px; }
.proj-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.proj-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.proj-meta { flex: 1; }
.proj-name { font-family: 'DM Mono', monospace; font-size: 18px; font-weight: 400; color: var(--t1); line-height: 1.2; margin-bottom: 2px; }
.proj-agency { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--t3); letter-spacing: .08em; }
.proj-desc { font-size: 12px; color: var(--t2); line-height: 1.7; font-weight: 400; margin-bottom: 14px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.proj-tag { font-family: 'DM Mono', monospace; font-size: 9.5px; padding: 2px 8px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--t3); }
.proj-links { display: flex; gap: 8px; }
.proj-btn {
  flex: 1; padding: 8px 12px; border-radius: 9px; font-size: 11.5px; font-weight: 500;
  text-decoration: none; text-align: center; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all .2s; border: 1px solid var(--border); color: var(--t2);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 5px;
}
.proj-btn:hover { border-color: var(--border-h); color: var(--t1); }
.proj-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.proj-btn.primary:hover { opacity: .88; }


/*
   ABOUT PAGE
 */
.about-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding-bottom: 32px; }
.about-intro { margin-bottom: 28px; }
.about-intro p { font-size: 14px; color: var(--t2); line-height: 1.8; font-weight: 300; margin-bottom: 14px; }
.about-intro p strong { color: var(--t1); font-weight: 500; }
.about-section-title { font-family: 'DM Mono', monospace; font-size: 9.5px; color: var(--t3); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.career-list { display: flex; flex-direction: column; gap: 0; }
.career-item { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.career-item:last-child { border-bottom: none; }
.career-dot-col { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.career-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.career-line { width: 1px; flex: 1; background: var(--border); margin-top: 6px; }
.career-info { flex: 1; }
.career-role { font-size: 14px; font-weight: 500; color: var(--t1); margin-bottom: 2px; }
.career-company { font-size: 12px; color: var(--accent); font-family: 'DM Mono', monospace; letter-spacing: .04em; margin-bottom: 4px; }
.career-period { font-size: 11px; color: var(--t3); font-family: 'DM Mono', monospace; }
.result { font-size: 11px; color: var(--t3); font-family: 'DM Mono', monospace; }
.career-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--gdim); border: 1px solid var(--gborder); color: var(--green); font-family: 'DM Mono', monospace; font-size: 8px; padding: 2px 7px; border-radius: 10px; letter-spacing: .06em; margin-left: 7px; }
.skill-section { margin-bottom: 24px; }
.skill-list { display: flex; flex-direction: column; gap: 10px; }
.skill-row { display: flex; flex-direction: column; gap: 4px; }
.skill-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--t2); }
.skill-label span:last-child { font-size: 10px; color: var(--t3); font-family: 'DM Mono', monospace; }
.skill-bar { height: 3px; background: var(--surface-3); border-radius: 10px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent), var(--violet)); animation: fillBar 1.6s ease-out both; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-chip { font-family: 'DM Mono', monospace; font-size: 10px; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--t2); }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.stat-b { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stat-n { font-family: 'Fraunces', serif; font-size: 26px; color: var(--t1); font-weight: 600; line-height: 1; }
.stat-l { font-size: 9px; color: var(--t3); font-family: 'DM Mono', monospace; margin-top: 3px; letter-spacing: .04em; }


/*
   STACK PAGE
*/
.stack-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; padding-bottom: 32px; }
.stack-cat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.stack-cat-title { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; color: var(--t1); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stack-cat-icon { font-size: 18px; }
.stack-items { display: flex; flex-direction: column; gap: 10px; }
.stack-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--surface-2); border-radius: 9px; border: 1px solid var(--border); transition: border-color .2s; }
.stack-item:hover { border-color: var(--border-h); }
.stack-item-icon { font-size: 20px; width: 32px; text-align: center; flex-shrink: 0; }
.stack-item-name { font-size: 13px; font-weight: 500; color: var(--t1); margin-bottom: 1px; }
.stack-item-level { font-size: 10px; color: var(--t3); font-family: 'DM Mono', monospace; }
.level-dots { display: flex; gap: 3px; margin-top: 3px; }
.ldot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border); }
.ldot.on { background: var(--accent); border-color: var(--adim2); }


/*
   STATUS PAGE
*/
.status-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 32px; }
.status-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.status-card-title { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--t3); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.status-card-heading { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--t1); line-height: 1.25; margin-bottom: 10px; }
.status-card-body { font-size: 13px; color: var(--t2); line-height: 1.7; font-weight: 300; }
.avail-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gdim); border: 1px solid var(--gborder); color: var(--green); font-family: 'DM Mono', monospace; font-size: 9px; padding: 4px 12px; border-radius: 20px; letter-spacing: .08em; margin-top: 14px; }
.avail-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
.focus-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.focus-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 9px; border: 1px solid var(--border); }
.focus-num { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.focus-text { font-size: 12.5px; color: var(--t2); line-height: 1.55; }
.focus-text strong { color: var(--t1); font-weight: 500; }


/* ═══════════════════════════════════════════
   CONTACT PAGE
 */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 32px; }
.contact-big { font-family: 'Fraunces', serif; font-size: clamp(22px,2.8vw,36px); font-weight: 600; color: var(--t1); line-height: 1.2; margin-bottom: 14px; }
.contact-tagline { font-size: 13px; color: var(--t2); line-height: 1.7; font-weight: 300; margin-bottom: 24px; }
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: all .2s; cursor: pointer; }
.contact-link:hover { border-color: var(--border-h); transform: translateX(4px); }
.contact-link-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-icon svg { width: 18px; height: 18px; fill: currentColor; }
.contact-link-label { font-size: 11px; color: var(--t3); font-family: 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-link-val { font-size: 13.5px; color: var(--t1); font-weight: 500; }
.contact-arrow { margin-left: auto; font-size: 14px; color: var(--t3); transition: transform .2s; }
.contact-link:hover .contact-arrow { transform: translate(3px,-3px); color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-family: 'DM Mono', monospace; font-size: 9px; color: var(--t3); letter-spacing: .14em; text-transform: uppercase; }
.form-input, .form-textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; color: var(--t1);
  font-family: 'Plus Jakarta Sans', sans-serif; transition: border-color .2s;
  outline: none; resize: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { height: 100px; }
.form-submit {
  padding: 11px 20px; border-radius: 10px; background: var(--accent); color: #fff;
  border: none; font-size: 13px; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: opacity .2s; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.form-submit:hover { opacity: .88; }


/*
   COMPONENT RESPONSIVE OVERRIDES
*/
@media (max-width: 480px) {
  .proj-thumb-placeholder { height: 130px; }
  .proj-body { padding: 14px 16px 16px; }
  .proj-name { font-size: 16px; }
  .proj-btn { font-size: 10.5px; padding: 7px 10px; }
  .stack-cat { padding: 16px 16px; }
  .stack-cat-title { font-size: 14px; margin-bottom: 10px; }
  .stack-item { padding: 7px 9px; gap: 10px; }
  .stack-item-name { font-size: 12px; }
  .status-card { padding: 16px 18px; }
  .status-card-heading { font-size: 17px; }
  .focus-item { padding: 9px 10px; gap: 8px; }
  .contact-link { padding: 12px 13px; gap: 11px; }
  .contact-link-icon { width: 32px; height: 32px; border-radius: 8px; }
  .contact-link-val { font-size: 12.5px; }
  .career-item { gap: 12px; padding: 14px 0; }
  .career-role { font-size: 13px; }
}


/*
   PROJECTS PREVIEW TILE
 */
 
.tile-projects-preview {
  position: relative; display: flex; flex-direction: column;
  padding: 0; overflow: hidden; cursor: pointer; text-decoration: none;
}
.tile-projects-header {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; height: 40px; flex-shrink: 0;
  border-bottom: 1px solid var(--border); position: relative; z-index: 2;
}
.tile-projects-header svg { color:#7E7A96; flex-shrink: 0; width: 20; height: 20;}
.tile-label {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400;
  letter-spacing: -.01em; color: var(--t1); flex: 1; transition: color .2s;
}
.tile-projects-preview:hover .tile-label { color: var(--accent); }
.tile-projects-preview .tile-arrow {
  font-size: 13px; color: var(--t3); transition: color .2s, transform .2s;
}
.tile-projects-preview:hover .tile-arrow { color: var(--accent); transform: translate(2px,-2px); }
.tile-projects-scroll {
  flex: 1; display: flex; flex-direction: row; gap: 10px;
  overflow-x: auto; overflow-y: hidden; padding: 12px 16px;
  scrollbar-width: none; pointer-events: auto; align-items: stretch;
}
.tile-projects-scroll::-webkit-scrollbar { display: none; }
.tile-projects-fade {
  position: absolute; top: 40px; right: 0; bottom: 0; width: 48px;
  background: linear-gradient(to right, transparent, var(--surface));
  pointer-events: none; z-index: 1;
}
.preview-project-row {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 12px; flex-shrink: 0; width: 160px; height: 100%;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; position: relative;
  transition: background .2s, border-color .2s, transform .2s; cursor: pointer;
}
.preview-project-row:hover {
  background: var(--odim); border-color: var(--orange); transform: translateY(-2px);
}
.preview-project-row:hover .preview-proj-name { color: var(--orange); }
.preview-project-row:hover .preview-proj-tags { color: rgba(201,123,58,0.65); }
.preview-project-row:hover .preview-proj-icon svg { stroke: var(--orange); }
[data-theme="light"] .preview-project-row:hover { background: var(--surface); border-color: var(--accent); }
[data-theme="light"] .preview-project-row:hover .preview-proj-name { color: var(--t1); }
[data-theme="light"] .preview-project-row:hover .preview-proj-tags { color: var(--t2); }
[data-theme="light"] .preview-project-row:hover .preview-proj-icon svg { stroke: var(--accent); }
.preview-project-top { flex: 1; display: flex; align-items: center; justify-content: center; }
.preview-proj-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.preview-project-row::after {
  content: '↗'; position: absolute; top: 10px; right: 12px;
  font-size: 13px; color: var(--orange); opacity: 0;
  transform: translate(-3px,3px); transition: opacity .2s, transform .2s;
}
[data-theme="light"] .preview-project-row::after { color: var(--accent); }
.preview-project-row:hover::after { opacity: 1; transform: translate(0,0); }
.preview-proj-info {
  display: flex; flex-direction: column; gap: 4px;
  flex-shrink: 0; text-align: center; align-items: center;
}
.preview-proj-name {
  font-family: 'DM Mono', monospace; font-size: 13px; font-weight: 200;
  color: #fff; line-height: 1.3; transition: color .2s;
}
[data-theme="light"] .preview-proj-name { color: var(--t1); }
[data-theme="light"] .preview-proj-tags { color: rgba(26,24,20,0.55); }
.preview-proj-tags {
  font-family: 'DM Mono', monospace; font-size: 8.5px;
  color: var(--t3); line-height: 1.5; transition: color .2s;
}
.preview-proj-icon svg {
  width: 18px; height: 18px; stroke: var(--t2);
  stroke-width: 1.5; transition: stroke .2s;
}


/* ── Card fly-in animation ── */
.card {
  opacity: 0;
  animation: cardFlyIn .65s cubic-bezier(.22,1,.36,1) forwards;
}
.card-hero    { animation-delay: .10s; }
.card-weather { animation-delay: .22s; }
.card-bottom:nth-child(1) { animation-delay: .32s; }
.card-bottom:nth-child(2) { animation-delay: .40s; }
.card-bottom:nth-child(3) { animation-delay: .48s; }
.card-bottom:nth-child(4) { animation-delay: .56s; }
.card-bottom:nth-child(5) { animation-delay: .64s; }
/*
   HERO TAG ICON TOOLTIP
 */
.tag { position: relative; }

.tag-icon {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.88);
  background: var(--surface-2);
  border: 1px solid var(--border-h);
  border-radius: 8px;
  padding: 6px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tag-icon i { font-size: 20px; line-height: 1; display: block; }

.tag-icon::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-h);
}

.tag:hover .tag-icon {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Clip fix — hero-tags must allow overflow for tooltip to show */
.hero-tags { overflow: visible; }
.hero-lower { overflow: visible; }
.hero-wrap  { overflow: visible; }


/*
   ABOUT ME CARD
 */
.card-about {
  padding: 0; display: flex; flex-direction: column;
  cursor: pointer; text-decoration: none;
}
.about-cover {
  position: relative;
  height: 100px;
  flex-shrink: 0;
  border-radius: 15px 15px 0 0;
  background: var(--surface-2);
  display: flex;
  align-items: flex-end;
  transition: background .4s;
}


.about-cover-aurora { position: absolute; inset: 0; overflow: hidden; }
.about-cover-overlay {
  position: absolute; inset: 0; background: var(--cover-overlay); z-index: 1; transition: background .4s;
}
.about-cover-grid {
  position: absolute; inset: -60%; width: 220%; height: 220%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 22px 22px; animation: grid-move 20s linear infinite; z-index: 2;
}
.about-cover-label {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px 16px;
}

.about-cover-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 8.5px;
  color: rgba(255,255,255,0.42); letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 3px;
}
[data-theme="light"] .about-cover-eyebrow { color: rgba(0,0,0,0.35); }
.about-cover-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--tw-text-color);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-lower { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.about-sub { display: none;}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stat-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
  transition: border-color .2s, background .2s;
}
.stat-box:hover { border-color: var(--border-h); background: var(--surface-3); }
.stat-num {
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500;
  color: var(--t1); line-height: 1; margin-bottom: 3px;
}
.stat-label {
  font-family: 'DM Mono', monospace; font-size: 7.5px;
  color: var(--t3); letter-spacing: .1em; text-transform: uppercase;
}
.card-about:hover .about-cover-title { color: var(--accent); }
.about-cover-arrow {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: transform .2s, color .2s;
}
.card-about:hover .about-cover-arrow {
  transform: translate(2px,-2px);
  color: var(--accent);
}
[data-theme="light"] .about-cover-arrow { color: rgba(0,0,0,0.25); }

.card-about .about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 20px;
}
.stat-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 10px;
  transition: border-color .2s, background .2s;
}

.stat-box:hover { border-color: var(--border-h); background: var(--surface-3); }
.stat-num {
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500;
  color: var(--t1); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-family: 'DM Mono', monospace; font-size: 10px;
  color: var(--t3); letter-spacing: .1em; text-transform: uppercase;
}

/* ── Aurora blobs — light theme ── */
[data-theme="light"] .ab1 { background: rgba(5, 3, 20, 0.35); }
[data-theme="light"] .ab2 { background: rgba(138,110,62,0.3); }
[data-theme="light"] .ab3 { background: rgba(92,78,184,0.22); }

