:root {
  --container: 1280px;
  --section-gap: 160px;
  --gutter: 32px;
  --safe: 24px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --theme-duration: 1.5s;
}

html[data-theme="dark"] {
  --background: #050508;
  --surface: #101015;
  --surface-ink: #0d0d15;
  --surface-lowest: #0a0a0f;
  --surface-low: #15151b;
  --surface-container: #191920;
  --surface-high: #222229;
  --on-surface: #dce4e4;
  --on-surface-variant: #b9cacb;
  --outline: #849495;
  --outline-variant: #3a494b;
  --primary: #e1fdff;
  --primary-container: #00f2ff;
  --surface-tint: #00dbe7;
  --deep-violet: #7000ff;
  --glass: rgba(13, 13, 21, .4);
  --glass-border: rgba(255, 255, 255, .05);
  --glass-hover: rgba(255, 255, 255, .03);
  --header-bg: rgba(13, 13, 21, .7);
  --button-on-primary: #050508;
  --input-bg: rgba(13, 13, 21, .3);
  --selection: rgba(0, 242, 255, .2);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

html[data-theme="light"] {
  --background: #f9f9ff;
  --surface: #f9f9ff;
  --surface-ink: #ffffff;
  --surface-lowest: #ffffff;
  --surface-low: #f0f3ff;
  --surface-container: #e7eeff;
  --surface-high: #dee8ff;
  --on-surface: #111c2d;
  --on-surface-variant: #3c494a;
  --outline: #6c7a7b;
  --outline-variant: #bbc9ca;
  --primary: #00696f;
  --primary-container: #00c2cc;
  --surface-tint: #00696f;
  --deep-violet: #7000ff;
  --glass: rgba(255, 255, 255, .7);
  --glass-border: rgba(0, 105, 111, .1);
  --glass-hover: #ffffff;
  --header-bg: rgba(249, 249, 255, .8);
  --button-on-primary: #ffffff;
  --input-bg: #ffffff;
  --selection: rgba(0, 194, 204, .3);
  --card-shadow-hover: 0 12px 32px rgba(17, 28, 45, .1);
  color-scheme: light;
}

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

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--background);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: transparent;
  color: var(--on-surface);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

/* Süzülen ahtapot mürekkebi — sabit, çok soluk, yavaş hareketli arka plan */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(60px);
  transform: translateZ(0);
}

body::before {
  top: -10%;
  left: -8%;
  width: 55vw;
  height: 55vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%);
  opacity: .45;
  animation: ink-drift-a 34s ease-in-out infinite alternate;
}

body::after {
  right: -12%;
  bottom: -6%;
  width: 48vw;
  height: 48vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--surface-tint) 20%, transparent), transparent 66%);
  opacity: .4;
  animation: ink-drift-b 46s ease-in-out infinite alternate;
}

html[data-theme="light"] body::before {
  opacity: .3;
}

html[data-theme="light"] body::after {
  opacity: .28;
}

/* Yalnız translate (ucuz GPU kompozit) — scale yok ki blur her karede yeniden hesaplanmasın */
@keyframes ink-drift-a {
  from { transform: translate3d(-3%, -2%, 0); }
  to   { transform: translate3d(4%, 5%, 0); }
}

@keyframes ink-drift-b {
  from { transform: translate3d(4%, 3%, 0); }
  to   { transform: translate3d(-4%, -3%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

::selection {
  background: var(--selection);
  color: var(--on-surface);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-container);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid var(--outline-variant);
  background: var(--surface);
  transition: background-color .3s ease, border-color .3s ease;
}

html[data-theme="light"] .site-header {
  box-shadow: 0 1px 0 rgba(17, 28, 45, .04);
}

.navbar {
  width: min(calc(100% - 2 * var(--safe)), var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #bdfcff;
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
  transition: transform .3s ease;
}

html[data-theme="light"] .site-header .brand {
  color: #00696f;
}

.brand:active {
  transform: scale(.95);
}

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

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.3);
}

.site-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "Manrope", sans-serif;
  font-size: .875rem;
  font-weight: 500;
}

.site-menu a {
  color: var(--on-surface-variant);
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease;
}

.site-menu a:first-child {
  color: var(--primary-container);
}

.site-menu a:not(.nav-cta):hover,
.site-menu a:not(.nav-cta):focus-visible {
  color: var(--primary);
}

html[data-theme="light"] .site-menu a:not(.nav-cta) {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

html[data-theme="light"] .site-menu a:not(.nav-cta):hover,
html[data-theme="light"] .site-menu a:not(.nav-cta):focus-visible {
  background: rgba(240, 243, 255, .5);
}

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid rgba(225, 253, 255, .2);
  border-radius: 999px;
  background: rgba(225, 253, 255, .1);
  color: var(--primary) !important;
}

html[data-theme="light"] .nav-cta {
  border-color: transparent;
  background: var(--primary);
  color: var(--button-on-primary) !important;
  box-shadow: 0 4px 12px rgba(17, 28, 45, .08);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  border-color: rgba(225, 253, 255, .4);
  background: rgba(225, 253, 255, .2);
}

html[data-theme="light"] .nav-cta:hover,
html[data-theme="light"] .nav-cta:focus-visible {
  background: var(--surface-tint);
}

.nav-cta:active {
  transform: scale(.95);
}

.nav-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-low);
}

.theme-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.theme-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-button:hover:not(:disabled) {
  color: var(--primary);
}

.theme-button:active:not(:disabled) {
  transform: scale(.9);
}

.theme-button.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
}

.theme-button:disabled {
  cursor: wait;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: var(--primary);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}

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

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

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

main {
  padding: 128px 0 96px;
}

.section-shell {
  width: min(calc(100% - 2 * var(--safe)), var(--container));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding-block: 80px 128px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--gutter);
}

.hero-copy {
  z-index: 1;
  min-width: 0;
}

.badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11ch;
  margin: 30px 0 0;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.125;
}

.hero h1 span,
.cta-copy h2 span {
  color: var(--primary);
}

.hero-kicker {
  margin: 28px 0 0;
  color: var(--on-surface-variant);
  font-size: 1.125rem;
}

.hero-kicker strong,
.hero-kicker {
  font-weight: 500;
}

.hero-text {
  max-width: 590px;
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--on-surface-variant) 80%, transparent);
  font-weight: 300;
  line-height: 1.75;
}

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

.btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.btn:active {
  transform: scale(.95);
}

.btn-primary {
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--button-on-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--surface-tint);
}

.btn-secondary {
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--glass-hover);
}

.btn-arrow {
  border-radius: var(--radius-md);
  background: rgba(225, 253, 255, .1);
  color: var(--primary);
}

html[data-theme="light"] .btn-arrow {
  border-color: rgba(0, 105, 111, .2);
  background: rgba(0, 105, 111, .1);
}

.btn-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

.btn-arrow:hover svg {
  transform: translateX(4px);
}

.hero-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 1.2;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.portfolio,
.ready-projects,
.why,
.process,
.contact {
  padding-block: var(--section-gap);
}

.portfolio {
  border-radius: var(--radius-xl);
}

html[data-theme="light"] .portfolio {
  padding-inline: var(--safe);
  background: rgba(240, 243, 255, .5);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-heading .badge {
  border: 0;
  padding-inline: 0;
  background: transparent;
  color: color-mix(in srgb, var(--primary-container) 80%, var(--primary));
  box-shadow: none;
}

.section-heading h2 {
  margin: 14px 0 0;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.section-heading p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--on-surface-variant);
  font-size: 1.125rem;
  font-weight: 300;
}

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

@media (min-width: 901px) {
  .service-grid {
    align-items: start;
  }
}

.services-stage {
  position: relative;
  isolation: isolate;
  padding-block: clamp(56px, 9vw, 132px);
  overflow: visible;
}

.service-grid {
  position: relative;
  z-index: 2;
}

.service-card,
.ready-project-card,
.feature-card,
.step,
.contact {
  border: 1px solid var(--outline-variant);
  background: var(--surface);
}

.service-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: var(--outline);
  box-shadow: 0 8px 24px rgba(17, 28, 45, .08);
}

button {
  position: relative;
}

.service-image {
  position: relative;
  height: 192px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #111c2d;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-ink), transparent);
  opacity: .8;
  pointer-events: none;
}

html[data-theme="light"] .service-image::after {
  display: none;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease-out, opacity .7s ease-out;
}

html[data-theme="dark"] .service-image img {
  opacity: .6;
}

.service-card:hover .service-image img,
.service-card:focus-within .service-image img {
  transform: scale(1.05);
  opacity: .8;
}

html[data-theme="light"] .service-card:hover .service-image img,
html[data-theme="light"] .service-card:focus-within .service-image img {
  opacity: 1;
}

.service-content {
  position: relative;
  padding-top: 20px;
}

.service-icon,
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: var(--surface-container);
  color: var(--primary);
}

.service-icon {
  position: absolute;
  top: -84px;
  left: 16px;
  z-index: 2;
}

.service-icon svg,
.feature-icon svg,
.service-detail-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.feature-card h3,
.step h3,
.ready-project-content h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.service-card h3 {
  margin-top: 4px;
  font-size: 1.25rem;
}

.service-card p,
.feature-card p,
.step p,
.ready-project-content p {
  color: var(--on-surface-variant);
  font-weight: 300;
}

.service-card > .service-content > p {
  min-height: 84px;
  margin: 10px 0 0;
}

.service-detail-toggle {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--on-surface-variant);
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease;
}

.service-detail-toggle:hover,
.service-detail-toggle:focus-visible {
  border-color: rgba(225, 253, 255, .3);
  background: rgba(255, 255, 255, .05);
  color: var(--primary);
}

html[data-theme="light"] .service-detail-toggle:hover,
html[data-theme="light"] .service-detail-toggle:focus-visible {
  border-color: rgba(0, 105, 111, .5);
  background: rgba(0, 194, 204, .1);
}

.service-detail-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform .3s ease;
}

.service-detail-toggle:hover svg,
.service-detail-toggle:focus-visible svg {
  transform: translateX(4px);
}

.service-card.is-open .service-detail-toggle svg {
  transform: rotate(90deg);
}

.service-detail {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-lowest) 70%, transparent);
  opacity: 0;
  transition: max-height .3s ease, margin-top .3s ease, padding .3s ease, opacity .3s ease, border-color .3s ease;
}

.service-detail p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.6;
}

.service-card.is-open .service-detail {
  max-height: 720px;
  margin-top: 16px;
  padding: 16px;
  border-color: var(--glass-border);
  opacity: 1;
}

.ready-project-grid {
  display: grid;
}

.ready-project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  padding: 48px;
  border-radius: var(--radius-xl);
  transition: border-color .3s ease, box-shadow .3s ease;
}

.ready-project-card:hover {
  border-color: var(--outline);
  box-shadow: 0 8px 24px rgba(17, 28, 45, .08);
}

.ready-project-visual {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
}

.ready-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-project-content {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.ready-project-content > .service-icon {
  position: static;
}

.project-kicker {
  display: inline-block;
  width: max-content;
  margin: 0 0 12px !important;
  padding: 4px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--surface-container);
  font-size: .75rem;
  font-weight: 500 !important;
  letter-spacing: .03em;
}

.ready-project-content h3 {
  font-size: 2rem;
  line-height: 1.3;
}

.ready-project-content p {
  margin: 12px 0 0;
}

.project-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-feature-list li {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-ink) 40%, transparent);
  color: var(--on-surface-variant);
  font-size: .875rem;
}

html[data-theme="light"] .project-feature-list li {
  background: var(--surface-low);
  color: var(--on-surface);
  box-shadow: 0 2px 8px rgba(17, 28, 45, .05);
}

.ready-project-content .btn {
  width: max-content;
}

.feature-card {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform .5s ease, background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary-container) 30%, var(--glass-border));
  background: var(--glass-hover);
  box-shadow: var(--card-shadow-hover);
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 10px 0 0;
  font-size: .925rem;
  line-height: 1.6;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--outline-variant);
}

.step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.step > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
}

.step h3 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.step p {
  margin: 10px 0 0;
  font-size: .9rem;
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  padding: 64px;
  border-radius: var(--radius-xl);
}

.cta-wrap {
  display: grid;
  align-content: start;
  gap: 30px;
}

.cta-copy h2 {
  max-width: 9ch;
  margin: 24px 0 0;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.cta-text h3 {
  max-width: 520px;
  margin: 0;
  color: var(--on-surface);
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
}

.cta-text p {
  margin: 10px 0 0;
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-text .contact-email {
  margin-top: 18px;
}

.contact-email a {
  display: inline-block;
  color: var(--primary-container);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-shadow:
    0 0 3px color-mix(in srgb, var(--primary-container) 85%, transparent),
    0 0 10px color-mix(in srgb, var(--primary-container) 68%, transparent),
    0 0 24px color-mix(in srgb, var(--primary-container) 42%, transparent);
  transition: text-shadow .2s ease;
}

.contact-email a:hover,
.contact-email a:focus-visible {
  text-shadow:
    0 0 4px color-mix(in srgb, var(--primary-container) 92%, transparent),
    0 0 14px color-mix(in srgb, var(--primary-container) 78%, transparent),
    0 0 30px color-mix(in srgb, var(--primary-container) 52%, transparent);
}

.contact-form {
  min-width: 0;
}

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

.form-grid label,
.message-field {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
  color: color-mix(in srgb, var(--on-surface-variant) 70%, transparent);
  font-family: "JetBrains Mono", monospace;
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.form-grid label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width .3s ease;
}

html[data-theme="light"] .form-grid label::after {
  height: 2px;
}

.form-grid label:focus-within::after {
  width: 100%;
}

label strong {
  color: var(--primary-container);
}

input,
textarea {
  width: 100%;
  min-width: 0;
  outline: none;
  color: var(--on-surface);
}

.form-grid input {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--glass-border);
  border-radius: 0;
  background: transparent;
  font-size: .875rem;
  transition: border-color .3s ease;
}

.form-grid input:focus {
  border-color: var(--primary);
}

.contact-requirement {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--on-surface-variant) 50%, transparent);
  font-size: .75rem;
  font-weight: 300;
}

.contact-requirement.is-error,
.form-status.is-error {
  color: #ff3366;
}

.message-field {
  margin-top: 18px;
}

textarea {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-family: "Inter", sans-serif;
  font-size: .875rem;
  letter-spacing: 0;
  line-height: 1.6;
  resize: vertical;
  text-transform: none;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}

textarea:focus {
  border-color: rgba(225, 253, 255, .5);
  background: color-mix(in srgb, var(--input-bg) 88%, var(--primary));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 50%, transparent);
}

html[data-theme="light"] textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.survey-section {
  display: grid;
  gap: 14px;
  height: var(--survey-height, 0);
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: height .3s ease, margin-top .3s ease, opacity .3s ease, transform .3s ease;
}

.survey-section.is-visible {
  margin-top: 24px;
  opacity: 1;
  transform: translateY(0);
}

.survey-heading h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.survey-heading p {
  margin: 6px 0 0;
  color: var(--on-surface-variant);
  font-size: .875rem;
}

.survey-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-ink) 45%, transparent);
}

.survey-card legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  color: var(--on-surface);
  font-size: .875rem;
  font-weight: 500;
}

.survey-card legend + * {
  clear: both;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-pill span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--on-surface-variant);
  font-size: .8rem;
  text-align: center;
  transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.choice-pill input:focus-visible + span {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.choice-pill input:checked + span {
  border-color: color-mix(in srgb, var(--primary-container) 55%, transparent);
  background: color-mix(in srgb, var(--primary-container) 12%, transparent);
  color: var(--primary);
}

.range-control {
  position: relative;
  padding-bottom: 36px;
}

.range-card input[type="range"] {
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--primary-container);
}

.range-value {
  position: absolute;
  top: 40px;
  left: 0;
  width: 40px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary-container) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-container) 10%, var(--surface));
  color: var(--primary);
  font-size: .8rem;
  pointer-events: none;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-surface-variant);
  font-size: .72rem;
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
  color: var(--on-surface-variant);
  font-size: .8rem;
  font-weight: 300;
  line-height: 1.55;
  cursor: pointer;
}

.consent-field input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent-field a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form > .btn {
  margin-top: 20px;
  padding-inline: 40px;
}

.contact-form > .btn:disabled {
  cursor: wait;
  opacity: .65;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--primary-container);
  font-size: .875rem;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal-content {
  color: var(--on-surface-variant);
  font-size: .95rem;
  line-height: 1.75;
}

.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.legal-content h1 {
  margin: 0 0 6px;
  color: var(--on-surface);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 32px;
  color: color-mix(in srgb, var(--on-surface-variant) 65%, transparent);
  font-size: .8rem;
}

.legal-content h2 {
  margin: 38px 0 12px;
  color: var(--on-surface);
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.legal-content h3 {
  margin: 22px 0 8px;
  color: var(--on-surface);
  font-size: 1rem;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--on-surface);
  font-weight: 600;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  font-size: .85rem;
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--background);
}

.footer-inner {
  width: min(calc(100% - 2 * var(--safe)), var(--container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding-block: 80px;
}

.footer-brand p {
  margin: 22px 0 0;
  color: var(--on-surface-variant);
  font-size: .875rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 40px;
}

.footer-links a {
  color: var(--on-surface-variant);
  font-size: .875rem;
  font-weight: 500;
  transition: color .3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.copyright {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--on-surface-variant) 40%, transparent);
  font-size: .75rem;
}

main > section,
.service-grid,
.ready-project-grid,
.feature-grid,
.timeline,
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1), transform .8s cubic-bezier(.4, 0, .2, 1);
}

main > section.is-visible,
.service-grid.is-visible,
.ready-project-grid.is-visible,
.feature-grid.is-visible,
.timeline.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card.reveal.is-visible:hover,
.service-card.reveal.is-visible:focus-within {
  transform: translateY(-8px) scale(1.02);
}

.theme-curtain {
  position: fixed;
  z-index: 9999;
  top: -6vh;
  left: 0;
  width: 100%;
  height: 112vh;
  transform: translateY(-112%);
  pointer-events: none;
}

.theme-curtain[data-curtain-theme="dark"] {
  background: linear-gradient(180deg, rgba(5, 5, 8, .98), #050508 82%, rgba(16, 16, 21, .96));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}

.theme-curtain[data-curtain-theme="light"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .99), #f9f9ff 82%, rgba(231, 238, 255, .98));
  box-shadow: 0 24px 90px rgba(255, 255, 255, .62);
}

.theme-curtain.is-transitioning {
  pointer-events: auto;
  animation: theme-curtain-sweep 1.5s cubic-bezier(.76, 0, .24, 1) both;
}

@keyframes theme-curtain-sweep {
  0% {
    transform: translateY(-112%);
  }

  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(112%);
  }
}

@media (max-width: 1080px) {
  .site-menu {
    gap: 16px;
  }

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

  .service-card > .service-content > p {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-menu {
    position: fixed;
    z-index: 49;
    top: calc(var(--header-height) + 12px);
    left: var(--safe);
    right: var(--safe);
    display: grid;
    gap: 6px;
    padding: 14px;
    transform: translateY(-12px);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(17, 28, 45, .12);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  }

  .site-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .site-menu a,
  html[data-theme="light"] .site-menu a:not(.nav-cta) {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-top: 4px;
  }

  .nav-tools {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
  }

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

  .hero-panel {
    max-width: 680px;
    margin-inline: auto;
  }

  .ready-project-card {
    gap: 36px;
  }

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

  .timeline::before {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --safe: 16px;
    --section-gap: 96px;
  }

  .brand {
    gap: 6px;
    font-size: 1.1rem;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .navbar {
    gap: 10px;
  }

  .theme-button {
    width: 32px;
    height: 32px;
  }

  main {
    padding-top: 112px;
  }

  .hero {
    padding-block: 48px 80px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 12vw, 3.25rem);
    line-height: 1.08;
  }

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

  html[data-theme="light"] .portfolio {
    padding-inline: 16px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .section-heading p {
    font-size: 1rem;
  }

  .service-grid,
  .feature-grid,
  .timeline,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }

  .ready-project-card,
  .contact {
    padding: 24px;
    border-radius: var(--radius-lg);
  }

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

  .ready-project-content .btn {
    width: 100%;
  }

  .cta-copy h2 {
    font-size: 2.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 56px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 12px 22px;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (hover: none) {
  .service-card:hover,
  .feature-card:hover {
    transform: none;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .theme-curtain.is-transitioning {
    animation-duration: 1.5s !important;
  }
}
