:root {
  --bg: #08111d;
  --bg-soft: #0e1726;
  --panel: rgba(12, 22, 36, 0.82);
  --panel-strong: #111d2e;
  --panel-alt: #0c1725;
  --line: rgba(162, 187, 216, 0.14);
  --line-strong: rgba(117, 214, 255, 0.34);
  --text: #a6b7cb;
  --text-strong: #edf6ff;
  --text-dim: #7790ab;
  --accent: #71d5ff;
  --accent-strong: #1ab8ff;
  --accent-soft: rgba(113, 213, 255, 0.12);
  --gold: #f2c572;
  --green: #6be7bc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --radius-sm: 14px;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Instrument Sans', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(26, 184, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #07111d 0%, #09121c 100%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #09121d;
}

::-webkit-scrollbar-thumb {
  background: rgba(113, 213, 255, 0.45);
  border-radius: 999px;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 56px;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

nav.scrolled {
  background: rgba(8, 16, 28, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul a {
  position: relative;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform .22s ease;
}

nav ul a:hover,
nav ul a.active {
  color: var(--text-strong);
}

nav ul a:hover::after,
nav ul a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.btn-main,
.proj-store-link,
.modal-btn-store,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  color: #03101c;
  background: linear-gradient(135deg, var(--accent), #b7f4ff);
  box-shadow: 0 14px 34px rgba(26, 184, 255, 0.22);
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.nav-cta:hover,
.btn-main:hover,
.proj-store-link:hover,
.modal-btn-store:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(26, 184, 255, 0.28);
}

.btn-ghost,
.proj-inline-btn,
.modal-btn-close-foot,
.foot-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(162, 187, 216, 0.18);
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.btn-ghost:hover,
.proj-inline-btn:hover,
.modal-btn-close-foot:hover,
.foot-top:hover {
  border-color: rgba(113, 213, 255, 0.34);
  background: rgba(113, 213, 255, 0.08);
  transform: translateY(-2px);
}

#hero,
#experience,
#work,
#about,
#contact {
  padding: 110px 56px;
}

.sec-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.sec-dark {
  background: linear-gradient(180deg, rgba(10, 19, 32, 0.92), rgba(9, 17, 28, 0.98));
}

.sec-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.sec-h2 {
  margin: 0 0 16px;
  color: var(--text-strong);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.sec-h2 em {
  color: var(--gold);
  font-style: normal;
}

.sec-copy {
  margin: 0;
  max-width: 660px;
  font-size: 1.04rem;
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: .12s;
}

.d2 {
  transition-delay: .24s;
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-noise,
.hero-grid,
.hero-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-noise {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 90%);
}

.hero-grid {
  background:
    linear-gradient(180deg, rgba(5, 12, 20, 0.05) 0%, rgba(5, 12, 20, 0.75) 100%);
}

.hero-orb {
  border-radius: 50%;
  filter: blur(100px);
}

.hero-orb-a {
  width: 460px;
  height: 460px;
  inset: auto auto 58% 68%;
  background: rgba(113, 213, 255, 0.18);
}

.hero-orb-b {
  width: 380px;
  height: 380px;
  inset: 58% auto auto -5%;
  background: rgba(242, 197, 114, 0.14);
}

.hero-wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
}

.hero-tag,
.hero-kicker {
  font-family: var(--mono);
  text-transform: uppercase;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(113, 213, 255, 0.18);
  border-radius: 999px;
  background: rgba(113, 213, 255, 0.06);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-strong);
}

.ping {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(107, 231, 188, 0.7);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(107, 231, 188, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(107, 231, 188, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(107, 231, 188, 0);
  }
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.hero-title {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(3.3rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  color: var(--text-strong);
}

.hero-desc {
  margin: 26px 0 0;
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--text);
}

.hero-desc strong {
  color: var(--text-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.proof-card,
.hero-panel,
.exp-card,
.approach-card,
.contact-wrap,
.contact-form,
.c-link,
.proj-featured,
.proj-card,
.modal-box {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-card {
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: rgba(11, 19, 32, 0.56);
  backdrop-filter: blur(18px);
}

.proof-value {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strong);
}

.proof-label {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(162, 187, 216, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-strong);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}

.social-pill:hover {
  border-color: var(--line-strong);
  background: rgba(113, 213, 255, 0.06);
  transform: translateY(-2px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-portrait {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(19, 31, 49, 0.96), rgba(10, 18, 29, 0.94));
  border: 1px solid rgba(113, 213, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-portrait img {
  aspect-ratio: 1 / 1.12;
  border-radius: 24px;
}

.hero-badge {
  position: absolute;
  z-index: 1;
  max-width: 210px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(4, 13, 24, 0.9);
  border: 1px solid rgba(113, 213, 255, 0.18);
  backdrop-filter: blur(16px);
  animation: floatBadge 5.5s ease-in-out infinite;
}

.hero-badge-a {
  top: -12px;
  left: -14px;
}

.hero-badge-b {
  right: -14px;
  bottom: 18px;
  animation-delay: -2.75s;
}

.badge-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-badge strong {
  color: var(--text-strong);
  font-size: 0.88rem;
  line-height: 1.4;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(11, 19, 32, 0.58);
  backdrop-filter: blur(18px);
}

.panel-row {
  display: grid;
  gap: 5px;
}

.panel-row span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panel-row strong {
  color: var(--text-strong);
  font-size: 0.96rem;
  line-height: 1.4;
}

.hero-trust {
  position: absolute;
  inset: auto 56px 46px;
  z-index: 1;
  width: min(1200px, calc(100% - 112px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(162, 187, 216, 0.16);
  background: rgba(8, 16, 28, 0.54);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.exp-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.95), rgba(10, 17, 29, 0.95));
}

.exp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.exp-period,
.exp-type {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.exp-period {
  color: var(--accent);
}

.exp-type {
  color: var(--gold);
}

.exp-card h3,
.approach-card h3,
.pf-body h3,
.pc-body h3,
.modal-title {
  margin: 0;
  color: var(--text-strong);
  font-family: var(--display);
  letter-spacing: -0.04em;
}

.exp-card h3 {
  font-size: 1.6rem;
}

.exp-company {
  margin: -8px 0 0;
  color: var(--text-strong);
  font-weight: 700;
}

.exp-summary {
  margin: 0;
}

.exp-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.exp-tags,
.about-chips,
.proj-tech,
.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-tags span,
.about-chips span,
.proj-tech span,
.modal-tech span,
.badge,
.modal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exp-tags span,
.about-chips span,
.proj-tech span,
.modal-tech span {
  border: 1px solid rgba(113, 213, 255, 0.14);
  background: rgba(113, 213, 255, 0.08);
  color: var(--accent);
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.9);
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.marquee-track .dot {
  color: var(--gold);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.proj-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(13, 22, 35, 0.98), rgba(8, 15, 25, 0.98));
}

.pf-thumb {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.pf-overlay,
.pc-thumb::after,
.modal-media::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
}

.pf-overlay {
  background: linear-gradient(180deg, rgba(8, 15, 25, 0.1), rgba(8, 15, 25, 0.32));
}

.pf-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.pf-label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.pf-body h3 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.pf-body p {
  margin: 16px 0 0;
  font-size: 1rem;
}

.proj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.proj-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.96), rgba(9, 16, 26, 0.98));
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

.proj-card:hover,
.proj-featured:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.pc-thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.pc-thumb img,
.pf-thumb img {
  transition: transform .5s var(--ease);
}

.proj-card:hover .pc-thumb img,
.proj-featured:hover .pf-thumb img {
  transform: scale(1.04);
}

.pc-thumb::after {
  background: linear-gradient(180deg, transparent 30%, rgba(8, 15, 25, 0.42) 100%);
}

.pc-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.pc-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.pc-body h3 {
  font-size: 1.55rem;
}

.pc-body p {
  margin: 0;
  flex: 1;
}

.proj-inline-btn,
.proj-inline-link {
  width: fit-content;
  margin-top: auto;
}

.proj-inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(113, 213, 255, 0.18);
  background: rgba(113, 213, 255, 0.06);
  font-weight: 600;
  transition: background .22s ease, transform .22s ease;
}

.proj-inline-link:hover {
  background: rgba(113, 213, 255, 0.12);
  transform: translateY(-2px);
}

.badge,
.modal-badge {
  width: fit-content;
  border: 1px solid transparent;
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.b-jari {
  background: rgba(107, 231, 188, 0.12);
  border-color: rgba(107, 231, 188, 0.2);
  color: var(--green);
}

.b-acs {
  background: rgba(242, 197, 114, 0.12);
  border-color: rgba(242, 197, 114, 0.24);
  color: var(--gold);
}

.b-freelance {
  background: rgba(113, 213, 255, 0.12);
  border-color: rgba(113, 213, 255, 0.2);
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}

.about-left p {
  margin: 0 0 16px;
  font-size: 1.04rem;
}

.approach-card {
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.96), rgba(10, 17, 29, 0.98));
}

.approach-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.approach-list {
  display: grid;
  gap: 18px;
}

.approach-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.approach-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.approach-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 1rem;
}

.approach-item p {
  margin: 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(12, 21, 34, 0.96), rgba(9, 16, 27, 0.98));
}

.contact-left p {
  max-width: 560px;
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.c-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.c-link:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(113, 213, 255, 0.05);
}

.c-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  background: rgba(113, 213, 255, 0.1);
  color: var(--accent);
}

.c-ico svg {
  width: 22px;
  height: 22px;
}

.c-link span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.c-link strong {
  color: var(--text-strong);
  font-size: 1rem;
}

.contact-form {
  padding: 24px;
  border-radius: 28px;
  background: rgba(7, 14, 23, 0.82);
}

.f-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.f-group label {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.f-group input,
.f-group textarea {
  width: 100%;
  border: 1px solid rgba(162, 187, 216, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-strong);
  padding: 15px 16px;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.f-group input:focus,
.f-group textarea:focus {
  border-color: rgba(113, 213, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(113, 213, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.f-group textarea {
  min-height: 154px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-note {
  color: var(--text-dim);
  font-size: 0.8rem;
}

footer {
  padding: 24px 56px 40px;
}

.foot-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.foot-logo,
.foot-copy {
  color: var(--text);
}

.foot-logo {
  font-weight: 800;
  color: var(--text-strong);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: min(980px, 100%);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(14, 23, 38, 0.98), rgba(9, 16, 27, 1));
  transform: translateY(18px) scale(.98);
  transition: transform .25s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(5, 13, 21, 0.7);
  color: var(--text-strong);
  transition: transform .22s ease, background .22s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(113, 213, 255, 0.1);
}

.modal-inner {
  display: flex;
  flex-direction: column;
}

.modal-media {
  position: relative;
  overflow: hidden;
  background: #0a1320;
  min-height: 560px;
}

.modal-thumb,
.modal-thumb img {
  width: 100%;
  height: 100%;
}

.modal-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-thumb img {
  object-fit: contain;
}

.modal-media::after {
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.05), rgba(4, 10, 18, 0.35));
}

.modal-media-meta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(4, 10, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-strong);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-info {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.modal-title {
  font-size: 2.15rem;
  margin-top: 8px;
}

.modal-desc {
  margin: 18px 0 28px;
  font-size: 1rem;
}

.modal-section-label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

@media (max-width: 1120px) {
  .hero-wrap,
  .about-layout,
  .contact-wrap,
  .proj-featured {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .experience-grid,
  .proj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-trust {
    position: static;
    inset: auto;
    width: min(1200px, 100%);
    margin: 34px auto 0;
  }

  #hero {
    min-height: auto;
    padding-bottom: 84px;
  }
}

@media (max-width: 760px) {
  nav {
    padding: 18px 18px;
  }

  nav ul,
  .nav-cta {
    display: none;
  }

  #hero,
  #experience,
  #work,
  #about,
  #contact,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  #hero {
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .hero-kicker {
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .hero-proof,
  .experience-grid,
  .proj-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    gap: 12px;
  }

  .hero-badge {
    position: static;
    max-width: none;
    margin-bottom: 12px;
    animation: none;
  }

  .hero-portrait {
    padding: 14px;
  }

  .pf-body,
  .pc-body,
  .exp-card,
  .approach-card,
  .contact-wrap,
  .contact-form,
  .modal-info {
    padding: 20px;
  }

  .pc-thumb {
    height: 200px;
  }

  .pf-thumb {
    min-height: 260px;
  }

  .contact-wrap {
    gap: 20px;
  }

  .c-link strong {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-box {
    max-height: 92vh;
  }

  .modal-media {
    min-height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
    line-height: 1;
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .hero-actions a,
  .hero-socials a {
    width: 100%;
    justify-content: center;
  }

  .trust-chip {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }
}
