/*
Theme Name: Xhedon Studio
Theme URI: https://xhedon.com
Author: Xhedon Studio
Author URI: https://xhedon.com
Description: Xhedon Studio'nun resmi WordPress teması. Modern koyu tema, web tasarım, Shopify ve performans pazarlama studio'su için.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xhedon
*/

/* =========================================================
   Xhedon Studio — global styles
   ========================================================= */

:root {
  --bg: #000000;
  --bg-elev: #0c0c0c;
  --bg-card: #101010;
  --bg-card-2: #0a0a0a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.42);
  --accent: #ffffff;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --max: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

i[data-lucide] {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn i { width: 16px; height: 16px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-light {
  background: #ffffff;
  color: #000000;
}
.btn-light:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-strong);
}

.btn:hover i { transform: translateX(2px); }
.btn i { transition: transform 0.2s var(--ease); }

/* =========================================================
   Hero + Nav
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.85) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  pointer-events: auto;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav a, .nav button { pointer-events: auto; position: relative; z-index: 1; }
@keyframes navDrop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
}
.nav-logo-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-logo-dot { color: rgba(255,255,255,0.5); }

.nav-pill {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(12,12,12,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav-pill a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  transition: all 0.2s var(--ease);
}
.nav-pill a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  display: none;
}

.nav-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  position: relative;
  background: transparent;
  transition: background 0.3s var(--ease);
}
.nav-hamburger.is-open { background: #1a1a1a; }
.nav-hamburger > span {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  color: #fff;
}
.nav-hamburger > span i { width: 20px; height: 20px; stroke-width: 1.5; }
.nav-hamburger .nav-hamburger-close {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.nav-hamburger.is-open .nav-hamburger-menu {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
.nav-hamburger.is-open .nav-hamburger-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Mobile menu */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  pointer-events: none;
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.mobile-backdrop.is-open {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9995;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.5s var(--ease), visibility 0s linear 0.5s;
}
.mobile-menu.is-open {
  max-height: 540px;
  visibility: visible;
  transition: max-height 0.5s var(--ease), visibility 0s linear 0s;
}
.mobile-menu-inner {
  padding: 90px 20px 24px;
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    background 0.2s,
    color 0.2s;
}
.mobile-link i { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: all 0.2s var(--ease); }
.mobile-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.mobile-link:hover i { opacity: 0.4; transform: translateX(0); }

.mobile-menu.is-open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 130ms; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 180ms; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 230ms; }
.mobile-menu.is-open .mobile-link:nth-child(5) { transition-delay: 280ms; }

.mobile-cta-wrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease) 360ms, transform 0.4s var(--ease) 360ms;
}
.mobile-menu.is-open .mobile-cta-wrap { opacity: 1; transform: translateY(0); }
.mobile-cta { width: 100%; justify-content: center; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 130px var(--pad-x) 100px;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-title {
  font-size: clamp(2rem, 6.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 920px;
  color: #fff;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero-sub {
  margin-top: 26px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  animation: fadeUp 0.9s var(--ease) 0.35s both;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease) 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-marquee {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  z-index: 5;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.marquee-track span { flex: 0 0 auto; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Sections (shared)
   ========================================================= */
.section {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  scroll-margin-top: 80px;
}
.stats { scroll-margin-top: 80px; }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}
.section-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.section-title {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 18px;
}
.section-sub {
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }

.service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #fff;
}
.service-icon i { width: 20px; height: 20px; }

.service-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}
.service-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* =========================================================
   Stats
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  background: var(--bg);
  padding: 40px 24px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num::after {
  content: '+';
  color: var(--text-faint);
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 2px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* =========================================================
   Process
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.process-step {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.process-step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.process-step h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* =========================================================
   Work
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card-2);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease);
}
.work-item:hover { border-color: var(--border-strong); }
.work-item:hover .work-thumb-shape { transform: scale(1.05) rotate(2deg); }

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.work-item-tall .work-thumb { aspect-ratio: 4 / 5; }

.work-thumb-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  transition: transform 0.6s var(--ease);
  opacity: 0.5;
}
.work-shape-1 {
  width: 60%; height: 60%;
  background: radial-gradient(circle, #c9a86f, transparent 70%);
  top: 20%; left: 20%;
}
.work-shape-2 {
  width: 70%; height: 70%;
  background: radial-gradient(circle, #6fc9c1, transparent 70%);
  top: 10%; right: -10%;
}
.work-shape-3 {
  width: 65%; height: 65%;
  background: radial-gradient(circle, #d4a373, transparent 70%);
  bottom: -10%; left: 10%;
}
.work-shape-4 {
  width: 75%; height: 75%;
  background: radial-gradient(circle, #b878d4, transparent 70%);
  top: -10%; left: -10%;
}

.work-meta {
  padding: 24px 26px 28px;
}
.work-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 14px;
}
.work-meta h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.work-meta p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.work-cta {
  margin-top: 40px;
  text-align: center;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
.about-text .section-eyebrow { display: inline-block; margin-bottom: 18px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
}
.about-list-item i {
  width: 16px;
  height: 16px;
  color: #fff;
  padding: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  box-sizing: content-box;
}

.about-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 8px 8px;
}
.about-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.about-panel-row:last-of-type { border-bottom: none; }
.about-panel-row span:first-child {
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-panel-row span:last-child { color: #fff; }

.about-quote {
  margin: 12px;
  padding: 22px 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}
.about-quote-author {
  margin-top: 10px;
  font-style: normal;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* =========================================================
   Contact
   ========================================================= */
.contact { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-left .section-eyebrow { display: inline-block; margin-bottom: 18px; }
.contact-left .section-title { text-align: left; margin-bottom: 18px; }
.contact-lead {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
a.contact-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  flex-shrink: 0;
}
.contact-item-icon i { width: 18px; height: 18px; }
.contact-item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.contact-item-val {
  font-size: 15px;
  color: #fff;
}

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
  font-family: inherit;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.32); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='white' stroke-opacity='0.5' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: #0a0a0a; color: #fff; }

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-submit.is-success {
  background: #1f8a4a;
  color: #fff;
}
.form-submit.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-result {
  margin-top: 4px;
  padding: 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease), padding 0.35s var(--ease);
}
.form-result.is-visible {
  max-height: 200px;
  opacity: 1;
  padding: 14px;
}
.form-result.is-success {
  background: rgba(31, 138, 74, 0.12);
  border: 1px solid rgba(80, 200, 120, 0.35);
  color: #b8f0c8;
}
.form-result.is-error {
  background: rgba(200, 60, 60, 0.10);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #f4b3b3;
}
.form-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 80px) var(--pad-x) 28px;
  background: #050505;
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer-brand p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s var(--ease);
}
.footer-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
  border-color: var(--border-strong);
}
.footer-social i { width: 16px; height: 16px; }

/* =========================================================
   Blog (preview on home + archive + single)
   ========================================================= */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  color: inherit;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #141414 0%, #1f1f1f 100%);
  overflow: hidden;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  display: grid;
  place-items: center;
}
.post-thumb-placeholder::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  filter: blur(40px);
}
.post-meta { padding: 22px 24px 26px; }
.post-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.post-meta-top .post-cat {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.post-meta h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}
.post-meta p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.blog-cta {
  margin-top: 40px;
  text-align: center;
}

.blog-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 14.5px;
}
.blog-empty strong { color: #fff; }

/* Pagination */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.pagination .nav-links,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.pagination a,
.pagination span.page-numbers {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.pagination a:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
}
.pagination .current {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-color: var(--border-strong);
}

/* Archive page header */
.archive-head {
  padding-top: 140px;
  padding-bottom: 0;
}

/* Single post */
.single-post {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 140px;
  padding-bottom: clamp(60px, 8vw, 100px);
}
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.single-back:hover {
  color: #fff;
  border-color: var(--border-strong);
}
.single-head { margin-bottom: 32px; }
.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.single-meta .post-cat {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.single-title {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 14px;
}
.single-excerpt {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}
.single-thumb {
  margin: 32px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.single-thumb img { width: 100%; height: auto; display: block; }
.single-body {
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
}
.single-body > * + * { margin-top: 1.2em; }
.single-body h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
  color: #fff;
}
.single-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: #fff;
}
.single-body p { color: rgba(255,255,255,0.82); }
.single-body a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.single-body a:hover { text-decoration-color: #fff; }
.single-body blockquote {
  padding: 18px 24px;
  border-left: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}
.single-body ul,
.single-body ol { padding-left: 24px; }
.single-body li { margin: 0.4em 0; }
.single-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 2px 7px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
}
.single-body pre {
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.single-body pre code { padding: 0; background: transparent; }
.single-body img,
.single-body figure { border-radius: var(--radius-sm); overflow: hidden; }
.single-body figure img { width: 100%; }

/* 404 */
.error-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.error-404 .big {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-404 p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 460px;
  margin: 0 auto 28px;
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Breakpoints
   ========================================================= */

/* >= 640 */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; }
}

/* >= 900 */
@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(0, auto);
  }
  .service-card-lg { grid-column: span 1; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }

  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 60px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }

  .footer-top { grid-template-columns: 1fr 1.4fr; }
}

/* >= 1024 (desktop nav) */
@media (min-width: 1024px) {
  .nav-pill { display: flex; }
  .nav-hamburger { display: none; }
  .nav-cta { display: inline-flex; }
}

/* >= 1100 */
@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .service-card-lg { grid-column: span 2; }
}
