/* ==========================================================================
   Cevikol.bar — premium studio design system
   Palette: ink / graphite / bone / lime. Signature: the living "bar".
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #0e0e10;
  --graphite: #141416;
  --surface: #17171a;
  --surface-2: #1d1d21;
  --hair: rgba(237, 237, 232, 0.10);
  --hair-strong: rgba(237, 237, 232, 0.20);
  --bone: #ededE8;
  --muted: #9a9a92;
  --muted-2: #6f6f68;
  --accent: #c6f24e;
  --accent-ink: #0b0b0c;

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --shell: 1280px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(4.5rem, 11vw, 10rem);
  --radius: 18px;
  --radius-lg: 26px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

img, svg, iframe { display: block; max-width: 100%; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

/* --- utilities ----------------------------------------------------------- */

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

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-accent { color: var(--accent); }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --- ambient layers ------------------------------------------------------ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 242, 78, 0.6);
}

/* --- custom cursor ------------------------------------------------------- */

.cursor { position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; display: none; }
.cursor-dot, .cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--hair-strong);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
body.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: var(--accent);
  background: rgba(198, 242, 78, 0.08);
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* --- header -------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hair);
}
.site-header.is-hidden { transform: translateY(-102%); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--bone);
  min-width: 0;
}
.brand-logo {
  width: clamp(132px, 10vw, 178px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.brand-word { color: var(--bone); }
.brand-tld { color: var(--muted); }
.brand-bar {
  align-self: center;
  width: 16px;
  height: 8px;
  margin: 0 3px;
  border-radius: 3px;
  background: var(--accent);
  transform-origin: left center;
  animation: barPulse 3.4s var(--ease-in-out) infinite;
}
@keyframes barPulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.7); opacity: 0.75; }
}

.header-cta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 0.55rem 0;
  position: relative;
}
.header-cta span { position: relative; }
.header-cta::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.header-cta:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.menu-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 26px; }
.menu-toggle-bars i {
  height: 2px;
  background: var(--bone);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
}
.menu-toggle-bars i:first-child { width: 26px; }
.menu-toggle-bars i:last-child { width: 16px; }
.menu-toggle:hover .menu-toggle-bars i:last-child { width: 26px; }
body.menu-open .menu-toggle-bars i:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .menu-toggle-bars i:last-child { width: 26px; transform: translateY(-3px) rotate(-45deg); }

/* --- fullscreen menu ----------------------------------------------------- */

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  display: flex;
  align-items: flex-start;
  padding: clamp(6.2rem, 11vh, 8rem) 0 clamp(2rem, 5vw, 4rem);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
}
body.menu-open .site-menu { clip-path: inset(0 0 0 0); }
.site-menu[hidden] { display: none; }

.site-menu-inner { width: 100%; display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); }

.menu-nav { display: flex; flex-direction: column; }
.menu-link {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: clamp(0.5rem, 1.4vw, 1rem) 0;
  border-top: 1px solid var(--hair);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.8vw, 4.35rem);
  letter-spacing: 0;
  color: var(--bone);
  opacity: 0;
  transform: translateY(40px);
}
.menu-nav .menu-link:last-child { border-bottom: 1px solid var(--hair); }
body.menu-open .menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.12s + var(--i) * 0.06s);
}
.menu-link-no { font-family: var(--font-mono); font-size: 0.9rem; color: var(--muted-2); font-weight: 500; }
.menu-link-text { position: relative; transition: color 0.3s var(--ease), transform 0.4s var(--ease); }
.menu-link:hover .menu-link-text { color: var(--accent); transform: translateX(14px); }

.menu-foot { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 6rem); }
.menu-foot > div { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-foot .mono-label { margin-bottom: 0.4rem; }
.menu-foot a { color: var(--muted); transition: color 0.2s var(--ease); }
.menu-foot a:hover { color: var(--accent); }

/* --- buttons ------------------------------------------------------------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn span, .giant-link-text, .work-card-body h3, .page-title { overflow-wrap: anywhere; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary::before { background: var(--bone); }
.btn-primary:hover { color: var(--accent-ink); }

.btn-ghost { border-color: var(--hair-strong); color: var(--bone); }
.btn-ghost:hover { color: var(--accent-ink); }

/* --- text links ---------------------------------------------------------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--bone);
}
.text-link span:first-child { position: relative; }
.text-link span:first-child::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.text-link:hover span:first-child::after { transform: scaleX(1); transform-origin: left; }
.text-link:hover { color: var(--accent); }

/* --- eyebrow ------------------------------------------------------------- */

.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.eyebrow-bar { width: 30px; height: 3px; border-radius: 2px; background: var(--accent); }

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

.section { padding-block: var(--section-y); position: relative; z-index: 2; }
.section-band { background: var(--ink-2); border-block: 1px solid var(--hair); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head.split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-title { font-size: clamp(2rem, 5vw, 4rem); }
.section-lead { margin-top: 1.4rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: min(94svh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 86px;
  padding-bottom: clamp(2rem, 5vh, 3.4rem);
}
.hero-inner { display: flex; flex-direction: column; gap: clamp(1.2rem, 3vw, 2rem); }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-top .eyebrow { margin-bottom: 0; }

.hero-title {
  font-size: clamp(3.15rem, 8.8vw, 9.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 100%;
}
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  transform: translateY(110%);
}
.hero-word { display: inline-block; white-space: nowrap; }
.hero-em { font-style: italic; color: var(--accent); font-weight: 700; }

.hero-eq {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.8vw, 8px);
  height: clamp(32px, 5vw, 58px);
  opacity: 0.9;
}
.hero-eq i {
  flex: 1;
  min-width: 2px;
  height: 20%;
  background: linear-gradient(to top, var(--accent), rgba(198, 242, 78, 0.35));
  border-radius: 3px;
  transform-origin: bottom;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-lead { max-width: 40ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-cue-line { width: 1px; height: 42px; background: var(--hair-strong); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--accent); animation: cueDrop 1.8s var(--ease-in-out) infinite;
}
@keyframes cueDrop { 0% { top: -50%; } 60%, 100% { top: 100%; } }

/* --- sound control ------------------------------------------------------- */

.sound-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.72rem 0.92rem;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.72);
  color: var(--bone);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease), background 0.24s var(--ease);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(198, 242, 78, 0.62);
  color: var(--accent);
  outline: none;
}

.sound-toggle.is-on {
  border-color: rgba(198, 242, 78, 0.72);
  background: rgba(198, 242, 78, 0.12);
  color: var(--accent);
}

.sound-toggle-bars {
  width: 22px;
  height: 18px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.sound-toggle-bars i {
  width: 3px;
  height: 38%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.68;
  transform-origin: bottom;
}

.sound-toggle.is-on .sound-toggle-bars i {
  animation: soundBar 0.86s var(--ease-in-out) infinite alternate;
}
.sound-toggle.is-on .sound-toggle-bars i:nth-child(2) { animation-delay: -0.28s; }
.sound-toggle.is-on .sound-toggle-bars i:nth-child(3) { animation-delay: -0.48s; }
.sound-toggle.is-on .sound-toggle-bars i:nth-child(4) { animation-delay: -0.12s; }

@keyframes soundBar {
  from { height: 32%; opacity: 0.54; }
  to { height: 100%; opacity: 1; }
}

/* --- project assistant chat --------------------------------------------- */

.chat-launch {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 62px);
  z-index: 62;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.64rem;
  min-height: 46px;
  max-width: min(260px, calc(100vw - 2rem));
  padding: 0.62rem 0.9rem 0.62rem 0.64rem;
  border: 1px solid rgba(198, 242, 78, 0.36);
  border-radius: 999px;
  background: rgba(237, 237, 232, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.chat-launch:hover,
.chat-launch:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(198, 242, 78, 0.82);
  outline: none;
}

.chat-launch span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.chat-launch b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
}

.site-chat {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 84;
  width: min(430px, calc(100vw - 18px));
  height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 8%, rgba(198, 242, 78, 0.16), transparent 18rem),
    rgba(11, 11, 12, 0.96);
  color: var(--bone);
  border-left: 1px solid var(--hair-strong);
  box-shadow: -32px 0 80px rgba(0, 0, 0, 0.42);
  transform: translateX(106%);
  visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0.42s var(--ease);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

body.chat-open .site-chat {
  transform: translateX(0);
  visibility: visible;
}

.chat-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--hair);
}

.chat-head strong {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.chat-head small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.chat-head button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: var(--graphite);
  color: var(--bone);
  font-size: 1.35rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.chat-head button:hover,
.chat-head button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(8deg);
  outline: none;
}

.chat-modes {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid var(--hair);
  scrollbar-width: none;
}

.chat-modes::-webkit-scrollbar { display: none; }

.chat-modes button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  padding: 0.4rem 0.68rem;
  font: 800 0.74rem/1 var(--font-body);
  cursor: pointer;
}

.chat-modes button.is-active,
.chat-modes button:hover,
.chat-modes button:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  outline: none;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.1rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-strong) transparent;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.86rem 0.95rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--bone);
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--graphite);
  border: 1px solid var(--hair);
  border-top-left-radius: 6px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--accent-ink);
  border-top-right-radius: 6px;
  font-weight: 600;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.chat-suggestions button,
.chat-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--bone);
  padding: 0.55rem 0.78rem;
  font: 700 0.78rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chat-suggestions button:hover,
.chat-suggestions button:focus-visible,
.chat-wa:hover,
.chat-wa:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  outline: none;
}

.chat-wa {
  align-self: flex-start;
  margin-top: 0.1rem;
}

.chat-form {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  padding: 1rem;
  border-top: 1px solid var(--hair);
  background: rgba(18, 18, 20, 0.84);
}

.chat-file {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  align-self: center;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  cursor: pointer;
}

.chat-file input { display: none; }

.chat-file span {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  padding: 0.82rem 0.95rem;
  font: inherit;
}

.chat-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--graphite);
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 1rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-foot a,
.chat-foot button {
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.chat-foot a:hover,
.chat-foot button:hover { color: var(--accent); }

/* --- marquee ------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--hair);
  padding-block: 1.4rem;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: var(--ink);
}
.marquee-track { display: inline-flex; align-items: center; gap: 2rem; animation: marquee 38s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--bone);
}
.marquee-track .marquee-dot { color: var(--accent); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SERVICES LIST — signature "fill like a bar" interaction
   ========================================================================== */

.svc-list { border-top: 1px solid var(--hair); }

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.3rem, 3vw, 2.3rem) clamp(0.5rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--hair);
  color: var(--bone);
  isolation: isolate;
  transition: padding-left 0.45s var(--ease), color 0.4s var(--ease);
}
.svc-fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.svc-row:hover .svc-fill { transform: scaleX(1); }
.svc-row:hover { color: var(--accent-ink); padding-left: clamp(1.2rem, 3vw, 2.4rem); }
.svc-row:hover .svc-no, .svc-row:hover .svc-tag { color: rgba(11,11,12,0.65); }
.svc-row:hover .svc-summary { color: rgba(11,11,12,0.72); }

.svc-no { align-self: center; }
.svc-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1; }
.svc-tag { color: var(--muted); font-size: 0.95rem; text-align: right; }
.svc-arrow { font-size: 1.4rem; transition: transform 0.4s var(--ease); }
.svc-row:hover .svc-arrow { transform: translate(4px, -4px); }

.svc-row.big { grid-template-columns: auto 1fr auto; align-items: start; }
.svc-row.big .svc-main { display: flex; flex-direction: column; gap: 0.6rem; }
.svc-row.big .svc-no { padding-top: 0.5rem; }
.svc-row.big .svc-arrow { align-self: center; }
.svc-summary { color: var(--muted); font-size: 1rem; max-width: 60ch; font-family: var(--font-body); font-weight: 400; }

/* ==========================================================================
   WORK
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.related-work-section {
  border-block: 1px solid var(--hair);
  background: var(--ink-2);
}
.related-work-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.related-work-grid .work-card-body { padding: 1.1rem; }
.related-work-grid .work-card-body h3 { font-size: 1.22rem; }
.related-work-grid .work-card-body p { font-size: 0.92rem; }
.related-work-grid .work-card-actions { padding-inline: 1.1rem; }
.related-work-grid .work-logo-symbol { width: 34px; height: 34px; flex-basis: 34px; }
.related-work-grid .work-logo-text strong { max-width: 11ch; font-size: 0.88rem; }
.related-work-grid .work-card-brand > .mono-label { display: none; }
.portfolio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}
.portfolio-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--graphite);
  color: var(--muted);
  font-size: 0.92rem;
}
.portfolio-stats b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--graphite);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
}
.work-card:hover { border-color: var(--hair-strong); }
.work-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-card-main:hover .work-card-body h3 { color: var(--accent); }

.work-visual {
  position: relative;
  aspect-ratio: 60 / 41;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 15% 15%, hsl(var(--hue, 90) 26% 12%) 0%, var(--ink) 60%),
    var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.work-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.012);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease), opacity 0.7s var(--ease);
}
.work-card:hover .work-image { transform: scale(1.06); filter: saturate(1.12) contrast(1.04); }
.work-visual::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;
}
.work-live {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.5rem);
  left: clamp(1.2rem, 3vw, 2rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(11, 11, 12, 0.5);
  border: 1px solid var(--hair);
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.work-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: barPulse 2s ease-in-out infinite; }
.work-visual-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -0.05em;
  color: var(--bone);
  opacity: 0.08;
  position: relative;
  z-index: 2;
  text-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.work-visual-bars {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  z-index: 3;
}
.work-visual-bars i {
  width: 6px;
  background: var(--accent);
  border-radius: 3px;
  height: 30%;
}
.work-card:hover .work-visual-bars i { animation: eqDance 1.1s var(--ease-in-out) infinite; }
.work-visual-bars i:nth-child(2) { animation-delay: 0.1s; }
.work-visual-bars i:nth-child(3) { animation-delay: 0.2s; }
.work-visual-bars i:nth-child(4) { animation-delay: 0.3s; }
.work-visual-bars i:nth-child(5) { animation-delay: 0.4s; }
@keyframes eqDance { 0%, 100% { height: 25%; } 50% { height: 95%; } }

.work-visual-meta {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 237, 232, 0.74);
}

.work-card-body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.95rem; flex: 1; }
.work-card-top { display: flex; justify-content: space-between; gap: 0.7rem 1rem; flex-wrap: wrap; }
.work-card-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 0;
}
.work-card-brand > .mono-label {
  display: none;
}
.work-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}
.work-logo-symbol {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  isolation: isolate;
}
.work-logo-symbol::before,
.work-logo-symbol::after,
.work-logo-symbol i {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
}
.work-logo-symbol b {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}
.work-logo-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.work-logo-text strong {
  max-width: 22ch;
  color: var(--bone);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.05;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-logo-text small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.work-logo-0 .work-logo-symbol::before { border-radius: 50%; background: var(--brand-accent); transform: translateX(-15%); }
.work-logo-0 .work-logo-symbol::after { border-radius: 50%; background: var(--brand-accent-2); transform: translateX(18%); opacity: 0.86; }
.work-logo-1 .work-logo-symbol::before { border-radius: 12px; background: var(--brand-accent); transform: rotate(45deg) scale(0.78); }
.work-logo-1 .work-logo-symbol::after { inset: 12px; border-radius: 7px; background: var(--ink); transform: rotate(45deg); }
.work-logo-2 .work-logo-symbol i { inset: 6px 0 auto 0; height: 8px; border-radius: 999px; background: var(--brand-accent); box-shadow: 8px 12px 0 var(--brand-accent-2), 16px 24px 0 var(--bone); }
.work-logo-3 .work-logo-symbol::before { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); background: var(--brand-accent); }
.work-logo-3 .work-logo-symbol::after { inset: 12px; border-radius: 50%; background: var(--graphite); }
.work-logo-4 .work-logo-symbol::before { clip-path: polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%); background: var(--brand-accent); }
.work-logo-4 .work-logo-symbol::after { left: 10px; right: 10px; top: 19px; bottom: 17px; border-radius: 999px; background: var(--ink); }
.work-logo-5 .work-logo-symbol::before { border-radius: 50%; background: var(--bone); }
.work-logo-5 .work-logo-symbol::after { inset: 10px 8px; border-radius: 999px; border: 5px solid var(--brand-accent); border-inline-color: transparent; transform: rotate(-24deg); }
.work-logo-6 .work-logo-symbol::before { border-radius: 10px; background: var(--graphite); border: 3px solid var(--brand-accent); }
.work-logo-6 .work-logo-symbol::after { inset: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2)); }
.work-logo-7 .work-logo-symbol::before { clip-path: polygon(8% 74%,28% 18%,54% 18%,37% 50%,88% 50%,62% 78%); background: var(--brand-accent); }
.work-logo-7 .work-logo-symbol::after { top: 35px; left: 6px; right: 6px; height: 4px; border-radius: 999px; background: var(--bone); opacity: 0.85; }
.work-logo-8 .work-logo-symbol::before { inset: 7px 0; border-radius: 12px; background: var(--brand-accent); }
.work-logo-8 .work-logo-symbol::after { inset: 13px; border-radius: 50%; background: var(--ink); box-shadow: 0 -9px 0 -5px var(--bone), 0 9px 0 -5px var(--bone); }
.work-logo-9 .work-logo-symbol::before { border-radius: 50%; background: var(--graphite); border: 4px solid var(--brand-accent); }
.work-logo-9 .work-logo-symbol::after { left: 10px; right: 7px; top: 12px; height: 16px; border: 5px solid var(--brand-accent-2); border-left: 0; border-bottom: 0; transform: rotate(-35deg); }
.work-card-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); transition: color 0.2s var(--ease); }
.work-card-body p { color: var(--muted); }
.portfolio-grid .work-card-body { padding: clamp(1.15rem, 2vw, 1.55rem); }
.portfolio-grid .work-card-body h3 { font-size: clamp(1.25rem, 1.7vw, 1.62rem); line-height: 1.08; }
.portfolio-grid .work-card-body p { font-size: 0.96rem; }
.work-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 clamp(1.15rem, 2vw, 1.55rem) clamp(1.15rem, 2vw, 1.55rem);
}
.work-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.work-case-link { color: var(--muted); border: 1px solid var(--hair); }
.work-case-link:hover { color: var(--bone); border-color: var(--hair-strong); }
.work-demo-link { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.work-demo-link:hover { background: var(--bone); border-color: var(--bone); }

/* ==========================================================================
   WHY / VALUES
   ========================================================================== */

.why-grid, .value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.why-card, .value-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--graphite);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why-card:hover, .value-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.why-bar { display: block; width: 34px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 1.4rem; transition: width 0.4s var(--ease); }
.why-card:hover .why-bar, .value-card:hover .why-bar { width: 56px; }
.why-card h3, .value-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.why-card p, .value-card p { color: var(--muted); font-size: 0.98rem; }

.seo-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.seo-topic-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--bone);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.seo-topic-card:hover,
.seo-topic-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(198, 242, 78, 0.52);
  background: color-mix(in srgb, var(--graphite) 88%, var(--accent));
  outline: none;
}

.seo-topic-card .mono-label { color: var(--accent); }
.seo-topic-card h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.seo-topic-card p { color: var(--muted); font-size: 0.96rem; }

/* ==========================================================================
   BLOG (/kaynaklar + makaleler)
   ========================================================================== */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.blog-card {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--graphite); border: 1px solid var(--hair); border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.blog-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.blog-cat { color: var(--accent); }
.blog-card h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.15; }
.blog-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.blog-more { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; color: var(--bone); display: inline-flex; align-items: center; gap: 0.4rem; }
.blog-card:hover .blog-more { color: var(--accent); }

.blog-pager {
  margin-top: clamp(1.6rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.blog-pager > div {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.blog-pager a,
.blog-pager-current,
.blog-pager-disabled,
.blog-pager-gap {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: var(--graphite);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
}

.blog-pager a:hover,
.blog-pager a:focus-visible {
  border-color: rgba(198, 242, 78, 0.58);
  color: var(--accent);
  outline: none;
}

.blog-pager-current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.blog-pager-disabled,
.blog-pager-gap {
  opacity: 0.46;
}

.article-page { padding-top: clamp(7rem, 12vw, 10rem); }
.article-wrap { max-width: 760px; margin-inline: auto; }
.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.back-link { color: var(--muted); transition: color 0.2s var(--ease); }
.back-link:hover { color: var(--accent); }
.article-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.article-lead { margin-top: 1.3rem; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--muted); line-height: 1.5; }

.prose { margin-top: 2.5rem; font-size: 1.08rem; line-height: 1.75; color: #d7d7d1; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2.4rem 0 0.9rem; color: var(--bone); letter-spacing: -0.01em; }
.prose p { margin-bottom: 1.3rem; }
.prose ul { margin: 0 0 1.4rem; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 14px; height: 3px; border-radius: 2px; background: var(--accent); }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.article-cta {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.article-cta .mono-label { display: block; margin-bottom: 0.5rem; }
.article-cta h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
}
.proc-step {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  position: relative;
}
.proc-step::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.proc-step.is-visible::before { width: 100%; }
.proc-no { display: block; margin-bottom: 1.4rem; color: var(--accent); }
.proc-step h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.proc-step p { color: var(--muted); font-size: 0.95rem; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testi-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-strong) transparent;
}
.testi-track::-webkit-scrollbar { height: 4px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--hair-strong); border-radius: 4px; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(90%, 480px);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.testi-card blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.testi-card blockquote::before { content: "“"; color: var(--accent); }
.testi-card blockquote::after { content: "”"; color: var(--accent); }
.testi-card figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.testi-card figcaption strong { font-weight: 600; }
.testi-card figcaption span { color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-shell { max-width: 900px; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 2.5vw, 1.8rem) 0;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 18px; height: 2px; background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item.is-open .faq-icon::after { transform: translateY(-50%) rotate(0); }
.faq-a { overflow: hidden; height: 0; transition: height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.6rem; color: var(--muted); max-width: 68ch; }

/* ==========================================================================
   PAGE HEROES (interior)
   ========================================================================== */

.page-hero { padding-top: clamp(9rem, 16vw, 13rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-title { font-size: clamp(2.6rem, 8vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; }
.page-lead { margin-top: clamp(1.2rem, 3vw, 2rem); color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 54ch; }

.service-hero .service-no { display: block; margin-bottom: 1.5rem; color: var(--accent); }

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.cap-list, .out-list { list-style: none; margin-top: 1.5rem; }
.cap-list li, .out-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: 1.1rem;
}
.cap-bar { width: 22px; height: 3px; border-radius: 2px; background: var(--accent); flex-shrink: 0; transition: width 0.4s var(--ease); }
.cap-list li:hover .cap-bar { width: 40px; }
.out-list .check { color: var(--accent); font-weight: 700; }

.next-service { border-top: 1px solid var(--hair); padding-block: clamp(3rem, 7vw, 6rem); }
.next-service .mono-label { display: block; margin-bottom: 1.2rem; }

.giant-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s var(--ease);
}
.giant-link:hover { color: var(--accent); }
.giant-link-arrow { font-size: 0.6em; transition: transform 0.4s var(--ease); }
.giant-link:hover .giant-link-arrow { transform: translate(10px, -10px); }

/* --- work detail --------------------------------------------------------- */

.work-hero { position: relative; }
.work-hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.5rem; }
.work-hero .work-visual {
  max-width: var(--shell);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 60 / 41;
  border: 1px solid var(--hair);
}

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.case-block { padding-top: 1.5rem; border-top: 2px solid var(--accent); }
.case-block .mono-label { display: block; margin-bottom: 1rem; }
.case-block p { color: var(--bone); font-size: 1.1rem; }

.cta-strip { border-block: 1px solid var(--hair); background: var(--ink-2); }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-strip-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

/* --- live demo embed (browser frame) ------------------------------------ */

.demo-embed { margin-top: clamp(2rem, 5vw, 4rem); }
.demo-frame {
  border: 1px solid var(--hair-strong);
  border-radius: 16px;
  overflow: hidden;
  background: #0d0d0f;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9);
}
.demo-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
}
.demo-dots { display: inline-flex; gap: 6px; }
.demo-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair-strong); }
.demo-dots i:first-child { background: #ff5f57; }
.demo-dots i:nth-child(2) { background: #febc2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  max-width: 340px;
  margin-inline: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-open {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.demo-open:hover { opacity: 0.7; }
.demo-viewport {
  width: 100%;
  height: clamp(420px, 62vh, 720px);
  border: 0;
  background: #fff;
  display: block;
}
.demo-note { text-align: center; margin-top: 1rem; }

@media (max-width: 640px) {
  .demo-open { display: none; }
  .demo-viewport { height: 78vh; }
}

/* --- about --------------------------------------------------------------- */

.about-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.about-block { padding-top: 1.5rem; border-top: 1px solid var(--hair); }
.about-block .mono-label { display: block; margin-bottom: 1rem; }
.about-block p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--bone); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.4; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--muted-2); }
.field input, .field select, .field textarea {
  background: var(--graphite);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.field select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-submit { align-self: flex-start; margin-top: 0.5rem; }
.form-note { margin-top: 0.3rem; }
.form-error { color: #ff8b7a; font-size: 0.95rem; }
.form-success { padding: 1.2rem 1.4rem; border: 1px solid var(--accent); border-radius: 12px; background: rgba(198, 242, 78, 0.07); display: flex; flex-direction: column; gap: 0.3rem; }
.form-success strong { color: var(--accent); }
.form-success span { color: var(--muted); font-size: 0.95rem; }

.contact-aside { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card .mono-label { color: rgba(11,11,12,0.6); }
.contact-card strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.contact-arrow { position: absolute; top: 1.4rem; right: 1.5rem; font-size: 1.3rem; transition: transform 0.4s var(--ease); }
.contact-card:hover .contact-arrow { transform: translate(4px, -4px); }

.contact-lines { display: flex; flex-direction: column; }
.contact-lines > div { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); }
.contact-lines a:hover { color: var(--accent); }
.contact-social { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.5rem; }
.contact-social div { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.contact-social a { color: var(--muted); }
.contact-social a:hover { color: var(--accent); }

.map-section { padding-top: 0; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hair); filter: grayscale(1) contrast(1.05) brightness(0.75); transition: filter 0.5s var(--ease); }
.map-frame:hover { filter: grayscale(0.3) contrast(1) brightness(0.9); }
.map-frame iframe { width: 100%; height: clamp(280px, 40vw, 460px); border: 0; }

/* --- legal / 404 --------------------------------------------------------- */

.legal-content { max-width: 68ch; }
.legal-content h2 { font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.legal-content p { color: var(--muted); }
.legal-content a { color: var(--accent); }

.error-hero { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-mono); font-size: clamp(3rem, 10vw, 7rem); color: var(--accent); display: block; margin-bottom: 1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { border-top: 1px solid var(--hair); padding-block: clamp(3rem, 7vw, 6rem) 2rem; position: relative; z-index: 2; background: var(--ink); }
.footer-cta { padding-bottom: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--hair); }
.footer-cta .mono-label { display: block; margin-bottom: 1.5rem; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.footer-grid .mono-label { display: block; margin-bottom: 1.2rem; }
.footer-grid a { display: block; color: var(--muted); padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--accent); }
.footer-brand-col p { color: var(--muted); margin-top: 1.2rem; max-width: 34ch; }
.footer-brand-col .brand { font-size: 1.4rem; }
.footer-brand .brand-logo { width: clamp(170px, 16vw, 240px); max-height: 58px; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--hair); }
.footer-bottom a:hover { color: var(--accent); }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.hero-title, .page-title, .svc-name, .giant-link, .menu-link, .testi-card blockquote, .about-block p {
  letter-spacing: 0;
}

/* ==========================================================================
   AI PLATFORM (/ai-platform)
   ========================================================================== */

body.ai-light {
  --ink: #f6f6f0;
  --ink-2: #ffffff;
  --graphite: #ecece5;
  --surface: #ffffff;
  --surface-2: #e4e4dc;
  --hair: rgba(15, 15, 16, 0.12);
  --hair-strong: rgba(15, 15, 16, 0.22);
  --bone: #111113;
  --muted: #5f6059;
  --muted-2: #818278;
  --accent: #9bd02d;
  --accent-ink: #0b0b0c;
}

.ai-platform {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: 92px clamp(0.75rem, 2vw, 1.4rem) clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 42%, transparent), transparent 34%),
    var(--ink);
}

.ai-shell {
  width: min(1680px, 100%);
  min-height: calc(100svh - 118px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(236px, 286px) minmax(0, 1fr) minmax(286px, 348px);
  border: 1px solid var(--hair-strong);
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 76%, #000);
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.36);
}

.ai-sidebar,
.ai-main,
.ai-inspector {
  min-width: 0;
  min-height: 0;
}

.ai-sidebar,
.ai-inspector {
  background: color-mix(in srgb, var(--surface) 78%, var(--ink));
}

.ai-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--hair);
}

.ai-side-head,
.ai-topbar,
.ai-panel-head,
.ai-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ai-side-head strong,
.ai-title h1,
.ai-panel-head b {
  display: block;
  font-family: var(--font-display);
}

.ai-side-head strong { font-size: 1.24rem; }

.ai-icon-btn,
.ai-share-btn,
.ai-send,
.ai-memory-save,
.ai-history-head button,
.ai-agent-card,
.ai-tool-pill,
.ai-model-card,
.ai-prompt-chip,
.ai-folderbar button,
.ai-history-item {
  appearance: none;
  border: 1px solid var(--hair);
  font: inherit;
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ai-icon-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--graphite) 82%, transparent);
  font-weight: 800;
}

.ai-icon-btn:hover,
.ai-icon-btn:focus-visible,
.ai-share-btn:hover,
.ai-share-btn:focus-visible,
.ai-memory-save:hover,
.ai-memory-save:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.ai-search {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.ai-search input,
.ai-model-select,
.ai-composer textarea,
.ai-memory-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink);
  color: var(--bone);
  font: inherit;
}

.ai-search input,
.ai-model-select,
.ai-memory-input {
  padding: 0.76rem 0.85rem;
}

.ai-search input:focus,
.ai-model-select:focus,
.ai-composer textarea:focus,
.ai-memory-input:focus {
  border-color: var(--accent);
  outline: none;
}

.ai-folderbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-folderbar button,
.ai-prompt-chip {
  min-height: 34px;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.ai-folderbar button.is-active,
.ai-folderbar button:hover,
.ai-prompt-chip:hover,
.ai-prompt-chip:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  outline: none;
}

.ai-history-head {
  margin-top: 0.2rem;
}

.ai-history-head button {
  border: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-history-head button:hover { color: var(--accent); }

.ai-history {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.ai-history-item {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.74rem;
  border-radius: 14px;
  text-align: left;
  background: color-mix(in srgb, var(--ink) 68%, transparent);
}

.ai-history-item:hover,
.ai-history-item.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--ink));
}

.ai-history-item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.ai-history-item span {
  color: var(--muted);
  font-size: 0.75rem;
}

.ai-history-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.35rem;
}

.ai-history-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ai-history-actions button:hover { color: var(--accent); border-color: var(--accent); }

.ai-main {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 26%, transparent), transparent 30%),
    var(--ink);
}

.ai-topbar {
  min-height: 76px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hair);
}

.ai-menu-btn { display: none; }

.ai-title {
  min-width: 0;
  margin-right: auto;
}

.ai-title h1 {
  margin-top: 0.12rem;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  letter-spacing: 0;
}

.ai-model-select {
  max-width: 276px;
  min-height: 42px;
  background: color-mix(in srgb, var(--graphite) 72%, transparent);
}

.ai-share-btn,
.ai-memory-save {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 0.9rem;
  font-weight: 800;
}

.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  scroll-behavior: smooth;
}

.ai-message {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.ai-message.user {
  align-self: flex-end;
}

.ai-message.assistant {
  align-self: flex-start;
}

.ai-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 900;
}

.ai-message.user .ai-avatar {
  background: var(--bone);
  color: var(--ink);
}

.ai-bubble {
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 78%, var(--ink));
  color: var(--bone);
  font-size: 0.96rem;
  white-space: pre-wrap;
}

.ai-message.user .ai-bubble {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.ai-bubble p + p,
.ai-bubble ul,
.ai-bubble ol,
.ai-bubble pre,
.ai-bubble table,
.ai-bubble .ai-diagram,
.ai-bubble .ai-latex {
  margin-top: 0.78rem;
}

.ai-bubble ul,
.ai-bubble ol {
  padding-left: 1.1rem;
}

.ai-bubble code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1rem 0.28rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-message.user .ai-bubble code {
  background: rgba(11, 11, 12, 0.12);
}

.ai-bubble pre {
  overflow-x: auto;
  padding: 0.9rem;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #08080a;
  color: #ededE8;
}

.ai-bubble pre code {
  padding: 0;
  background: transparent;
}

.ai-bubble table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ai-bubble th,
.ai-bubble td {
  border: 1px solid var(--hair);
  padding: 0.52rem 0.6rem;
  text-align: left;
}

.ai-bubble th {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.ai-diagram,
.ai-latex,
.ai-tool-call {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0.8rem;
  background: color-mix(in srgb, var(--ink) 64%, transparent);
}

.ai-diagram {
  font-family: var(--font-mono);
  color: var(--accent);
  white-space: pre-wrap;
}

.ai-latex {
  font-family: var(--font-mono);
  color: var(--bone);
}

.ai-tool-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.ai-tool-call b { color: var(--accent); }

.ai-thinking {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiDot 0.85s var(--ease-in-out) infinite alternate;
}

.ai-thinking i:nth-child(2) { animation-delay: 0.12s; }
.ai-thinking i:nth-child(3) { animation-delay: 0.24s; }

@keyframes aiDot {
  from { opacity: 0.32; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-4px); }
}

.ai-composer-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--hair);
  background: color-mix(in srgb, var(--surface) 38%, var(--ink));
}

.ai-prompt-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.65rem;
}

.ai-prompt-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ai-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ai-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}

.ai-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 48px;
  width: 100%;
  max-width: 100%;
  align-items: end;
  gap: 0.7rem;
}

.ai-composer textarea {
  min-height: 48px;
  max-height: 190px;
  resize: none;
  padding: 0.78rem 0.9rem;
  line-height: 1.45;
}

.ai-send {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.ai-send:hover,
.ai-send:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.ai-inspector {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-left: 1px solid var(--hair);
  overflow-y: auto;
}

.ai-panel {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--hair);
}

.ai-panel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ai-model-grid,
.ai-agent-grid,
.ai-tool-grid {
  display: grid;
  gap: 0.52rem;
}

.ai-model-grid { grid-template-columns: 1fr 1fr; }
.ai-agent-grid,
.ai-tool-grid { grid-template-columns: 1fr; }

.ai-agent-card,
.ai-tool-pill,
.ai-model-card {
  min-width: 0;
  border-radius: 14px;
  padding: 0.7rem;
  text-align: left;
  background: color-mix(in srgb, var(--ink) 62%, transparent);
}

.ai-agent-card strong,
.ai-tool-pill strong,
.ai-model-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.ai-agent-card span,
.ai-tool-pill span,
.ai-model-card span {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.ai-agent-card.is-active,
.ai-model-card.is-active,
.ai-tool-pill.is-active,
.ai-agent-card:hover,
.ai-model-card:hover,
.ai-tool-pill:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, var(--ink));
}

.ai-memory-input {
  resize: vertical;
  min-height: 82px;
}

.ai-memory-save {
  align-self: flex-start;
}

.ai-memory-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  list-style: none;
}

.ai-memory-list li {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 0.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.ai-security-panel > div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.82rem;
}

.ai-security-panel b { color: var(--bone); }
.ai-security-panel span { color: var(--muted); }

.ai-mobile-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .ai-shell {
    grid-template-columns: minmax(230px, 282px) minmax(0, 1fr);
  }
  .ai-inspector {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid var(--hair);
    max-height: none;
  }
  .ai-panel {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .ai-security-panel > div {
    grid-template-columns: 1fr;
    gap: 0.16rem;
  }
}

@media (max-width: 920px) {
  .ai-platform {
    padding: 78px 0 0;
  }
  .ai-shell {
    min-height: calc(100svh - 78px);
    border-inline: 0;
    border-bottom: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
  }
  .ai-sidebar {
    position: fixed;
    z-index: 130;
    inset: 0 auto 0 0;
    width: min(320px, 86vw);
    transform: translateX(-104%);
    transition: transform 0.34s var(--ease);
    box-shadow: 26px 0 80px rgba(0,0,0,0.38);
  }
  body.ai-sidebar-open .ai-sidebar {
    transform: translateX(0);
  }
  .ai-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 126;
    background: rgba(0,0,0,0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s var(--ease);
  }
  body.ai-sidebar-open .ai-mobile-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .ai-menu-btn { display: grid; }
  .ai-inspector {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ai-topbar {
    grid-template-columns: auto 1fr auto;
    flex-wrap: wrap;
  }
  .ai-model-select {
    order: 5;
    max-width: none;
    width: 100%;
    flex: 1 0 100%;
  }
  .ai-share-btn {
    display: none;
  }
  .ai-messages {
    padding: 0.9rem;
  }
  .ai-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.55rem;
  }
  .ai-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.66rem;
  }
  .ai-bubble {
    padding: 0.82rem;
    border-radius: 14px;
  }
  .ai-composer-wrap {
    padding: 0.7rem;
  }
  .ai-composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
  }
  .ai-composer .ai-icon-btn,
  .ai-send {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  .ai-inspector {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TOOLS (/araclar) — gerçekten çalışan araçlar
   ========================================================================== */

.ai-tools-section { padding-top: 0; }
.ai-tool-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-items: start;
}

.ai-tool-picker,
.ai-workbench {
  min-width: 0;
  background: var(--graphite);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
}

.ai-tool-picker {
  position: sticky;
  top: 94px;
  padding: 1rem;
}

.ai-search-label {
  display: flex;
  flex-direction: column;
  gap: 0.44rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-search-label input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink);
  color: var(--bone);
  padding: 0.78rem 0.88rem;
  font: 400 0.95rem/1.2 var(--font-body);
}

.ai-search-label input:focus { outline: none; border-color: var(--accent); }

.ai-tool-list {
  display: grid;
  gap: 0.62rem;
  max-height: min(68vh, 760px);
  overflow-y: auto;
  padding-right: 0.22rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hair-strong) transparent;
}

.ai-tool-list button {
  width: 100%;
  min-width: 0;
  text-align: left;
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 70%, transparent);
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ai-tool-list button:hover,
.ai-tool-list button:focus-visible,
.ai-tool-list button.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--ink));
  outline: none;
}

.ai-tool-list button:hover { transform: translateY(-2px); }
.ai-tool-list span {
  width: max-content;
  max-width: 100%;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 900 0.62rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ai-tool-list b { font-size: 0.98rem; }
.ai-tool-list small { color: var(--muted); line-height: 1.35; }

.ai-workbench {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}

.ai-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hair);
}

.ai-workbench-head h2 {
  margin-top: 0.24rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.ai-workbench-head p {
  color: var(--muted);
  margin-top: 0.4rem;
  max-width: 68ch;
}

.ai-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.35rem 0.66rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 900 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-workbench label,
.ai-file-drop {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-workbench input,
.ai-workbench select,
.ai-workbench textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink);
  color: var(--bone);
  padding: 0.78rem 0.88rem;
  font: 400 0.95rem/1.5 var(--font-body);
}

.ai-workbench textarea { resize: vertical; }
.ai-workbench input:focus,
.ai-workbench select:focus,
.ai-workbench textarea:focus { outline: none; border-color: var(--accent); }

.ai-file-drop {
  border: 1px dashed var(--hair-strong);
  border-radius: 14px;
  padding: 0.9rem;
  cursor: pointer;
}

.ai-file-drop input { display: none; }
.ai-file-drop span { color: var(--muted-2); font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }

.ai-output-wrap {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: var(--ink);
}

.ai-output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.82rem 1rem;
  border-bottom: 1px solid var(--hair);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-output-head button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.ai-output-head button:hover { color: var(--accent); }

.ai-output {
  min-height: 280px;
  max-height: 540px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 1.1rem;
  color: var(--bone);
  font: 0.92rem/1.6 var(--font-mono);
}

.ai-extra {
  display: grid;
  gap: 1rem;
  padding: 0 1.1rem 1.1rem;
}

.ai-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.ai-swatches span {
  min-height: 76px;
  display: flex;
  align-items: flex-end;
  padding: 0.55rem;
  border-radius: 12px;
  color: #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

.ai-swatches b {
  padding: 0.24rem 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  font: 900 0.68rem/1 var(--font-mono);
}

.ai-gradient {
  min-height: 112px;
  border: 1px solid var(--hair);
  border-radius: 14px;
}

.ai-qr {
  width: 240px;
  max-width: 100%;
  border-radius: 16px;
  background: #fff;
  padding: 0.75rem;
}

.ai-svg-preview {
  width: 132px;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.tool-card {
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--graphite); border: 1px solid var(--hair); border-radius: var(--radius-lg);
}
.tool-head { display: flex; flex-direction: column; gap: 0.5rem; }
.tool-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.tool-desc { color: var(--muted); font-size: 0.95rem; }
.tool-body { display: flex; flex-direction: column; gap: 0.9rem; }
.tool-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.tool-card label { display: flex; flex-direction: column; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tool-card input, .tool-card select, .tool-card textarea {
  background: var(--ink); border: 1px solid var(--hair); border-radius: 10px;
  padding: 0.7rem 0.85rem; color: var(--bone); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}
.tool-card input:focus, .tool-card select:focus, .tool-card textarea:focus { outline: none; border-color: var(--accent); }
.tool-card textarea { resize: vertical; }
.tool-card select { appearance: none; cursor: pointer; }
.tool-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.3rem; }
.tool-actions .btn { padding: 0.75rem 1.3rem; font-size: 0.9rem; }

/* teklif aracı */
.tk-head, .tk-row { display: grid; grid-template-columns: 1fr 62px 90px 92px 28px; gap: 0.5rem; align-items: center; }
.tk-head { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 0 0.2rem; }
.tk-row { margin-top: 0.5rem; }
.tk-row input { padding: 0.55rem 0.6rem; font-size: 0.88rem; }
.tk-line { font-size: 0.85rem; text-align: right; color: var(--bone); font-variant-numeric: tabular-nums; }
.tk-del { background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }
.tk-del:hover { color: #ff8b7a; }
.tk-add-btn { align-self: flex-start; background: none; border: 1px dashed var(--hair-strong); color: var(--bone); padding: 0.55rem 1rem; border-radius: 99px; cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: border-color 0.25s var(--ease), color 0.25s; }
.tk-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.tk-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.tk-summary { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.1rem; background: var(--ink); border: 1px solid var(--hair); border-radius: 12px; }
.tk-summary > div { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 0.9rem; }
.tk-summary b { color: var(--bone); font-variant-numeric: tabular-nums; }
.tk-grand { border-top: 1px solid var(--hair); padding-top: 0.6rem; margin-top: 0.2rem; }
.tk-grand span { color: var(--bone); font-weight: 600; }
.tk-grand b { color: var(--accent); font-size: 1.35rem; font-family: var(--font-display); }

/* roas aracı */
.roas-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
.roas-grid > div { background: var(--ink); border: 1px solid var(--hair); border-radius: 12px; padding: 0.9rem 0.6rem; text-align: center; }
.roas-grid span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.roas-grid b { font-size: 1.15rem; color: var(--bone); font-variant-numeric: tabular-nums; }
.roas-grid > div:first-child b { color: var(--accent); }
.roas-verdict { padding: 0.9rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-align: center; border: 1px solid var(--hair); }
.roas-verdict.good { background: rgba(198,242,78,0.1); color: var(--accent); border-color: var(--accent); }
.roas-verdict.ok { background: rgba(245,200,80,0.08); color: #f0c94e; border-color: rgba(245,200,80,0.4); }
.roas-verdict.bad { background: rgba(255,139,122,0.08); color: #ff8b7a; border-color: rgba(255,139,122,0.4); }

/* kurye paneli */
.k-add-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: center; }
.k-add-row .btn { padding: 0.7rem 1.2rem; }
.k-counts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.k-counts span { flex: 1; min-width: 90px; background: var(--ink); border: 1px solid var(--hair); border-radius: 10px; padding: 0.6rem; text-align: center; font-size: 0.75rem; color: var(--muted); }
.k-counts b { display: block; font-size: 1.4rem; color: var(--accent); font-family: var(--font-display); }
.k-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 320px; overflow-y: auto; }
.k-order { display: grid; grid-template-columns: 1fr auto auto; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; background: var(--ink); border: 1px solid var(--hair); border-radius: 12px; border-left: 3px solid var(--muted-2); }
.k-order.stage-0 { border-left-color: #f0c94e; }
.k-order.stage-1 { border-left-color: #4e9bff; }
.k-order.stage-2 { border-left-color: var(--accent); }
.k-info { display: flex; flex-direction: column; }
.k-info b { color: var(--bone); }
.k-info span { color: var(--muted); font-size: 0.8rem; }
.k-badge { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.k-actions { display: flex; gap: 0.4rem; }
.k-actions button { background: none; border: 1px solid var(--hair); color: var(--bone); padding: 0.4rem 0.7rem; border-radius: 8px; cursor: pointer; font-size: 0.75rem; transition: border-color 0.2s, color 0.2s; }
.k-next:hover { border-color: var(--accent); color: var(--accent); }
.k-del:hover { border-color: #ff8b7a; color: #ff8b7a; }
.k-empty { color: var(--muted-2); text-align: center; padding: 1.5rem; }

.tool-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); z-index: 140; opacity: 0; pointer-events: none; padding: 0.75rem 1.3rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,0.6); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.tool-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* chat upgrades */
.chat-head small { display: block; margin-top: 0.16rem; color: var(--muted); font-size: 0.72rem; }
.chat-modes {
  display: flex; gap: 0.4rem; padding: 0.75rem 1rem; overflow-x: auto;
  border-bottom: 1px solid var(--hair); scrollbar-width: none;
}
.chat-modes::-webkit-scrollbar { display: none; }
.chat-modes button {
  flex: 0 0 auto; min-height: 32px; padding: 0.45rem 0.72rem; border-radius: 999px;
  border: 1px solid var(--hair); background: transparent; color: var(--muted);
  font-weight: 800; font-size: 0.72rem; cursor: pointer;
}
.chat-modes button.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chat-form { grid-template-columns: auto 1fr auto; }
.chat-file {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--hair); background: var(--ink); color: var(--bone); cursor: pointer;
}
.chat-file input { display: none; }
.chat-file span { font-size: 1.4rem; line-height: 1; }
.chat-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem; border-top: 1px solid var(--hair); color: var(--muted);
  font-size: 0.78rem;
}
.chat-foot a:hover, .chat-foot button:hover { color: var(--accent); }
.chat-foot button { border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }

/* WhatsApp AI service */
.wa-system-grid { display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.2fr; gap: clamp(1rem, 3vw, 2rem); align-items: stretch; }
.wa-phone, .wa-console, .wa-flow-card, .wa-stack-card {
  background: var(--graphite); border: 1px solid var(--hair); border-radius: var(--radius-lg);
}
.wa-phone { min-height: 520px; display: flex; flex-direction: column; overflow: hidden; box-shadow: inset 0 0 0 9px rgba(237,237,232,0.03); }
.wa-phone-top {
  display: flex; align-items: center; gap: 0.7rem; padding: 1rem; border-bottom: 1px solid var(--hair);
  background: rgba(237,237,232,0.04);
}
.wa-phone-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(198,242,78,0.12); }
.wa-phone-top strong { flex: 1; }
.wa-phone-top i { font-style: normal; color: var(--accent); font-size: 0.8rem; }
.wa-bubbles { flex: 1; display: flex; flex-direction: column; gap: 0.85rem; justify-content: flex-end; padding: 1rem; }
.wa-bubbles p { max-width: 86%; padding: 0.82rem 0.92rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.45; }
.wa-bubbles .from-user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-top-right-radius: 6px; font-weight: 700; }
.wa-bubbles .from-bot { align-self: flex-start; background: var(--ink); border: 1px solid var(--hair); border-top-left-radius: 6px; }
.wa-console { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.wa-console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wa-console-head strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.wa-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.wa-metrics div { padding: 0.9rem; border-radius: 14px; background: var(--ink); border: 1px solid var(--hair); }
.wa-metrics b { display: block; color: var(--accent); font-family: var(--font-display); font-size: 1.35rem; }
.wa-metrics span { color: var(--muted); font-size: 0.72rem; }
.wa-inbox { display: flex; flex-direction: column; gap: 0.65rem; }
.wa-inbox-row {
  display: grid; grid-template-columns: 88px 1fr auto auto; gap: 0.75rem; align-items: center;
  padding: 0.85rem 0.9rem; border-radius: 14px; background: var(--ink); border: 1px solid var(--hair);
}
.wa-inbox-row span, .wa-inbox-row b, .wa-inbox-row em {
  font-family: var(--font-mono); font-size: 0.68rem; font-style: normal; color: var(--muted);
}
.wa-inbox-row b { color: var(--accent); }
.wa-flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.85rem; margin-top: clamp(1.5rem, 4vw, 3rem); }
.wa-flow-card { padding: 1.1rem; min-height: 190px; }
.wa-flow-card h3, .wa-stack-card h3 { margin: 0.65rem 0 0.45rem; font-size: 1.1rem; }
.wa-flow-card p, .wa-stack-card p { color: var(--muted); font-size: 0.9rem; }
.wa-stack-card { padding: clamp(1.2rem, 2.5vw, 1.8rem); }

/* AI tools */
.tool-card-wide { grid-column: 1 / -1; }
.tool-chip-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tool-chip-cloud span {
  padding: 0.5rem 0.72rem; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--muted); font-size: 0.78rem; background: rgba(237,237,232,0.03);
}
.ai-tool-layout { display: grid; grid-template-columns: 340px 1fr; gap: clamp(1rem, 2vw, 1.6rem); align-items: start; }
.ai-tool-picker, .ai-workbench {
  background: var(--graphite); border: 1px solid var(--hair); border-radius: var(--radius-lg);
}
.ai-tool-picker { padding: 1rem; position: sticky; top: 92px; max-height: calc(100svh - 120px); display: flex; flex-direction: column; gap: 1rem; }
.ai-search-label { display: flex; flex-direction: column; gap: 0.45rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ai-search-label input, .ai-workbench input, .ai-workbench select, .ai-workbench textarea, .ai-file-drop {
  width: 100%; border: 1px solid var(--hair); background: var(--ink); color: var(--bone);
  border-radius: 12px; padding: 0.78rem 0.9rem; font: inherit;
}
.ai-tool-list { overflow: auto; display: flex; flex-direction: column; gap: 0.55rem; padding-right: 0.25rem; }
.ai-tool-list button {
  width: 100%; text-align: left; border: 1px solid var(--hair); border-radius: 14px; background: var(--ink);
  color: var(--bone); padding: 0.85rem; cursor: pointer; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ai-tool-list button:hover, .ai-tool-list button.is-active { border-color: var(--accent); transform: translateY(-1px); }
.ai-tool-list span { display: block; color: var(--accent); font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; }
.ai-tool-list b { display: block; margin: 0.2rem 0; font-size: 0.95rem; }
.ai-tool-list small { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.ai-workbench { padding: clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.ai-workbench label { display: flex; flex-direction: column; gap: 0.45rem; color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ai-workbench-head { display: flex; justify-content: space-between; gap: 1rem; }
.ai-workbench-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ai-workbench-head p { color: var(--muted); max-width: 62ch; }
.ai-live { align-self: flex-start; border: 1px solid rgba(198,242,78,0.45); color: var(--accent); border-radius: 999px; padding: 0.4rem 0.7rem; font-size: 0.75rem; font-weight: 800; }
.ai-file-drop input { display: none; }
.ai-file-drop span { margin-top: 0.25rem; color: var(--muted-2); text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.ai-output-wrap { border: 1px solid var(--hair); border-radius: 16px; background: var(--ink); overflow: hidden; }
.ai-output-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--hair); color: var(--muted); font-size: 0.8rem; }
.ai-output-head button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.ai-output { min-height: 300px; margin: 0; padding: 1rem; white-space: pre-wrap; color: var(--bone); font: 0.92rem/1.6 var(--font-mono); overflow: auto; }
.ai-extra { padding: 0 1rem 1rem; }
.ai-extra img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 0.6rem; }

@media (max-width: 900px) {
  .ai-tool-layout { grid-template-columns: 1fr; }
  .ai-tool-picker { position: relative; top: auto; }
  .ai-tool-list {
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ai-tool-list { grid-template-columns: 1fr; }
  .ai-workbench-head { flex-direction: column; align-items: flex-start; }
  .ai-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-output { min-height: 240px; font-size: 0.84rem; }
  .roas-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-2col, .tk-2col { grid-template-columns: 1fr; }
  .k-add-row { grid-template-columns: 1fr; }
  .tk-head { display: none; }
  .tk-row { grid-template-columns: 1fr 46px 72px; grid-auto-rows: auto; }
  .tk-row .tk-line { grid-column: 1 / 3; text-align: left; color: var(--accent); }
  .tk-row .tk-del { grid-column: 3; grid-row: 2; justify-self: end; }
  .k-order { grid-template-columns: 1fr auto; }
  .k-actions { grid-column: 1 / -1; }
}

@media print {
  body.printing-teklif > *:not(#icerik) { display: none !important; }
  body.printing-teklif #icerik > section:not(:has(#t-teklif)) { display: none; }
  body.printing-teklif .tool-card:not(#t-teklif) { display: none; }
  body.printing-teklif { background: #fff; color: #000; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid, .related-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .seo-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .wa-system-grid { grid-template-columns: 1fr; }
  .wa-phone { min-height: 430px; }
  .wa-flow-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-height: 820px) and (min-width: 861px) {
  .site-menu { padding-top: 5.5rem; }
  .site-menu-inner { gap: 1.4rem; }
  .menu-link { font-size: clamp(2rem, 5.6vw, 3.75rem); padding: 0.45rem 0; }
  .menu-foot { gap: 3rem; }
}

@media (max-width: 860px) {
  .header-cta { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .service-grid, .about-split, .case-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section-head.split { align-items: flex-start; }
  .svc-tag { display: none; }
  .svc-row { grid-template-columns: auto 1fr auto; }
  .wa-metrics { grid-template-columns: repeat(2, 1fr); }
  .wa-inbox-row { grid-template-columns: 1fr; align-items: start; }
  .wa-flow-grid, .ai-tool-layout { grid-template-columns: 1fr; }
  .ai-tool-picker { position: static; max-height: none; }
}

@media (max-width: 640px) {
  .work-grid, .portfolio-grid, .related-work-grid { grid-template-columns: 1fr; }
  .why-grid, .value-grid, .process-list { grid-template-columns: 1fr; }
  .seo-topic-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .wa-flow-grid, .wa-metrics { grid-template-columns: 1fr; }
  .ai-workbench-head { flex-direction: column; }
  .hero { min-height: auto; justify-content: flex-start; padding-top: 86px; }
  .hero-inner { gap: 1rem; }
  .hero-top { align-items: flex-start; gap: 0.7rem; }
  .hero-loc { width: 100%; }
  .hero-title { font-size: clamp(2.65rem, 13.6vw, 4.35rem); line-height: 1; }
  .hero-line { overflow: visible; }
  .hero-line > span { max-width: 100%; }
  .hero-eq { height: clamp(26px, 9vw, 42px); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .hero-lead { max-width: 34ch; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .proc-step { border-right: none; }
  .work-hero .work-visual { aspect-ratio: 60 / 41; border-radius: 16px; }
  .work-visual-meta { align-items: flex-start; left: clamp(1.2rem, 3vw, 2rem); right: auto; }
  .work-card-brand { align-items: flex-start; }
  .work-card-brand > .mono-label { max-width: 34%; }
  .work-card-actions { flex-direction: column; }
  .work-card-actions a { width: 100%; }
}

@media (max-width: 480px) {
  .shell { padding-inline: 1rem; }
  .header-row { height: 66px; }
  .hero { padding-top: 84px; padding-bottom: 1.75rem; }
  .hero-title { font-size: clamp(2.45rem, 12.8vw, 3.65rem); }
  .hero-eq { gap: 3px; }
  .scroll-cue { display: none; }
  .brand { font-size: 1.12rem; }
  .brand-logo { width: 126px; max-height: 36px; }
  .menu-link { font-size: clamp(2rem, 14vw, 3.2rem); }
  .menu-foot { gap: 1.4rem; }
  .page-title { font-size: clamp(2.35rem, 12vw, 3.35rem); line-height: 1; }
  .section-title { font-size: clamp(1.85rem, 9vw, 2.75rem); }
  .sound-toggle { right: 0.85rem; bottom: 0.85rem; padding: 0.68rem 0.82rem; }
  .chat-launch { right: 0.85rem; bottom: 4.6rem; max-width: calc(100vw - 1.7rem); }
  .site-chat { left: 0; right: 0; width: auto; max-width: none; border-left: 0; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-form button { min-height: 44px; }
  .chat-file { width: 100%; border-radius: 999px; }
  .portfolio-stats span { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; }
  .giant-link { align-items: flex-start; flex-direction: column; }
  .demo-frame-bar { gap: 0.5rem; padding-inline: 0.75rem; }
  .demo-url { text-align: left; margin-inline: 0; }
  .work-logo-text strong { max-width: 13ch; }
  .work-card-brand > .mono-label { display: none; }
}

@media (max-width: 360px) {
  .shell { padding-inline: 0.9rem; }
  .brand-logo { width: 112px; }
  .menu-toggle { gap: 0.5rem; }
  .hero-title { font-size: clamp(2.25rem, 12.4vw, 3rem); }
  .btn { min-height: 50px; padding-inline: 1rem; }
  .sound-toggle-text { display: none; }
  .sound-toggle { width: 44px; padding-inline: 0; }
  .chat-launch b { display: none; }
  .chat-launch { width: 46px; padding: 0; }
}

/* ==========================================================================
   KULTIGIN AI STUDIO
   ========================================================================== */

.kstudio { position: relative; min-height: 100svh; padding: 9.5rem 0 5rem; overflow: hidden; background: #090a0b; }
.kstudio-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(rgba(191,255,50,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(191,255,50,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 10%, #000 0, transparent 68%); }
.kstudio-shell { position: relative; z-index: 1; }
.kstudio-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.kstudio-hero h1 { max-width: 980px; margin: 0.7rem 0 1rem; font-size: clamp(3rem, 7vw, 7.5rem); line-height: 0.9; letter-spacing: 0; }
.kstudio-hero p { max-width: 760px; color: var(--muted); font-size: clamp(1.03rem, 1.6vw, 1.28rem); line-height: 1.65; }
.kstudio-credit-card, .kstudio-left, .kstudio-stage, .kstudio-right, .kstudio-output { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 8px; }
.kstudio-credit-card { padding: 1.25rem; box-shadow: 0 22px 80px rgba(188,255,47,0.1); }
.kstudio-credit-card strong { display: block; margin: 0.35rem 0; color: var(--accent); font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.9; }
.kstudio-credit-card small { display: block; color: var(--muted); margin-bottom: 1rem; }
.kstudio-workspace { display: grid; grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.4fr) minmax(260px, 0.82fr); gap: 1rem; align-items: stretch; }
.kstudio-left, .kstudio-right { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.kstudio-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.kstudio-panel-head b { color: var(--text); }
.kstudio-panel-head button { border: 1px solid var(--line); background: #101113; color: var(--muted); border-radius: 999px; padding: 0.5rem 0.75rem; cursor: pointer; }
.kstudio label { display: grid; gap: 0.45rem; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.kstudio textarea, .kstudio input, .kstudio select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #070809; color: var(--text); padding: 0.85rem 0.9rem; font: inherit; outline: none; }
.kstudio textarea:focus, .kstudio input:focus, .kstudio select:focus { border-color: color-mix(in srgb, var(--accent) 65%, var(--line)); box-shadow: 0 0 0 3px rgba(191,255,50,0.08); }
.kstudio-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.kstudio-generate, .kstudio-proof button { width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: #0b0c0d; padding: 1rem 1.15rem; font-weight: 900; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.65rem; }
.kstudio-generate small { opacity: 0.72; font-weight: 800; }
.kstudio-generate[disabled], .kstudio-proof button[disabled] { opacity: 0.55; cursor: wait; }
.kstudio-note { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.kstudio-stage { display: grid; grid-template-rows: minmax(360px, 0.95fr) minmax(280px, 1fr); gap: 1rem; padding: 1rem; min-width: 0; }
.kstudio-monitor { min-height: 360px; border-radius: 8px; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(191,255,50,0.22), transparent 32%), linear-gradient(135deg, #10131a, #050505); position: relative; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.kstudio-monitor-top { position: absolute; top: 0.9rem; left: 0.9rem; right: 0.9rem; display: flex; gap: 0.5rem; flex-wrap: wrap; z-index: 2; }
.kstudio-monitor-top span { border: 1px solid var(--line); background: rgba(8,9,10,0.68); color: var(--muted); border-radius: 999px; padding: 0.45rem 0.65rem; font-size: 0.78rem; font-family: var(--mono); }
.kstudio-phone { width: min(44%, 210px); aspect-ratio: 9/16; border-radius: 30px; border: 8px solid #111; background: #050505; box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 80px rgba(191,255,50,0.1); padding: 0.7rem; transform: rotate(-4deg); }
.kstudio-phone-video { width: 100%; height: 100%; border-radius: 22px; display: grid; place-items: center; align-content: center; gap: 0.5rem; background: linear-gradient(160deg, rgba(191,255,50,0.95), #141516 45%, #050505); overflow: hidden; position: relative; }
.kstudio-phone-video i { position: absolute; width: 70%; height: 18%; border-radius: 999px; background: rgba(255,255,255,0.12); animation: kstudioFloat 5s ease-in-out infinite; }
.kstudio-phone-video i:nth-child(1) { top: 18%; left: -20%; }
.kstudio-phone-video i:nth-child(2) { top: 48%; right: -28%; animation-delay: -1.2s; }
.kstudio-phone-video i:nth-child(3) { bottom: 16%; left: 16%; animation-delay: -2.1s; }
.kstudio-phone-video strong { position: relative; z-index: 1; font-size: 1.2rem; letter-spacing: 0; }
.kstudio-phone-video span { position: relative; z-index: 1; font: 700 0.72rem var(--mono); color: rgba(255,255,255,0.74); }
.kstudio-output { min-width: 0; padding: 1rem; display: grid; grid-template-rows: auto 1fr; }
.kstudio-output pre { white-space: pre-wrap; word-break: break-word; overflow: auto; margin: 0; padding-top: 1rem; color: #e7e7e2; line-height: 1.58; font: 0.95rem/1.6 var(--mono); }
.kstudio-lock-list { display: grid; gap: 0.75rem; }
.kstudio-lock-list div { display: grid; grid-template-columns: 58px 1fr; gap: 0.75rem; align-items: center; padding: 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: #0b0c0d; }
.kstudio-lock-list b { color: var(--accent); font-size: 1.5rem; }
.kstudio-lock-list span, .kstudio-proof p { color: var(--muted); line-height: 1.45; }
.kstudio-proof { display: grid; gap: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.kstudio-proof h2 { margin: 0; font-size: 1.35rem; }
.kstudio-proof-message { min-height: 2.6rem; }
@keyframes kstudioFloat { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(8%, -10%, 0); } }

@media (max-width: 1180px) {
  .kstudio-workspace { grid-template-columns: 1fr 1fr; }
  .kstudio-stage { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  .kstudio { padding-top: 7.5rem; }
  .kstudio-hero, .kstudio-workspace { grid-template-columns: 1fr; }
  .kstudio-hero h1 { font-size: clamp(2.45rem, 13vw, 4.25rem); }
  .kstudio-fields { grid-template-columns: 1fr; }
  .kstudio-stage { grid-template-rows: auto auto; padding: 0.75rem; }
  .kstudio-monitor { min-height: 310px; }
  .kstudio-phone { width: min(56%, 190px); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], .hero-line > span, .menu-link { opacity: 1 !important; transform: none !important; }
  .cursor { display: none !important; }
  .marquee-track { animation: none; }
}
