/* ==========================================================================
   Umut Ege Sevik — UI/UX Portfolio
   Design tokens
   ========================================================================== */
:root{
  --bg: #0B0D10;
  --bg-alt: #14171A;
  --ink: #F3F5F7;
  --ink-soft: #B6BCC5;
  --muted: #7D848C;
  --line: #262B31;
  --surface: #15181C;
  --accent: #6E8CFF;
  --accent-ink: #A9BCFF;
  --accent-2: #FF7A4D;
  --accent-2-soft: #33201A;
  --accent-soft: #1A2140;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease: cubic-bezier(.16,.84,.32,1);
}

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

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

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

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Background dot grid ---------------------------------------------------- */
.dot-grid{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 0%, black 0%, transparent 75%);
}
.work-thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Eyebrow / mono tag labels ---------------------------------------------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(110,140,255,.35);
  padding: 6px 12px 6px 10px;
  border-radius: 100px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Layer tag — mimics a design-tool layer chip ---------------------------- */
.layer-tag{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
  text-transform: uppercase;
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 14px;
}
.layer-tag::before{
  content:"";
  width: 14px; height: 1px;
  background: var(--line);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  background: rgba(11,13,16,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.brand-mark{
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
.brand-mark::after{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.brand:hover .brand-mark::after{ opacity: 1; }
.brand-mark span{ position: relative; z-index:1; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
}
.nav-links a:not(.btn){
  font-size: 14.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0; right:100%;
  bottom:0;
  height: 1.5px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-links a:not(.btn):hover::after{ right: 0; }

.nav-toggle{
  display:none;
  background:none; border:none;
  width: 40px; height: 40px;
  align-items:center; justify-content:center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width: 20px; height:1.5px;
  background: var(--ink);
  position: relative;
  transition: all .25s var(--ease);
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* Buttons ----------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary{
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover{ transform: translateY(-2px); background: var(--accent); }
.btn-ghost{
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--ink); transform: translateY(-2px); }
.btn svg{ width:14px; height:14px; transition: transform .25s var(--ease); }
.btn:hover svg{ transform: translate(2px,-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  padding: 168px 0 120px;
  z-index: 1;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy{ position: relative; z-index: 2; }
.hero-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
  margin: 22px 0 24px;
}
.hero-title .accent{
  color: var(--accent);
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero-title .accent svg{
  position: absolute;
  left: 0; bottom: -14px;
  width: 100%;
  height: 14px;
}
.hero-lede{
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-cta{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta{
  display:flex;
  gap: 34px;
  margin-top: 62px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta div b{
  display:block;
  font-family: var(--font-display);
  font-size: 22px;
}
.hero-meta div span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Artboard stack — signature element -------------------------------------- */
.hero-stage{
  position: relative;
  height: 480px;
  perspective: 1400px;
}
.artboard{
  position: absolute;
  width: 300px;
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: float 7s var(--ease) infinite;
}
.artboard-head{
  display:flex;
  align-items:center;
  gap:6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.artboard-head i{
  width:7px; height:7px; border-radius:50%;
  background: var(--line);
}
.artboard-body{ padding: 16px; }
.sk{
  border-radius: 6px;
  background: var(--bg-alt);
}

.artboard.a1{
  top: 6%; left: 2%;
  transform: rotate(-9deg) translateZ(0);
  animation-delay: .2s;
  z-index: 3;
}
.artboard.a2{
  top: 20%; left: 30%;
  width: 250px;
  transform: rotate(6deg) translateZ(-40px);
  animation-delay: 1.1s;
  z-index: 2;
  opacity: .96;
}
.artboard.a3{
  top: 46%; left: 8%;
  width: 260px;
  transform: rotate(-3deg) translateZ(-90px);
  animation-delay: 2s;
  z-index: 1;
  opacity: .9;
}

@keyframes float{
  0%, 100%{ transform: translateY(0) rotate(var(--r, 0deg)); }
  50%{ transform: translateY(-14px) rotate(var(--r, 0deg)); }
}
.artboard.a1{ --r: -9deg; }
.artboard.a2{ --r: 6deg; }
.artboard.a3{ --r: -3deg; }

.hero-photo{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 78%);
  height: 430px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.7);
  z-index: 4;
  animation: floatPhoto 6.5s var(--ease) infinite;
}
@keyframes floatPhoto{
  0%,100%{ transform: translateX(-50%) translateY(0); }
  50%{ transform: translateX(-50%) translateY(-12px); }
}
.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.08) contrast(1.03);
}
.hero-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(200deg, rgba(110,140,255,.22), transparent 45%);
  pointer-events:none;
}
.hero-photo-tag{
  position:absolute;
  left: 18px; bottom: 18px;
  z-index: 1;
  background: rgba(11,13,16,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14);
}

.hero-ring{
  position:absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.16);
  top: 4%; left: 6%;
  animation: spin 40s linear infinite;
}
.hero-ring::before{
  content:"";
  position:absolute;
  width:8px;height:8px;border-radius:50%;
  background: var(--accent-2);
  top: -4px; left: 50%;
  box-shadow: 0 0 0 5px var(--accent-2-soft);
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.cursor-chip{
  position:absolute;
  bottom: 6%;
  right: 4%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 8px 12px;
  border-radius: 8px;
  display:flex;
  align-items:center;
  gap:8px;
  animation: floatSlow 5s var(--ease) infinite;
  z-index: 4;
}
.cursor-chip::before{
  content:"";
  width:6px; height:6px;
  background: #6CFF9C;
  border-radius: 50%;
}
@keyframes floatSlow{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 32px;
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.scroll-cue .line{
  width: 1px; height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after{
  content:"";
  position:absolute;
  top:-100%; left:0;
  width:100%; height:100%;
  background: var(--accent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue{
  0%{ top:-100%; }
  60%{ top: 100%; }
  100%{ top: 100%; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */
section{ position: relative; z-index: 1; }
.section{ padding: 108px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{
  display:flex;
  justify-content:space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-title{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.01em;
  max-width: 640px;
}
.section-desc{
  max-width: 320px;
  color: var(--muted);
  font-size: 15px;
}

.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   About / spec panel
   ========================================================================== */
.about-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: start;
}
.about-text p{
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.about-text p:first-child{
  font-size: 20px;
  color: var(--ink);
}

.spec-panel{
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  overflow: hidden;
}
.spec-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.spec-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.spec-row:last-child{ border-bottom: none; }
.spec-row:hover{ background: var(--bg-alt); }
.spec-row .k{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.spec-row .v{
  font-family: var(--font-display);
  font-size: 15.5px;
  text-align: right;
}

/* ==========================================================================
   Work grid
   ========================================================================== */
.work-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.work-card{
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  display:block;
  width: 100%;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(0,0,0,.65);
}
.work-thumb{
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.work-thumb .thumb-bg{
  position:absolute; inset:0;
}
.work-thumb .thumb-ui{
  position:absolute; inset: 0;
  padding: 26px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.work-card:hover .thumb-ui{ transform: scale(1.02); }
.thumb-ui{ transition: transform .5s var(--ease); }

.thumb-mock{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;
  transition: transform .5s var(--ease);
}
.work-card:hover .thumb-mock{ transform: scale(1.03); }

.work-body{
  padding: 20px 22px 24px;
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.work-body h3{
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 6px;
}
.work-body p{
  margin:0;
  font-size: 13.5px;
  color: var(--muted);
}
.work-arrow{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.work-arrow svg{ width: 15px; height:15px; }
.work-card:hover .work-arrow{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(45deg);
}

.work-more{
  display:flex;
  justify-content:center;
  margin-top: 48px;
}

/* ==========================================================================
   Tools / skills
   ========================================================================== */
.tool-cols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tool-col{
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.tool-col h4{
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 0 0 16px;
}
.tool-col ul li{
  font-family: var(--font-display);
  font-size: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.tool-col ul li:last-child{ border-bottom:none; }
.tool-col ul li span{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  position: relative;
}
.contact-panel{
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-l);
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before{
  content:"";
  position:absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,91,255,.5), transparent 70%);
  top: -220px; right: -160px;
  filter: blur(10px);
}
.contact-panel::after{
  content:"";
  position:absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,61,.35), transparent 70%);
  bottom: -180px; left: -120px;
}
.contact-inner{ position:relative; z-index:1; }
.contact-panel .eyebrow{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.16);
  color: #23319C;
}
.contact-title{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  max-width: 680px;
  margin: 22px 0 40px;
  letter-spacing: -.01em;
}
.contact-title a{
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,61,.4);
  text-underline-offset: 6px;
}
.contact-links{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
}
.contact-links a{
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 18px;
  border: 1px solid rgba(15,23,42,.18);
  border-radius: 100px;
  display:flex;
  align-items:center;
  gap:8px;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.contact-links a:hover{
  border-color: rgba(15,23,42,.45);
  background: rgba(15,23,42,.05);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  padding: 40px 0 48px;
}
.footer .wrap{
  display:flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.footer a:hover{ color: var(--ink); }
.footer-links{ display:flex; gap: 22px; }

/* Custom cursor dot (desktop only) ---------------------------------------- */
.cursor-dot{
  position: fixed;
  top:0; left:0;
  width: 10px; height:10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%,-50%);
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease);
  mix-blend-mode: difference;
  display: none;
}
@media (hover:hover) and (pointer:fine){
  .cursor-dot{ display: block; }
}
.cursor-dot.is-active{
  width: 34px; height: 34px;
  background: var(--accent);
}

/* ==========================================================================
   Portfolio page specifics
   ========================================================================== */
.page-header{
  padding: 168px 0 60px;
  position: relative;
  z-index: 1;
}
.page-title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 22px 0 20px;
}
.filter-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.filter-btn{
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover{ border-color: var(--ink); }
.filter-btn.is-active{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 60px;
}
.portfolio-grid .work-card{ opacity:1; transform:none; }
.portfolio-grid .work-card.is-hidden{ display:none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-stage{ height: 560px; order: -1; }
  .about-grid{ grid-template-columns: 1fr; }
  .work-grid{ grid-template-columns: 1fr; }
  .tool-cols{ grid-template-columns: 1fr; gap: 0; }
  .tool-col{ margin-bottom: 8px; }
  .portfolio-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-panel{ padding: 56px 32px; }
}

@media (max-width: 720px){
  .wrap{ padding: 0 20px; }
  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .hero{ padding: 130px 0 80px; }
  .hero-stage{ height: 460px; }
  .hero-photo{ width: min(320px, 80%); height: 400px; }
  .hero-meta{ gap: 22px; flex-wrap: wrap; }
  .section{ padding: 76px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .portfolio-grid{ grid-template-columns: 1fr; }
  .page-header{ padding: 128px 0 40px; }
}

/* ==========================================================================
   Project popup / modal
   ========================================================================== */
.project-modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.project-modal.is-open{
  opacity: 1;
  visibility: visible;
}
.project-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6,7,9,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-modal-panel{
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.75);
  transform: translateY(24px) scale(.98);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.project-modal.is-open .project-modal-panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}
.project-modal-close{
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11,13,16,.55);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.project-modal-close:hover{
  background: var(--ink);
  color: var(--bg);
  transform: rotate(90deg);
}
.project-modal-close svg{ width: 16px; height: 16px; }
.project-modal-media{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-modal-media .thumb-bg{ position:absolute; inset:0; }
.project-modal-media .thumb-mock{ position:absolute; inset:0; padding: 34px; }
.project-modal-media .thumb-ui{ position:absolute; inset:0; padding: 34px; display:flex; flex-direction:column; gap:14px; }
.project-modal-media .project-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14171A;
}
.project-modal-body{
  padding: 30px 32px 34px;
}
.project-modal-body h3{
  font-family: var(--font-display);
  font-size: 26px;
  margin: 12px 0 12px;
}
.project-modal-body p{
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 56ch;
}
.project-modal-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.project-modal-tags span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 12px;
}

@media (max-width: 720px){
  .project-modal{ padding: 0; align-items: flex-end; }
  .project-modal-panel{
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
  .project-modal-body{ padding: 24px 22px 28px; }
}
