/* Yurii Trukhnii — independent IT & data services */

:root {
  --ink: #10151c;
  --ink-soft: #243040;
  --muted: #3f4b5a;
  --line: rgba(16, 21, 28, 0.12);
  --paper: #edf1f5;
  --paper-deep: #d7dee7;
  --accent: #1e5f9a;
  --accent-deep: #164a7a;
  --accent-soft: rgba(30, 95, 154, 0.12);
  --accent-bright: #2b7fd4;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

main {
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.01em;
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(43, 127, 212, 0.12), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(120, 150, 175, 0.18), transparent 50%),
    linear-gradient(180deg, #f3f6f9 0%, var(--paper) 45%, #e4eaf1 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.25s var(--ease-soft);
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus { top: 1rem; }

/* Header — light on hero, dark when scrolled */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease-soft), backdrop-filter 0.35s, border-color 0.35s, color 0.35s;
  border-bottom: 1px solid transparent;
  color: #fff;
}

.site-header .brand,
.site-header .brand:hover { color: inherit; }

.site-header .site-nav a { color: rgba(255, 255, 255, 0.92); }

.site-header .brand-descriptor { color: rgba(255, 255, 255, 0.8); }

.site-header .site-nav a:hover,
.site-header .site-nav a.is-active { color: #fff; }

.site-header .site-nav a::after { background: #fff; }

.site-header .nav-toggle span { background: #fff; }

.site-header.is-scrolled {
  background: rgba(243, 246, 249, 0.9);
  backdrop-filter: blur(14px) saturate(1.15);
  border-bottom-color: var(--line);
  color: var(--ink);
}

.site-header.is-scrolled .brand-descriptor { color: var(--muted); }

.site-header.is-scrolled .site-nav a { color: var(--ink-soft); }

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active { color: var(--ink); }

.site-header.is-scrolled .site-nav a::after { background: var(--accent); }

.site-header.is-scrolled .nav-toggle span { background: var(--ink); }

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-descriptor {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.6rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.28rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.28rem) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2.5rem) 0 5.5rem;
  color: #fff;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  --hero-bg-y: 0;
  transform: translate3d(0, calc(var(--hero-bg-y) * 1px), 0);
  will-change: transform;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  will-change: transform;
  filter: brightness(0.72) saturate(0.95);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 18, 0.55) 0%, rgba(8, 12, 18, 0.72) 45%, rgba(8, 12, 18, 0.88) 100%),
    radial-gradient(ellipse 70% 45% at 75% 15%, rgba(30, 95, 154, 0.35), transparent 60%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero-orb--a {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  top: 10%;
  right: 6%;
  background: rgba(43, 127, 212, 0.55);
  animation: orbFloat 14s var(--ease-soft) infinite alternate;
}

.hero-orb--b {
  width: min(34vw, 20rem);
  height: min(34vw, 20rem);
  bottom: 16%;
  left: 4%;
  background: rgba(120, 150, 190, 0.4);
  animation: orbFloat 18s var(--ease-soft) infinite alternate-reverse;
}

.hero-float {
  position: absolute;
  border: 1px solid rgba(180, 210, 240, 0.45);
  border-radius: 0.45rem;
  background: rgba(43, 127, 212, 0.18);
  box-shadow: 0 0 24px rgba(43, 127, 212, 0.25);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.hero-float--1 {
  width: 3.2rem;
  height: 3.2rem;
  top: 22%;
  right: 16%;
  animation: floatCard 7s ease-in-out infinite;
}

.hero-float--2 {
  width: 2.2rem;
  height: 2.2rem;
  top: 38%;
  right: 28%;
  animation: floatCard 9s ease-in-out infinite reverse;
}

.hero-float--3 {
  width: 4rem;
  height: 1.4rem;
  bottom: 34%;
  right: 12%;
  animation: floatCard 8s ease-in-out infinite 0.6s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  --hero-fg-y: 0;
  --hero-fg-op: 1;
  transform: translate3d(0, calc(var(--hero-fg-y) * 1px), 0);
  opacity: var(--hero-fg-op);
  will-change: transform, opacity;
}

.hero-content [data-motion] {
  transform-origin: left center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.55rem, 6.2vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.hero-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.96);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  font-weight: 500;
  line-height: 1.65;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  --scroll-op: 1;
  opacity: var(--scroll-op);
}

.hero-scroll-label {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  padding-left: 0.32em;
}

.hero-scroll-mouse {
  width: 1.55rem;
  height: 2.35rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 0.4rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-scroll-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #fff;
  animation: scrollDot 1.8s ease-in-out infinite;
}

.hero-scroll-line {
  width: 2px;
  height: 2.75rem;
  border-radius: 2px;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  animation: scrollLine 2.2s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.05rem;
  padding: 0.75rem 1.55rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  background: #f4f7fb;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.contact .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(30, 95, 154, 0.28);
}

.contact .btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}

/* Sections — scroll motion without persistent 3D (keeps text sharp) */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  overflow: visible;
  --bg-y: 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  transform: translate3d(0, calc(var(--bg-y) * 1px), 0) scale(1.06);
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(43, 127, 212, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(120, 150, 175, 0.1), transparent 50%);
  pointer-events: none;
  will-change: transform;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  --sy: 0;
  --rx: 0;
  --sc: 1;
  --op: 1;
  transform:
    translate3d(0, calc(var(--sy) * 1px), 0)
    rotateX(calc(var(--rx) * 1deg))
    scale(var(--sc));
  opacity: var(--op);
  transform-origin: center center;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .hero-content,
  .hero-scroll,
  .section::before,
  .section-inner,
  .service-card {
    transform: none !important;
    opacity: 1 !important;
  }
}

.section-title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.5rem;
}

.section-head .section-title {
  margin-bottom: 1rem;
}

.section-head .how-intro {
  margin-bottom: 0;
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 16.5rem) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
  width: min(100%, 16.5rem);
  aspect-ratio: 4 / 5;
  margin: 0;
}

.about-photo {
  position: absolute;
  inset: 9%;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #10151c;
  box-shadow:
    0 22px 44px rgba(16, 21, 28, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.about-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(30, 95, 154, 0.24);
  border-radius: 1.35rem;
  pointer-events: none;
}

.about-ring--outer {
  animation: spinSlow 28s linear infinite;
  border-style: dashed;
}

.about-ring--inner {
  inset: 4.5%;
  border-color: rgba(43, 127, 212, 0.32);
  border-radius: 1.25rem;
  animation: spinSlow 18s linear infinite reverse;
}

.about-copy p {
  margin: 0;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 42rem;
}

/* Services — Apple-like feature grid */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0 0 clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.services {
  padding-bottom: clamp(6rem, 14vw, 10rem);
}

.service-card {
  --card-lift: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 100%;
  padding: clamp(1.4rem, 2.8vw, 2rem);
  border-radius: 1.35rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(16, 21, 28, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(16, 21, 28, 0.06);
  overflow: hidden;
  transform-origin: center bottom;
  transform:
    translate3d(0, calc(var(--card-lift) * 1px), 0)
    rotateX(calc((1 - var(--p, 1)) * 7deg))
    scale(calc(0.94 + var(--p, 1) * 0.06));
  opacity: calc(0.45 + var(--p, 1) * 0.55);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 127, 212, 0.16), transparent 68%);
  pointer-events: none;
}

.service-visual {
  position: relative;
  width: 100%;
  height: clamp(4.5rem, 9vh, 7rem);
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 70% 30%, rgba(43, 127, 212, 0.2), transparent 55%),
    linear-gradient(160deg, #e8eef8 0%, #f4f7fb 55%, #eef3f8 100%);
  border: 1px solid rgba(43, 127, 212, 0.1);
  overflow: hidden;
}

.service-glyph {
  width: clamp(3.4rem, 6vh, 4.6rem);
  height: clamp(3.4rem, 6vh, 4.6rem);
  transform: translateZ(0);
  transition: transform 0.7s var(--ease-out);
}

.service-card:hover .service-glyph {
  transform: scale(1.1) translateY(-4px);
}

.service-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-index {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.service-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .service-grid { grid-template-columns: 1fr; }
}


/* How I Work */
.how {
  background:
    radial-gradient(700px 380px at 90% 15%, rgba(30, 95, 154, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(215, 222, 231, 0.55), rgba(237, 241, 245, 0.2));
}

.how-intro,
.how-lead,
.how-close { max-width: 40rem; }

.how-intro {
  margin: 0 0 1.5rem;
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.how-lead {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.process-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 44rem;
  position: relative;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(30, 95, 154, 0.15));
}

.process-list li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 1rem 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.process-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--accent);
  background: #fff;
  border: 1px solid rgba(30, 95, 154, 0.22);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 21, 28, 0.06);
  animation: iconPulse 3.6s ease-in-out infinite;
}

.process-list li:nth-child(2) .process-icon { animation-delay: 0.4s; }
.process-list li:nth-child(3) .process-icon { animation-delay: 0.8s; }
.process-list li:nth-child(4) .process-icon { animation-delay: 1.2s; }

.process-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.process-text { padding-right: 0.5rem; }

.how-close {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

/* Business info */
.info-grid {
  margin: 0;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}

.info-row:hover {
  background: linear-gradient(90deg, rgba(30, 95, 154, 0.06), transparent 70%);
}

.info-row dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.info-icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent);
  flex-shrink: 0;
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.info-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.info-row a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 650;
}

/* Contact */
.contact .contact-panel[data-motion] {
  --shift: 20px;
  --scale-from: 0.985;
  transform:
    translate3d(0, calc((1 - var(--p, 1)) * var(--shift)), 0)
    scale(calc(var(--scale-from) + var(--p, 1) * (1 - var(--scale-from))));
}

.contact {
  position: relative;
  z-index: 2;
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(5.5rem, 11vw, 8rem);
  margin-bottom: 0;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(237, 241, 245, 0.55) 0%, rgba(243, 246, 249, 0.96) 28%, #f3f6f9 100%);
}

.business {
  padding-bottom: clamp(5rem, 11vw, 8rem);
}

.contact .section-inner {
  --sy: 0 !important;
  --rx: 0 !important;
  --sc: 1 !important;
  --op: 1 !important;
  transform: none !important;
  opacity: 1 !important;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  max-width: 40rem;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(30, 95, 154, 0.14);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(16, 21, 28, 0.08);
}

.contact-glow {
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -4rem;
  top: -5rem;
  border-radius: 50%;
  background: rgba(43, 127, 212, 0.18);
  filter: blur(30px);
  animation: orbFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.contact-panel .section-title { position: relative; }

.contact-name {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.03em;
}

.contact-email {
  position: relative;
  margin: 0 0 0.75rem;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  font-weight: 650;
}

.contact-email a {
  text-decoration: none;
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(22, 74, 122, 0.35);
}

.contact-email a:hover { border-bottom-color: currentColor; }

.contact-area {
  position: relative;
  margin: 0 0 1.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-copy {
  position: relative;
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 34rem;
  font-weight: 500;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 40rem;
  font-weight: 500;
}

.footer-nav { display: flex; gap: 1.5rem; }

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-nav a:hover { color: var(--accent); }

/* Scroll-linked motion — no persistent Z-depth (avoids blurry text) */
[data-motion]:not(.service-card) {
  --p: 1;
  --shift: 48px;
  --scale-from: 0.96;
  opacity: calc(0.3 + var(--p) * 0.7);
  transform:
    translate3d(0, calc((1 - var(--p)) * var(--shift)), 0)
    rotateX(calc((1 - var(--p)) * 5deg))
    scale(calc(var(--scale-from) + var(--p) * (1 - var(--scale-from))));
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.hero [data-motion] {
  --shift: 20px;
  --scale-from: 0.98;
  transform-origin: left center;
}

[data-motion].is-settled,
.service-card.is-settled {
  transform: none !important;
  opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-motion] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  filter: blur(3px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero .reveal:nth-child(1) { --reveal-delay: 60ms; }
.hero .reveal:nth-child(2) { --reveal-delay: 180ms; }
.hero .reveal:nth-child(3) { --reveal-delay: 300ms; }
.hero .reveal:nth-child(4) { --reveal-delay: 420ms; }


/* Privacy page leftovers */
.page-privacy {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 5rem;
}

.page-privacy .prose { max-width: 42rem; }

.page-privacy .prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.page-privacy .prose h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.page-privacy .prose p,
.page-privacy .prose li { color: var(--ink-soft); font-weight: 500; }

.page-privacy .prose ul { padding-left: 1.2rem; }

/* Keyframes */
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(5%, -7%, 0); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
  50% { transform: translateY(-14px) rotate(6deg); opacity: 0.9; }
}

@keyframes scrollLine {
  0% { transform: scaleY(0.35); transform-origin: top; opacity: 0.3; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 0.85; }
  100% { transform: scaleY(0.35); transform-origin: bottom; opacity: 0.3; }
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(0.7rem); opacity: 0.15; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(16, 21, 28, 0.06); }
  50% { box-shadow: 0 8px 24px rgba(30, 95, 154, 0.22); }
}

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: rgba(16, 21, 28, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.35s;
  }

  .site-header.is-scrolled .site-nav {
    background: rgba(243, 246, 249, 0.97);
    border-bottom-color: var(--line);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.is-scrolled .site-nav a {
    border-bottom-color: var(--line);
  }

  .site-nav a::after { display: none; }

  .hero { padding-bottom: 5.5rem; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual {
    width: min(72vw, 14.5rem);
    margin-bottom: 0.25rem;
    margin-inline: 0;
  }
  .info-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 560px) {
  .service-visual {
    height: 7rem;
  }
}
