/* ========================================================================
   Portfolio One-Page — Base
   ======================================================================== */

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

:root{
  --bg:#05070d;
  --bg-soft:#0a0e18;
  --panel:#0e1320;
  --panel-line:rgba(255,255,255,.08);
  --ink:#f4f5fa;
  --ink-dim:#a7aec4;
  --ink-faint:#6b7290;
  --brand:#7d92d1;
  --brand-deep:#475fa6;
  --white:#ffffff;

  --tone-h: 227;
  --tone-s: 65%;
  --tone-l: 58%;

  --mx:50%;
  --my:40%;

  --radius-lg:28px;
  --radius-md:18px;
  --radius-sm:12px;

  --ff-display:'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-body:'Inter', system-ui, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--ff-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family:var(--ff-display); margin:0; letter-spacing:-.01em; }
p{ margin:0; }

/* body-copy paragraphs read as clean, aligned blocks at every width —
   short one-line labels (eyebrows, tags, nav) are left untouched */
.hero-lead,
.section-head .sub,
.about-copy p,
.learning-card p,
.influence-card p,
.case-info p,
.contact-card p{
  text-align:justify;
  text-align-last:left;
  hyphens:auto;
}
button{ font-family:inherit; cursor:pointer; }

.container{
  width:min(1180px, 92vw);
  margin-inline:auto;
}

::selection{ background:var(--brand-deep); color:#fff; }

/* ========================================================================
   Topbar
   ======================================================================== */

.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px clamp(18px, 4vw, 48px);
  backdrop-filter:blur(14px) saturate(140%);
  background:rgba(5,7,13,.55);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{
  width:40px; height:40px;
  filter:drop-shadow(0 0 10px rgba(125,146,209,.45));
  transition:transform .35s ease;
}
.brand:hover .brand-logo{ transform:scale(1.08) rotate(-4deg); }
.brand-name{
  font-family:var(--ff-display);
  font-weight:700;
  font-size:.95rem;
  letter-spacing:.02em;
  color:var(--ink);
  display:none;
}
@media(min-width:560px){ .brand-name{ display:block; } }

.nav-right{ display:flex; align-items:center; gap:22px; }

.menu{ display:flex; gap:8px; }
.menu a{
  position:relative;
  padding:9px 16px;
  font-size:.86rem;
  font-weight:600;
  letter-spacing:.02em;
  color:var(--ink-dim);
  border-radius:999px;
  transition:color .25s ease, background .25s ease;
}
.menu a:hover, .menu a.active{
  color:var(--white);
  background:rgba(255,255,255,.06);
}

.lang-toggle{
  display:flex;
  align-items:center;
  border:1px solid var(--panel-line);
  border-radius:999px;
  padding:3px;
  background:rgba(255,255,255,.03);
}
.lang-toggle button{
  border:none;
  background:transparent;
  color:var(--ink-faint);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.04em;
  padding:6px 12px;
  border-radius:999px;
  transition:all .25s ease;
}
.lang-toggle button.is-active{
  background:var(--brand-deep);
  color:#fff;
}

.menu-toggle{
  display:none;
  width:40px; height:40px;
  border-radius:10px;
  border:1px solid var(--panel-line);
  background:rgba(255,255,255,.04);
  color:var(--ink);
  font-size:1.1rem;
}

@media(max-width:820px){
  .menu{
    position:fixed;
    top:68px; right:16px; left:16px;
    flex-direction:column;
    background:var(--panel);
    border:1px solid var(--panel-line);
    border-radius:16px;
    padding:10px;
    gap:4px;
    transform:translateY(-14px);
    opacity:0;
    pointer-events:none;
    transition:all .3s ease;
  }
  .menu.is-open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .menu a{ text-align:center; padding:12px; }
  .menu-toggle{ display:block; }
}

/* ========================================================================
   Sections + hover "3D spotlight" system
   ======================================================================== */

.section{
  position:relative;
  padding:min(14vh,120px) clamp(18px,4vw,48px) 90px;
  overflow:hidden;
  overflow:clip;
  isolation:isolate;
  background:
    radial-gradient(900px 600px at var(--mx) var(--my),
      hsla(var(--tone-h), var(--tone-s), var(--tone-l), .22),
      transparent 60%),
    var(--bg);
  transition:background-color .6s ease;
}

.section .glow{
  position:absolute;
  inset:-20%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(420px 420px at var(--mx) var(--my),
      hsla(var(--tone-h), var(--tone-s), calc(var(--tone-l) + 8%), .55),
      transparent 70%);
  filter:blur(40px);
  opacity:0;
  transition:opacity .5s ease;
}
.section.is-hovering .glow{ opacity:.85; }

@media(max-width:700px){
  .section{ padding:70px clamp(18px,5vw,32px) 56px; }
}

.section[data-tone="about"]  { --tone-h:300; --tone-s:55%; --tone-l:55%; }
.section[data-tone="work"]   { --tone-h:187; --tone-s:70%; --tone-l:45%; }
.section[data-tone="contact"]{ --tone-h:28;  --tone-s:88%; --tone-l:56%; }
.section[data-tone="home"]   { --tone-h:227; --tone-s:65%; --tone-l:58%; }

.section-head{
  max-width:680px;
  margin-bottom:52px;
}
@media(max-width:700px){
  .section-head{ margin-bottom:36px; }
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--brand);
  display:inline-block;
}
.section-head h2{
  font-size:clamp(2rem, 4.2vw, 2.8rem);
  font-weight:700;
  color:var(--white);
}
.section-head .sub{
  margin-top:14px;
  color:var(--ink-dim);
  font-size:1.02rem;
  max-width:60ch;
}

/* floating tilt elements (used across sections) */
.float-el{
  transform-style:preserve-3d;
  will-change:transform;
  transition:transform .12s ease-out;
}

/* idle floating animation for decorative bits */
@keyframes bob{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-14px); }
}
@keyframes bobSlow{
  0%,100%{ transform:translateY(0px) rotate(0deg); }
  50%{ transform:translateY(-10px) rotate(3deg); }
}

/* ========================================================================
   Hero
   ======================================================================== */

.hero{
  min-height:100svh;
  display:flex;
  align-items:center;
  padding-top:140px;
}
.hero .container{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:48px;
  align-items:center;
}
@media(max-width:900px){
  .hero .container{ grid-template-columns:1fr; }
  .hero{ padding-top:120px; }
}

.hero-copy{ position:relative; z-index:2; min-width:0; }

.hero-copy h1{
  font-size:clamp(2.1rem, 5vw, 3.6rem);
  font-weight:700;
  color:var(--white);
  line-height:1.08;
  margin-bottom:22px;
}
.hero-copy h1 em{
  font-style:normal;
  background:linear-gradient(100deg, var(--brand), #b98af0 60%, #ffb46b);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-lead{
  color:var(--ink-dim);
  font-size:1.06rem;
  max-width:56ch;
  margin-bottom:34px;
}

.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:.92rem;
  letter-spacing:.01em;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn.primary{
  background:linear-gradient(120deg, var(--brand-deep), #7756c9);
  color:#fff;
  box-shadow:0 10px 30px -8px rgba(71,95,166,.65);
}
.btn.primary:hover{ transform:translateY(-3px); box-shadow:0 16px 34px -6px rgba(71,95,166,.8); }
.btn.ghost{
  background:rgba(255,255,255,.04);
  border:1px solid var(--panel-line);
  color:var(--ink);
}
.btn.ghost:hover{ background:rgba(255,255,255,.09); transform:translateY(-3px); }

/* skills ticker */
.ticker{
  border-top:1px solid var(--panel-line);
  border-bottom:1px solid var(--panel-line);
  padding:16px 0;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track{
  display:flex;
  gap:14px;
  width:max-content;
  animation:scrollTicker 32s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state:paused; }
@keyframes scrollTicker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.chip{
  flex:none;
  padding:9px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--panel-line);
  color:var(--ink-dim);
  font-size:.82rem;
  font-weight:600;
  white-space:nowrap;
}
.chip b{ color:var(--brand); font-weight:700; }

/* hero visual / logo */
.hero-visual{
  position:relative;
  min-width:0;
  height:min(56vw,520px);
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1000px;
}
.hero-orbit{
  position:absolute;
  inset:0;
  margin:auto;
  width:min(80%,420px);
  height:min(80%,420px);
  border-radius:50%;
  border:1px dashed rgba(125,146,209,.35);
  animation:spin 26s linear infinite;
}
.hero-orbit::before, .hero-orbit::after{
  content:"";
  position:absolute;
  width:10px; height:10px;
  border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 18px 4px rgba(125,146,209,.7);
}
.hero-orbit::before{ top:-5px; left:50%; transform:translateX(-50%); }
.hero-orbit::after{ bottom:8%; right:4%; background:#ffb46b; box-shadow:0 0 18px 4px rgba(255,180,107,.7); }
@keyframes spin{ to{ transform:rotate(360deg); } }

.hero-logo-wrap{
  animation:bob 5.5s ease-in-out infinite;
  transform-style:preserve-3d;
}
.hero-logo-tilt{
  transform-style:preserve-3d;
  transition:transform .15s ease-out;
}
.hero-logo{
  width:min(60vw, 300px);
  filter:drop-shadow(0 25px 45px rgba(71,95,166,.55));
}

.hero-blob{
  position:absolute;
  width:70%; height:70%;
  border-radius:50%;
  background:radial-gradient(circle, rgba(71,95,166,.35), transparent 70%);
  filter:blur(10px);
  z-index:-1;
}

.scroll-cue{
  position:absolute;
  bottom:26px; left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  color:var(--ink-faint);
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.scroll-cue span{
  width:1px; height:34px;
  background:linear-gradient(var(--brand), transparent);
  animation:scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ transform:scaleY(0); transform-origin:top; opacity:0; }
  40%{ transform:scaleY(1); transform-origin:top; opacity:1; }
  60%{ transform:scaleY(1); transform-origin:bottom; opacity:1; }
  100%{ transform:scaleY(0); transform-origin:bottom; opacity:0; }
}

/* ========================================================================
   About
   ======================================================================== */

.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:start;
}
@media(max-width:900px){ .about-grid{ grid-template-columns:1fr; } }

.about-copy p{
  color:var(--ink-dim);
  font-size:1.02rem;
  margin-bottom:20px;
  max-width:62ch;
}
.about-copy strong{ color:var(--white); }

.learning-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.learning-card{
  flex:1 1 220px;
  padding:16px 18px;
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.04);
  border:1px solid var(--panel-line);
}
.learning-card .tag{
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:8px;
  display:block;
}
.progress{
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  margin-top:10px;
  overflow:hidden;
}
.progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--brand-deep), #b98af0);
}

.influence-card{
  padding:22px 24px;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--panel-line);
  margin-bottom:18px;
}
.influence-card h3{
  font-size:1.02rem;
  color:var(--white);
  margin-bottom:8px;
}
.influence-card p{
  color:var(--ink-dim);
  font-size:.94rem;
}

/* skills icon grid */
.skills-icons{
  margin-top:64px;
}
.skills-icons h3{
  font-size:1.1rem;
  color:var(--white);
  margin-bottom:22px;
}
.icon-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(96px,1fr));
  gap:16px;
}
.icon-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:18px 10px;
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.03);
  border:1px solid var(--panel-line);
  text-align:center;
}
.icon-card img{
  width:38px; height:38px;
  border-radius:9px;
  animation:bobSlow 4.5s ease-in-out infinite;
}
.icon-card:nth-child(2n) img{ animation-delay:.4s; }
.icon-card:nth-child(3n) img{ animation-delay:.8s; }
.icon-card:nth-child(4n) img{ animation-delay:1.2s; }
.icon-card span{
  font-size:.74rem;
  font-weight:600;
  color:var(--ink-dim);
}

/* ========================================================================
   Work
   ======================================================================== */

.filter-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:34px;
}
.filter-tabs button{
  padding:9px 18px;
  border-radius:999px;
  border:1px solid var(--panel-line);
  background:rgba(255,255,255,.03);
  color:var(--ink-dim);
  font-size:.82rem;
  font-weight:600;
  transition:all .25s ease;
}
.filter-tabs button:hover{ color:var(--white); background:rgba(255,255,255,.08); }
.filter-tabs button.is-active{
  background:var(--brand-deep);
  border-color:var(--brand-deep);
  color:#fff;
}

.work-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px,1fr));
  gap:22px;
  margin-bottom:70px;
}
.work-card{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--panel-line);
  background:var(--panel);
  aspect-ratio:4/3.4;
  cursor:pointer;
  transform-style:preserve-3d;
  transition:transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
}
.work-card img{
  width:100%; height:100%;
  object-fit:cover;
  transform:translateZ(0) scale(1.02);
  transition:transform .5s ease;
}
.work-card:hover{
  border-color:rgba(125,146,209,.5);
  box-shadow:0 22px 50px -16px rgba(0,0,0,.6);
}
.work-card:hover img{ transform:scale(1.08); }
.work-card .tint{
  position:absolute; inset:0;
  background:linear-gradient(200deg, hsla(var(--tone-h),var(--tone-s),var(--tone-l),.28), transparent 55%);
  opacity:0;
  transition:opacity .3s ease;
}
.work-card:hover .tint{ opacity:1; }
.work-card .meta{
  position:absolute; left:0; right:0; bottom:0;
  padding:16px;
  background:linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  transform:translateY(8px);
  opacity:0;
  transition:all .3s ease;
}
.work-card:hover .meta{ transform:translateY(0); opacity:1; }
.work-card .meta .client{
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--brand);
  display:block;
  margin-bottom:2px;
}
.work-card .meta .title{
  font-size:.86rem;
  font-weight:600;
  color:#fff;
}

/* web design case studies */
.case-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:22px;
  flex-wrap:wrap;
  gap:10px;
}
.case-head h3{ color:var(--white); font-size:1.15rem; }
.case-head span{ color:var(--ink-faint); font-size:.86rem; max-width:46ch; }

.case-study{
  display:grid;
  grid-template-columns:.78fr 1.22fr;
  gap:36px;
  padding:30px;
  margin-bottom:60px;
  border-radius:var(--radius-lg);
  background:linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border:1px solid var(--panel-line);
}
.case-study > *{ min-width:0; }
@media(max-width:820px){
  .case-study{ grid-template-columns:1fr; padding:22px; }
}
@media(max-width:420px){
  .case-study{ padding:18px; }
}

.case-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}
.case-tag{
  padding:6px 13px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.03em;
  color:var(--ink-dim);
  background:rgba(255,255,255,.06);
  border:1px solid var(--panel-line);
}
.case-tag.duration{
  color:var(--brand);
  border-color:rgba(125,146,209,.4);
  background:rgba(125,146,209,.1);
}

.case-info h4{
  font-size:1.4rem;
  color:var(--white);
  margin-bottom:14px;
}
.case-info h4 span{
  color:var(--ink-faint);
  font-weight:500;
  font-size:1rem;
}
.case-info p{
  color:var(--ink-dim);
  font-size:.94rem;
  max-width:52ch;
}

.case-gallery{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  align-content:start;
}
.case-thumb{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  object-position:top;
  border-radius:12px;
  border:1px solid var(--panel-line);
  cursor:pointer;
  transition:transform .3s ease, border-color .3s ease;
}
.case-thumb:hover{
  transform:translateY(-4px) scale(1.015);
  border-color:rgba(125,146,209,.5);
}

/* animated browser mockup */
.browser-mock-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1200px;
  animation:bobSlow 7s ease-in-out infinite;
}
.browser-mock{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  background:#0b0f1a;
  border:1px solid var(--panel-line);
  box-shadow:0 30px 70px -24px rgba(0,0,0,.65);
  transform-style:preserve-3d;
  transition:transform .15s ease-out;
}
.browser-bar{
  display:flex;
  align-items:center;
  gap:7px;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-bottom:1px solid var(--panel-line);
}
.browser-bar .dot{ width:10px; height:10px; border-radius:50%; flex:none; }
.browser-bar .dot.r{ background:#ff5f57; }
.browser-bar .dot.y{ background:#febc2e; }
.browser-bar .dot.g{ background:#28c840; }
.browser-url{
  margin-left:8px;
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--panel-line);
  border-radius:999px;
  padding:6px 14px;
  font-size:.74rem;
  font-weight:500;
  color:var(--ink-faint);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.browser-url svg{ flex:none; }

.browser-screen{
  position:relative;
  aspect-ratio:2/1;
  overflow:hidden;
  background:#000;
}
/* every mockup slideshow pushes the next screenshot down from the top —
   no scaling/inflating of the image itself, ever. */
.browser-screen .slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top;
  opacity:1;
  transform:translateY(-100%);
  transition:none;
  pointer-events:none;
}
.browser-screen .slide.is-active{
  transform:translateY(0);
  z-index:2;
  pointer-events:auto;
  cursor:pointer;
}

/* fit-contain variant: show the full, un-cropped screenshot (letterboxed) */
.browser-screen.fit-contain .slide{
  object-fit:contain;
  background:#0b0f1a;
}

.slider-dots{
  position:absolute;
  left:0; right:0; bottom:12px;
  display:flex;
  justify-content:center;
  gap:6px;
  z-index:5;
}
.sdot{
  width:6px; height:6px;
  border-radius:999px;
  border:none;
  background:rgba(255,255,255,.35);
  transition:all .3s ease;
}
.sdot.is-active{
  width:20px;
  background:var(--brand);
}

.reels-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:22px;
  flex-wrap:wrap;
  gap:10px;
}
.reels-head h3{ color:var(--white); font-size:1.15rem; }
.reels-head span{ color:var(--ink-faint); font-size:.86rem; }

.reel-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px,1fr));
  gap:20px;
}
.reel-card{
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid var(--panel-line);
  background:#000;
  aspect-ratio:9/13;
}
.reel-card video{
  width:100%; height:100%;
  object-fit:cover;
  opacity:.85;
}
.reel-card .play{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.28);
  transition:background .25s ease;
}
.reel-card .play svg{
  width:52px; height:52px;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));
  transition:transform .25s ease;
}
.reel-card:hover .play{ background:rgba(0,0,0,.12); }
.reel-card:hover .play svg{ transform:scale(1.12); }
.reel-card .rlabel{
  position:absolute; left:12px; bottom:12px;
  font-size:.76rem;
  font-weight:600;
  color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.6);
}

/* lightbox */
.lightbox{
  position:fixed; inset:0;
  z-index:500;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(3,4,8,.9);
  backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
  padding:5vh 4vw;
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox img{
  max-width:min(90vw,900px);
  max-height:88vh;
  border-radius:16px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.7);
}
.lightbox-close{
  position:absolute;
  top:24px; right:28px;
  width:44px; height:44px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:1.2rem;
}

/* ========================================================================
   Contact
   ======================================================================== */

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}
@media(max-width:820px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-card{
  padding:38px;
  border-radius:var(--radius-lg);
  background:linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border:1px solid var(--panel-line);
}
.contact-card h3{ color:var(--white); font-size:1.3rem; margin-bottom:12px; }
.contact-card p{ color:var(--ink-dim); margin-bottom:26px; }
.contact-email{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--ff-display);
  font-size:1.15rem;
  font-weight:600;
  color:var(--white);
  padding-bottom:6px;
  border-bottom:2px solid var(--brand-deep);
}
.contact-list{ display:flex; flex-direction:column; gap:18px; }
.contact-list .item{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:18px;
  border-radius:var(--radius-md);
  border:1px solid var(--panel-line);
  background:rgba(255,255,255,.03);
}
.contact-list .ico{
  width:38px; height:38px;
  flex:none;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(125,146,209,.15);
  color:var(--brand);
}
.contact-list .item b{ color:var(--white); display:block; margin-bottom:2px; font-size:.92rem; }
.contact-list .item span{ color:var(--ink-dim); font-size:.86rem; }

/* ========================================================================
   Footer
   ======================================================================== */

footer{
  padding:34px clamp(18px,4vw,48px);
  border-top:1px solid var(--panel-line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--ink-faint);
  font-size:.82rem;
}
footer .f-logo{ width:26px; height:26px; opacity:.8; }
footer .f-left{ display:flex; align-items:center; gap:10px; }

/* reveal-on-scroll */
[data-reveal]{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}
