:root {
  --bg: #f7f9fb;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --ink: #071c3d;
  --muted: #657186;
  --navy: #081d43;
  --pink: #f08b94;
  --pink-strong: #e87586;
  --pink-rgb: 240, 139, 148;
  --line: rgba(8, 29, 67, 0.12);
  --line-strong: rgba(8, 29, 67, 0.2);
  --shadow: 0 24px 70px rgba(8, 29, 67, 0.12);
  --radius: 18px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(var(--pink-rgb), 0.13), transparent 34%),
    linear-gradient(225deg, rgba(var(--pink-rgb), 0.08), transparent 32%),
    var(--bg);
  line-height: 1.75;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(8, 29, 67, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 29, 67, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.66), transparent 82%);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header,
.hero-section,
.intro-strip,
.works-section,
.services-section,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(180px, 0.55fr) minmax(220px, 0.65fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: 26px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-logo {
  display: inline-flex;
  width: 116px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-group {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.footer-group h3 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 0.94rem;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--pink-strong);
  outline: none;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 66px;
  margin-top: 14px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 46px rgba(8, 29, 67, 0.08);
  backdrop-filter: blur(20px) saturate(1.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  min-width: 118px;
  padding: 4px 2px;
  border-radius: calc(var(--radius) - 6px);
  transition: transform 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: inline-flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  color: var(--muted);
  border: 1px solid rgba(8, 29, 67, 0.1);
  border-radius: calc(var(--radius) - 4px);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.site-nav a,
.header-link {
  border-radius: calc(var(--radius) - 8px);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
}

.site-nav a:first-child {
  color: var(--navy);
  background: rgba(8, 29, 67, 0.055);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(var(--pink-rgb), 0.13);
  transform: translateY(-1px);
  outline: none;
}

.site-nav svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  font-weight: 800;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--pink-strong);
  border-color: rgba(var(--pink-rgb), 0.32);
  outline: none;
}

.header-link svg,
.footer-group svg,
.action svg,
.modal-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.15;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  min-height: min(650px, calc(100svh - 150px));
  padding: clamp(32px, 5vw, 58px) 0 clamp(32px, 5vw, 54px);
}

.section-label {
  margin: 0 0 12px;
  color: var(--pink-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.82rem, 3vw, 2.72rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.06rem);
  font-weight: 600;
}

.hero-actions,
.contact-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.action.primary {
  color: #ffffff;
  border-color: var(--pink);
  background: var(--pink);
  box-shadow: 0 16px 38px rgba(var(--pink-rgb), 0.22);
}

.action.primary:hover,
.action.primary:focus-visible {
  background: var(--pink-strong);
}

.action.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.action.secondary:hover,
.action.secondary:focus-visible {
  color: var(--pink-strong);
  border-color: rgba(var(--pink-rgb), 0.35);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 13% 5% 17%;
  border: 1px solid rgba(var(--pink-rgb), 0.46);
  border-radius: 50%;
  transform: rotate(-10deg);
  content: "";
  animation: orbitDrift 8s ease-in-out infinite;
}

.logo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92%, 430px);
  min-height: 250px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-panel::before {
  position: absolute;
  inset: 10% 3% 12%;
  z-index: -1;
  border: 1px solid rgba(8, 29, 67, 0.12);
  border-radius: 50%;
  transform: rotate(7deg);
  content: "";
}

.logo-panel img {
  width: min(100%, 350px);
  height: auto;
  filter: drop-shadow(0 24px 32px rgba(8, 29, 67, 0.16));
  animation: logoFloat 6s ease-in-out infinite;
}

.hero-note {
  position: absolute;
  right: 7%;
  bottom: 9%;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: min(76%, 320px);
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 29, 67, 0.82);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 29, 67, 0.2);
  backdrop-filter: blur(16px);
}

.hero-note span {
  color: var(--pink);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-note strong {
  font-size: 0.96rem;
  line-height: 1.6;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(58px, 8vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.intro-strip span {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 12px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.95rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.works-section,
.services-section,
.contact-section {
  padding-bottom: clamp(70px, 9vw, 110px);
}

.works-section {
  width: min(1080px, calc(100% - 32px));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.works-section .section-heading {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 20px;
  text-align: right;
}

.section-heading .section-label {
  grid-column: 1 / -1;
  margin-bottom: -2px;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.35vw, 2.08rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading p,
.contact-section p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.section-heading.narrow {
  display: block;
  max-width: 720px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: none;
  margin-inline: 0;
}

.project-card {
  --project-accent: var(--pink);
  --project-secondary: var(--navy);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-width: 0;
  min-height: 292px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 14px 38px rgba(8, 29, 67, 0.075);
  overflow: hidden;
  cursor: pointer;
  text-align: right;
  backdrop-filter: blur(16px) saturate(1.12);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--pink-rgb), 0.38);
  box-shadow: var(--shadow);
  outline: none;
}


.project-preview,
.modal-media {
  position: relative;
  display: grid;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(8, 29, 67, 0.98), rgba(8, 29, 67, 0.82));
}

.project-preview {
  align-self: center;
  aspect-ratio: 16 / 10;
  min-height: 0;
  max-height: 300px;
  margin: 14px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: calc(var(--radius) - 4px);
}

.project-preview img,
.project-preview video,
.modal-media img,
.modal-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(255, 255, 255, 0.92);
  object-fit: contain;
}

.project-mockup {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 20px;
  border-radius: calc(var(--radius) - 8px);
  color: #ffffff;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, var(--project-accent), var(--project-secondary));
}

.project-mockup::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: calc(var(--radius) - 4px);
  content: "";
}

.mock-device {
  position: absolute;
  inset: 28px 28px auto;
  height: 48%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: calc(var(--radius) - 4px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0 20%, transparent 20% 100%) 0 16px / 100% 10px no-repeat,
    rgba(255, 255, 255, 0.14);
}

.mock-stack {
  position: absolute;
  right: 38px;
  left: 38px;
  bottom: 28%;
  display: grid;
  gap: 8px;
}

.mock-stack span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.mock-stack span:nth-child(2) {
  width: 72%;
}

.mock-stack span:nth-child(3) {
  width: 44%;
}

.project-tag {
  position: absolute;
  right: 26px;
  bottom: 22px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
}

.project-card-body {
  display: grid;
  gap: 9px;
  align-content: center;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
}

.project-kind {
  margin: 0;
  color: var(--pink-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.05rem, 1.2vw, 1.22rem);
  line-height: 1.42;
}

.project-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.85;
}

.project-mini-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.project-mini-details span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(8, 29, 67, 0.1);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card-footer {
  display: inline-flex;
  justify-self: start;
  gap: 10px;
  align-items: center;
  width: auto;
  min-height: 40px;
  margin-top: 8px;
  padding: 5px 6px 5px 13px;
  color: var(--navy);
  border: 1px solid rgba(var(--pink-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--pink-rgb), 0.09);
  font-size: 0.88rem;
  font-weight: 800;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink);
  box-shadow: 0 10px 20px rgba(var(--pink-rgb), 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.project-arrow svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.project-card:hover .project-arrow,
.project-card:focus-visible .project-arrow {
  transform: translate(-2px, -2px);
  background: var(--pink-strong);
}

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

.service-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.service-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--pink-strong);
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.06rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: clamp(34px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 680px;
  margin-bottom: 10px;
}

.contact-section p:last-child {
  max-width: 680px;
}

.contact-actions {
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
}

.modal.open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 39, 0.62);
  backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  width: min(1040px, 100%);
  max-height: min(88vh, 820px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 90px rgba(8, 29, 67, 0.26);
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 6px);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.modal-close:focus-visible {
  outline: 2px solid rgba(var(--pink-rgb), 0.55);
  outline-offset: 2px;
}

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

.modal-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  overflow-y: auto;
}

.modal-content h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.35;
}

.modal-content p {
  color: var(--muted);
  font-weight: 600;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding-right: 18px;
  color: var(--muted);
  font-weight: 700;
}

.detail-list li::before {
  position: absolute;
  top: 0.75em;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

.modal-actions {
  margin-top: auto;
}

.is-hidden {
  display: none;
}

@media (max-width: 920px) {
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-header {
    align-items: center;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 340px;
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-preview {
    max-height: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

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

@media (max-width: 620px) {
  .site-header,
  .hero-section,
  .intro-strip,
  .works-section,
  .services-section,
  .contact-section,
  .site-footer {
    width: min(100% - 20px, var(--max));
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    gap: 10px;
    padding: 8px;
  }

  .brand {
    width: 104px;
    min-width: 104px;
  }

  .header-link {
    min-height: 40px;
    padding-inline: 12px;
  }


  .site-nav {
    gap: 3px;
    padding: 3px;
  }

  .site-nav a {
    gap: 5px;
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.8rem;
  }

  .site-nav svg {
    width: 15px;
    height: 15px;
  }

  .hero-section {
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .hero-visual {
    min-height: 238px;
  }

  .hero-visual::before {
    inset: 12% -5% 15%;
  }

  .logo-panel {
    width: min(88%, 300px);
    min-height: 156px;
    padding: 10px;
  }

  .hero-note {
    right: 4%;
    bottom: 0;
    width: 84%;
    padding: 11px 12px;
  }

  .hero-note strong {
    font-size: 0.82rem;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(1.66rem, 7.2vw, 2.08rem);
    line-height: 1.2;
  }

  .hero-lead {
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .hero-actions,
  .contact-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .action {
    width: 100%;
    min-height: 44px;
  }

  .intro-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 58px;
  }

  .intro-strip span {
    min-height: 50px;
    font-size: 0.88rem;
  }

  .works-section,
  .services-section,
  .contact-section {
    padding-bottom: 66px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-heading h2,
  .contact-section h2 {
    font-size: clamp(1.38rem, 6vw, 1.78rem);
    line-height: 1.34;
  }

  .project-preview {
    margin: 10px;
    padding: 8px;
    min-height: 0;
  }

  .project-card-body,
  .service-card {
    padding: 16px;
  }

  .project-mini-details span {
    font-size: 0.75rem;
  }

  .contact-section {
    gap: 20px;
  }

  .modal {
    padding: 10px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-logo {
    width: 108px;
  }
}


@keyframes logoFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.7deg);
  }

  50% {
    transform: translate3d(0, -10px, 0) rotate(0.7deg);
  }
}

@keyframes orbitDrift {
  0%,
  100% {
    transform: rotate(-10deg) scale(1);
  }

  50% {
    transform: rotate(-4deg) scale(1.03);
  }
}

/* Modern Pluto refresh: glassy surfaces, roomy hero, and logo-colored accents. */
:root {
  --bg: #e3e8f0;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --ink: #071c3d;
  --muted: #637086;
  --navy: #081d43;
  --pink: #f08b94;
  --pink-strong: #e87586;
  --pink-rgb: 240, 139, 148;
  --line: rgba(8, 29, 67, 0.1);
  --line-strong: rgba(8, 29, 67, 0.18);
  --shadow: 0 28px 80px rgba(8, 29, 67, 0.14);
  --soft-shadow: 0 16px 42px rgba(8, 29, 67, 0.08);
  --radius: 26px;
  --max: 1180px;
}

body {
  background:
    linear-gradient(135deg, rgba(var(--pink-rgb), 0.12), transparent 34%),
    linear-gradient(180deg, #eef2f7 0%, #dfe5ee 44%, #f7f9fb 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(8, 29, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 29, 67, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(var(--pink-rgb), 0.1) 58.15% 58.45%, transparent 58.6%),
    linear-gradient(35deg, transparent 0 70%, rgba(8, 29, 67, 0.07) 70.1% 70.35%, transparent 70.5%);
}

.site-shell {
  position: relative;
}

.site-header,
.hero-section,
.works-section,
.contact-section,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
}

.site-header {
  top: 18px;
  min-height: 76px;
  margin-top: 18px;
  padding: 10px 14px 10px 18px;
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 54px rgba(8, 29, 67, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(1.22);
}

.brand {
  width: 132px;
  min-width: 132px;
  padding-inline: 8px;
}

.site-nav {
  gap: 8px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.site-nav a {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
}

.site-nav a:first-child {
  background: rgba(8, 29, 67, 0.075);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(var(--pink-rgb), 0.16);
}

.hero-section {
  position: relative;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.96fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  min-height: min(720px, calc(100svh - 126px));
  padding: clamp(54px, 7vw, 92px) 0 clamp(58px, 7vw, 96px);
  isolation: isolate;
}

.hero-section::before {
  position: absolute;
  inset: 26px max(-3vw, -34px) 38px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
    linear-gradient(135deg, rgba(var(--pink-rgb), 0.09), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 30px 90px rgba(8, 29, 67, 0.08);
  backdrop-filter: blur(18px) saturate(1.05);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(var(--pink-rgb), 0.24);
  border-radius: 999px;
  background: rgba(var(--pink-rgb), 0.08);
  color: var(--pink-strong);
  font-size: 0.82rem;
}

.section-label::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--pink);
  content: "";
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 5.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.06;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: rgba(7, 28, 61, 0.68);
  font-size: clamp(1rem, 1.22vw, 1.14rem);
  font-weight: 650;
  line-height: 2;
}

.action {
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: none;
}

.action.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  box-shadow: 0 16px 34px rgba(var(--pink-rgb), 0.26);
}

.action.secondary {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 28px rgba(8, 29, 67, 0.08);
}

.hero-visual {
  min-height: 520px;
}

.hero-visual::before {
  inset: 10% -2% 16%;
  border-width: 2px;
  border-color: rgba(var(--pink-rgb), 0.5);
  box-shadow: 0 0 0 18px rgba(var(--pink-rgb), 0.035);
}

.hero-visual::after {
  position: absolute;
  inset: 18% 10% 10% 2%;
  z-index: -1;
  border: 1px solid rgba(8, 29, 67, 0.12);
  border-radius: 50%;
  transform: rotate(8deg);
  content: "";
}

.logo-panel {
  width: min(94%, 520px);
  min-height: 360px;
  padding: 30px;
}

.logo-panel::before {
  inset: 18% 3% 18%;
  border-color: rgba(8, 29, 67, 0.11);
  box-shadow: inset 0 0 0 22px rgba(255, 255, 255, 0.18);
}

.logo-panel img {
  width: min(100%, 430px);
  filter: drop-shadow(0 30px 36px rgba(8, 29, 67, 0.18));
}

.hero-note {
  right: auto;
  left: 3%;
  bottom: 8%;
  width: min(78%, 360px);
  padding: 16px 18px;
  border-color: rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background: rgba(8, 29, 67, 0.88);
  box-shadow: 0 24px 58px rgba(8, 29, 67, 0.24);
}

.works-section,
.services-section,
.contact-section {
  padding-bottom: clamp(82px, 10vw, 128px);
}

.works-section {
  width: min(var(--max), calc(100% - 36px));
}

.section-heading {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  gap: 28px;
  margin-bottom: 28px;
}

.works-section .section-heading {
  padding: 0 4px;
}

.section-heading p,
.contact-section p {
  color: rgba(7, 28, 61, 0.64);
  font-weight: 650;
  line-height: 2;
}

.services-section {
  position: relative;
}

.services-grid {
  gap: 18px;
  margin-top: 0;
}

.service-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: clamp(22px, 3vw, 30px);
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56)),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.service-card::before {
  position: absolute;
  top: -62px;
  left: -74px;
  width: 180px;
  height: 122px;
  border: 1px solid rgba(var(--pink-rgb), 0.24);
  border-radius: 50%;
  transform: rotate(-18deg);
  content: "";
}

.service-card span {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border: 1px solid rgba(var(--pink-rgb), 0.2);
  border-radius: 16px;
  background: rgba(var(--pink-rgb), 0.1);
  color: var(--pink-strong);
}

.service-card h3 {
  position: relative;
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.5;
}

.service-card p {
  position: relative;
  color: rgba(7, 28, 61, 0.66);
  line-height: 1.9;
}

.process-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8, 29, 67, 0.92), rgba(8, 29, 67, 0.84)),
    var(--navy);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.process-panel > div {
  position: relative;
  padding: 6px clamp(4px, 1vw, 14px);
}

.process-panel > div + div {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.process-panel span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 800;
}

.process-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.95;
}

.projects-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.work-group {
  display: grid;
  gap: 18px;
}

.work-group + .work-group {
  margin-top: clamp(34px, 5vw, 58px);
}

.work-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 4px;
}

.work-group-heading span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(var(--pink-rgb), 0.22);
  border-radius: 16px;
  background: rgba(var(--pink-rgb), 0.1);
  color: var(--pink-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.work-group-heading h3 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  line-height: 1.4;
}

.project-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed rgba(var(--pink-rgb), 0.34);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
    rgba(var(--pink-rgb), 0.06);
  color: rgba(7, 28, 61, 0.68);
  text-align: center;
  font-weight: 800;
  line-height: 1.9;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.66);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}

.project-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(var(--pink-rgb), 0.16), transparent 32%),
    linear-gradient(315deg, rgba(8, 29, 67, 0.07), transparent 28%);
  opacity: 0;
  transition: opacity 180ms ease;
  content: "";
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-7px);
  border-color: rgba(var(--pink-rgb), 0.36);
  box-shadow: var(--shadow);
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
}

.project-preview {
  align-self: stretch;
  aspect-ratio: 16 / 10;
  max-height: none;
  margin: 16px 16px 0;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.52);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(8, 29, 67, 0.95), rgba(8, 29, 67, 0.82)),
    var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-preview img,
.project-preview video {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.project-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(8, 29, 67, 0.18);
  backdrop-filter: blur(14px);
}

.project-play svg {
  width: 22px;
  height: 22px;
  fill: rgba(var(--pink-rgb), 0.2);
  stroke-width: 2.5;
}

.project-card-body {
  position: relative;
  z-index: 1;
  gap: 12px;
  align-content: start;
  padding: clamp(22px, 3vw, 34px);
}

.project-kind {
  width: max-content;
  max-width: 100%;
  padding: 6px 11px;
  border: 1px solid rgba(var(--pink-rgb), 0.2);
  border-radius: 999px;
  background: rgba(var(--pink-rgb), 0.08);
  font-size: 0.76rem;
}

.project-card h3 {
  font-size: clamp(1.22rem, 1.7vw, 1.6rem);
  line-height: 1.38;
}

.project-card p {
  font-size: 0.95rem;
}

.project-mini-details span {
  min-height: 32px;
  border-color: rgba(8, 29, 67, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.project-card-footer {
  margin-top: auto;
  border-color: rgba(var(--pink-rgb), 0.25);
  background: rgba(var(--pink-rgb), 0.1);
}

.contact-section {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    linear-gradient(315deg, rgba(var(--pink-rgb), 0.13), transparent 42%);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.08);
}

.contact-section::before {
  position: absolute;
  top: -84px;
  left: -120px;
  width: 420px;
  height: 220px;
  border: 1px solid rgba(var(--pink-rgb), 0.34);
  border-radius: 50%;
  transform: rotate(-12deg);
  content: "";
}

.contact-section > * {
  position: relative;
  z-index: 1;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  align-items: center;
  margin-top: 10px;
  padding: 26px clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 30px 30px 0 0;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
}

.modal-backdrop {
  background: rgba(7, 18, 39, 0.5);
  backdrop-filter: blur(16px);
}

.modal-panel {
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 98px rgba(8, 29, 67, 0.28);
}

.detail-list:empty {
  display: none;
}

@media (max-width: 920px) {
  .site-header,
  .hero-section,
  .services-section,
  .works-section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    top: 12px;
    min-height: 66px;
    padding: 8px 10px;
  }

  .brand {
    width: 112px;
    min-width: 112px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 44px 0 66px;
  }

  .hero-section::before {
    inset: 18px -10px 34px;
    border-radius: 30px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .logo-panel {
    min-height: 240px;
  }

  h1 {
    font-size: clamp(2.08rem, 9vw, 3.4rem);
  }

  .section-heading,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .process-panel {
    grid-template-columns: 1fr;
  }

  .process-panel > div + div {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
  }

  .project-card {
    min-height: 0;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: center;
    border-radius: 24px;
  }

  .site-nav {
    gap: 4px;
    padding: 4px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .site-nav svg {
    width: 14px;
    height: 14px;
  }

  .hero-section {
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .hero-visual {
    min-height: 278px;
  }

  .hero-note {
    left: 0;
    bottom: 0;
    width: min(92%, 320px);
  }

  .contact-section {
    padding: 22px;
    border-radius: 26px;
  }
}

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