/* ============================================================
   MEDIA FALCON — design tokens
   Language shared with elevon.tr: industrial-editorial,
   Archivo display, mono micro-labels, hairline grid.
   Brand accent: falcon amber.
   ============================================================ */

:root,
:root[data-theme="dark"] {
  --bg: #0b0d11;
  --bg-2: #10131a;
  --bg-3: #151a23;
  --fg: #f3efe6;
  --fg-2: #a8a294;
  --fg-3: #7d786d;
  --line: rgba(243, 239, 230, 0.14);
  --line-2: rgba(243, 239, 230, 0.07);
  --line-3: rgba(243, 239, 230, 0.30);
  --accent: #cf1d37;
  --accent-deep: #a51529;
  --accent-ink: #e0405a;
  --accent-soft: rgba(207, 29, 55, 0.12);
  --glow: rgba(207, 29, 55, 0.10);
  --scrim: rgba(11, 13, 17, 0.45);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
  --display: "Archivo", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 3.4vw, 56px);
  --bar-h: 64px;
  --container: 1440px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg: #f3efe6;
  --bg-2: #faf7f0;
  --bg-3: #ece7dc;
  --fg: #0b0d11;
  --fg-2: #4f4a43;
  --fg-3: #6e695f;
  --line: rgba(11, 13, 17, 0.14);
  --line-2: rgba(11, 13, 17, 0.07);
  --line-3: rgba(11, 13, 17, 0.30);
  --accent: #cf1d37;
  --accent-deep: #a51529;
  --accent-ink: #b5182c;
  --accent-soft: rgba(207, 29, 55, 0.10);
  --glow: rgba(207, 29, 55, 0.14);
  --scrim: rgba(11, 13, 17, 0.45);
  --shadow: 0 30px 80px -30px rgba(11, 13, 17, 0.35);
}

/* ---------- reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 56px; /* fixed navigator */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-deep); color: #f3efe6; }

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

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

.skip {
  position: absolute;
  top: -48px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 8px; }

/* blueprint corner marks */
.cross {
  position: fixed;
  width: 13px;
  height: 13px;
  z-index: 90;
  pointer-events: none;
  opacity: .5;
}
.cross::before, .cross::after {
  content: "";
  position: absolute;
  background: var(--line-3);
}
.cross::before { left: 6px; top: 0; width: 1px; height: 13px; }
.cross::after { left: 0; top: 6px; width: 13px; height: 1px; }
.cross-tl { top: 14px; left: 14px; }
.cross-tr { top: 14px; right: 14px; }

/* ---------- top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--gutter);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  white-space: nowrap;
}
.brand-suffix { color: var(--fg-3); font-weight: 400; }

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font-family: "Syncopate", var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}

.brand-hl {
  background: var(--accent);
  color: #fff;
  padding: 2px 6px 3px;
  margin-left: -6px;
}

.bar-nav { display: flex; gap: 28px; }
.bar-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--fg-2);
  transition: color .25s var(--ease);
}
.bar-nav a:hover { color: var(--fg); }

.bar-right { display: flex; align-items: center; gap: 10px; }

/* ---------- pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.pill:active { transform: translateY(1px) scale(.98); }

.pill-solid { background: var(--fg); color: var(--bg); }
.pill-solid:hover { background: var(--accent); color: #f3efe6; }

.pill-ghost { border: 1px solid var(--line-3); color: var(--fg); }
.pill-ghost:hover { border-color: var(--fg); }

.pill-lg { font-size: 12px; padding: 15px 24px; }

.pill-ico { font-size: 12px; line-height: 1; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--bar-h);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  left: -180px;
  width: 780px;
  height: 780px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero-lines::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-2) 0,
    var(--line-2) 1px,
    transparent 1px,
    transparent calc(100% / 6)
  );
  border-right: 1px solid var(--line-2);
}

.hero-inner { position: relative; width: 100%; padding-block: 48px 72px; }

.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 96px);
  line-height: .96;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
.hsq {
  display: inline-block;
  width: .38em;
  height: .38em;
  margin-left: .18em;
  background: var(--accent);
}

.lead {
  max-width: 56ch;
  margin-top: 28px;
  font-size: 17px;
  color: var(--fg-2);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { color: var(--accent); }

.mecra-anim {
  width: 100%;
  max-width: 430px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.mecra-anim .scene :is(rect, circle, line, path) {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* boşluk payı (1 2) ve ±1.05 offset: gizli durumda dash sınırı path
     üzerine düşmez, round-cap "nokta" artefaktı oluşmaz */
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.05;
  animation: mecra-draw 19.2s cubic-bezier(.45, 0, .25, 1) infinite;
  animation-delay: calc(var(--sd) + var(--pd, 0s));
}

.mecra-anim .scene .f {
  stroke: none;
  fill: currentColor;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: mecra-fade 19.2s linear infinite;
  animation-delay: calc(var(--sd) + var(--pd, 0s));
}

.mecra-anim .scene-label {
  fill: var(--fg-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .3em;
  opacity: 0;
  animation: mecra-fade 19.2s linear infinite;
  animation-delay: var(--sd);
}

@keyframes mecra-draw {
  0%           { stroke-dashoffset: 1.05; }
  4.7%         { stroke-dashoffset: 0; }
  13.5%        { stroke-dashoffset: 0; }
  16.1%, 100%  { stroke-dashoffset: -1.05; }
}

@keyframes mecra-fade {
  0%, 1.5%     { opacity: 0; }
  5.2%         { opacity: 1; }
  13.5%        { opacity: 1; }
  15.8%, 100%  { opacity: 0; }
}

/* ---------- sections ---------- */

.section { border-top: 1px solid var(--line-2); padding-block: clamp(72px, 10vh, 128px); }

.sec-head { margin-bottom: clamp(40px, 6vh, 64px); }

.sec-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.01em;
  text-transform: uppercase;
  max-width: 22ch;
}

.sec-intro { max-width: 52ch; margin-top: 18px; color: var(--fg-2); }

/* ---------- services ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.svc {
  border: 1px solid var(--line);
  padding: 26px 26px 30px;
  background: var(--bg);
  transition: border-color .3s var(--ease), background .3s var(--ease),
              transform .3s var(--ease);
}
.svc:hover {
  border-color: var(--line-3);
  background: var(--bg-2);
  transform: translateY(-3px);
}

.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.svc-ico { width: 30px; height: 30px; color: var(--accent); }
.svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--fg-3);
}

.svc h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.svc p { font-size: 15px; color: var(--fg-2); }

/* ---------- mecralar ---------- */

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

.mecra {
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color .3s var(--ease);
}
.mecra:hover { border-color: var(--line-3); }

.mecra figure {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
}
.mecra img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.mecra:hover img { transform: scale(1.04); }

.mecra-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line-2);
}
.mecra-meta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.mecra-meta p { font-size: 14px; color: var(--fg-2); margin-top: 4px; }
.mecra-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--fg-3);
  transition: color .3s var(--ease);
}
.mecra:hover .mecra-num { color: var(--accent); }

/* ---------- yaklaşım ---------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.steps li { border-top: 1px solid var(--line-3); padding-top: 20px; }
.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.steps h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 10px;
}
.steps p { font-size: 14.5px; color: var(--fg-2); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: clamp(48px, 8vh, 80px);
  border-top: 1px solid var(--line-2);
  padding-top: 36px;
}
.principle h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.principle p { font-size: 15px; color: var(--fg-2); max-width: 34ch; }

/* ---------- footer / contact ---------- */

.footer { padding-bottom: 36px; }

.contact { padding-bottom: clamp(56px, 9vh, 96px); }

.contact h2 { max-width: none; font-size: clamp(38px, 5.6vw, 72px); }

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.contact-mail {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--fg-2);
  border-bottom: 1px solid var(--line-3);
  padding-bottom: 3px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-mail:hover { color: var(--fg); border-color: var(--fg); }

.contact-city {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--fg-3);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-2);
  padding-top: 26px;
}

.foot-nav { display: flex; gap: 22px; }
.foot-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-3);
  transition: color .25s var(--ease);
}
.foot-nav a:hover { color: var(--fg); }

.foot-copy {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--fg-3);
}

/* ---------- navigator ---------- */

.navigator {
  position: fixed;
  inset: auto 0 0 0;
  height: 56px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
}

.nav-label, .nav-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--fg-3);
}

.nav-btns { display: flex; gap: 10px; }
.nav-btns button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--fg);
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.nav-btns button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav-btns button:active { transform: scale(.94); }
.nav-btns button:disabled { opacity: .35; pointer-events: none; }

/* ---------- açılış ekranı ---------- */

.splash { display: none; }

html.js .splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  cursor: pointer;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}

html.js .splash.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.splash-lock { overflow: hidden; }

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.splash-art { height: 190px; display: grid; place-items: center; color: var(--accent); }
.splash-art .mecra-anim { width: 200px; max-width: none; }
.splash-art .scene-label { display: none; }

.splash-art .scene :is(rect, circle, line, path) {
  animation: splash-draw .55s cubic-bezier(.45, 0, .25, 1) both;
  animation-delay: calc(var(--sd) + var(--pd, 0s) * .25);
}
.splash-art .scene .f {
  animation: splash-fade-f .55s linear both;
  animation-delay: calc(var(--sd) + var(--pd, 0s) * .25);
}

@keyframes splash-draw {
  0%    { stroke-dashoffset: 1.05; }
  50%   { stroke-dashoffset: 0; }
  74%   { stroke-dashoffset: 0; }
  100%  { stroke-dashoffset: -1.05; }
}

@keyframes splash-fade-f {
  0%, 12%    { opacity: 0; }
  45%        { opacity: 1; }
  78%        { opacity: 1; }
  100%       { opacity: 0; }
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: "Syncopate", var(--mono);
  font-weight: 700;
  font-size: clamp(28px, 5.5vw, 50px);
  letter-spacing: .08em;
  line-height: 1.05;
  min-height: 2.6em;
}

.splash-line { display: block; min-height: 1.05em; }

.splash-hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  padding: 2px 10px 4px;
  margin-left: -10px;
}
.splash-hl.on {
  background-size: 100% 100%;
  color: #fff;
  transition: background-size .3s var(--ease), color .16s .12s;
}

.splash-caret {
  display: inline-block;
  width: .5em;
  height: .95em;
  margin-left: .12em;
  vertical-align: -.08em;
  background: var(--accent);
  animation: caret-blink .9s steps(2, jump-none) infinite;
}
.splash-caret.off { display: none; }

@keyframes caret-blink {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- reveal animations ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-out) var(--d, 0s),
                transform .7s var(--ease-out) var(--d, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .mecra-anim .scene { display: none; }
  .mecra-anim .scene:first-of-type { display: inline; }
  .mecra-anim .scene :is(rect, circle, line, path) { animation: none; stroke-dashoffset: 0; }
  .mecra-anim .scene .f, .mecra-anim .scene-label { animation: none; opacity: 1; }
  html.js .splash { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .bar-nav { display: none; }
  .hero-cols { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 8px; }
  .mecra-anim { max-width: 340px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { padding-bottom: 52px; }
  .brand-suffix { display: none; }
  .bar-right .pill-ghost .pill-txt { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding-block: 96px 72px; }
  .svc-grid, .mecra-grid, .steps, .principles { grid-template-columns: 1fr; }
  .navigator { height: 52px; }
  .nav-label { display: none; }
  .cross { display: none; }
}
