/* Global portfolio homepage styles (v3 visual design). */
:root {
  --bg:#0b121b;
  --bg2:#101a26;
  --panel:#131e2b;
  --line:#2b3848;
  --text:#f2f6fa;
  --muted:#a6b2c0;
  --accent:#6de1cf;
  --accent2:#85a6e6
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  color:var(--text);
  background:var(--bg);
  font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;
  letter-spacing:-.015em
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
.wrap {
  width:min(1280px,calc(100% - 84px));
  margin:auto
}
.topbar {
  background:rgba(11,18,27,.92);
  position:sticky;
  top:0;
  z-index:5;
  backdrop-filter:blur(15px);
  border-bottom:1px solid rgba(255,255,255,.065)
}
.inner {
  height:77px;
  display:flex;
  align-items:center;
  justify-content:space-between
}
.brand {
  font-weight:850;
  font-size:25px;
  letter-spacing:-.07em
}
.brand span {
  color:var(--accent)
}
nav {
  display:flex;
  align-items:center;
  gap:36px;
  color:#c2cbd5;
  font-size:13px;
  font-weight:600
}
nav a:hover {
  color:var(--accent)
}
.nav-contact {
  border:1px solid #4b6378;
  border-radius:8px;
  padding:9px 15px
}
.hero {
  padding:81px 0 55px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  gap:48px
}
.eyebrow {
  font:700 11px/1.3 ui-sans-serif,system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.21em;
  color:var(--accent)
}
h1 {
  font-weight:750;
  letter-spacing:-.068em;
  font-size:clamp(47px,5.4vw,83px);
  line-height:1.045;
  margin:18px 0 22px;
  max-width:850px
}
h1 em {
  font-style:normal;
  color:var(--accent)
}
.lead {
  font-size:18px;
  line-height:1.6;
  max-width:540px;
  color:var(--muted);
  margin:0 0 26px
}
.cta {
  display:flex;
  align-items:center;
  gap:24px
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:15px;
  background:var(--accent);
  color:#0a2427;
  font-size:13px;
  font-weight:800;
  padding:14px 19px;
  border-radius:9px
}
.textlink {
  color:#d8e4eb;
  font-size:13px;
  font-weight:750;
  border-bottom:1px solid #71808d;
  padding-bottom:3px
}
.hero-art {
  height:360px;
  border-radius:16px;
  position:relative;
  overflow:hidden;
  background:radial-gradient(circle at 75% 25%,#29565a 0%,#182938 40%,#101b28 83%);
  border:1px solid #385063;
  box-shadow:0 18px 80px #0007
}
.hero-art::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#101b28dd 0%,transparent 60%)
}
.hero-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.92;
  filter:saturate(.68) contrast(1.12)
}
.hero-art .caption-hero {
  position:absolute;
  z-index:2;
  bottom:22px;
  left:25px;
  right:24px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px
}
.hero-art .caption-hero b {
  font-size:17px
}
.hero-art .caption-hero small {
  font-size:11px;
  letter-spacing:.12em;
  color:#c2dddd;
  text-transform:uppercase
}
.hero-art .orb {
  position:absolute;
  width:380px;
  height:380px;
  border:1px solid #5caaa480;
  border-radius:50%;
  right:-60px;
  top:-10px;
  box-shadow:0 0 0 40px #458e8b16,0 0 0 85px #458e8b10
}
.mini {
  margin-top:28px;
  color:#90a4b2;
  font-size:11px;
  letter-spacing:.17em;
  text-transform:uppercase
}
.mini span {
  margin-right:17px
}
.section {
  padding:36px 0 80px
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:25px;
  margin:0 0 27px
}
.section-head h2 {
  font-size:clamp(32px,3.5vw,47px);
  letter-spacing:-.055em;
  margin:7px 0 0;
  line-height:1
}
.section-head p {
  font-size:14px;
  color:#aebcc8;
  max-width:410px;
  margin:0
}
.cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:25px
}
.card {
  min-width:0;
  border-radius:15px;
  overflow:hidden;
  background:#101923;
  border:1px solid #293a49;
  transition:transform .2s,border-color .2s
}
.card:hover {
  transform:translateY(-4px);
  border-color:#5c8d93
}
.cover {
  height:390px;
  position:relative;
  overflow:hidden;
  background:#152939
}
.cover svg {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover
}
.cover-photo {
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.68) contrast(1.08);
  transition:transform .7s
}
.card:hover .cover-photo {
  transform:scale(1.045)
}
.cover:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,#080f17fa 0%,#071019bb 22%,transparent 67%),linear-gradient(90deg,#07101950,transparent 80%)
}
.meta {
  position:absolute;
  bottom:23px;
  left:26px;
  right:24px;
  z-index:2
}
.no {
  color:#a9e3de;
  font-size:11px;
  font-weight:800;
  letter-spacing:.18em
}
.meta h3 {
  font-size:clamp(24px,2.35vw,34px);
  letter-spacing:-.045em;
  line-height:1.1;
  margin:9px 0 7px
}
.meta .small {
  font-size:12px;
  color:#dce6ed
}
.body {
  padding:19px 25px 22px
}
.body>p {
  margin:0;
  color:#aebbc8;
  font-size:13px;
  line-height:1.6;
  min-height:42px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.card-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:15px
}
.skillrow {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.skill {
  font-size:10px;
  color:#b6eae5;
  background:#16313b;
  padding:6px 9px;
  border-radius:6px
}
.open {
  background:transparent;
  border:0;
  color:var(--accent);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer
}
.open:hover {
  text-decoration:underline
}
.about {
  border-top:1px solid #273645;
  background:#101a26;
  padding:70px 0 82px
}
.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px
}
.about h2 {
  font-size:clamp(30px,3.6vw,50px);
  line-height:1.12;
  letter-spacing:-.05em;
  margin:8px 0
}
.about p {
  font-size:16px;
  color:#aebdca;
  line-height:1.8;
  margin:0 0 15px
}
.about strong {
  color:#e8eff5
}
footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  padding:26px 0;
  color:#96a9b9;
  font-size:12px
}
.credits {
  padding:0 0 28px;
  color:#8295a5;
  font-size:11px
}
.credits a {
  text-decoration:underline
}
.overlay {
  position:fixed;
  inset:0;
  background:#02060cdb;
  backdrop-filter:blur(7px);
  z-index:10;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px
}
.overlay.active {
  display:flex
}
.dialog {
  width:min(780px,100%);
  max-height:90vh;
  overflow:auto;
  background:#152331;
  border:1px solid #426074;
  border-radius:17px;
  padding:35px;
  position:relative;
  box-shadow:0 30px 100px #0008
}
.dialog h2 {
  font-size:36px;
  letter-spacing:-.05em;
  line-height:1.1;
  margin:9px 40px 12px 0
}
.dialog h3 {
  font-size:17px;
  color:var(--accent);
  margin:25px 0 7px
}
.dialog p {
  color:#c5d1dc;
  margin:0;
  line-height:1.75
}
.note {
  margin-top:24px;
  padding:13px 16px;
  background:#203a42;
  border-left:3px solid var(--accent);
  color:#d7efee;
  font-size:13px
}
.close {
  position:absolute;
  right:16px;
  top:13px;
  background:#203748;
  color:white;
  border:1px solid #526d84;
  border-radius:8px;
  font-size:23px;
  padding:2px 11px;
  cursor:pointer
}
@media(max-width:1000px) {
  .wrap {
    width:min(100% - 48px,1280px)
  }
  .hero {
    grid-template-columns:1fr;
    padding:70px 0 30px
  }
  .hero-art {
    height:280px
  }
  .cover {
    height:315px
  }
  .about-grid {
    gap:34px
  }
}
@media(max-width:650px) {
  .wrap {
    width:calc(100% - 30px)
  }
  .inner {
    height:64px
  }
  nav {
    gap:14px
  }
  .nav-contact {
    display:none
  }
  .hero {
    padding:50px 0 22px;
    gap:25px
  }
  h1 {
    font-size:47px;
    letter-spacing:-.055em
  }
  .lead {
    font-size:15px
  }
  .hero-art {
    height:220px
  }
  .cards {
    grid-template-columns:1fr;
    gap:18px
  }
  .cover {
    height:320px
  }
  .section {
    padding-bottom:45px
  }
  .section-head {
    display:block
  }
  .section-head p {
    margin-top:12px
  }
  .about-grid {
    grid-template-columns:1fr
  }
  .about {
    padding:50px 0
  }
  .dialog {
    padding:25px
  }
  .card-bottom {
    flex-wrap:wrap
  }
  .meta {
    left:20px;
    bottom:20px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  .card,.cover-photo,.btn {
    transition:none
  }
}
