@font-face{
  font-family:"Inter";
  src:url("../fonts/InterSite.woff2") format("woff2");
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
}


:root{
  --bg:#040711;
  --bg-alt:#040711;
  --panel:#0b1222;
  --panel-2:#111b33;
  --text:#edf2f7;
  --muted:#9aa8ba;
  --line:#182544;
  --accent:#00f0ff;
  --accent-2:#7dd3fc;
  --max:1180px;
  --radius:20px;
  --ui-glow-border:rgba(0,240,255,.38);
  --ui-glow-soft:rgba(0,240,255,.11);
  --ui-glow-soft-2:rgba(0,240,255,.055);
  --ui-hover-bg:rgba(0,240,255,.045);
}
*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  position:relative;
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:0}
.skip-link:focus{left:20px;top:20px;background:#fff;color:#000;padding:10px 14px;z-index:1000}
.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(4,7,17,.76);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  border-bottom:1px solid rgba(255,255,255,.055);
}
.nav-wrap{height:72px;display:flex;align-items:center;gap:28px}
.brand{font-weight:800;font-size:1.15rem;letter-spacing:-.03em}
.brand span{color:var(--accent)}
.nav{display:flex;gap:24px;margin-left:auto}
.nav a{font-size:.95rem;color:var(--muted)}
.nav a:hover,.nav a:focus{color:var(--text)}
.lang-switcher{display:flex;gap:6px;align-items:center;color:var(--muted)}
.lang-switcher button{background:none;border:0;color:var(--muted);cursor:pointer;padding:6px}
.lang-switcher button.active{color:var(--text);font-weight:700}
.hero{padding:120px 0 96px;min-height:76vh;display:grid;align-items:center}
.hero-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:64px;align-items:center}
.eyebrow,.section-kicker{text-transform:uppercase;letter-spacing:.14em;font-size:.76rem;color:var(--accent-2);font-weight:700}
h1{font-size:clamp(3.5rem,9vw,7.8rem);line-height:.9;letter-spacing:-.065em;margin:.2em 0 .16em}
.hero h2{font-size:clamp(1.35rem,3vw,2.25rem);font-weight:500;color:#c6d1df;margin:0 0 24px}
.hero-copy{font-size:1.15rem;color:var(--muted);max-width:760px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border-radius:999px;border:1px solid var(--line);font-weight:700;cursor:pointer}
.btn.primary{background:var(--text);color:var(--bg);border-color:var(--text)}
.btn.secondary{background:transparent;color:var(--text)}

.signal-card{border-radius:var(--radius)}
.signal-line{display:grid;grid-template-columns:48px 1fr;gap:16px;padding:20px;border-bottom:1px solid rgba(255,255,255,.06)}
.signal-line:last-child{border-bottom:0}
.signal-line span{color:var(--accent);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.section{padding:100px 0}
.section-alt{background:transparent;border-block:1px solid rgba(255,255,255,.045)}
.section h2{font-size:clamp(2.2rem,5vw,4.4rem);line-height:1.02;letter-spacing:-.045em;margin:.25em 0 .8em}
.split{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px}
.prose{font-size:1.08rem;color:var(--muted)}
.prose p:first-child{margin-top:0}
.timeline{margin-top:48px;border-top:1px solid var(--line)}
.timeline-item{display:grid;grid-template-columns:220px 1fr;gap:36px;padding:34px 0;border-bottom:1px solid var(--line)}
.timeline-meta{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.timeline h3{font-size:1.35rem;margin:0}
.timeline .role{color:#d7e1ee;margin:.3rem 0 .6rem;font-weight:700}
.timeline-item p:last-child{color:var(--muted);max-width:760px}
.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:42px}
.project-card{position:relative;min-height:300px;padding:28px;border-radius:var(--radius);overflow:hidden}
.project-card.wide{grid-column:1/-1}
.project-number{color:var(--accent);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85rem}
.project-card h3{font-size:1.65rem;margin:18px 0 8px}
.project-card p{color:var(--muted);max-width:640px}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.tags span{border:1px solid var(--line);border-radius:999px;padding:6px 10px;color:#b9c6d5;font-size:.82rem}
.skill-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:42px}
.skill-grid>div{border-top:1px solid var(--line);padding-top:18px}
.skill-grid h3{margin:0 0 6px;font-size:1rem}
.skill-grid p{margin:0;color:var(--muted)}
.contact-copy{color:var(--muted);max-width:560px}
.text-link{border:0;background:none;color:var(--accent-2);padding:0;cursor:pointer;font-weight:700}
.email-output{color:#dbe8f6;min-height:1.5em}
.contact-socials{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  color:var(--muted);
}
.contact-socials a{
  color:var(--accent);
  font-weight:700;
  transition:color .2s ease,opacity .2s ease;
}
.contact-socials a:hover,
.contact-socials a:focus-visible{
  color:var(--text);
}
.contact-socials .social-separator{
  color:var(--line);
}
.contact-form{display:grid;gap:18px;border-radius:var(--radius);padding:28px}
.contact-form label{display:grid;gap:8px;font-weight:600}
.contact-form input,.contact-form textarea{
  width:100%;border:1px solid var(--line);background:#0b1220;color:var(--text);
  border-radius:12px;padding:12px 14px;outline:none
}
.contact-form input:focus,.contact-form textarea:focus{border-color:var(--accent)}
.honeypot{position:absolute;left:-9999px}
.site-footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted)}
.footer-wrap{display:flex;justify-content:space-between;gap:20px}
@media (max-width:900px){
  .nav{display:none}
  .lang-switcher{margin-left:auto}
  .hero{padding-top:90px}
  .hero-grid,.split{grid-template-columns:1fr}
  .project-grid,.skill-grid{grid-template-columns:1fr}
  .project-card.wide{grid-column:auto}
  .timeline-item{grid-template-columns:1fr;gap:8px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}


/* =========================================================
   Motion system
   Works on desktop, tablet and mobile.
   ========================================================= */

@keyframes heroEnter {
  0%   { opacity: 0; transform: translate3d(0, 22px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: .88; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.14); }
}

/* Hero: animated on ALL screen sizes */
.hero .eyebrow,
.hero h1,
.hero h2,
.hero .hero-copy,
.hero .hero-actions,
.signal-card {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

html.motion-ready .hero .eyebrow { animation: heroEnter .62s cubic-bezier(.2,.75,.25,1) .03s both; }
html.motion-ready .hero h1      { animation: heroEnter .68s cubic-bezier(.2,.75,.25,1) .11s both; }
html.motion-ready .hero h2      { animation: heroEnter .62s cubic-bezier(.2,.75,.25,1) .18s both; }
html.motion-ready .hero .hero-copy { animation: heroEnter .62s cubic-bezier(.2,.75,.25,1) .25s both; }
html.motion-ready .hero .hero-actions { animation: heroEnter .62s cubic-bezier(.2,.75,.25,1) .32s both; }
html.motion-ready .signal-card  { animation: heroEnter .68s cubic-bezier(.2,.75,.25,1) .20s both; }

/* Initial content entrance: runs once on page load, never on scroll */
@keyframes contentEnter {
  0%   { opacity: 0; transform: translate3d(0, var(--content-enter-offset, 24px), 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

html.motion-ready .section .section-kicker,
html.motion-ready .section h2,
html.motion-ready .prose,
html.motion-ready .timeline-item,
html.motion-ready .project-card,
html.motion-ready .skill-grid > div,
html.motion-ready .contact-copy,
html.motion-ready .text-link,
html.motion-ready .contact-form {
  --content-enter-offset: 24px;
  animation: contentEnter .62s cubic-bezier(.2,.75,.25,1) .18s both;
}

/* Desktop/pointer polish */
.nav a {
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.brand span {
  display: inline-block;
  transform-origin: center;
  will-change: transform, opacity;
  animation: dotPulse 4.2s ease-in-out infinite;
}

@media (hover:hover) and (pointer:fine) {
  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: scaleX(1);
  }

}

/* Touch feedback for tablet/mobile */
@media (hover:none), (pointer:coarse) {
  .project-card,
  .signal-line,
  .skill-grid > div,
  .btn,
  .lang-switcher button {
    -webkit-tap-highlight-color: transparent;
  }

  .signal-line:active {
    transform: scale(.992);
    background: rgba(116,182,255,.055);
  }

  .skill-grid > div:active {
    transform: scale(.99);
    border-color: rgba(116,182,255,.40);
  }

  .btn:active {
    transform: scale(.97);
  }
}

/* Tablet: retain the animation, just make it slightly quicker */
@media (max-width: 900px) {
  html.motion-ready .hero .eyebrow,
  html.motion-ready .hero h1,
  html.motion-ready .hero h2,
  html.motion-ready .hero .hero-copy,
  html.motion-ready .hero .hero-actions,
  html.motion-ready .signal-card {
    animation-duration: .54s;
  }

  html.motion-ready .section .section-kicker,
  html.motion-ready .section h2,
  html.motion-ready .prose,
  html.motion-ready .timeline-item,
  html.motion-ready .project-card,
  html.motion-ready .skill-grid > div,
  html.motion-ready .contact-copy,
  html.motion-ready .text-link,
  html.motion-ready .contact-form {
    --content-enter-offset: 18px;
    animation-duration: .52s;
  }
}

/* Mobile */
@media (max-width: 600px) {
  html.motion-ready .section .section-kicker,
  html.motion-ready .section h2,
  html.motion-ready .prose,
  html.motion-ready .timeline-item,
  html.motion-ready .project-card,
  html.motion-ready .skill-grid > div,
  html.motion-ready .contact-copy,
  html.motion-ready .text-link,
  html.motion-ready .contact-form {
    --content-enter-offset: 15px;
    animation-duration: .48s;
  }

  html.motion-ready .hero .eyebrow { animation-delay: .02s; }
  html.motion-ready .hero h1 { animation-delay: .07s; }
  html.motion-ready .hero h2 { animation-delay: .12s; }
  html.motion-ready .hero .hero-copy { animation-delay: .17s; }
  html.motion-ready .hero .hero-actions { animation-delay: .22s; }
  html.motion-ready .signal-card { animation-delay: .14s; }
}

/* Accessibility: only disabled when the device explicitly requests reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero h2,
  .hero .hero-copy,
  .hero .hero-actions,
  .signal-card,
  .section .section-kicker,
  .section h2,
  .prose,
  .timeline-item,
  .project-card,
  .skill-grid > div,
  .contact-copy,
  .text-link,
  .contact-form {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .brand span {
    animation: none !important;
  }
}


/* =========================================================
   Unified ambient / glass foundation
   ========================================================= */


main,
.site-footer{
  position:relative;
  z-index:2;
}

.ambient-network,
.ambient-grid,
.ambient-light{
  position:fixed;
  inset:0;
  pointer-events:none;
}

.ambient-network{
  z-index:0;
  width:100%;
  height:100%;
  opacity:.40;
}

.ambient-grid{
  z-index:0;
  background-size:40px 40px;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  opacity:1;
}

.section,
.section-alt{
  position:relative;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

@media (max-width:900px){
  .ambient-network{opacity:.34}
  .ambient-grid{background-size:36px 36px}
}

@media (max-width:600px){
  .ambient-network{opacity:.30}
  .ambient-grid{background-size:34px 34px}
}

/* =========================================================
   Unified ambient light
   Replaces the old oversized fixed elements + filter: blur().
   Same implementation on Windows, Android, iOS and macOS.
   ========================================================= */
.ambient-light{
  z-index:0;
  background:
    radial-gradient(
      ellipse 600px 400px at 25% 18%,
      rgba(0,240,255,.052) 0%,
      rgba(0,240,255,.030) 35%,
      rgba(0,240,255,0) 72%
    ),
    radial-gradient(
      ellipse 560px 460px at 92% 82%,
      rgba(59,130,246,.052) 0%,
      rgba(59,130,246,.030) 36%,
      rgba(59,130,246,0) 74%
    );
}

@media (max-width:900px){
  .ambient-light{
    background:
      radial-gradient(
        ellipse 430px 300px at 20% 16%,
        rgba(0,240,255,.052) 0%,
        rgba(0,240,255,.030) 35%,
        rgba(0,240,255,0) 72%
      ),
      radial-gradient(
        ellipse 400px 340px at 94% 84%,
        rgba(59,130,246,.052) 0%,
        rgba(59,130,246,.030) 36%,
        rgba(59,130,246,0) 74%
      );
  }
}

@media (max-width:600px){
  .ambient-light{
    background:
      radial-gradient(
        ellipse 360px 260px at 10% 14%,
        rgba(0,240,255,.050) 0%,
        rgba(0,240,255,.029) 34%,
        rgba(0,240,255,0) 72%
      ),
      radial-gradient(
        ellipse 350px 290px at 96% 86%,
        rgba(59,130,246,.050) 0%,
        rgba(59,130,246,.029) 36%,
        rgba(59,130,246,0) 74%
      );
  }
}


/* Unified glass system */
.signal-card,
.contact-form{
  background:rgba(11,18,34,.78);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:
    0 8px 32px rgba(0,0,0,.50),
    inset 0 1px 1px rgba(255,255,255,.04);
}


.signal-line:hover{
  background:rgba(0,240,255,.035);
}

.skill-grid>div:hover{
  border-color:rgba(0,240,255,.28);
}

/* Cyan accent coherence */
.brand span,
.section-kicker,
.eyebrow,
.project-number,
.text-link,
.signal-line span{
  color:var(--accent);
}

/* Cyan remains the interactive accent. */
.btn.secondary:hover{
  border-color:rgba(0,240,255,.28);
}

/* =========================================================
   Responsive hamburger navigation
   ========================================================= */

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.mobile-menu-toggle{
  display:none;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(11,18,34,.78);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
  padding:0;
  -webkit-tap-highlight-color:transparent;
}

.mobile-menu-toggle span{
  display:block;
  width:18px;
  height:1.5px;
  border-radius:999px;
  background:var(--text);
  transition:
    transform .24s ease,
    opacity .24s ease,
    background .24s ease;
}

.mobile-menu-toggle:hover span,
.mobile-menu-toggle:focus-visible span{
  background:var(--accent);
}

.mobile-menu-toggle.is-open span:nth-child(1){
  transform:translateY(5.5px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2){
  opacity:0;
}

.mobile-menu-toggle.is-open span:nth-child(3){
  transform:translateY(-5.5px) rotate(-45deg);
}

.mobile-menu-panel{
  position:absolute;
  top:calc(100% + 8px);
  right:20px;
  width:min(320px, calc(100% - 40px));
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:rgba(7,11,22,.94);
  backdrop-filter:blur(18px) saturate(125%);
  -webkit-backdrop-filter:blur(18px) saturate(125%);
  box-shadow:
    0 24px 60px rgba(0,0,0,.36),
    0 0 30px rgba(0,240,255,.035);
  padding:10px;
  z-index:70;
  transform-origin:top right;
}

.mobile-menu-panel[hidden]{
  display:none;
}

.mobile-menu-panel.is-opening{
  animation:mobileMenuIn .18s ease-out both;
}

@keyframes mobileMenuIn{
  from{
    opacity:0;
    transform:translateY(-6px) scale(.985);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.mobile-nav{
  display:grid;
  gap:4px;
}

.mobile-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-size:.96rem;
  font-weight:600;
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible{
  color:var(--text);
  background:rgba(0,240,255,.055);
}

.mobile-nav a:active{
  transform:scale(.985);
}

@media (max-width:900px){
  .mobile-menu-toggle{
    display:flex;
  }

  .lang-switcher{
    margin-left:0;
  }

  .site-header .container{
    position:relative;
  }
}

@media (max-width:600px){
  .header-actions{
    gap:6px;
  }

  .mobile-menu-toggle{
    width:40px;
    height:40px;
    border-radius:11px;
  }

  .mobile-menu-panel{
    right:14px;
    width:min(310px, calc(100% - 28px));
  }
}

@media (prefers-reduced-motion:reduce){
  .mobile-menu-toggle span,
  .mobile-nav a{
    transition:none !important;
  }

  .mobile-menu-panel.is-opening{
    animation:none !important;
  }
}


/* =========================================================
   Mobile header alignment
   Keep JC. on the left and language + hamburger on the right.
   ========================================================= */
@media (max-width:900px){
  .header-actions{
    margin-left:auto;
  }

  /* Keep the same horizontal container margins used on desktop. */
  .nav-wrap{
    width:min(calc(100% - 40px),var(--max));
  }
}


/* =========================================================
   Breakpoint transition polish
   Built from previous build. The layout itself is unchanged.
   ========================================================= */

.layout-flip-target{
  will-change: transform;
}

.header-crossfade-in{
  animation: headerCrossfadeIn .32s cubic-bezier(.2,.75,.2,1) both;
}

@keyframes headerCrossfadeIn{
  from{
    opacity:0;
    transform:translateY(-7px) scale(.96);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.breakpoint-shell{
  transition:
    border-color .25s ease,
    background .25s ease;
}

@media (prefers-reduced-motion:reduce){
  .header-crossfade-in{
    animation:none !important;
  }
}


/* =========================================================
   Header transition
   ========================================================= */

@keyframes hamburgerEnter{
  from{
    opacity:0;
    transform:translateX(8px) scale(.92);
  }
  to{
    opacity:1;
    transform:translateX(0) scale(1);
  }
}

@media (max-width:900px){
  .mobile-menu-toggle{
    animation:hamburgerEnter .28s cubic-bezier(.2,.75,.2,1) both;
  }
}

@media (prefers-reduced-motion:reduce){
  .mobile-menu-toggle{
    animation:none !important;
  }
}


/* =========================================================
   Profile status matrix
   ========================================================= */

/* PROFILE 01–04:
   convert the former stacked rows into a passive 2x2 status matrix.
   It should read as profile information, not navigation. */
.signal-card{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
  padding:12px;
  overflow:visible;
}

.signal-line{
  min-height:108px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border:1px solid rgba(255,255,255,.065) !important;
  border-radius:14px;
  background:rgba(4,7,17,.42);
  transition:
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.signal-line:last-child{
  border-bottom:1px solid rgba(255,255,255,.065) !important;
}

.signal-line span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:31px;
  padding:3px 7px;
  border-radius:7px;
  border:1px solid rgba(0,240,255,.18);
  background:rgba(0,240,255,.055);
  color:var(--accent);
  font-size:.73rem;
  line-height:1.2;
}

.signal-line strong{
  line-height:1.32;
  font-size:.98rem;
  color:#e8eef7;
}

/* no shift / no "button" behaviour */
.signal-line:hover{
  transform:none !important;
  background:rgba(4,7,17,.50);
  border-color:rgba(0,240,255,.15) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

@media (hover:none), (pointer:coarse){
  .signal-line:active{
    transform:none !important;
    background:rgba(4,7,17,.50);
    border-color:rgba(0,240,255,.15) !important;
  }
}

/* Keep the 2x2 status-card identity on phones as well.
   Tighten spacing instead of turning back into a vertical "menu". */
@media (max-width:600px){
  .signal-card{
    gap:8px;
    padding:9px;
  }

  .signal-line{
    min-height:100px;
    padding:13px;
    gap:10px;
  }

  .signal-line strong{
    font-size:.9rem;
  }
}

@media (max-width:380px){
  .signal-card{
    grid-template-columns:1fr;
  }

  .signal-line{
    min-height:auto;
  }
}


/* =========================================================
   Unified interaction system
   No element moves on hover/tap. Only light, border and glow.
   ========================================================= */


/* Never move interactive UI on hover/tap */
.btn,
.project-card,
.signal-line,
.skill-grid > div,
.lang-switcher button,
.mobile-menu-toggle,
.mobile-nav a,
.text-link,
.contact-form button,
.contact-form input,
.contact-form textarea{
  transform:none !important;
}

/* Unified premium glow for buttons */
.btn,
.contact-form button{
  transition:
    border-color .22s ease,
    background .22s ease,
    color .22s ease,
    box-shadow .22s ease,
    opacity .22s ease !important;
}

.btn.primary:hover,
.btn.primary:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible{
  transform:none !important;
  box-shadow:
    0 10px 30px rgba(0,0,0,.24),
    0 0 24px var(--ui-glow-soft);
}

.btn.secondary:hover,
.btn.secondary:focus-visible{
  transform:none !important;
  border-color:var(--ui-glow-border);
  background:var(--ui-hover-bg);
  box-shadow:
    0 8px 24px rgba(0,0,0,.18),
    0 0 20px var(--ui-glow-soft-2);
}

/* Signal/profile matrix: subtle and passive */
.signal-line{
  transition:
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease !important;
}

.signal-line:hover,
.signal-line:focus-within{
  transform:none !important;
  border-color:rgba(0,240,255,.22) !important;
  background:rgba(0,240,255,.028);
  box-shadow:
    0 0 18px rgba(0,240,255,.035),
    inset 0 1px 0 rgba(255,255,255,.025);
}

/* Skills: same language as project cards, but lighter */
.skill-grid > div{
  transition:
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease !important;
}

.skill-grid > div:hover,
.skill-grid > div:focus-within{
  transform:none !important;
  border-color:rgba(0,240,255,.30);
  background:rgba(0,240,255,.018);
  box-shadow:0 0 20px rgba(0,240,255,.045);
}

/* Form fields: glow only, no movement */
.contact-form input,
.contact-form textarea{
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease !important;
}

.contact-form input:hover,
.contact-form textarea:hover{
  border-color:rgba(0,240,255,.20);
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--ui-glow-border);
  box-shadow:0 0 0 3px rgba(0,240,255,.055);
  transform:none !important;
}

/* Language switcher and mobile menu: no shifting on interaction */
.lang-switcher button,
.mobile-menu-toggle,
.mobile-nav a{
  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease,
    opacity .2s ease !important;
}

.lang-switcher button:hover,
.lang-switcher button:focus-visible{
  transform:none !important;
  color:var(--accent);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible{
  transform:none !important;
  border-color:rgba(0,240,255,.26);
  box-shadow:0 0 18px rgba(0,240,255,.045);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible{
  transform:none !important;
  color:var(--text);
  background:rgba(0,240,255,.05);
  box-shadow:inset 0 0 0 1px rgba(0,240,255,.07);
}

/* Touch: same visual response, never scale/translate */
@media (hover:none), (pointer:coarse){
  .btn:active,
  .project-card:active,
  .signal-line:active,
  .skill-grid > div:active,
  .mobile-nav a:active,
  .mobile-menu-toggle:active,
  .lang-switcher button:active,
  .contact-form button:active{
    transform:none !important;
  }


  .btn.secondary:active,
  .mobile-nav a:active{
    background:rgba(0,240,255,.05);
  }
}

/* =========================================================
   Current UI state — navigation, contact and social links
   ========================================================= */

/* Active section: desktop + mobile */
.nav a,
.mobile-nav a{
  position:relative;
}

.nav a.is-active{
  color:var(--text);
}

.nav a.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 12px rgba(116,182,255,.32);
}

.mobile-nav a.is-active{
  color:var(--text);
  background:rgba(116,182,255,.085);
  box-shadow:
    inset 0 0 0 1px rgba(116,182,255,.15),
    0 0 18px rgba(116,182,255,.035);
  padding-left:18px;
}

.mobile-nav a.is-active::before{
  content:"";
  position:absolute;
  left:6px;
  top:50%;
  width:3px;
  height:18px;
  border-radius:999px;
  background:var(--accent);
  transform:translateY(-50%);
  box-shadow:0 0 12px rgba(116,182,255,.30);
}

/* Professional profile links */
.contact-socials a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
}

.contact-socials a > span{
  color:var(--muted);
}

.contact-socials .social-icon{
  width:17px;
  height:17px;
  fill:currentColor;
  color:var(--accent-2);
  flex:0 0 auto;
}

.contact-socials .social-separator{
  color:var(--line);
}

.contact-socials a:hover,
.contact-socials a:focus-visible,
.contact-socials a:hover > span,
.contact-socials a:focus-visible > span{
  color:var(--text);
}

.contact-socials a:hover .social-icon,
.contact-socials a:focus-visible .social-icon{
  color:var(--accent);
}

/* Contact form state */
.contact-form-column{
  min-width:0;
  position:relative;
}

.contact-form.is-submitting{
  opacity:.72;
  pointer-events:none;
}

.contact-error{
  display:block;
  margin:0 0 20px;
  padding:18px 20px;
  border:1px solid rgba(255,150,150,.28);
  border-radius:14px;
  background:rgba(255,120,120,.06);
}

.contact-error[hidden],
.contact-success[hidden]{
  display:none;
}

.contact-error strong,
.contact-success strong{
  display:block;
  color:var(--text);
  margin-bottom:4px;
}

.contact-error p,
.contact-success p{
  margin:0;
  color:var(--muted);
}

/* Preserve the original form height after successful submission. */
.contact-form-column.is-sent .contact-form{
  visibility:hidden;
  pointer-events:none;
}

.contact-success{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin:0 0 20px;
  padding:18px 20px;
  border:1px solid rgba(116,182,255,.35);
  border-radius:14px;
  background:rgba(116,182,255,.07);
}

.contact-success-icon{
  flex:0 0 auto;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(116,182,255,.14);
  color:var(--accent-2);
  font-weight:800;
}

.contact-form-column.is-sent .contact-success{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}

.contact-form-column.is-sent .contact-success > div:last-child{
  width:min(100%,520px);
  padding:20px 22px;
  border:1px solid rgba(116,182,255,.35);
  border-radius:14px;
  background:rgba(116,182,255,.07);
}

.contact-form-column.is-sent .contact-success-icon{
  margin-right:14px;
}

/* Soft success reveal */
@keyframes contactSuccessIn{
  0%{
    opacity:0;
    transform:translate3d(0,7px,0);
  }
  55%{
    opacity:.82;
  }
  100%{
    opacity:1;
    transform:translate3d(0,0,0);
  }
}

.contact-success:not([hidden]){
  animation:contactSuccessIn .68s cubic-bezier(.22,.61,.36,1) both;
}

@media (prefers-reduced-motion:reduce){
  .contact-success:not([hidden]){
    animation:none;
  }
}


/* =========================================================
   Project cards — current glass + hover system
   ========================================================= */
.project-card{
  /*
    Slightly denser neutral glass than previous build.
    This suppresses the very broad ambient radial-light colour shift while
    keeping the brighter grid/motes perceptible through the surface.
  */
  background:rgba(11,18,34,.72);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:
    0 8px 30px rgba(0,0,0,.42),
    inset 0 1px 1px rgba(255,255,255,.035);
  transition:
    border-color .44s ease,
    background .44s ease,
    box-shadow .44s ease,
    opacity .44s ease !important;
}

/* Uniform cyan illumination: no local hotspot/radial inside the card. */
@media (hover:hover) and (pointer:fine){
  .project-card:hover,
  .project-card:focus-within{
    transform:none !important;
    border-color:rgba(0,240,255,.38);
    background:rgba(8,29,41,.74);
    box-shadow:
      0 8px 30px rgba(0,0,0,.36),
      0 0 30px rgba(0,240,255,.095),
      0 0 56px rgba(0,240,255,.040),
      inset 0 0 0 1px rgba(0,240,255,.060),
      inset 0 1px 0 rgba(255,255,255,.025);
  }
}

@media (hover:none), (pointer:coarse){
  .project-card:active{
    transform:none !important;
    border-color:rgba(0,240,255,.38);
    background:rgba(8,29,41,.74);
    box-shadow:
      0 8px 30px rgba(0,0,0,.36),
      0 0 30px rgba(0,240,255,.095),
      0 0 56px rgba(0,240,255,.040),
      inset 0 0 0 1px rgba(0,240,255,.060),
      inset 0 1px 0 rgba(255,255,255,.025);
  }
}
