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

:root {
  --bg: #f7f5f2;
  --bg2: #edeae5;
  --white: #ffffff;
  --dark: #1a1814;
  --mid: #4a4540;
  --muted: #8a837a;
  --accent: #2d5a3d;
  --accent-light: #e8f0eb;
  --accent2: #c8a050;
  --border: #e0dbd4;
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --preview-ratio: 2940 / 1594;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
}

main {
  position: relative;
  isolation: isolate;
}

body.nav-open {
  overflow: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb,
.ambient-grid,
.ambient-line {
  position: absolute;
  pointer-events: none;
}

.ambient-orb {
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.78;
  mix-blend-mode: multiply;
  animation:
    drift 18s ease-in-out infinite,
    orb-breathe 14s ease-in-out infinite;
}

.ambient-orb-one {
  width: 42rem;
  height: 42rem;
  top: -10rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(106, 166, 218, 0.34) 0%, rgba(106, 166, 218, 0) 72%);
}

.ambient-orb-two {
  width: 36rem;
  height: 36rem;
  top: 22rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(200, 160, 80, 0.22) 0%, rgba(200, 160, 80, 0) 70%);
  animation-duration: 24s;
  animation-delay: -8s;
}

.ambient-orb-three {
  width: 38rem;
  height: 38rem;
  bottom: -12rem;
  left: 12%;
  background: radial-gradient(circle, rgba(45, 90, 61, 0.2) 0%, rgba(45, 90, 61, 0) 72%);
  animation-duration: 22s;
  animation-delay: -12s;
}

.ambient-orb-four {
  width: 24rem;
  height: 24rem;
  top: 14%;
  left: 46%;
  background: radial-gradient(circle, rgba(219, 227, 233, 0.85) 0%, rgba(219, 227, 233, 0) 68%);
  animation:
    drift-wide 28s ease-in-out infinite,
    orb-breathe 17s ease-in-out infinite;
  animation-delay: -5s;
}

.ambient-orb-five {
  width: 20rem;
  height: 20rem;
  top: 58%;
  right: 12%;
  background: radial-gradient(circle, rgba(225, 229, 172, 0.34) 0%, rgba(225, 229, 172, 0) 70%);
  animation:
    drift-reverse 20s ease-in-out infinite,
    orb-breathe 15s ease-in-out infinite;
  animation-delay: -9s;
}

.ambient-orb-six {
  width: 18rem;
  height: 18rem;
  bottom: 12%;
  left: -3rem;
  background: radial-gradient(circle, rgba(198, 160, 80, 0.24) 0%, rgba(198, 160, 80, 0) 70%);
  animation:
    drift-wide 24s ease-in-out infinite,
    orb-breathe 13s ease-in-out infinite;
  animation-delay: -11s;
}

.ambient-grid {
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(224, 219, 212, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 219, 212, 0.38) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
}

.ambient-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 90, 61, 0), rgba(45, 90, 61, 0.22), rgba(45, 90, 61, 0));
  transform-origin: center;
  animation: sweep 16s ease-in-out infinite;
}

.ambient-line-one {
  top: 15%;
  left: -10%;
  width: 28rem;
  --line-rotate: 11deg;
  transform: rotate(var(--line-rotate));
}

.ambient-line-two {
  right: -8%;
  bottom: 19%;
  width: 24rem;
  --line-rotate: -13deg;
  transform: rotate(var(--line-rotate));
  animation-delay: -6s;
}

.ambient-line-three {
  top: 52%;
  left: 30%;
  width: 20rem;
  --line-rotate: -6deg;
  transform: rotate(var(--line-rotate));
  animation-delay: -11s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0.8rem, -1.4rem, 0) scale(1.06);
  }
}

@keyframes drift-wide {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  30% {
    transform: translate3d(1.8rem, -1rem, 0) scale(1.05);
  }

  65% {
    transform: translate3d(-1.1rem, 1.2rem, 0) scale(0.98);
  }
}

@keyframes drift-reverse {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-1.6rem, -1.1rem, 0) scale(1.08);
  }
}

@keyframes orb-breathe {
  0%,
  100% {
    opacity: 0.52;
  }

  35% {
    opacity: 0.78;
  }

  70% {
    opacity: 0.6;
  }
}

@keyframes sweep {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0) rotate(var(--line-rotate, 0deg));
  }

  50% {
    opacity: 0.7;
    transform: translateX(1.4rem) rotate(var(--line-rotate, 0deg));
  }
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-18px);
  animation: header-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(224, 219, 212, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.nav-toggle span {
  width: 16px;
  height: 1.5px;
  background: var(--dark);
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 90, 61, 0.24);
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-logo,
.nav-links li {
  opacity: 0;
  transform: translateY(-10px);
  animation: header-item-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.nav-logo {
  animation-delay: 0.26s;
}

.nav-links li:nth-child(1) {
  animation-delay: 0.34s;
}

.nav-links li:nth-child(2) {
  animation-delay: 0.42s;
}

.nav-links li:nth-child(3) {
  animation-delay: 0.5s;
}

.nav-links li:nth-child(4) {
  animation-delay: 0.58s;
}

@keyframes header-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.35s ease;
}

.nav-logo:hover,
.nav-logo:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--dark);
  transform: translateY(-1px);
}

.nav-links a.btn-kontakt {
  padding: 0.5rem 1rem;
  background: var(--dark);
  color: #fff;
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a.btn-kontakt:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 90, 61, 0.2);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.24);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(24rem, 100%);
  height: 100%;
  padding: 1.35rem 1.2rem 1.6rem;
  background: rgba(251, 251, 248, 0.96);
  border-left: 1px solid rgba(224, 219, 212, 0.95);
  box-shadow: -10px 0 40px rgba(26, 24, 20, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

body.nav-open .mobile-nav-backdrop {
  opacity: 1;
}

body.nav-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.mobile-nav-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.mobile-nav-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav-body {
  display: grid;
  gap: 0.7rem;
}

.mobile-nav-link {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(224, 219, 212, 0.8);
  text-decoration: none;
  font-weight: 500;
  color: var(--dark);
}

.mobile-nav-cta {
  background: var(--dark);
  color: #fff;
  border-color: transparent;
}

.page-wrap,
.section,
.portfolio-inner,
footer {
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  padding: 2.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: clip;
}

@media (min-width: 1025px) {
  .hero {
    padding-top: 0.7rem;
  }
}

.section-shell {
  position: relative;
  overflow: clip;
}

.section-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-decor span {
  position: absolute;
  display: block;
  border-radius: 999px;
  animation: float-soft 12s ease-in-out infinite;
}

.section-decor span:first-child {
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(106, 166, 218, 0.2) 0%, rgba(106, 166, 218, 0) 72%);
}

.section-decor span:last-child {
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, rgba(225, 229, 172, 0.24) 0%, rgba(225, 229, 172, 0) 72%);
  animation-duration: 16s;
  animation-delay: -4s;
}

.section-shell-hero > div,
.section-shell-about > *,
.section-shell-services > *,
.section-shell-portfolio > .portfolio-inner > *,
.section-shell-contact > * {
  position: relative;
  z-index: 1;
}

.section-decor-hero span:first-child {
  top: 1rem;
  right: 3%;
}

.section-decor-hero span:last-child {
  bottom: 2rem;
  left: -2rem;
}

.section-decor-about span:first-child {
  top: 3rem;
  left: -4rem;
}

.section-decor-about span:last-child {
  right: 8%;
  bottom: -1rem;
}

.section-decor-services span:first-child {
  top: -2rem;
  right: 8%;
}

.section-decor-services span:last-child {
  bottom: 1rem;
  left: 4%;
}

.section-decor-portfolio span:first-child {
  top: 2rem;
  right: -2rem;
}

.section-decor-portfolio span:last-child {
  bottom: 4rem;
  left: 1rem;
}

.section-decor-contact span:first-child {
  top: 0;
  left: 12%;
}

.section-decor-contact span:last-child {
  right: -1rem;
  bottom: 2rem;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0.8rem, -0.9rem, 0);
  }
}

.hero-coming {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-coming-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.65);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  color: var(--dark);
  max-width: 18ch;
  text-wrap: balance;
}

.hero-title-name,
.hero-title-tag {
  display: block;
}

.hero-title-tag {
  color: var(--accent);
  max-width: 11ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Carousel Styles */
.hero-carousel-wrap {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 1rem 0;
}

.hero-mobile-showcase {
  display: none;
}

.hero-carousel-wrap::selection {
  background: transparent;
}

.hero-carousel-wrap::before,
.hero-carousel-wrap::after {
  content: "";
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  width: max(11rem, calc((100vw - 1100px) / 2 + 10rem));
  z-index: 4;
  pointer-events: none;
  opacity: 1;
}

.hero-carousel-wrap::before {
  left: 0;
  background:
    radial-gradient(circle at left center, rgba(247, 245, 242, 0.62) 0%, rgba(247, 245, 242, 0) 72%),
    linear-gradient(
      to right,
      rgba(247, 245, 242, 1) 0%,
      rgba(247, 245, 242, 1) 18%,
      rgba(247, 245, 242, 0.992) 36%,
      rgba(247, 245, 242, 0.88) 60%,
      rgba(247, 245, 242, 0.54) 82%,
      rgba(247, 245, 242, 0) 100%
    );
}

.hero-carousel-wrap::after {
  right: 0;
  background:
    radial-gradient(circle at right center, rgba(247, 245, 242, 0.62) 0%, rgba(247, 245, 242, 0) 72%),
    linear-gradient(
      to left,
      rgba(247, 245, 242, 1) 0%,
      rgba(247, 245, 242, 1) 18%,
      rgba(247, 245, 242, 0.992) 36%,
      rgba(247, 245, 242, 0.88) 60%,
      rgba(247, 245, 242, 0.54) 82%,
      rgba(247, 245, 242, 0) 100%
    );
}

.hero-carousel {
  overflow: hidden;
  padding: 0 0 1rem;
}

.hero-carousel::-webkit-scrollbar {
  display: none; /* Safari/Chrome */
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
}

.carousel-item:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px) rotate(-0.5deg);
  border-color: rgba(45, 90, 61, 0.22);
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.carousel-item:hover::after {
  transform: translateX(140%);
}

.carousel-item img {
  width: 100%;
  aspect-ratio: var(--preview-ratio);
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
}

.carousel-item-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
}

.carousel-item-type {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.carousel-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s;
  align-self: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  margin-top: auto;
}

.carousel-item:hover .carousel-btn {
  color: var(--accent);
  border-color: var(--accent);
  transform: none;
}

.hero-mobile-showcase {
  gap: 1rem;
  margin-top: 1.25rem;
  padding-bottom: 0.3rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.hero-mobile-showcase::-webkit-scrollbar {
  display: none;
}

.hero-mobile-card {
  min-width: min(82vw, 20rem);
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(224, 219, 212, 0.84);
  border-radius: 1.4rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(26, 24, 20, 0.05);
}

.hero-mobile-card img {
  width: 100%;
  aspect-ratio: var(--preview-ratio);
  object-fit: cover;
}

.hero-mobile-card-body {
  padding: 1rem 1rem 1.1rem;
}

.hero-mobile-type {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-mobile-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.05;
}

.about-actions {
  margin-top: 2rem;
}

.about-visual {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.hero-photo-wrap {
  width: 320px;
  height: 320px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-primary::after,
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.8s ease;
  z-index: -1;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after,
.btn-ghost:hover::after,
.btn-ghost:focus-visible::after {
  transform: translateX(140%);
}

.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
  cursor: not-allowed;
  background: #77726c;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
  border-color: var(--dark);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 240px;
  flex-shrink: 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.hero-photo-wrap {
  width: 140px;
  height: 160px;
  border-radius: var(--radius);
  margin: 0 auto 1rem;
  overflow: hidden;
  background: var(--bg2);
}

.about-visual .hero-photo-wrap {
  width: min(100%, 18rem);
  height: auto;
  aspect-ratio: 1 / 1.12;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 234, 229, 0.72));
  box-shadow:
    0 24px 60px rgba(26, 24, 20, 0.12),
    0 0 0 12px rgba(255, 255, 255, 0.48);
  transform: translateY(0) scale(1);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.about-visual:hover .hero-photo-wrap {
  transform: translateY(-8px) scale(1.025);
  box-shadow:
    0 34px 80px rgba(26, 24, 20, 0.16),
    0 0 0 12px rgba(255, 255, 255, 0.58),
    0 0 0 1px rgba(106, 166, 218, 0.18);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.hero-card-role {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-visual .hero-card-name {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 0.2rem;
}

.about-visual .hero-card-role {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.hero-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-contact-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--mid);
  text-align: left;
}

.hero-contact-row a {
  color: var(--mid);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.hero-contact-row a:hover,
.hero-contact-row a:focus-visible {
  color: var(--accent);
}

.contact-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-sm svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
}

.section {
  padding: 5rem 2rem;
  scroll-margin-top: 5.5rem;
}

.section-sep {
  max-width: 1100px;
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  padding: 3.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.about-grid::before {
  content: "";
  position: absolute;
  inset: auto -15% -50% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 166, 218, 0.16) 0%, rgba(106, 166, 218, 0) 72%);
  pointer-events: none;
}

.about-grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(26, 24, 20, 0.08);
  border-color: rgba(45, 90, 61, 0.18);
}

.about-text {
  color: var(--mid);
  display: grid;
  gap: 1rem;
}

.about-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}

.about-side h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.about-side ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.about-side a {
  color: var(--dark);
  text-decoration: none;
}

.about-side a:hover,
.about-side a:focus-visible {
  color: var(--accent);
}

.about-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.about-tech-tags span {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--mid);
  background: var(--bg);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.about-tech-tags span:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 90, 61, 0.24);
  background: rgba(232, 240, 235, 0.85);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-item {
  background: var(--white);
  padding: 2rem;
  transition:
    background 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-item:hover {
  background: #fdfcfb;
  transform: translateY(-6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 36px rgba(26, 24, 20, 0.07);
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(45, 90, 61, 0), rgba(45, 90, 61, 0.42), rgba(45, 90, 61, 0));
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.service-item:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.service-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--mid);
  background: var(--bg);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(45, 90, 61, 0.28);
}

.collab-strip {
  margin-top: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--accent-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.collab-strip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(45, 90, 61, 0.1);
}

.collab-strip strong {
  font-weight: 600;
}

.portfolio-bg {
  background: var(--bg2);
  position: relative;
}

.portfolio-inner {
  padding: 5rem 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.p-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
  position: relative;
}

.p-card:hover {
  box-shadow: 0 20px 44px rgba(26, 24, 20, 0.08);
  transform: translateY(-8px);
  border-color: rgba(45, 90, 61, 0.22);
}

.p-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 15%, rgba(255, 255, 255, 0.55) 48%, transparent 82%);
  transform: translateX(-130%);
  transition: transform 0.85s ease;
  pointer-events: none;
}

.p-card:hover::after {
  transform: translateX(130%);
}

.p-preview {
  aspect-ratio: var(--preview-ratio);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 237, 232, 0.92) 100%);
}

.p-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}

.p-card:hover .p-preview-img {
  filter: saturate(1.03) contrast(1.01);
}

.p-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, #f4f1ec 0%, #ebe6df 100%);
}

.p-fallback {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #b3aa9d;
  text-align: center;
  padding: 0 1rem;
}

.p-overlay {
  position: absolute;
  inset: 0;
}

.p-upcoming-cover {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.upcoming-pill {
  padding: 5px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.p-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-type {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.p-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.p-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.p-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.25s ease;
  align-self: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

.p-link:hover,
.p-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(3px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.contact-info-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--mid);
  padding: 0.35rem 0.45rem;
  border-radius: 0.9rem;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.contact-detail:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.5);
}

.contact-detail a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--accent);
}

.contact-detail-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1px;
}

.c-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.contact-detail:hover .c-icon {
  transform: translateY(-1px) scale(1.05);
  background: rgba(232, 240, 235, 1);
}

.c-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
}

.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 90, 61, 0.08);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}

.form-consent label {
  margin-bottom: 0;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
  font-size: 12px;
}

.form-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 500;
}

.form-status.success {
  color: #1f6a35;
}

.form-status.error {
  color: #a22525;
}

.form-status.info {
  color: #675f57;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-full {
  max-width: 100%;
  border-top: 1px solid var(--border);
}

footer {
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, white);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .nav-container,
  .hero,
  .section,
  .portfolio-inner,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-carousel-wrap::before,
  .hero-carousel-wrap::after {
    width: max(9rem, calc((100vw - 100%) / 2 + 9rem));
  }
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 4.25rem;
    gap: 2.25rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7vw, 3.3rem);
    max-width: 13ch;
    margin-bottom: 1.8rem;
  }

  .hero-actions {
    margin-bottom: 1.4rem;
  }

  .hero-carousel-wrap {
    display: block;
    margin-top: 0.25rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid {
    padding: 2.5rem 2rem;
  }

  .about-visual {
    order: -1;
  }

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

  .service-item,
  .p-body {
    padding: 1.4rem;
  }

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

  .ambient-orb {
    filter: blur(18px);
    opacity: 0.62;
    mix-blend-mode: normal;
  }

  .ambient-orb-one {
    width: 26rem;
    height: 26rem;
  }

  .ambient-orb-two,
  .ambient-orb-three,
  .ambient-orb-four {
    width: 22rem;
    height: 22rem;
  }

  .ambient-orb-five,
  .ambient-orb-six {
    width: 16rem;
    height: 16rem;
  }

  .section-decor {
    opacity: 0.65;
  }
}

@media (max-width: 860px) {
  nav {
    min-height: 64px;
  }

  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero,
  .section,
  .portfolio-inner,
  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    max-width: 12ch;
  }

  .hero-carousel-wrap::before,
  .hero-carousel-wrap::after {
    width: max(7rem, calc((100vw - 100%) / 2 + 6rem));
  }

  .carousel-item {
    flex-basis: clamp(250px, 68vw, 290px);
  }

  .carousel-item-info {
    padding: 1.05rem;
  }

  .section,
  .portfolio-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

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

  .contact-grid {
    gap: 1.75rem;
  }

  .section-decor {
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .nav-logo {
    font-size: 0.95rem;
    max-width: 68vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: 1.5rem;
    padding-bottom: 3.25rem;
    gap: 1.5rem;
  }

  .hero-coming {
    margin-bottom: 0.85rem;
  }

  .hero-title {
    font-size: clamp(1.95rem, 10vw, 2.65rem);
    line-height: 0.98;
    margin-bottom: 1.35rem;
    max-width: 100%;
  }

  .hero-title-name {
    max-width: 100%;
  }

  .hero-title-tag {
    max-width: 100%;
    margin-top: 0.38rem;
    font-size: 0.86em;
    line-height: 1.02;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-carousel-wrap {
    margin-top: 0.1rem;
    padding: 0.5rem 0 0.75rem;
  }

  .hero-carousel-wrap::before,
  .hero-carousel-wrap::after {
    top: -1rem;
    bottom: -1rem;
    width: max(5.25rem, calc((100vw - 100%) / 2 + 4.5rem));
  }

  .carousel-track {
    gap: 1rem;
  }

  .carousel-item {
    flex-basis: clamp(232px, 76vw, 272px);
  }

  .carousel-item img {
    aspect-ratio: 2940 / 1700;
  }

  .carousel-item-name {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .carousel-item-type,
  .carousel-btn {
    font-size: 12px;
  }

  .hero-mobile-card {
    min-width: min(84vw, 18rem);
  }

  .about-grid {
    padding: 1.8rem 1.2rem;
    gap: 1.4rem;
  }

  .about-visual .hero-photo-wrap {
    width: min(100%, 14rem);
  }

  .section-title {
    margin-bottom: 1.8rem;
  }

  .collab-strip {
    padding: 1rem 1.1rem;
    align-items: flex-start;
  }

  .contact-detail {
    padding-left: 0;
    padding-right: 0;
  }

  .ambient-grid {
    opacity: 0.12;
    background-size: 52px 52px;
  }

  .ambient-orb {
    opacity: 0.48;
    filter: blur(16px);
  }

  .ambient-line,
  .section-decor {
    opacity: 0.3;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-container,
  .hero,
  .section,
  .portfolio-inner,
  footer {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .mobile-nav-panel {
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.8rem, 11vw, 2.35rem);
    max-width: 100%;
  }

  .hero-title-name {
    max-width: 100%;
  }

  .hero-title-tag {
    max-width: 100%;
    margin-top: 0.34rem;
    font-size: 0.84em;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-carousel-wrap::before,
  .hero-carousel-wrap::after {
    width: max(4.2rem, calc((100vw - 100%) / 2 + 3.5rem));
  }

  .carousel-item {
    flex-basis: calc(100vw - 4.7rem);
  }

  .carousel-item-info {
    padding: 0.95rem;
  }

  .service-item,
  .p-body {
    padding: 1.2rem;
  }

  .contact-info-sub,
  .service-desc,
  .p-desc {
    font-size: 13px;
  }

  input,
  textarea,
  .btn-primary,
  .btn-ghost {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
