/* ==========================================================================
   Insert Dijital — site.css
   Design tokens live in :root. Change a colour/size here and it updates
   everywhere. JS animation timings live in assets/js/config.js.
   ========================================================================== */

:root {
  /* Colour */
  --bg: #eef0f3;
  --surface: #f7f8fa;
  --white: #ffffff;
  --surface-2: #ecedf6;
  --ink: #14171d;
  --text-2: #444656;
  --muted: #5d6370;
  --line: #d6dae0;
  --line-2: #c5c5d9;
  --accent: #2f45f2;
  --accent-deep: #0022da;
  --accent-tint: #dfe0ff;
  --accent-tint-2: #bcc2ff;
  --accent-soft: rgba(47, 69, 242, 0.14);
  --mint: #00c389;
  --mint-text: #006e4c;
  --danger: #ba1a1a;
  --danger-bg: #fff4f2;
  --dark: #07090f;
  --dark-text: #e9ecf1;
  --dark-muted: #8c93a1;
  --dark-line: rgba(233, 236, 241, 0.1);
  --dark-accent: #7083ff;

  /* Type */
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(2.25rem, 1.2rem + 5.4vw, 5.25rem);
  --fs-page-title: clamp(2.375rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.6vw, 2.625rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-mono: 0.75rem;
  --fs-madlib: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  --fs-preloader: clamp(2.75rem, 1rem + 8vw, 7rem);

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(16px, 3vw, 24px);
  --header-h: 80px;
  --section-y: clamp(72px, 8vw, 112px);
  --radius: 16px;
  --radius-card: 14px;
  --radius-lg: 24px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.28s;
  --caret-blink: 1.06s; /* classic text-editor blink period */
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  caret-color: var(--accent);
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

input[type="checkbox"],
input[type="radio"],
label,
summary,
select {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* JetBrains Mono turns "--" and "//" into ligatures; keep the characters literal. */
.eyebrow,
.mono-label,
.terminal,
.badge,
.hero__meta,
.hero__corner,
.svc__index,
.svc__subtitle,
.svc__tag,
.work-card__url,
.work-card__tag,
.step__num,
.crumbs,
.collab__tag,
.studio-cursor__tag {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

[tabindex="-1"]:focus-visible {
  outline: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

#top {
  position: absolute;
  top: 0;
}

/* Lenis smooth scrolling (same rules as lenis/dist/lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-bottom: var(--section-y);
}

.section > .container {
  border-top: 1px solid var(--line);
  padding-top: var(--section-y);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head__main {
  grid-column: span 7;
}

.section-head__intro {
  grid-column: 8 / -1;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px 24px;
}

.split__head {
  grid-column: span 5;
}

.split > .prose,
.split > .scope-list {
  grid-column: 7 / -1;
}

.kicker {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.prose p {
  color: var(--text-2);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.prose p + p {
  margin-top: 18px;
}

/* ---------- Small parts ---------- */

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mono-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dot--pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

.dot--muted {
  background: var(--line-2);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge--mint {
  background: rgba(0, 195, 137, 0.14);
  border: 1px solid rgba(0, 195, 137, 0.3);
  color: var(--mint-text);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: var(--accent);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.caret--brand {
  height: 24px;
  margin-left: 4px;
  vertical-align: middle;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap var(--dur) var(--ease-out);
}

.link-arrow:hover {
  gap: 12px;
}

/* Underline that draws left to right on hover/focus. */
.link-draw {
  padding-bottom: 2px;
  background: linear-gradient(var(--link-line, var(--accent)), var(--link-line, var(--accent))) no-repeat left bottom /
    0% 1px;
  transition: background-size var(--dur) var(--ease-out), color var(--dur);
}

.link-draw:hover,
.link-draw:focus-visible {
  background-size: 100% 1px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  border-radius: 999px;
  outline-offset: 4px;
}

.btn--sm {
  min-height: 38px;
  padding: 8px 20px;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20, 23, 29, 0.1);
}

.btn--ink:hover {
  background: var(--accent);
}

.btn--ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 23, 29, 0.05);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 8px rgba(47, 69, 242, 0.25);
}

.btn--accent:hover {
  background: var(--accent-deep);
}

.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: top 0.6s var(--ease-out);
}

/* The frosted glass sits on a layer behind the header: backdrop-filter on the header
   itself would make it the containing block of the fixed mobile menu, squeezing the
   menu into the 64 px header bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(238, 240, 243, 0.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 8px rgba(20, 23, 29, 0.04);
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

/* The "iD" logo mark before the wordmark (header and intro) */
.brand__mark {
  flex: none;
  width: auto;
  height: 34px;
  margin-right: 10px;
}

.site-nav__list {
  display: flex;
  gap: 4px;
}

.site-nav__link {
  display: block;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s, background-color 0.25s;
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link.is-active {
  background: var(--accent);
  color: #fff;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.presence {
  display: flex;
  padding-right: 4px;
}

.presence__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
}

.presence__avatar--s {
  margin-left: 0;
  background: var(--white);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-tint-2);
}

.presence__avatar--t {
  background: var(--accent);
  color: #fff;
}

.presence__avatar--k {
  background: var(--ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.menu-toggle__icon {
  position: relative;
  width: 14px;
  height: 8px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon::after {
  top: calc(100% - 1.5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  overflow-y: auto;
  padding-block: 16px 40px;
  background: var(--bg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 18px;
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.mobile-menu__index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
}

.mobile-menu__cta {
  margin-top: 28px;
}

/* ---------- Visitor cursor ("Siz") ---------- */

.vcursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  will-change: transform;
}

.vcursor.is-visible {
  opacity: 1;
}

.vcursor__beam {
  position: absolute;
  top: -12px;
  left: -1px;
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: var(--accent);
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}

.vcursor__beam::before,
.vcursor__beam::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: inherit;
}

.vcursor__beam::before {
  top: 0;
}

.vcursor__beam::after {
  bottom: 0;
}

.vcursor__tag {
  position: absolute;
  top: 10px;
  left: 9px;
  padding: 3px 8px 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.vcursor.is-dark .vcursor__beam {
  background: var(--dark-accent);
}

.vcursor.is-dark .vcursor__tag {
  background: var(--dark-accent);
  box-shadow: none;
  color: var(--dark);
}

html.has-vcursor,
html.has-vcursor body {
  cursor: none;
}

/* ---------- Preloader ---------- */

.preloader {
  display: none;
}

html.has-preloader {
  overflow: hidden; /* nothing scrolls behind the curtain */
}

.has-preloader .preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background-color: var(--bg);
  color: var(--ink);
  transition: background-color 0.65s var(--ease-out);
}

.preloader__grid,
.intro__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(214, 218, 224, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 218, 224, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.5s;
}

.preloader__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(223, 224, 255, 0.8), rgba(223, 224, 255, 0));
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
}

.preloader__stage {
  position: relative;
}

.preloader__word {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-preloader);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

/* The typed word. At the end it is "selected" (blue) and collapses into the caret. */
.preloader__text {
  display: inline-block;
  overflow: hidden;
  padding-block: 0.06em;
  border-radius: 0.08em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  vertical-align: bottom;
  transition: background-size 0.38s var(--ease-out), color 0.2s 0.08s, max-width 0.34s var(--ease-in-out);
}

.preloader.is-selecting .preloader__text {
  background-size: 100% 100%;
  color: #fff;
}

.preloader__caret,
.intro__siz-caret {
  flex: none;
  width: 0.06em;
  height: 0.82em;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(47, 69, 242, 0.55);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.preloader__caret {
  margin-left: 0.03em;
}

.preloader.is-typing .preloader__caret {
  animation: none; /* a real caret stays solid while you type */
}

.preloader__meta {
  position: absolute;
  top: calc(100% + 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  transition: opacity 0.3s;
}

.preloader__bar {
  position: relative;
  width: 120px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.preloader__bar i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.preloader__corner {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity 0.3s;
}

.preloader__corner--tl {
  top: 22px;
  left: var(--gutter);
}

.preloader__corner--tr {
  top: 22px;
  right: var(--gutter);
}

.preloader__corner--bl {
  bottom: 22px;
  left: var(--gutter);
}

.preloader__corner--br {
  right: var(--gutter);
  bottom: 22px;
}

.preloader__dots::after {
  content: "...";
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: loading-dots 1.2s steps(4, end) infinite;
}

.preloader.is-removing .preloader__meta,
.preloader.is-removing .preloader__corner {
  opacity: 0;
}

.preloader.is-leaving {
  background-color: transparent;
  pointer-events: none;
}

.preloader.is-leaving .preloader__grid,
.preloader.is-leaving .preloader__glow {
  opacity: 0;
}

.preloader.is-leaving .preloader__caret {
  opacity: 0;
  animation: none;
  transition: opacity 0.25s 0.4s;
}

/* ---------- Intro (scroll story) ---------- */

.intro {
  display: none;
}

.has-intro .intro {
  position: relative;
  display: block;
  height: 320vh; /* scroll length of the story on desktop */
  height: 320svh;
}

.intro__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.intro__grid {
  opacity: 0.8;
  transition: none; /* faded by intro.js while scrolling */
}

.intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* HTML labels that ride on the 3D scene (positioned every frame by intro.js) */
.intro__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* "Siz" sits above the page: at the end it flies onto the rising hero headline. */
.intro__float {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
}

.intro-handed .intro__float {
  visibility: hidden;
}

.intro__siz-caret {
  position: absolute;
  top: 0;
  left: 0;
  font-size: var(--fs-preloader); /* same caret as the preloader's */
  transform-origin: 50% 100%;
  will-change: transform;
}

.intro__siz-caret.is-moving {
  animation: none; /* solid while it moves, like a real caret */
}

.intro__siz-tag,
.intro__studio-tag,
.intro__chip {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.35s, scale 0.45s var(--ease-out);
}

.intro__siz-tag {
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint), 0 8px 18px rgba(47, 69, 242, 0.25);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.intro__studio-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(47, 69, 242, 0.25);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.intro__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(20, 23, 29, 0.08);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  scale: 0.85;
}

.intro__chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.intro__siz-tag.is-on,
.intro__studio-tag.is-on,
.intro__chip.is-on {
  opacity: 1;
  scale: 1;
}

.intro__overlay {
  position: absolute;
  inset: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px var(--gutter);
  pointer-events: none;
}

.intro__wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.intro__skip {
  position: absolute;
  top: 18px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: auto;
  transition: border-color 0.2s, color 0.2s;
}

.intro__skip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Story captions: typed and deleted like text in an editor */
.intro__story {
  position: absolute;
  bottom: clamp(32px, 7vh, 72px);
  left: var(--gutter);
  isolation: isolate;
  max-width: min(40rem, calc(100% - 2 * var(--gutter)));
}

/* A soft patch of page colour keeps the captions readable over the map. */
.intro__story::before {
  content: "";
  position: absolute;
  inset: -48px -72px -40px -48px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(238, 240, 243, 0.94) 55%, rgba(238, 240, 243, 0));
  pointer-events: none;
}

.intro__label {
  min-height: 1.4em;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  font-variant-ligatures: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro__line {
  min-height: 1.04em;
  font-size: clamp(1.875rem, 1rem + 3.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-wrap: balance;
}

.intro__line-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.8em;
  margin-left: 0.05em;
  vertical-align: -0.06em;
  border-radius: 2px;
  background: var(--accent);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.intro__sub {
  max-width: 34rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
  opacity: 0;
  translate: 0 6px;
  transition: opacity 0.4s, translate 0.5s var(--ease-out);
}

.intro__sub.is-on {
  opacity: 1;
  translate: 0 0;
}

.intro__progress {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(32px, 7vh, 72px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-variant-numeric: tabular-nums;
}

.intro__bars {
  display: flex;
  gap: 6px;
}

.intro__bars i {
  position: relative;
  width: 28px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.intro__bars b {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.intro__hint {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(32px, 7vh, 72px) + 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: 12px;
}

.mouse__wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel 1.6s var(--ease-in-out) infinite;
}

/* Hidden above the screen during the story. Moved with `top`, not transform:
   a transform would also trap the fixed mobile menu inside the header bar. */
.has-intro:not(.intro-done) .site-header {
  top: calc(-1 * var(--header-h) - 12px);
}

/* The hero rises over the end of the story. */
.has-intro .hero {
  position: relative;
  z-index: 1;
  margin-top: -45vh;
  margin-top: -45svh;
}

/* Until "Siz" lands on it, the hero's caret (and its tag) stays hidden;
   the visitor's own cursor drops its "Siz" tag so there is only one. */
.has-intro:not(.intro-handed) .hero__caret[data-label]::before {
  visibility: hidden;
}

.has-intro:not(.intro-handed) .hero__caret[data-label]::after,
.has-intro:not(.intro-handed) .vcursor__tag {
  opacity: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: var(--header-h);
}

.hero__frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 900px);
  padding-top: 40px;
  padding-bottom: clamp(48px, 6vw, 88px);
  overflow: hidden;
}

/* Blueprint grid — the "Figma canvas" */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(214, 218, 224, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 218, 224, 0.55) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 85% at 50% 45%, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -128px;
  left: 33%;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: linear-gradient(to top right, rgba(223, 224, 255, 0.45), rgba(47, 69, 242, 0.1));
  filter: blur(64px);
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  top: 14px;
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.hero__corner--tl {
  left: var(--gutter);
}

.hero__corner--tr {
  right: var(--gutter);
}

.bracket {
  width: 8px;
  height: 8px;
  border-color: rgba(93, 99, 112, 0.6);
  border-style: solid;
  border-width: 0;
}

.bracket--tl {
  border-left-width: 1px;
  border-top-width: 1px;
}

.bracket--tr {
  border-right-width: 1px;
  border-top-width: 1px;
}

.zoom-chip {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  font-weight: 600;
}

.hero__meta {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(214, 218, 224, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-end {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Big roaming "studio" cursor with its selection frame */
.studio-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
  will-change: transform;
}

.studio-cursor.is-visible {
  opacity: 1;
}

.studio-cursor__frame {
  position: absolute;
  top: -24px;
  left: -24px;
  z-index: -1;
  width: 208px;
  height: 112px;
  border: 1px dashed rgba(47, 69, 242, 0.6);
  border-radius: 8px;
  background: rgba(47, 69, 242, 0.04);
  animation: pulse 2.4s var(--ease-in-out) infinite;
}

.studio-cursor__frame-label {
  position: absolute;
  top: -10px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-cursor__handle {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  background: var(--accent);
}

.studio-cursor__arrow {
  width: 48px;
  height: 48px;
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 16px rgba(47, 69, 242, 0.35));
}

.studio-cursor__tag {
  position: absolute;
  top: 28px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(47, 69, 242, 0.25);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.studio-cursor__live {
  margin-left: 2px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.5625rem;
}

.ping {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Headline stage */
.hero__stage {
  position: relative;
  z-index: 10;
  margin-block: auto;
  padding-block: clamp(40px, 6vw, 56px);
}

.hero__title {
  max-width: 64rem;
  color: var(--ink);
  font-size: var(--fs-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

/* Each visual line is its own nowrap block, so inserting a word only reflows that line. */
.hero__line {
  display: block;
  white-space: nowrap;
}

.hero__title .word {
  transition: color 0.3s;
}

.hero__title .word.is-hovered,
.hero__title .slot.is-hovered .slot__inner {
  color: var(--accent);
}

.slot__inner {
  transition: color 0.3s;
}

.word--chip {
  display: inline-block;
  margin-block: 4px;
  /* Negative margin keeps the text aligned with the other lines; the highlight bleeds left. */
  margin-left: -0.2em;
  padding: 0.01em 0.2em 0.06em;
  border: 1px solid rgba(47, 69, 242, 0.2);
  border-radius: 0.17em;
  background: rgba(223, 224, 255, 0.7);
  box-shadow: 0 1px 2px rgba(20, 23, 29, 0.05);
  color: var(--accent-deep);
  transition: background-color 0.45s var(--ease-out), border-color 0.45s, color 0.45s, box-shadow 0.45s;
}

.motion .word--chip:not(.is-selected) {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

/* Words the collaborators type in. Collapsed until hero.js inserts them. */
.slot {
  display: inline-block;
  vertical-align: top;
  white-space: pre;
}

.slot__inner {
  display: inline-block;
  border-radius: 0.08em;
  white-space: pre;
}

.motion .slot:not(.is-inserted) {
  width: 0;
  clip-path: inset(-50% 0 -50% 0);
}

.motion .slot:not(.is-inserted) .slot__inner {
  opacity: 0;
}

/* The blinking caret after "ediyoruz." and its "siz" tag */
.hero__caret {
  position: relative;
  display: inline-block;
  width: 0.1em;
  height: 0.78em;
  margin-left: 0.08em;
  vertical-align: -0.04em;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(47, 69, 242, 0.6);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.hero__caret--sm {
  width: 0.07em;
  box-shadow: 0 0 10px rgba(47, 69, 242, 0.45);
}

.hero__caret[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  transform: translateY(-50%);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  animation: none;
}

/* The tag is part of the caret, but must not blink with it. */
.hero__caret[data-label] {
  animation: none;
  background: transparent;
  box-shadow: none;
}

.hero__caret[data-label]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(47, 69, 242, 0.6);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.vcursor-active .hero__caret[data-label]::after {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

/* Temporary caret blinking where a word is about to be inserted */
.type-caret {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 15;
  width: 3px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.type-caret.is-on {
  opacity: 1;
  animation: caret-blink 0.53s steps(1, end) infinite;
}

/* Collaborator cursors */
.collab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  will-change: transform;
}

.collab.is-visible,
.collab--static {
  opacity: 1;
}

.collab__body {
  display: flex;
  align-items: flex-start;
}

.collab.is-floating .collab__body,
.collab--static .collab__body {
  animation: float-1 6s ease-in-out infinite;
}

.collab--tasarim.is-floating .collab__body,
.collab--static.collab--tasarim .collab__body {
  animation-name: float-2;
  animation-duration: 7s;
}

.collab__arrow {
  flex: none;
  width: 16px;
  height: 16px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(20, 23, 29, 0.2));
  transform-origin: 17% 8%; /* rotate around the arrow tip */
  transition: transform 0.25s var(--ease-out);
}

.collab__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  margin-left: -2px;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(20, 23, 29, 0.1);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.collab__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.collab--strateji {
  color: var(--accent);
}

.collab--strateji .collab__tag {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--accent);
}

.collab--strateji .collab__dot {
  background: var(--accent);
}

.collab--tasarim {
  color: var(--accent);
}

.collab--tasarim .collab__tag {
  background: var(--accent);
  color: #fff;
}

.collab--tasarim .collab__dot {
  display: none;
}

.collab--kod {
  color: var(--ink);
}

.collab--kod .collab__tag {
  background: var(--ink);
  color: #fff;
}

.collab--kod .collab__dot {
  background: var(--mint);
}

.hero__handles {
  position: absolute;
  top: clamp(40px, 6vw, 56px);
  bottom: clamp(40px, 6vw, 56px);
  left: -16px;
  display: none;
  width: 1px;
  background: rgba(47, 69, 242, 0.3);
}

.hero__handles span {
  position: absolute;
  left: -3.5px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.hero__handles span:first-child {
  top: 0;
}

.hero__handles span:last-child {
  bottom: 0;
}

.hero__rail {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero__lead {
  grid-column: span 7;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero__actions {
  grid-column: span 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

/* ---------- Services ---------- */

.svc-list {
  border-bottom: 1px solid var(--line);
}

.svc {
  border-top: 1px solid var(--line);
  border-radius: 0;
  transition: background-color 0.4s var(--ease-out), border-radius 0.4s var(--ease-out), margin 0.4s var(--ease-out),
    border-color 0.4s;
}

.svc:hover {
  background: rgba(255, 255, 255, 0.5);
}

.svc[data-open="true"] {
  margin-block: 8px;
  border-radius: var(--radius);
  border-top-color: transparent;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(20, 23, 29, 0.04);
}

.svc[data-open="true"] + .svc {
  border-top-color: transparent;
}

.svc__heading {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
}

.svc__trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 16px;
  width: 100%;
  padding: 24px 16px;
  text-align: left;
  transition: padding 0.4s var(--ease-out);
}

.svc__trigger:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius);
}

.svc[data-open="true"] .svc__trigger {
  padding-inline: 24px;
}

.svc__index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  transition: color 0.3s;
}

.svc[data-open="true"] .svc__index {
  color: var(--accent);
  font-weight: 700;
}

.svc__name {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.3s;
}

.svc:not([data-open="true"]):hover .svc__name {
  color: var(--accent);
}

.svc__caret {
  flex: none;
  width: 2px;
  height: 1.1em;
  margin-left: 8px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
}

.svc[data-open="true"] .svc__caret {
  opacity: 1;
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.svc__subtitle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
  text-align: right;
  text-transform: uppercase;
}

.svc__toggle {
  position: relative;
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.svc__toggle::before,
.svc__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}

.svc__toggle::after {
  transform: rotate(90deg);
}

.svc[data-open="true"] .svc__toggle::after {
  transform: rotate(0deg);
}

/* Height animation without measuring: grid rows 0fr -> 1fr */
.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}

.svc[data-open="true"] .svc__panel {
  grid-template-rows: 1fr;
}

.svc__clip {
  min-height: 0;
  overflow: hidden;
}

.svc__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px 24px;
  margin-inline: 24px;
  padding-block: 16px 24px;
  border-top: 1px solid rgba(214, 218, 224, 0.6);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}

.svc[data-open="true"] .svc__body {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.svc__text {
  grid-column: span 5;
}

.svc__text p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.svc__features {
  grid-column: 6 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc__features li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}

.svc__features li:last-child {
  border-bottom: 0;
}

.svc__feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.svc__feature .dot {
  width: 6px;
  height: 6px;
}

.svc__tag {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  white-space: nowrap;
}

/* "Aç / Kapat" pill that follows the cursor over the rows (desktop) */
.hover-pill {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.hover-pill.is-visible {
  opacity: 1;
}

.hover-pill__arrow {
  width: 15px;
  height: 15px;
  fill: var(--ink);
  filter: drop-shadow(0 1px 1px rgba(20, 23, 29, 0.2));
}

.hover-pill__label {
  margin-top: 12px;
  margin-left: -2px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
}

.has-hover-pill .svc__trigger {
  cursor: none;
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 0.3s;
}

.work-card[data-live="true"]:hover,
.work-card:has(.work-card__link:focus-visible) {
  border-color: var(--accent);
}

.work-card:has(.work-card__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.work-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.work-card__dots {
  display: flex;
  gap: 6px;
}

.work-card__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.work-card__url {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__bar-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.work-card__view {
  position: relative;
  height: clamp(220px, 21vw, 300px);
  overflow: hidden;
  background: var(--white);
  transition: background-color 0.3s;
}

.work-card[data-live="true"]:hover .work-card__view {
  background: rgba(223, 224, 255, 0.25);
}

/* Tall screenshots scroll inside the frame on hover (distance set by ui.js). */
.work-card__shot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: translate3d(0, var(--shift, 0px), 0) scale(var(--zoom, 1));
  transform-origin: top center;
  transition: transform var(--shift-dur, 1.2s) cubic-bezier(0.45, 0, 0.25, 1);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
}

.work-card__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-card[data-live="false"] .work-card__tag {
  color: var(--muted);
}

.work-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.work-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.work-card__link:focus-visible {
  outline: none;
}

.work-card__desc {
  max-width: 40rem;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.work-card[data-live="false"] .work-card__view,
.work-card[data-live="false"] .work-card__title {
  opacity: 0.6;
}

/* Light UI mocks for projects without a screenshot */
.mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.mock__bar,
.mock__row {
  display: block;
  width: var(--w, 50%);
  border-radius: 4px;
  background: var(--line);
}

.mock__bar {
  height: 8px;
}

.mock__bar--accent {
  background: var(--accent);
}

.mock__bar--ink {
  background: var(--muted);
}

.mock__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock__stat {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 6px;
  background: var(--surface-2);
}

.mock__table {
  display: grid;
  gap: 10px;
}

.mock__row {
  height: 10px;
  background: rgba(214, 218, 224, 0.65);
  transition: background-color 0.4s, width 0.6s var(--ease-out);
}

.work-card:hover .mock__row--alert {
  background: rgba(47, 69, 242, 0.35);
}

.work-card:hover .mock__row:nth-child(3) {
  width: 88%;
}

.mock__note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  opacity: 0.5;
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock__head .mock__bar {
  height: 14px;
}

.mock__pill {
  width: 48px;
  height: 16px;
  border-radius: 999px;
  background: var(--line);
}

.mock__slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mock__slots span {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.625rem;
}

.mock__slots .is-booked {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.mock--schedule .mock__note {
  color: var(--muted);
}

/* ---------- Process ---------- */

.track {
  position: relative;
  padding-top: 24px;
}

.track__line {
  position: absolute;
  top: 31px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line);
}

.track__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 1));
  transform-origin: left center;
}

.track__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

.step {
  transition: opacity 0.5s var(--ease-out);
}

.step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.step__node {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.step__num {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg); /* interrupts the track line behind the number */
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  transition: color 0.4s;
}

.step__title {
  display: flex;
  align-items: center;
  min-height: 1.25em;
  margin-bottom: 8px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: color 0.4s;
}

.step__type {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
}

/* Hidden until the step activates, then revealed in character steps (ui.js typeReveal). */
.js.motion .step:not(.is-active) .step__type {
  max-width: 0;
}

.step__caret {
  flex: none;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0;
}

.step__text {
  max-width: 22rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

/* JS-driven states. Without JS every step is shown as active. */
.step,
.js .step.is-active {
  opacity: 1;
}

.step .step__node,
.js .step.is-active .step__node {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.step .step__num,
.js .step.is-active .step__num {
  color: var(--accent);
  font-weight: 700;
}

.js .step:not(.is-active) {
  opacity: 0.75;
}

.js .step:not(.is-active) .step__node {
  border-color: var(--line);
  background: var(--white);
  box-shadow: none;
}

.js .step:not(.is-active) .step__num {
  color: var(--muted);
  font-weight: 500;
}

.js .step:not(.is-active) .step__title {
  color: var(--muted);
}

.step.is-current .step__caret {
  opacity: 1;
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
}

.contact__intro {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.contact__title {
  margin-bottom: 24px;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact__channels {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.contact__label {
  color: var(--ink);
  font-weight: 600;
}

.contact__link {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.contact__link--accent {
  color: var(--accent);
  text-decoration-color: var(--line);
}

.contact__link:hover {
  text-decoration-color: currentColor;
}

.contact__note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact__card {
  grid-column: span 7;
  align-self: start;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.madlib {
  position: relative;
}

.madlib__sentence {
  color: var(--ink);
  font-size: var(--fs-madlib);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.95;
}

.madlib__optional {
  margin-top: 6px;
  color: var(--muted);
}

.blank {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-inline: 0.12em;
  vertical-align: baseline;
}

.blank__input {
  min-width: 3ch;
  max-width: 100%;
  padding: 0 0.15em;
  border: 0;
  border-bottom: 2px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  field-sizing: content;
  transition: border-color 0.25s;
}

.blank__input::placeholder {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
  opacity: 1;
}

.blank__input:focus {
  outline: none;
}

textarea.blank__input {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  resize: none;
  line-height: 1.5;
}

/* Underline draws left to right in blue when the blank is focused. */
.blank::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out), background-color 0.2s;
  pointer-events: none;
}

.blank:focus-within::after {
  transform: scaleX(1);
}

.blank.is-filled .blank__input {
  border-bottom-color: var(--ink);
}

.blank.is-invalid .blank__input {
  border-bottom-color: var(--danger);
}

.blank.is-invalid::after {
  background: var(--danger);
}

.blank--select {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  padding: 0 0.25em;
  border-bottom: 2px solid var(--line-2);
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  font-style: italic;
  line-height: 1.3;
  vertical-align: baseline;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.blank--select.is-filled {
  border-bottom-color: var(--accent);
  background: rgba(223, 224, 255, 0.45);
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.blank__chevron {
  width: 0.8em;
  height: 0.8em;
}

.pills {
  min-width: 0;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(214, 218, 224, 0.8);
}

.pills legend {
  float: left;
  width: 100%;
  margin-bottom: 12px;
  padding: 0;
  text-transform: uppercase;
}

.pills__list {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
}

.pill__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill__text {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pill:hover .pill__text {
  color: var(--ink);
}

.pill__input:checked + .pill__text {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(47, 69, 242, 0.3);
  color: #fff;
}

.pill__input:focus-visible + .pill__text {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pills.is-flash .pill__text {
  animation: pill-flash 0.9s var(--ease-out);
}

.consent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: var(--fs-sm);
}

.consent__box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.consent__box:checked {
  border-color: var(--accent);
  background: var(--accent) no-repeat center / 14px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2l2.6 2.6L11 4.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.consent__box:focus-visible {
  border-radius: 6px;
}

.consent.is-invalid .consent__box {
  border-color: var(--danger);
}

.consent__link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.consent__link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.form-errors {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(186, 26, 26, 0.22);
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: var(--fs-sm);
}

.form-errors[hidden] {
  display: none;
}

.form-errors li + li {
  margin-top: 4px;
}

.form-errors button {
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.form-errors button:hover {
  text-decoration-color: currentColor;
}

.submit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
}

.submit-bar__note {
  max-width: 20rem;
}

.form-success {
  padding-block: 8px;
}

.form-success[hidden] {
  display: none;
}

.form-success__text {
  font-size: var(--fs-madlib);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
}

.form-success__again {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Detail pages ---------- */

.page-hero {
  padding-top: var(--header-h);
}

.page-hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 28px;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-2);
}

.crumbs a {
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs [aria-current] {
  color: var(--ink);
}

.page-hero__body {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin-top: clamp(40px, 7vw, 88px);
}

.page-hero__title {
  margin-bottom: 20px;
  font-size: var(--fs-page-title);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-hero__lead {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-hero .collab--static {
  top: 34%;
  right: 10%;
  left: auto;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.area-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: var(--fs-mono);
}

.area-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.area-chips--lg li {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  transition: color 0.2s, gap 0.2s;
}

.back-link:hover {
  gap: 12px;
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}

.card:hover {
  border-color: var(--accent-tint-2);
  transform: translateY(-3px);
}

.card__num {
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 600;
}

.card__title {
  margin-top: 28px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.scope-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-block: 16px;
  border-bottom: 1px dashed var(--line);
  font-size: 1.0625rem;
}

.scope-list li:first-child {
  border-top: 1px dashed var(--line);
}

.scope-list__num {
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 600;
}

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 0.3s;
}

.link-card:hover {
  border-color: var(--accent);
}

.link-card__sub {
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  text-transform: uppercase;
}

.link-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.3s;
}

.link-card:hover .link-card__title {
  color: var(--accent);
}

.link-card__icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.link-card:hover .link-card__icon {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.case {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case__card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.case__card--solution {
  border-color: var(--accent-tint-2);
  background: var(--white);
}

.case__card .card__title {
  margin-top: 20px;
  font-size: var(--fs-h3);
}

.case__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 600;
}

.project-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 64px);
}

.project-hero__text {
  grid-column: span 6;
}

.project-hero__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.project-hero__media {
  grid-column: 7 / -1;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(20, 23, 29, 0.25);
}

.browser__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser img {
  width: 100%;
  height: auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.gallery__button {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--dark);
}

.gallery__button img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out);
}

.gallery__button:hover img {
  transform: scale(1.025);
}

.gallery__button:focus-visible {
  border-radius: 12px;
}

.gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.gallery__button:hover .gallery__zoom,
.gallery__button:focus-visible .gallery__zoom {
  opacity: 1;
  transform: none;
}

.gallery__caption {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.gallery__caption .mono-label {
  color: var(--accent);
}

.lightbox {
  width: min(1200px, 100% - 24px);
  max-width: none;
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--dark-text);
}

.lightbox::backdrop {
  background: rgba(7, 9, 15, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.lightbox__top,
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox__top .mono-label {
  color: var(--dark-muted);
}

.lightbox__nav {
  justify-content: flex-end;
  gap: 8px;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: var(--dark-text);
  transition: border-color 0.2s, color 0.2s;
}

.lightbox__btn:hover {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
}

.lightbox__figure img {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__figure figcaption {
  margin-top: 12px;
  color: var(--dark-muted);
  font-size: var(--fs-sm);
}

.cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.cta__title {
  margin-bottom: 28px;
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cta .collab--static {
  top: 22%;
  right: 8%;
  left: auto;
}

.section.cta > .container {
  border-top: 0;
  padding-top: 0;
}

.page-hero--404 .page-hero__frame {
  min-height: calc(100svh - var(--header-h) - 120px);
}

/* ---------- Footer ---------- */

.site-footer {
  --link-line: var(--dark-accent);
  position: relative;
  overflow: hidden;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: var(--dark-text);
  color-scheme: dark;
}

.site-footer ::selection {
  background: rgba(112, 131, 255, 0.35);
  color: var(--dark-text);
}

.site-footer :focus-visible {
  outline-color: var(--dark-accent);
}

.site-footer__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}

.site-footer.is-webgl .site-footer__canvas {
  opacity: 1;
}

.site-footer__glow {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 192px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(112, 131, 255, 0.4), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: 36px;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--dark-line);
}

.terminal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 1.5em;
  font-family: var(--mono);
  font-size: 0.875rem;
}

.terminal__prompt {
  color: var(--dark-accent);
}

.terminal__text {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
}

.js.motion .terminal__text:not(.is-typing):not(.is-typed) {
  max-width: 0;
}

.terminal__caret {
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  background: var(--mint);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

.site-footer__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: var(--fs-mono);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s var(--ease-in-out) infinite;
}

.clock {
  padding: 4px 12px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(233, 236, 241, 0.05);
  color: rgba(233, 236, 241, 0.75);
  font-family: var(--mono);
  font-size: var(--fs-mono);
}

.clock time {
  color: var(--dark-text);
  font-variant-numeric: tabular-nums;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
  padding-block: clamp(48px, 6vw, 64px);
  border-bottom: 1px solid var(--dark-line);
}

.site-footer__grid .mono-label {
  margin-bottom: 16px;
  color: var(--dark-muted);
  text-transform: uppercase;
}

.site-footer__lead {
  grid-column: span 4;
}

.site-footer__mark {
  display: block;
  width: auto;
  height: 40px;
  margin-bottom: 24px;
}

.site-footer__slogan {
  max-width: 14ch;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.site-footer__note {
  margin-top: 14px;
  max-width: 24rem;
  color: rgba(233, 236, 241, 0.75);
  font-size: var(--fs-sm);
}

.site-footer__col {
  grid-column: span 3;
}

.site-footer__col:last-child {
  grid-column: span 2;
}

.site-footer__col ul {
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
}

.site-footer__col a {
  transition: color 0.2s;
}

.site-footer__col a:hover {
  color: var(--accent-tint);
}

.site-footer__muted {
  color: var(--dark-muted);
}

/* Giant wordmark. Container query units make it span the container exactly. */
.wordmark {
  position: relative;
  container-type: inline-size;
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(16px, 2vw, 24px);
  user-select: none;
}

.wordmark__text {
  color: transparent;
  font-size: calc(100cqw / 5.95); /* "insert dijital" + caret ≈ 5.9em wide */
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(233, 236, 241, 0.28);
}

.wordmark__caret {
  display: inline-block;
  width: 0.32em;
  height: 0.56em;
  margin-left: 0.06em;
  background: var(--dark-accent);
  animation: caret-blink var(--caret-blink) steps(1, end) infinite;
}

/* With WebGL the particles draw the wordmark; the HTML version only holds the space. */
.site-footer.is-webgl .wordmark__text {
  -webkit-text-stroke-color: transparent;
}

.site-footer.is-webgl .wordmark__caret {
  visibility: hidden;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: var(--fs-mono);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer__legal-links a,
.site-footer__legal-links button {
  color: var(--dark-muted);
  transition: color 0.2s;
}

.site-footer__legal-links a:hover,
.site-footer__legal-links button:hover {
  color: var(--dark-text);
}

/* ---------- KVKK dialog ---------- */

.kvkk {
  width: min(760px, 100% - 32px);
  max-width: none;
  max-height: min(86vh, 920px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
}

.kvkk[open] {
  display: flex;
}

.kvkk::backdrop {
  background: rgba(20, 23, 29, 0.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.kvkk__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: inherit;
}

.kvkk__header {
  position: relative;
  padding: 26px 76px 20px 28px;
  border-bottom: 1px solid var(--line);
}

.kvkk__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.12;
}

.kvkk__intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.kvkk__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.2s, color 0.2s;
}

.kvkk__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.kvkk__close:focus-visible {
  border-radius: 50%;
}

.kvkk__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 28px;
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.kvkk__summary {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.kvkk__summary-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.kvkk__row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px dashed var(--line);
}

.kvkk__row dt {
  color: var(--muted);
}

.kvkk__row dd {
  margin: 0;
}

.kvkk__note {
  margin-top: 12px;
  color: var(--muted);
}

.kvkk__section {
  margin-top: 26px;
}

.kvkk__section p + p,
.kvkk__section p + ul {
  margin-top: 8px;
}

.kvkk__section-title {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.kvkk__section-title span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

.kvkk__list {
  padding-left: 18px;
  list-style: disc;
}

.kvkk__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.kvkk__text-close {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Keyframes ---------- */

@keyframes caret-blink {
  0%,
  49.9% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes ping {
  75%,
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

@keyframes float-1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -12px);
  }
}

@keyframes float-2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, 8px);
  }
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(9px);
  }
}

@keyframes loading-dots {
  to {
    width: 2.4em;
  }
}

@keyframes pill-flash {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 69, 242, 0.45);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(47, 69, 242, 0);
  }
}

/* ---------- Responsive ---------- */

@media (min-width: 1280px) {
  .hero__corner {
    display: flex;
  }

  .hero__handles {
    display: block;
  }
}

@media (max-width: 1100px) {
  .presence {
    display: none;
  }
}

@media (max-width: 1023.98px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__lead {
    grid-column: 1 / -1;
  }

  .site-footer__col {
    grid-column: span 4;
  }

  .site-footer__col:last-child {
    grid-column: span 4;
  }
}

@media (max-width: 899.98px) {
  :root {
    --header-h: 64px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand {
    font-size: 1.3125rem;
  }

  .brand__mark {
    height: 30px;
    margin-right: 8px;
  }

  .caret--brand {
    height: 21px;
  }

  .section-head__main,
  .section-head__intro,
  .split__head,
  .split > .prose,
  .split > .scope-list,
  .hero__lead,
  .hero__actions,
  .contact__intro,
  .contact__card,
  .project-hero__text,
  .project-hero__media {
    grid-column: 1 / -1;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero__meta-end .hero__doc {
    display: none;
  }

  .work-grid,
  .case,
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .track__line {
    display: none;
  }

  .track__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc__trigger {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 4px;
  }

  .svc[data-open="true"] .svc__trigger {
    padding-inline: 16px;
  }

  .svc__subtitle {
    grid-column: 2 / 3;
    grid-row: 2;
    text-align: left;
  }

  .svc__toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .svc__body {
    margin-inline: 16px;
  }

  .svc__text,
  .svc__features {
    grid-column: 1 / -1;
  }

  .contact__note {
    display: none;
  }

  .page-hero .collab--static,
  .cta .collab--static {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .site-header__cta {
    display: none;
  }

  .hero__frame {
    min-height: calc(100svh - var(--header-h));
    padding-top: 20px;
  }

  .hero__meta {
    font-size: 0.625rem;
  }

  .hero__meta .badge {
    display: none;
  }

  .hero__caret[data-label]::after {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
  }

  .vcursor-active .hero__caret[data-label]::after {
    transform: scale(0.8);
  }

  /* On phones the three collaborators carry the hero; the big studio cursor would crowd it. */
  .studio-cursor {
    display: none;
  }

  .collab__tag {
    font-size: 0.625rem;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .track__steps {
    gap: 32px 16px;
  }

  .site-footer__col,
  .site-footer__col:last-child {
    grid-column: 1 / -1;
  }

  .submit-bar .btn {
    width: 100%;
  }

  .kvkk__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .has-intro .intro {
    height: 240vh; /* shorter story on phones */
    height: 240svh;
  }

  .intro__progress,
  .intro__hint {
    display: none;
  }

  .intro__story {
    bottom: 28px;
  }

  .intro__line {
    font-size: clamp(1.625rem, 7.4vw, 2.25rem);
  }

  .intro__sub {
    font-size: 0.9375rem;
  }

  .preloader__corner--tr,
  .preloader__corner--bl {
    display: none;
  }

  .has-intro .hero {
    margin-top: -30vh;
    margin-top: -30svh;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
