/* ==========================================================================
   Doğdu Teknik — Precision Industrial
   Dark graphite base · brand plum · ice-blue arc accent
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #17141b;
  --bg-2: #1f1b24;
  --surface: #27222d;
  --surface-2: #322b39;
  --line: rgba(236, 228, 242, 0.12);
  --line-2: rgba(236, 228, 242, 0.22);

  /* Text */
  --text: #f2eef4;
  --muted: #c0b8c6;
  --dim: #a097a8;

  /* Brand */
  --plum: #7a5077;
  --plum-hi: #a2709e;
  --plum-glow: rgba(162, 112, 158, 0.32);
  --ice: #c3d2ff;
  --ice-2: #93a9f2;
  --on-ice: #0b090d;
  --ok: #8fe3b4;
  --err: #ff9a9a;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 6.2vw, 7rem);

  /* Space (spacious) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --maxw: 1320px;

  --radius: 14px;
  --radius-sm: 8px;

  /* Motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med: 420ms;
  --t-slow: 900ms;

  /* Layers */
  --z-header: 50;
  --z-menu: 60;
  --z-float: 40;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--plum-hi); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ice); color: var(--on-ice); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.mono {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ice);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}

.section { padding-block: var(--section); position: relative; }
.section-head { display: grid; gap: var(--s-5); max-width: 760px; margin-bottom: var(--s-8); }
.section-head h2 { font-size: var(--fs-2xl); font-variation-settings: "wdth" 88; }
.section-head p { color: var(--muted); font-size: var(--fs-md); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bh: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: var(--bh); padding: 0 var(--s-6);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-base); letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-out), background-color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  touch-action: manipulation; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ice); color: var(--on-ice); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(195, 210, 255, 0.55); }
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover svg, .btn-ghost:hover svg { transform: translateX(4px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn-sm { --bh: 44px; padding: 0 var(--s-5); font-size: var(--fs-sm); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out), backdrop-filter var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(23, 20, 27, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); height: 76px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 150px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: var(--s-1); }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4);
  color: var(--muted); font-size: var(--fs-sm); font-weight: 500; transition: color var(--t-fast);
}
.nav a::after {
  content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 10px; height: 1px;
  background: var(--ice); transform: scaleX(0); transform-origin: right; transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-actions .btn { display: none; }

.lang { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang a {
  display: inline-grid; place-items: center; min-width: 38px; min-height: 34px; padding: 0 6px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--surface-2); color: var(--text); }

.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2);
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform var(--t-med) var(--ease-out); }
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-toggle .bars { display: grid; }

.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(23, 20, 27, 0.97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 96px var(--gutter) var(--s-7);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
  opacity: 0; visibility: hidden; transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-med) var(--ease-out), visibility 0s; }
.mobile-menu nav a {
  display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0;
  font-size: clamp(2rem, 8vw, 3rem); font-weight: 700; font-variation-settings: "wdth" 85; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu nav a .mono { color: var(--ice); font-weight: 400; }
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 80ms); }
.mobile-menu .menu-foot { display: grid; gap: var(--s-4); color: var(--muted); }
.mobile-menu .menu-close {
  position: absolute; top: 15px; right: var(--gutter);
}
.mobile-menu-top { position: absolute; top: 0; left: 0; right: 0; height: 76px; display: flex; align-items: center; padding-inline: var(--gutter); }
.mobile-menu-top img { width: 150px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(1.12); filter: saturate(0.85) contrast(1.05);
  will-change: transform;
}
.is-loaded .hero-media img { animation: heroZoom 2.4s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1.02); } }

.hero::before { /* legibility + brand glow */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 12% 88%, rgba(122, 80, 119, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(11,9,13,0.55) 0%, rgba(11,9,13,0.25) 35%, rgba(11,9,13,0.85) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,9,13,0.85) 0%, rgba(11,9,13,0.35) 55%, rgba(11,9,13,0.15) 100%);
}
.hero-grid { /* blueprint grid */
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 75%);
  opacity: 0.55;
}

.hero-drawing {
  position: absolute; z-index: -1; pointer-events: none;
  right: -24%; top: 14%; width: min(78vw, 640px); opacity: 0.45;
}
.hero-drawing .draw { fill: none; stroke: var(--ice); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-drawing .draw.thin { stroke-width: 0.8; opacity: 0.55; }
.hero-drawing .draw.path { stroke: var(--plum-hi); stroke-dasharray: 3 5; opacity: 0.9; }
.hero-drawing text { font-family: var(--mono); font-size: 11px; fill: var(--ice); letter-spacing: 0.08em; opacity: 0; }
.hero-drawing .tool { fill: var(--ice); filter: drop-shadow(0 0 6px var(--ice)); opacity: 0; }

.js .hero-drawing .draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.js .hero-drawing .draw.path { stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: 0; }
.is-loaded .hero-drawing .draw { animation: draw 2.2s var(--ease-in-out) forwards; animation-delay: calc(var(--d, 0) * 1ms + 400ms); }
.is-loaded .hero-drawing .draw.path { animation: fadeIn 0.8s ease forwards 2.2s; }
.is-loaded .hero-drawing text { animation: fadeIn 0.8s ease forwards; animation-delay: calc(var(--d, 0) * 1ms + 1600ms); }
.is-loaded .hero-drawing .tool { animation: fadeIn 0.4s ease forwards 2.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-content { position: relative; padding-bottom: var(--s-7); }
.hero h1 {
  font-size: var(--fs-hero); font-weight: 750; letter-spacing: -0.035em; line-height: 0.95;
  font-variation-settings: "wdth" 82; max-width: 13ch; margin-top: var(--s-5);
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ice); }
.js .hero h1 .line > span { transform: translateY(110%); }
.is-loaded .hero h1 .line > span { animation: lineUp 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lede { max-width: 54ch; margin-top: var(--s-6); color: #d4ccd9; font-size: var(--fs-md); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.js .hero .fade-up { opacity: 0; transform: translateY(16px); }
.is-loaded .hero .fade-up { animation: fadeUp 0.9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.spec-strip {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-2); margin-top: var(--s-7);
}
.spec { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-child(even) { padding-left: var(--s-4); }
.spec .mono { color: var(--dim); display: block; margin-bottom: var(--s-1); font-size: 0.68rem; }
.spec strong { font-size: var(--fs-md); font-weight: 600; font-variation-settings: "wdth" 90; }

.scroll-cue {
  display: none; position: absolute; right: var(--gutter); bottom: var(--s-7);
  writing-mode: vertical-rl; color: var(--dim); gap: var(--s-3); align-items: center;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--ice), transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; }
.marquee li {
  display: flex; align-items: center; gap: var(--s-6); padding: var(--s-5) var(--s-6) var(--s-5) 0;
  font-size: var(--fs-lg); font-weight: 600; font-variation-settings: "wdth" 80; white-space: nowrap; color: var(--muted);
}
.marquee li::after { content: ""; width: 8px; height: 8px; border: 1px solid var(--ice); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid { display: grid; gap: var(--s-8); align-items: center; }
.statement {
  font-size: var(--fs-xl); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; font-variation-settings: "wdth" 92;
}
.statement .w { transition: color 0.35s ease; }
.js .statement .w { color: rgba(242, 238, 244, 0.2); }
.js .statement .w.on { color: var(--text); }
.statement .w.accent.on { color: var(--ice); }
.about-copy { display: grid; gap: var(--s-5); margin-top: var(--s-6); color: var(--muted); max-width: 62ch; }
.about-media { position: relative; aspect-ratio: 4 / 5; }
.about-media .frame { position: absolute; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.about-media .frame img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.about-media .f1 { inset: 0 18% 14% 0; }
.about-media .f2 { inset: 52% 0 0 40%; border: 6px solid var(--bg); }
.about-media .badge {
  position: absolute; left: -2px; bottom: 4%; z-index: 2;
  background: var(--plum); color: #fff; border-radius: var(--radius); padding: var(--s-5);
  box-shadow: 0 24px 60px -20px rgba(122, 80, 119, 0.8); min-width: 150px;
}
.badge .num { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 800; line-height: 1; font-variation-settings: "wdth" 78; font-variant-numeric: tabular-nums; }
.badge .mono { display: block; margin-top: var(--s-2); opacity: 0.85; font-size: 0.68rem; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services { background: var(--bg-2); border-block: 1px solid var(--line); }
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  position: relative; background: var(--bg-2); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start;
  min-height: 260px; overflow: hidden; isolation: isolate; transition: background-color var(--t-med) var(--ease-out);
}
.svc::before { /* pointer spotlight */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(162, 112, 158, 0.18), transparent 60%);
}
.svc:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-top .mono { color: var(--dim); }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--ice); background: rgba(195, 210, 255, 0.04);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc:hover .svc-icon { transform: rotate(-6deg) scale(1.06); border-color: var(--ice); }
.svc h3 { font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" 92; letter-spacing: -0.01em; margin-top: var(--s-4); }
.svc p { color: var(--muted); }
.svc-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--plum-hi), var(--ice)); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.svc:hover .svc-line { transform: scaleX(1); }

/* Specialties (tabs) */
.spec-wrap { display: grid; gap: var(--s-7); margin-top: var(--section); align-items: start; }
.tabs { display: grid; gap: var(--s-2); }
.tab {
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-med), background-color var(--t-med);
}
.tab h3 { font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" 92; }
.tab-btn {
  width: 100%; display: flex; align-items: center; gap: var(--s-4); text-align: left;
  background: transparent; border: 0; padding: var(--s-5); min-height: 64px; border-radius: var(--radius);
  font: inherit; letter-spacing: inherit; line-height: 1.2;
}
.tab-btn .mono { color: var(--dim); transition: color var(--t-med); flex-shrink: 0; }
.tab .chev { margin-left: auto; width: 20px; height: 20px; flex-shrink: 0; transition: transform var(--t-med) var(--ease-out); color: var(--muted); }
.tab-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-med) var(--ease-out); }
.tab-body > div { overflow: hidden; }
.tab-body ul { display: grid; gap: var(--s-2); padding: 0 var(--s-5) var(--s-5) calc(var(--s-5) + 2.6rem); color: var(--muted); }
.tab-body li { display: flex; gap: var(--s-3); }
.tab-body li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 0.62em; border: 1px solid var(--ice); transform: rotate(45deg); }
.tab.is-open { border-color: var(--line-2); background: var(--surface); }
.tab.is-open .tab-btn .mono { color: var(--ice); }
.tab.is-open .chev { transform: rotate(180deg); color: var(--ice); }
.tab.is-open .tab-body { grid-template-rows: 1fr; }
.tab:hover { border-color: var(--line-2); }
.tab-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.tab-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease-out), transform 1.2s var(--ease-out);
}
.tab-media img.is-active { opacity: 1; transform: scale(1); }
.tab-media .corner { position: absolute; width: 22px; height: 22px; border-color: var(--ice); border-style: solid; z-index: 2; }
.corner.tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.corner.tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.corner.br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process-list { position: relative; }
.process-steps { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.process-rail { position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.process-rail span { position: absolute; inset: 0; background: linear-gradient(var(--ice), var(--plum-hi)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--s-5); }
.step-dot {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  transition: border-color var(--t-med), color var(--t-med), box-shadow var(--t-med); position: relative; z-index: 1;
}
.step.is-on .step-dot { border-color: var(--ice); color: var(--ice); box-shadow: 0 0 0 6px rgba(195,210,255,0.06); }
.step h3 { font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" 92; margin-bottom: var(--s-2); }
.step p { color: var(--muted); max-width: 46ch; }

/* --------------------------------------------------------------------------
   Why us
   -------------------------------------------------------------------------- */
.why { background: linear-gradient(180deg, var(--bg) 0%, #140f17 100%); overflow: hidden; }
.why-grid { display: grid; gap: var(--s-8); }
.why-big { position: relative; }
.why-big .num {
  font-size: clamp(7rem, 4rem + 18vw, 17rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em;
  font-variation-settings: "wdth" 70; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 10%, rgba(195,210,255,0.25) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-big .label { margin-top: var(--s-4); color: var(--muted); max-width: 32ch; }
.why-list { display: grid; gap: var(--s-2); }
.why-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .mono { color: var(--ice); padding-top: 6px; }
.why-item h3 { font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" 92; margin-bottom: var(--s-2); }
.why-item p { color: var(--muted); }

/* --------------------------------------------------------------------------
   Industries + partners
   -------------------------------------------------------------------------- */
.ind-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.ind {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; isolation: isolate;
  display: flex; align-items: flex-end; padding: var(--s-5); border: 1px solid var(--line);
}
.ind img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); filter: saturate(0.8); }
.ind::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(11,9,13,0.9) 100%); }
.ind:hover img { transform: scale(1.06); }
.ind h3 { font-size: var(--fs-lg); font-weight: 650; font-variation-settings: "wdth" 92; }
.ind .mono { color: var(--ice); display: block; margin-bottom: var(--s-2); }

.partners { margin-top: var(--s-9); display: grid; gap: var(--s-6); align-items: center; border-top: 1px solid var(--line); padding-top: var(--s-7); }
.partners .mono { color: var(--dim); }
.partner-logos { display: flex; flex-wrap: wrap; gap: var(--s-8); align-items: center; }
.partner-logos img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.82; transition: opacity var(--t-med); }
.partner-logos img:hover { opacity: 1; }
.partner-logos img.tall { height: 46px; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) * 1.5); border: 1px solid var(--line-2); padding: clamp(2rem, 1rem + 5vw, 5rem); }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(162, 112, 158, 0.45), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(147, 169, 242, 0.18), transparent 60%),
    var(--surface);
}
.cta-band .arc {
  position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
  border-radius: 50%; border: 2px solid transparent; border-left-color: var(--ice); border-top-color: rgba(195,210,255,0.5);
  z-index: -1; animation: spin 18s linear infinite; opacity: 0.7;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.cta-band h2 { font-size: var(--fs-2xl); font-variation-settings: "wdth" 85; max-width: 16ch; }
.cta-band p { color: #d4ccd9; margin-top: var(--s-5); max-width: 52ch; font-size: var(--fs-md); }
.cta-band .hero-ctas { margin-top: var(--s-6); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
#contact { background: radial-gradient(60% 50% at 85% 55%, rgba(162, 112, 158, 0.22), transparent 70%), radial-gradient(40% 40% at 10% 30%, rgba(195, 210, 255, 0.08), transparent 70%); }
.contact-grid { display: grid; gap: var(--s-8); }
.contact-info { display: grid; gap: var(--s-3); align-content: start; }
.info-card {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: center;
  padding: var(--s-4) var(--s-5); border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(162, 112, 158, 0.16), rgba(162, 112, 158, 0.04) 60%), var(--surface);
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
a.info-card:hover { border-color: var(--ice); transform: translateX(4px); box-shadow: 0 12px 32px -16px rgba(195, 210, 255, 0.45); }
.info-card .ic { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--ice); color: var(--on-ice); }
.info-card .ic svg { width: 20px; height: 20px; }
.info-card .mono { color: var(--muted); display: block; font-size: 0.68rem; }
.info-card strong { font-weight: 600; font-size: var(--fs-md); overflow-wrap: anywhere; }
.info-card.is-wa { border-color: rgba(37, 211, 102, 0.45); background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(37, 211, 102, 0.04) 60%), var(--surface); }
.info-card.is-wa .ic { background: #25d366; color: #0b2b17; }
a.info-card.is-wa:hover { border-color: #25d366; box-shadow: 0 12px 32px -16px rgba(37, 211, 102, 0.55); }

.form { display: grid; gap: var(--s-5); padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); border: 1px solid rgba(195, 210, 255, 0.28); border-radius: calc(var(--radius) * 1.3); background: linear-gradient(180deg, rgba(195, 210, 255, 0.07), transparent 40%), var(--surface); box-shadow: 0 30px 80px -40px rgba(162, 112, 158, 0.6); }
.form-row { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field label .req { color: var(--ice); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line-2); font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23aca3b3' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(195, 210, 255, 0.15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field .hint { font-size: var(--fs-xs); color: var(--dim); }
.field .error { font-size: var(--fs-sm); color: var(--err); display: none; }
.field .error.show { display: block; }

.file-drop {
  position: relative; display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4);
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg); transition: border-color var(--t-fast), background-color var(--t-fast);
}
.file-drop:hover, .file-drop.is-drag { border-color: var(--ice); background: rgba(195,210,255,0.04); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.file-drop .ic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ice); }
.file-drop .ic svg { width: 20px; height: 20px; }
.file-drop .txt { font-size: var(--fs-sm); color: var(--muted); }
.file-drop .txt strong { color: var(--text); font-weight: 500; display: block; overflow-wrap: anywhere; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.form-foot small { color: var(--dim); max-width: 40ch; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin2 0.7s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: block; }
.btn[aria-busy="true"] .arrow { display: none; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.form-status { display: none; padding: var(--s-4) var(--s-5); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.form-status.ok { display: block; background: rgba(143, 227, 180, 0.08); border: 1px solid rgba(143, 227, 180, 0.4); color: var(--ok); }
.form-status.bad { display: block; background: rgba(255, 154, 154, 0.08); border: 1px solid rgba(255, 154, 154, 0.4); color: var(--err); }
.form-status a { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-9) calc(var(--s-6) + 72px); background: var(--bg-2); position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: var(--s-7); }
.footer-brand img { width: 190px; }
.footer-brand p { margin-top: var(--s-5); color: var(--muted); max-width: 40ch; }
.footer-col h4 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-bottom: var(--s-4); }
.footer-col ul { display: grid; gap: var(--s-1); }
.footer-col a, .footer-col li { color: var(--muted); display: inline-flex; min-height: 36px; align-items: center; transition: color var(--t-fast); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); color: var(--dim); font-size: var(--fs-sm); }
.footer-word {
  font-size: clamp(3.5rem, 1rem + 13vw, 15rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.05em; font-variation-settings: "wdth" 70;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 228, 242, 0.12); margin-top: var(--s-8); white-space: nowrap; user-select: none;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-float);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #0b2b17; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transform: translateY(120px); transition: transform 0.6s var(--ease-out);
}
.wa-float.is-visible { transform: none; }
.wa-float svg { width: 28px; height: 28px; }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is present)
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .spec-strip { grid-template-columns: repeat(4, 1fr); }
  .spec { border-bottom: 0; padding: var(--s-5) var(--s-5) 0 0; }
  .spec + .spec { padding-left: var(--s-5); border-left: 1px solid var(--line); }
  .spec:nth-child(odd) { border-right: 0; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-drawing { right: 2%; top: 14%; width: min(46vw, 640px); opacity: 0.9; }
  .scroll-cue { display: flex; }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-9); }
  .spec-wrap { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-8); }
  .tab-media { position: sticky; top: 110px; }
  .process-steps { grid-template-columns: repeat(5, 1fr); gap: var(--s-5); }
  .process-rail { left: 22px; right: 0; top: 21px; bottom: auto; width: auto; height: 1px; }
  .process-rail span { transform: scaleX(var(--p, 0)); transform-origin: left; }
  .step { grid-template-columns: 1fr; gap: var(--s-5); }
  .why-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: var(--s-9); }
  .ind-grid { grid-template-columns: repeat(4, 1fr); }
  .ind { aspect-ratio: 3 / 4; }
  .partners { grid-template-columns: 220px 1fr; }
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-9); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-actions .btn { display: inline-flex; }
  .brand img { width: 170px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc { min-height: 300px; padding: var(--s-7) var(--s-6); }
}

@media (max-width: 380px) {
  .lang a { min-width: 32px; }
  .brand img { width: 128px; }
}

@media (hover: none) {
  .svc::before { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion — render final states, no movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js .hero h1 .line > span, .js .hero .fade-up { transform: none; opacity: 1; }
  .js .hero-drawing .draw { stroke-dashoffset: 0; }
  .js .hero-drawing .draw.path, .hero-drawing text { opacity: 1; }
  .hero-drawing .tool { display: none; }
  .hero-media img { transform: none; }
  .marquee-track { animation: none; }
  .js .statement .w { color: var(--text); }
  .cta-band .arc { animation: none; }
}
