/* ==========================================================
   ATK Yapay Zeka Teknolojileri — "teknik şartname" teması
   ========================================================== */

:root {
  --paper: #F2EFE6;
  --paper-2: #E8E4D7;
  --paper-3: #DDD8C8;
  --ink: #15140F;
  --ink-2: #34332C;
  --muted: #6B685E;
  --line: rgba(21, 20, 15, .14);
  --line-strong: rgba(21, 20, 15, .32);
  --signal: #E5461C;
  --signal-deep: #B8330F;
  --night: #131310;
  --night-2: #1D1C18;
  --night-line: rgba(237, 234, 224, .13);
  --chalk: #EDEAE0;
  --chalk-muted: #A29E92;

  --f-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-serif: "Newsreader", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* kâğıt dokusu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .07 0 0 0 0 .05 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

::selection { background: var(--signal); color: var(--paper); }

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

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

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-family: var(--f-mono); font-size: 13px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-text small {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 3px;
  transition: color .2s, background-color .2s;
}
.nav a span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-right: 6px;
  vertical-align: 2px;
  transition: color .2s;
}
.nav a:hover { background: var(--paper-2); }
.nav a:hover span,
.nav a.active span { color: var(--signal); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 1.5px; background: var(--signal);
}
.nav .nav-cta {
  margin-left: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
}
.nav .nav-cta:hover { background: var(--signal); }
.nav-cta i { font-style: normal; display: inline-block; transition: transform .25s var(--ease); }
.nav-cta:hover i { transform: translateX(3px); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-lines { top: 50%; }
.menu-lines::before { content: ""; left: 0; right: 0; top: -6px; }
.menu-lines::after { content: ""; left: 0; right: 0; top: 6px; }
.menu-open .menu-lines { background: transparent; }
.menu-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border: 0;
  border-radius: 3px;
  font: 600 16px/1 var(--f-display);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s, transform .25s var(--ease);
}
.btn i { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--signal); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-link {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size .3s var(--ease), color .2s;
}
.btn-link:hover { color: var(--signal); background-image: linear-gradient(var(--signal), var(--signal)); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding-top: 26px;
  padding-bottom: clamp(56px, 8vw, 96px);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.hero::before {
  /* ızgarayı yumuşatan kâğıt katmanı */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 40%, color-mix(in srgb, var(--paper) 78%, transparent) 0%, color-mix(in srgb, var(--paper) 55%, transparent) 60%, transparent 100%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.docbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.docbar b { color: var(--ink); font-weight: 500; margin-left: 6px; }
.docbar .status { margin-left: auto; display: inline-flex; align-items: center; }
.docbar .status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2E9E5B;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(46, 158, 91, .5);
  animation: ping 2.4s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 158, 91, .45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(46, 158, 91, 0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--signal-deep);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 6.1rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 96;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  color: var(--signal);
  font-size: 1.06em;
  letter-spacing: -.02em;
  padding-right: .04em;
}

.lead {
  margin-top: 28px;
  max-width: 34ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

/* figür */
.figure {
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line-strong);
}
.figure-head,
.figure-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 9px 14px;
}
.figure-head { border-bottom: 1px solid var(--line-strong); }
.figure-head span:first-child { color: var(--ink); font-weight: 500; }
.figure-foot { border-top: 1px solid var(--line-strong); justify-content: flex-start; gap: 18px; }
.figure-foot span:last-child { margin-left: auto; }
.figure-body { position: relative; aspect-ratio: 5 / 4; }
.figure-body canvas { width: 100%; height: 100%; cursor: crosshair; }

.tick { position: absolute; width: 10px; height: 10px; border-color: var(--signal); border-style: solid; border-width: 0; }
.tick.tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tick.tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tick.bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tick.br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.lg { display: inline-block; vertical-align: middle; margin-right: 7px; }
.lg-node { width: 9px; height: 9px; border: 1.3px solid var(--ink); border-radius: 50%; }
.lg-edge { width: 16px; height: 1px; background: var(--ink); opacity: .5; }
.lg-signal { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* ölçüm şeridi */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.spec {
  padding: 20px 20px 22px;
  border-left: 1px solid var(--line);
}
.spec:first-child { border-left: 0; padding-left: 0; }
.spec dt {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
  min-height: 2.6em;
}
.spec dd {
  margin-top: 8px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Section scaffolding ---------------- */
.section { padding-block: clamp(72px, 10vw, 136px); }

.sec-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, .9fr);
  gap: 16px 40px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.sec-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--signal-deep);
  align-self: start;
  padding-top: .9em;
}
.sec-head h2 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .98;
}
.sec-intro {
  color: var(--ink-2);
  font-size: 17px;
  max-width: 44ch;
}

/* ---------------- Services ---------------- */
.services { counter-reset: s; }
.service {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, .9fr);
  grid-template-areas:
    "no title text"
    "no tags  text";
  gap: 6px 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color .35s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1.5px;
  width: 0;
  background: var(--signal);
  transition: width .5s var(--ease);
}
.service:hover::before { width: 100%; }
.svc-no {
  grid-area: no;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
  padding-top: 8px;
  transition: color .3s;
}
.service:hover .svc-no { color: var(--signal); }
.service h3 {
  grid-area: title;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
  transition: transform .4s var(--ease);
}
.service:hover h3 { transform: translateX(6px); }
.service p { grid-area: text; color: var(--ink-2); max-width: 46ch; }
.tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tags li {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-2);
}

/* ---------------- Products (dark) ---------------- */
.dark {
  background: var(--night);
  color: var(--chalk);
  position: relative;
}
.dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 60% at 85% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(80% 60% at 85% 0%, #000 0%, transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.dark > .wrap { position: relative; }
.dark .sec-head { border-bottom-color: var(--chalk); }
.dark .sec-num { color: var(--signal); }
.dark .sec-intro { color: var(--chalk-muted); }

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
.product {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 26px;
  min-height: 300px;
  background: var(--night);
  text-decoration: none;
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  transition: background-color .35s var(--ease);
}
.product::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.product:hover { background: var(--night-2); }
.product:hover::after { transform: scaleX(1); }
.product.feature { grid-column: span 2; }

.p-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--chalk-muted);
}
.p-arrow {
  font-size: 18px;
  color: var(--chalk);
  transition: transform .35s var(--ease), color .2s;
}
.product:hover .p-arrow { transform: translate(3px, -3px); color: var(--signal); }
.product h3 {
  margin-top: auto;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.product.feature h3 { font-size: clamp(2.6rem, 6vw, 5rem); }
.product p { color: var(--chalk-muted); max-width: 46ch; font-size: 16px; }
.p-metric {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--chalk-muted);
  padding-top: 14px;
  border-top: 1px solid var(--night-line);
}
.p-metric b { color: var(--chalk); font-weight: 500; }

/* ---------------- References ---------------- */
.case {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px 40px;
  padding: clamp(24px, 3vw, 36px) 0 clamp(36px, 4vw, 56px);
}
.case-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.case-label span:first-child { color: var(--signal-deep); }
.case-body h3 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  max-width: 18ch;
}
.case-body h3 em { color: var(--signal); }
.case-body > p { margin-top: 16px; color: var(--ink-2); max-width: 58ch; }
.case-links {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.case-links a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px 16px 0;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: color .2s;
}
.case-links li + li a { padding-left: 16px; border-left: 1px solid var(--line); }
.case-links a span { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; color: var(--muted); }
.case-links a:hover { color: var(--signal); }

.index-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 40px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.clients {
  columns: 2;
  column-gap: 48px;
  padding-left: 160px;
  counter-reset: c;
}
.clients li { break-inside: avoid; counter-increment: c; }
.clients a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
}
.clients a::before {
  content: counter(c, decimal-leading-zero);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  width: 24px;
  flex: none;
}
.clients b {
  font-weight: 500;
  font-size: 17px;
  white-space: nowrap;
  transition: color .2s;
}
.clients a span {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  gap: 8px;
}
.clients a span::before {
  /* nokta önderleri */
  content: "";
  flex: 1;
  min-width: 12px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-4px);
}
.clients a:hover b { color: var(--signal); }
.clients a:hover span { color: var(--ink); }

/* ---------------- Process ---------------- */
.process-sec { background: var(--paper-2); }
.process-sec .sec-head { border-bottom-color: var(--ink); }

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-strong);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 8px;
  border-right: 1px solid var(--line-strong);
  position: relative;
}
.step-no {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--ink);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s;
}
.step:hover .step-no { color: var(--signal); -webkit-text-stroke-color: var(--signal); }
.step h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-top: 18px;
}
.step p { color: var(--ink-2); font-size: 16px; }
.step-out {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--signal-deep);
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-copy h2 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 5.6vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .96;
}
.contact-copy h2 em { color: var(--signal); display: inline-block; }
.contact-copy .sec-intro { margin-top: 24px; }

.contact-info {
  margin-top: 40px;
  border-top: 1px solid var(--ink);
}
.contact-info > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info dt {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 4px;
}
.contact-info dd { font-weight: 500; overflow-wrap: anywhere; }
.contact-info a { text-decoration: none; border-bottom: 1.5px solid var(--signal); }
.contact-info a:hover { color: var(--signal); }

.form {
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 90%, white);
  padding: 0 24px 24px;
  box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line-strong);
}
.form-head {
  display: flex;
  justify-content: space-between;
  margin: 0 -24px 22px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.form-head span:first-child { color: var(--ink); font-weight: 500; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--ink-2);
}
.field label small { color: var(--muted); font-size: 11px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--f-display);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0;
  padding: 9px 2px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; border: 1.5px solid var(--line-strong); padding: 10px 12px; border-radius: 2px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--signal); background-color: rgba(229, 70, 28, .04); }
.field textarea::placeholder { color: var(--muted); opacity: .8; }
.field.invalid input,
.field.invalid textarea { border-color: var(--signal-deep); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
  margin: 4px 0 20px;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--signal); flex: none; }
.check a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 2px; }

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.form-status { font-family: var(--f-mono); font-size: 12.5px; color: var(--ink-2); }
.form-status.ok { color: #23804A; }
.form-status.err { color: var(--signal-deep); }

/* ---------------- Footer ---------------- */
.footer {
  background: var(--night);
  color: var(--chalk);
  padding-top: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 40px;
}
.foot-brand p { color: var(--chalk-muted); font-size: 16px; max-width: 32ch; }
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--chalk-muted);
  margin-bottom: 14px;
}
.footer ul li { margin-bottom: 8px; font-size: 15px; overflow-wrap: anywhere; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--signal); }

.wordmark {
  font-size: clamp(5rem, 22vw, 20rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 234, 224, .28);
  user-select: none;
  white-space: nowrap;
  margin-left: -.04em;
}
.wordmark span { -webkit-text-stroke: 0; color: var(--signal); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0 28px;
  margin-top: 18px;
  border-top: 1px solid var(--night-line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--chalk-muted);
}

/* ---------------- Motion ---------------- */
.js .load {
  opacity: 0;
  transform: translateY(24px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 120ms);
}
.js .hero-title .load { transform: translateY(105%); }
@keyframes rise { to { opacity: 1; transform: none; } }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .load, .js [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .docbar .status i { animation: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .nav a span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .figure { max-width: 640px; }
  .sec-head, .service, .case { grid-template-columns: 72px minmax(0, 1fr); }
  .sec-head .sec-intro { grid-column: 2; }
  .service {
    grid-template-areas:
      "no title"
      "no text"
      "no tags";
  }
  .service p { margin-top: 6px; }
  .index-head { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .clients { padding-left: 112px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
  .step { padding-top: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--line-strong); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:hover { background: transparent; color: var(--signal); }
  .nav a span { display: inline; }
  .nav a.active::after { display: none; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; padding: 15px; border-bottom: 0; border-radius: 3px; }
  .nav .nav-cta:hover { color: var(--paper); }

  .contact-grid { grid-template-columns: 1fr; }
  .clients { columns: 1; padding-left: 0; }
  .index-head { grid-template-columns: 1fr auto; }
  .index-head span:first-child { display: none; }
  .case-links { grid-template-columns: 1fr; }
  .case-links li + li a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .brand-text small { display: none; }
  .docbar { gap: 6px 18px; font-size: 10.5px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { padding: 18px 14px 20px; }
  .spec:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec-head, .service, .case { grid-template-columns: 1fr; }
  .sec-head .sec-intro { grid-column: auto; }
  .sec-num { padding-top: 0; }
  .service { grid-template-areas: "no" "title" "text" "tags"; gap: 6px; }
  .svc-no { padding-top: 0; }
  .products { grid-template-columns: 1fr; }
  .product.feature { grid-column: auto; }
  .product { min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 0 16px 20px; box-shadow: 6px 6px 0 -1px var(--paper-2), 6px 6px 0 0 var(--line-strong); }
  .form-head { margin: 0 -16px 20px; padding: 10px 16px; }
  .figure { box-shadow: 6px 6px 0 -1px var(--paper-2), 6px 6px 0 0 var(--line-strong); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .clients a span { font-size: 10.5px; }
}
