:root {
  --black: #050505;
  --black-soft: #101010;
  --white: #f8f7f3;
  --muted: #b9b4aa;
  --logo-red: #f03030;
  --logo-red-light: #ff5757;
  --logo-red-dark: #c91f26;
  --logo-slate: #405860;
  --logo-slate-light: #586870;
  --logo-slate-dark: #24343b;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.07);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 10%, rgba(240, 48, 48, 0.17), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(64, 88, 96, 0.22), transparent 20rem),
    linear-gradient(135deg, #020202 0%, #101010 52%, #050505 100%);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.82;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px clamp(16px, 4vw, 48px);
}

.navbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
}

.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.hero-actions,
.profile-topline,
.quick-stats,
.contact-points,
.project-filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 118px;
  height: 58px;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(240, 48, 48, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow: 0 14px 32px rgba(240, 48, 48, 0.18);
}

.brand-name {
  color: var(--white);
  font-weight: 900;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  gap: 8px;
}

.nav-links a,
.filter-btn {
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.filter-btn:hover,
.filter-btn.active {
  color: var(--white);
  background: rgba(240, 48, 48, 0.16);
  transform: translateY(-1px);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(240, 48, 48, 0.55);
  background: rgba(240, 48, 48, 0.14);
}

.nav-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(240, 48, 48, 0.68);
  background: rgba(240, 48, 48, 0.18);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 34px;
  padding-top: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--logo-red-light);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6.2vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 660px;
  font-size: 1.1rem;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--logo-red-light), var(--logo-red) 55%, var(--logo-red-dark));
  box-shadow: 0 18px 45px rgba(240, 48, 48, 0.27);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(64, 88, 96, 0.78);
  background: rgba(64, 88, 96, 0.18);
}

.hero-visual {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 38px);
}

.profile-card {
  min-height: 475px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-topline {
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #58e58d;
  box-shadow: 0 0 0 8px rgba(88, 229, 141, 0.13);
}

.logo-orbit {
  width: min(82vw, 330px);
  aspect-ratio: 1.55;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(240, 48, 48, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 48, 48, 0.2), rgba(64, 88, 96, 0.22)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 70px rgba(240, 48, 48, 0.18);
}

.logo-showcase {
  width: 86%;
  aspect-ratio: 1.57;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 8px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.86));
  box-shadow: inset 0 0 30px rgba(240, 48, 48, 0.12), 0 18px 42px rgba(0, 0, 0, 0.34);
  position: relative;
  overflow: hidden;
}

.logo-showcase::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from var(--angle), transparent, rgba(240, 48, 48, 0.38), rgba(64, 88, 96, 0.34), transparent 46%);
  animation: orbitSpin 7s linear infinite;
}

.logo-showcase img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes orbitSpin {
  to {
    --angle: 360deg;
  }
}

.quick-stats {
  width: 100%;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.quick-stats span {
  min-width: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.quick-stats strong {
  display: block;
  color: var(--logo-red-light);
  font-size: 1.25rem;
}

.section-heading.center {
  text-align: center;
}

.section-heading.center h2 {
  margin-inline: auto;
}

.about-grid,
.skills-layout,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.about-copy,
.skills-panel,
.contact-form {
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
}

.signature-line,
.section-intro {
  color: var(--white);
  font-weight: 700;
}

.signature-line {
  margin-bottom: 0;
}

.section-intro {
  max-width: 780px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 255px;
  border-radius: 8px;
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(240, 48, 48, 0.44);
  background: rgba(255, 255, 255, 0.1);
}

.service-card > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  color: var(--logo-red-light);
}

.project-filters {
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

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

.gallery-grid {
  align-items: stretch;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(240, 48, 48, 0.52);
  box-shadow: 0 28px 85px rgba(240, 48, 48, 0.16);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.gallery-grid .project-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 10%, rgba(240, 48, 48, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(64, 88, 96, 0.24), rgba(5, 5, 5, 0.78));
}

.gallery-grid .project-media::before,
.gallery-grid .project-media::after {
  display: none;
}

.gallery-grid .project-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  transform: scale(0.985);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-grid .project-card:nth-child(5) .project-media,
.gallery-grid .project-card:nth-child(8) .project-media,
.gallery-grid .project-card:nth-child(10) .project-media,
.gallery-grid .project-card:nth-child(12) .project-media {
  aspect-ratio: 1 / 1;
}

.project-media::before,
.project-media::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.media-dashboard {
  background: linear-gradient(135deg, #171717, var(--logo-slate-dark));
}

.media-dashboard::before {
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(240, 48, 48, 0.76) 0 34%, transparent 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 24px);
}

.media-dashboard::after {
  right: 28px;
  bottom: 28px;
  width: 38%;
  height: 38%;
  background: rgba(248, 247, 243, 0.16);
}

.media-commerce {
  background: linear-gradient(135deg, #f8f7f3, var(--logo-red), var(--logo-slate));
}

.media-commerce::before {
  inset: 30px 42px;
  background: #080808;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.24);
}

.media-commerce::after {
  left: 52px;
  top: 55px;
  width: 44%;
  height: 18px;
  background: var(--logo-red-light);
  box-shadow: 0 34px 0 rgba(255,255,255,0.72), 0 68px 0 rgba(255,255,255,0.36);
}

.media-brand {
  background:
    radial-gradient(circle at 50% 45%, rgba(240, 48, 48, 0.72), transparent 32%),
    linear-gradient(135deg, #060606, var(--logo-slate-dark));
}

.media-brand::before {
  width: 120px;
  height: 120px;
  inset: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.media-brand::after {
  width: 72px;
  height: 72px;
  inset: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 5, 5, 0.84);
}

.project-body {
  padding: 22px;
}

.project-body span {
  color: var(--logo-red-light);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.skill-row:last-child {
  margin-bottom: 0;
}

.skill-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-weight: 700;
}

.skill-row strong {
  color: var(--logo-red-light);
}

.skill-bar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--logo-red-light), var(--logo-red));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s ease;
}

.skill-row.is-visible .skill-bar span {
  transform: scaleX(1);
}

.contact-copy p {
  max-width: 560px;
}

.contact-points {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contact-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--white);
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 48, 48, 0.78);
  box-shadow: 0 0 0 4px rgba(240, 48, 48, 0.13);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--logo-red-light);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--logo-red-light);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 1100px) {
  .navbar {
    gap: 16px;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 9px 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    gap: 24px;
  }

  .brand-name {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .skills-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
    gap: 28px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-visual {
    max-width: 620px;
    justify-self: center;
    width: 100%;
  }

  .profile-card {
    min-height: 420px;
  }

  .service-card {
    min-height: 230px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px;
  }

  .navbar {
    position: relative;
    min-height: 64px;
    padding: 10px 12px;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .nav-links {
    position: fixed;
    left: clamp(12px, 4vw, 24px);
    right: clamp(12px, 4vw, 24px);
    top: 86px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
      radial-gradient(circle at 10% 0%, rgba(240, 48, 48, 0.22), transparent 18rem),
      rgba(6, 6, 6, 0.95);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
    transform: translateY(-14px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 30;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .section-shell {
    width: min(100% - 24px, 1180px);
    padding: 64px 0;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 4.3rem);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .brand-mark {
    width: 110px;
    height: 52px;
  }

  .brand-name {
    max-width: 170px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 210px;
  }

  .card-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 22px;
  }

  .gallery-grid .project-media {
    aspect-ratio: 1 / 1.18;
  }

  .project-body {
    padding: 18px;
  }

  .project-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    padding: 10px;
  }

  .navbar {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    display: none;
  }

  .brand-mark {
    width: 104px;
    height: 48px;
    padding: 5px 9px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-links {
    top: 78px;
  }

  .section-shell {
    width: min(100% - 20px, 1180px);
    padding: 54px 0;
  }

  .eyebrow {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(2.18rem, 14vw, 3.6rem);
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }

  p {
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .btn {
    min-height: 48px;
    padding: 0 16px;
  }

  .profile-card {
    min-height: auto;
  }

  .hero-visual,
  .about-copy,
  .skills-panel,
  .contact-form {
    padding: 18px;
  }

  .logo-orbit {
    width: 100%;
    max-width: 310px;
  }

  .quick-stats span {
    flex: 1 1 100%;
  }

  .project-filters {
    grid-template-columns: 1fr;
  }

  .gallery-grid .project-media,
  .gallery-grid .project-card:nth-child(5) .project-media,
  .gallery-grid .project-card:nth-child(8) .project-media,
  .gallery-grid .project-card:nth-child(10) .project-media,
  .gallery-grid .project-card:nth-child(12) .project-media {
    aspect-ratio: 1 / 1.25;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .skill-row strong {
    justify-self: start;
  }

  .contact-points {
    align-items: stretch;
  }

  .contact-points span {
    width: 100%;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2rem;
  }

  .brand-mark {
    width: 94px;
  }

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