/* Özikiler CNC Otomat — site stilleri
   Layout: koyu "atölye" hero bandı + açık çelik zemin üzerinde geniş, nefes alan bölümler; marka ahududusu tek vurgu */
:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --ink: #15171c;
  --muted: #586070;
  --line: #dcdfe6;
  --brand: #c23a66;
  --brand-deep: #9e2a51;
  --brand-soft: #f7e3ea;
  --band: #0e1016;
  --band-2: #161922;
  --band-ink: #eef0f4;
  --band-muted: #9aa1b1;
  --band-line: #272b36;
  --on-brand: #ffffff;
  --ok: #1f8a5b;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-logo: "Comfortaa", "Varela Round", Arial, sans-serif;
  --f-logo-sub: "Open Sans", "Segoe UI", Arial, sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1200px;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116; --surface: #171a21; --ink: #e9ebf0; --muted: #9ba2b2; --line: #272b35;
    --brand: #e2648d; --brand-deep: #f08aac; --brand-soft: #2c1820;
    --band: #08090d; --band-2: #12141b; --band-line: #232731;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1116; --surface: #171a21; --ink: #e9ebf0; --muted: #9ba2b2; --line: #272b35;
  --brand: #e2648d; --brand-deep: #f08aac; --brand-soft: #2c1820;
  --band: #08090d; --band-2: #12141b; --band-line: #232731;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band); }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 78%; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
/* Fotoğraflar sürüklenemez, seçilemez; mobilde uzun basınca kaydetme menüsü çıkmaz */
.stage img, .tile img, .lb img, .about-photo img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* Header */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--band) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--band-line); color: var(--band-ink); transition: padding .25s ease; }
.header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; transition: padding-block .25s ease; }
.header.compact .wrap { padding-block: 8px; }
.brand { position: relative; display: flex; align-items: center; gap: 0; height: 52px; padding-left: 86px; flex: none; text-decoration: none; color: var(--band-ink); transition: padding-left .25s; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark strong { font: 700 34px/1 var(--f-logo); letter-spacing: 0.03em; text-shadow: 0 2px 14px color-mix(in srgb, var(--brand) 35%, transparent); transition: font-size .25s; }
.wordmark span { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--f-logo-sub); letter-spacing: 0.36em; color: var(--band-muted); margin-top: 7px; transition: font-size .25s; }
.wordmark span::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand); flex: none; }
.header.compact .wordmark strong { font-size: 27px; }
.header.compact .wordmark span { font-size: 11px; margin-top: 5px; }
@media (max-width: 420px) {
  .wordmark strong, .header.compact .wordmark strong { font-size: 25px; }
  .wordmark span, .header.compact .wordmark span { font-size: 10px; letter-spacing: 0.28em; }
}
.brand .badge { display: block; position: absolute; top: -4px; left: 0; width: 70px; height: 89px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); transition: width .25s, height .25s, top .25s; }
.header.compact .brand { padding-left: 48px; }
.header.compact .brand .badge { top: -2px; width: 36px; height: 46px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--band-muted); padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--band-ink); background: var(--band-2); }
.nav a.active { color: var(--band-ink); }
.nav a.active::after { content: ""; display: block; height: 2px; background: var(--brand); margin-top: 4px; border-radius: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--f-body); padding: 13px 20px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.btn-ghost:hover { border-color: var(--band-muted); }
.btn svg { width: 16px; height: 16px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--band-line); color: var(--band-ink); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--band-line) 1px, transparent 1px), linear-gradient(90deg, var(--band-line) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 72px 56px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; font-stretch: 72%; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { color: var(--band-muted); font-size: 18px; max-width: 52ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.stage { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--band-2); border: 1px solid var(--band-line); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 6s ease; }
.stage img.on { opacity: 1; transform: scale(1); }
.stage .spec { position: absolute; left: 14px; bottom: 14px; background: color-mix(in srgb, var(--band) 80%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--band-line); border-radius: 8px; padding: 10px 14px; font: 500 12px/1.4 var(--f-mono); color: var(--band-muted); }
.stage .spec b { display: block; color: var(--band-ink); font: 700 15px/1.2 var(--f-display); font-stretch: 85%; letter-spacing: .01em; }
.dots { position: absolute; right: 14px; bottom: 18px; display: flex; gap: 6px; }
.dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: var(--band-line); cursor: pointer; }
.dots button.on { background: var(--brand); }

.facts { position: relative; z-index: 1; border-top: 1px solid var(--band-line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 0; }
.fact { padding: 26px 20px 28px 0; border-right: 1px solid var(--band-line); }
.fact + .fact { padding-left: 24px; }
.fact:last-child { border-right: 0; }
.fact .n { font: 800 40px/1 var(--f-display); font-stretch: 70%; font-variant-numeric: tabular-nums; }
.fact .n small { font-size: 20px; color: var(--band-muted); font-weight: 600; margin-left: 2px; }
.fact .l { color: var(--band-muted); font-size: 14px; margin-top: 6px; }

/* Sections */
section.block { padding-block: 96px; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 48px; }
.head h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin-top: 14px; }
.head p { color: var(--muted); max-width: 54ch; }

/* Sectors */
.sectors { background: var(--surface); border-block: 1px solid var(--line); }
.sectors .wrap { display: flex; align-items: center; gap: 32px; padding-block: 22px; overflow-x: auto; scrollbar-width: none; }
.sectors .label { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sectors ul { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sectors li { white-space: nowrap; font-weight: 500; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.svc { background: var(--surface); padding: 32px 26px 30px; display: flex; flex-direction: column; gap: 14px; transition: background .2s; }
.svc:hover { background: var(--bg); }
.svc svg { width: 36px; height: 36px; color: var(--brand); }
.svc h3 { font-size: 24px; font-weight: 700; }
.svc p { color: var(--muted); font-size: 15px; }
.svc .more { margin-top: auto; font: 500 13px/1 var(--f-mono); color: var(--brand); text-decoration: none; padding-top: 8px; }

/* Products */
.products { background: var(--band); color: var(--band-ink); }
.products .head p { color: var(--band-muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { font: 500 14px/1 var(--f-body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--band-line); background: transparent; color: var(--band-muted); cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--band-ink); border-color: var(--band-muted); }
.chip[aria-pressed="true"] { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.chip .c { font-family: var(--f-mono); font-size: 12px; opacity: .7; margin-left: 6px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--band-2); border: 1px solid var(--band-line); cursor: zoom-in; padding: 0; color: inherit; text-align: left; }
.tile.wide { grid-column: span 2; aspect-ratio: auto; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.06); }
.tile .cap { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, color-mix(in srgb, var(--band) 92%, transparent)); font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; align-items: end; gap: 8px; transform: translateY(6px); opacity: .0; transition: all .25s; }
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; transform: none; }
.tile .cap span { font: 500 11px/1 var(--f-mono); color: var(--band-muted); letter-spacing: .08em; text-transform: uppercase; }
.gallery-foot { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 20px 0 0; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 13px/1 var(--f-mono); color: var(--brand); display: block; margin-bottom: 18px; }
.steps li::after { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps li:first-child::after { background: linear-gradient(90deg, var(--brand), var(--line)); }
.steps h4 { font-size: 21px; font-weight: 700; margin: 26px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .tag { position: absolute; left: 14px; top: 14px; background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: 500 12px/1.3 var(--f-mono); }
.about-text h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin: 14px 0 20px; }
.about-text > p { color: var(--muted); margin-bottom: 16px; max-width: 60ch; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.mv div { border-top: 2px solid var(--brand); padding-top: 14px; }
.mv h4 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.mv p { color: var(--muted); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.value h4 { font-size: 21px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.value h4 svg { width: 22px; height: 22px; color: var(--brand); }
.value p { color: var(--muted); font-size: 15px; }
.value.quote p { font-size: 17px; color: var(--ink); }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.info { display: flex; flex-direction: column; gap: 22px; }
.info h2 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; margin-top: 14px; }
.info > p { color: var(--muted); }
.row { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-top: 1px solid var(--line); }
.row svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.row .k { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.row .v { font-weight: 500; user-select: all; }
.row .copy { margin-left: auto; font: 500 12px/1 var(--f-mono); background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 7px 10px; cursor: pointer; }
.row .copy:hover { color: var(--ink); border-color: var(--muted); }
form { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form h3 { grid-column: 1 / -1; font-size: 26px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.drop { border: 1.5px dashed var(--line); border-radius: 8px; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; background: var(--surface); cursor: pointer; }
.drop b { color: var(--brand); }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.form-note b { color: var(--ink); font-weight: 600; }
.form-msg.error { color: var(--brand); }
.form-foot { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--ok); }

/* Footer */
footer { background: var(--band); color: var(--band-muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px 28px; }
footer h5 { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--band-ink); }
footer .brand { height: auto; padding-left: 0; gap: 16px; margin-bottom: 18px; }
footer .brand .badge { position: static; width: 80px; height: 102px; }
.legal { border-top: 1px solid var(--band-line); }
.legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 18px; grid-template-columns: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, #05060a 94%, transparent); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) var(--gutter-r) max(16px, env(safe-area-inset-bottom, 0px)) var(--gutter-l); color: #eef0f4; }
.lb figure { margin: 0; max-width: min(1000px, 100%); display: flex; flex-direction: column; gap: 12px; }
.lb img { max-height: 76vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lb figcaption { display: flex; justify-content: space-between; font-size: 14px; gap: 12px; }
.lb figcaption span { font-family: var(--f-mono); color: #9aa1b1; }
.lb button { position: absolute; background: #161922; color: #eef0f4; border: 1px solid #272b36; border-radius: 999px; width: 46px; height: 46px; font-size: 22px; cursor: pointer; }
.lb .x { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb .prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; }
.lb .next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; }

/* Reveal: görünür durumdan başlar, yalnızca hafif kayma */
.reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s; }
.js .reveal.pending { transform: translateY(18px); opacity: .5; }

@media (max-width: 980px) {
  .hero > .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 48px 40px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { padding-left: 56px; padding-right: 0; }
  .steps li::before { position: absolute; left: 0; top: 4px; }
  .steps li::after { display: none; }
  .steps h4 { margin-top: 0; }
  .about-grid, .contact-grid, .head { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--band); border-bottom: 1px solid var(--band-line); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a.active::after { display: none; }
  .nav a { padding: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header .cta { display: none; }
  .nav .btn { margin-top: 8px; }
  .fact { padding: 20px 10px 20px 0; }
  .fact + .fact { padding-left: 12px; }
  .fact .n { font-size: 30px; }
  .fact .n small { font-size: 15px; }
  .fact .l { font-size: 13px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile .cap { opacity: 1; transform: none; }
  section.block { padding-block: 64px; }
  form { grid-template-columns: 1fr; padding: 22px; }
  .mv { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .nav .btn { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
