/* ==========================================================================
   Hamza Ishtiaq — Portfolio
   Design tokens carried over from the original Framer design:
   Instrument Sans, #111 ink, #6c7179 muted, #7430f7 accent, soft #f7f7f7 cards,
   dark noise panels with 40px corners.
   ========================================================================== */

@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-bold.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #1f1f1f;
  --muted: #6c7179;
  --muted-2: #9a9ea5;
  --line: #ececee;
  --line-strong: #d1d3d6;
  --soft: #f7f7f7;
  --soft-2: #f1f1f3;
  --purple: #7430f7;
  --purple-soft: #f5f2ff;
  --green: #00c047;
  --green-soft: #eefff3;
  --yellow: #efce03;

  --dark: #111111;
  --dark-2: #191919;
  --dark-muted: #8b9098;
  --dark-line: rgba(255, 255, 255, 0.08);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --container: 1120px;
  --gutter: 40px;
  --header-h: 72px;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-btn:
    0.47px 0.47px 0.67px -0.2px rgba(0, 0, 0, 0.05),
    1.29px 1.29px 1.83px -0.4px rgba(0, 0, 0, 0.06),
    2.84px 2.84px 4.01px -0.6px rgba(0, 0, 0, 0.08),
    6.29px 6.29px 8.9px -0.8px rgba(0, 0, 0, 0.11),
    16px 16px 22.6px -1px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 1px 2px rgba(17, 17, 17, 0.04), 0 12px 32px -12px rgba(17, 17, 17, 0.12);
  --shadow-lift: 0 40px 80px -30px rgba(17, 17, 17, 0.28);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  :root { --gutter: 24px; --header-h: 64px; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(1280px + var(--gutter) * 2); }
.section { padding-block: clamp(88px, 10vw, 150px); }
.section--tight { padding-block: clamp(64px, 7vw, 100px); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 500; line-height: 1.06; letter-spacing: -0.045em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.042em;
  text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.tone { color: var(--muted); }
.on-dark .tone, .tone--dark { color: #7d828a; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--muted); letter-spacing: -0.02em; }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 16px; color: var(--muted); letter-spacing: -0.02em;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 480px; }
.label--plain::after { display: none; }
.on-dark .label { color: var(--dark-muted); }
.on-dark .label::after { background: var(--dark-line); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px;
  border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn:hover svg.i-arrow-up { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow-btn); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--light { background: var(--soft-2); color: var(--ink); }
.btn--light:hover { background: #e8e8eb; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: #f1f1f1; transform: translateY(-2px); }
.btn--outline-dark { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn--outline-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn--purple { background: var(--purple); color: #fff; box-shadow: 0 12px 30px -10px rgba(116, 48, 247, 0.6); }
.btn--purple:hover { background: #6420e6; transform: translateY(-2px); }
.btn--sm { --btn-h: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -8px rgba(17, 17, 17, 0.12);
  font-size: 15px; color: var(--muted);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2.6); opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 13px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.chip img { width: 16px; height: 16px; object-fit: contain; }
.chip--soft { background: var(--soft); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center;
  font-size: 20px; font-weight: 500; letter-spacing: -0.045em;
  transition: opacity 0.2s;
}
.brand:hover { opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 13px; border-radius: 10px;
  font-size: 15.5px; color: var(--ink); transition: background-color 0.2s;
}
.nav__link:hover { background: rgba(17, 17, 17, 0.05); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--ink);
}
.header-cta { margin-left: 10px; }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft-2);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: #fff; box-shadow: none; }
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 32px; font-weight: 500; letter-spacing: -0.045em;
}
.mobile-menu__links a svg { width: 22px; height: 22px; color: var(--muted-2); }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu__social { display: flex; gap: 18px; color: var(--muted); font-size: 15px; }

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible, .no-reveal [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero { position: relative; padding-top: var(--header-h); overflow: hidden; }
.hero__inner {
  position: relative;
  min-height: clamp(680px, 92vh, 880px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 64px;
}
.hero__glow {
  position: absolute; left: 50%; bottom: -12%; width: min(900px, 90vw); aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(116, 48, 247, 0.09), rgba(116, 48, 247, 0.03) 55%, transparent 72%);
}
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
.hero__portrait {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  width: clamp(360px, 31vw, 450px); margin-inline: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 64%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 64%, transparent 97%);
  pointer-events: none;
}
.hero__portrait img { width: 100%; }
.hero .display { font-size: clamp(34px, 3.4vw, 50px); }
.hero__text { position: relative; z-index: 2; max-width: 430px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero__side { position: relative; z-index: 2; max-width: 360px; display: flex; flex-direction: column; gap: 26px; }
.hero__side .lead { color: var(--ink-2); }
.hero h1 .tone { display: block; }

@media (max-width: 960px) {
  .hero__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 0; padding-top: 48px; padding-bottom: 0; gap: 28px; }
  .hero__text, .hero__side { max-width: 620px; }
  .hero__portrait { position: relative; left: auto; right: auto; width: min(440px, 88%); margin: 12px auto 0; }
  .hero__visual { position: relative; width: 100%; order: 3; }
}
@media (min-width: 961px) { .hero__visual { display: contents; } }

/* ---------- Platforms & tools row ---------- */
.tools { position: relative; z-index: 2; background: #fff; border-top: 1px solid var(--line); }
.tools__inner { display: flex; align-items: center; justify-content: space-between; gap: 56px; padding-block: 38px; }
.tools__title { flex: none; font-size: 15px; line-height: 1.45; color: var(--muted); }
.tools__list { flex: 1; max-width: 780px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.tool {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16.5px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink-2);
  white-space: nowrap;
}
.tool img { width: 26px; height: 26px; object-fit: contain; transition: transform 0.4s var(--ease); }
.tool img.wide { width: 46px; }
.tool:hover img { transform: translateY(-2px); }
@media (max-width: 960px) {
  .tools__inner { flex-direction: column; align-items: flex-start; gap: 22px; padding-block: 30px; }
  .tools__list { max-width: none; width: 100%; }
}
@media (max-width: 640px) {
  .tools__list { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 22px 16px; }
  .tool { font-size: 15px; }
}

/* ---------- Section heads ---------- */
.head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.head-split .h2 { max-width: 640px; }
.head-split p { max-width: 520px; margin-top: 14px; }
.head-cols { display: grid; grid-template-columns: minmax(180px, 1fr) 1.7fr; gap: 40px; margin-bottom: 56px; align-items: start; }
.head-cols .label { margin-top: 10px; }
.head-cols .label::after { display: none; }
@media (max-width: 860px) {
  .head-split { flex-direction: column; align-items: flex-start; }
  .head-cols { grid-template-columns: 1fr; gap: 16px; }
}

/* ==========================================================================
   Featured work (media-first cards)
   ========================================================================== */
.browser {
  border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.05), 0 18px 40px -22px rgba(17, 17, 17, 0.35);
  transform: translateZ(0);
}
.browser__bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #fff; border-bottom: 1px solid #f0f0f1; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e4e4e7; flex: none; }
.browser__url {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; transform: translateX(-20px);
  height: 22px; padding: 0 12px; border-radius: 7px; background: #f4f4f5;
  font-size: 12px; color: var(--muted); letter-spacing: -0.01em;
}
.browser__url svg { width: 11px; height: 11px; }
.browser__screen { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.browser__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.4s var(--ease); }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 24px; }
.work-card { display: flex; flex-direction: column; gap: 22px; }
.work-card--wide { grid-column: 1 / -1; }

.work-card__media {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px) clamp(24px, 3.4vw, 40px) 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    var(--tint, var(--soft));
}
.work-card__media::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.7;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.work-card--wide .work-card__media { padding: clamp(28px, 5vw, 64px) clamp(24px, 9vw, 128px) 0; }
.work-card__media .browser {
  border-radius: 16px 16px 0 0;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), 0 -12px 50px -20px rgba(17, 17, 17, 0.35);
  transform: translateY(12px);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease);
}
.work-card--wide .browser__screen { aspect-ratio: 16 / 9; }
.work-card:hover .work-card__media .browser { transform: translateY(0); box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), 0 -20px 60px -18px rgba(17, 17, 17, 0.4); }
.work-card:hover .browser__screen img { transform: scale(1.03); }

.work-card__cta {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; letter-spacing: -0.02em;
  box-shadow: 0 10px 24px -10px rgba(17, 17, 17, 0.5);
  opacity: 0; transform: translateY(-6px) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.work-card__cta svg { width: 16px; height: 16px; }
.work-card:hover .work-card__cta, .work-card:focus-visible .work-card__cta { opacity: 1; transform: none; }
@media (hover: none) { .work-card__cta { display: none; } }

/* Dark variant for dark-themed projects */
.work-card--dark .work-card__media {
  background:
    radial-gradient(55% 70% at 85% 0%, rgba(255, 92, 40, 0.38), transparent 70%),
    radial-gradient(45% 60% at 5% 100%, rgba(255, 92, 40, 0.14), transparent 70%),
    #121010;
}
.work-card--dark .work-card__media::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
.work-card--dark .browser { background: #1a1a1a; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 -20px 60px -20px rgba(0, 0, 0, 0.8); }
.work-card--dark .browser__bar { background: #1a1a1a; border-bottom-color: #262626; }
.work-card--dark .browser__bar i { background: #3a3a3a; }
.work-card--dark .browser__url { background: #262626; color: #9a9ea5; }
.work-card--dark .work-card__cta { background: #fff; color: var(--ink); }

.work-card__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 4px; }
.work-card__title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1;
}
.work-card--wide .work-card__title { font-size: clamp(28px, 3vw, 40px); }
.work-card__summary { margin-top: 8px; max-width: 540px; color: var(--muted); line-height: 1.5; }
.work-card__side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 4px; text-align: right; font-size: 15px; color: var(--muted); }
.work-card__side strong { font-weight: 500; color: var(--ink); }
.badge-new { height: 24px; padding: 0 10px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-size: 12.5px; font-weight: 500; letter-spacing: -0.01em; display: inline-flex; align-items: center; }

.arrow-circle {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); background: #fff;
  transition: background-color 0.35s var(--ease), color 0.35s, box-shadow 0.35s, transform 0.5s var(--ease);
}
.arrow-circle svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.next-card:hover .arrow-circle { background: var(--ink); color: #fff; box-shadow: none; }
.next-card:hover .arrow-circle svg { transform: rotate(-45deg); }

@media (max-width: 760px) {
  .works-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-card__info { flex-direction: column; gap: 6px; }
  .work-card__side { flex-direction: row-reverse; align-items: center; gap: 10px; padding-top: 0; text-align: left; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.service {
  display: flex; flex-direction: column;
  background: var(--soft); border-radius: var(--radius-lg); padding: 8px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 16px 16px; }
.service__head h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.035em; }
.service__icons { display: flex; gap: 6px; }
.service__icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.service__icon img { width: 22px; height: 22px; object-fit: contain; }
.service__body {
  flex: 1; display: flex; flex-direction: column; gap: 22px;
  background: #fff; border-radius: 22px; padding: 24px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.service__body p { color: var(--muted); line-height: 1.55; }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--purple); }

.service--featured { background: var(--purple); color: #fff; box-shadow: 0 30px 70px -28px rgba(116, 48, 247, 0.75); }
.service--featured .service__icon { background: rgba(255, 255, 255, 0.95); box-shadow: none; }
.service--featured .service__body { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.service--featured .service__body p { color: rgba(255, 255, 255, 0.84); }
.service--featured .checks li { color: #fff; }
.service--featured .checks svg { color: #fff; }
.service__tag { font-size: 12px; font-weight: 500; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.18); color: #fff; }

.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.extras li {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--soft); font-size: 15px; color: var(--ink-2);
}
.extras svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

/* ==========================================================================
   Why me — bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 230px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--soft);
}
.tile h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.035em; margin-bottom: 8px; }
.tile p { color: var(--muted); line-height: 1.5; }
.tile--span2 { grid-column: span 2; }
.tile--dark { background: var(--dark); color: #fff; background-image: var(--noise); background-size: 240px; }
.tile--dark p { color: var(--dark-muted); }
.tile--purple { background: var(--purple-soft); }
.tile__icon { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.tile__icon svg { width: 22px; height: 22px; }
.big-number { font-size: clamp(64px, 7vw, 104px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.big-number sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.18em; margin-left: 2px; color: var(--purple); }
.tile--dark .big-number sup { color: #a78bfa; }
.mini-screens { position: absolute; right: -40px; bottom: -30px; display: flex; gap: 10px; transform: rotate(-8deg); opacity: 0.95; }
.mini-screens img { width: 150px; border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); }
.devices { display: flex; align-items: flex-end; gap: 8px; color: var(--ink); }
.devices span { display: block; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.devices .d1 { width: 64px; height: 42px; }
.devices .d2 { width: 32px; height: 42px; border-radius: 5px; }
.devices .d3 { width: 20px; height: 34px; border-radius: 5px; }

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--span2 { grid-column: auto; }
  .tile { min-height: 0; }
  .mini-screens { display: none; }
}

/* ==========================================================================
   Dark panel (How it works) + steps
   ========================================================================== */
.dark-panel {
  position: relative; margin-inline: clamp(8px, 1.2vw, 16px);
  background-color: var(--dark); background-image: var(--noise); background-size: 240px;
  color: #fff; border-radius: var(--radius-xl); overflow: hidden;
}
.dark-panel::before {
  content: ""; position: absolute; top: -30%; right: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(116, 48, 247, 0.22), transparent 70%); pointer-events: none;
}
.process { position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) 1.7fr; gap: 40px; }
.process__aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.process .h2 { color: #fff; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.step {
  grid-column: 1; position: relative;
  padding: 24px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--dark-line);
  transition: background-color 0.4s, transform 0.5s var(--ease);
}
.step:nth-child(even) { grid-column: 2; }
.step:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }
.step__num {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); color: #c9cbd0; font-size: 16px;
}
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.035em; margin: 20px 0 8px; }
.step p { color: var(--dark-muted); line-height: 1.55; font-size: 15.5px; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 16px; }
  .process__aside { position: static; }
  .steps { grid-template-columns: 1fr; }
  .step, .step:nth-child(even) { grid-column: 1; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.faq__intro { display: flex; flex-direction: column; gap: 24px; position: sticky; top: calc(var(--header-h) + 40px); }
.faq__panel { position: relative; background: var(--soft); border-radius: var(--radius-lg); padding: 64px 8px 8px; }
.faq__panel-tag {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  height: 34px; padding: 0 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-btn);
}
.faq-item { background: #fff; border-radius: 18px; transition: box-shadow 0.3s; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 20px; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 500; letter-spacing: -0.03em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #000; }
.faq-item__icon { position: relative; width: 22px; height: 22px; flex: none; color: var(--muted); transition: transform 0.4s var(--ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.6px; margin-top: -0.8px; background: currentColor; border-radius: 2px; }
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); color: var(--ink); }
.faq-item[open] { box-shadow: 0 10px 30px -18px rgba(17, 17, 17, 0.25); }
.faq-item__answer { padding: 0 20px 20px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__intro { position: static; }
}

/* ==========================================================================
   Footer (dark CTA)
   ========================================================================== */
.site-footer {
  position: relative; overflow: hidden;
  margin-top: clamp(40px, 6vw, 80px);
  margin-inline: clamp(8px, 1.2vw, 16px);
  background-color: var(--dark); background-image: var(--noise); background-size: 240px;
  color: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-top: clamp(96px, 11vw, 150px);
}
.site-footer::before {
  content: ""; position: absolute; left: 50%; top: -35%; width: 80%; aspect-ratio: 2; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(116, 48, 247, 0.25), transparent 70%); pointer-events: none;
}
.footer-cta { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.footer-cta .h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 780px; }
.footer-cta p { color: var(--dark-muted); max-width: 520px; font-size: 18px; }
.footer-cta .btn-row { justify-content: center; }
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px;
  margin-top: clamp(80px, 9vw, 120px); padding-top: 48px; border-top: 1px solid var(--dark-line);
}
.footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-about p { color: var(--dark-muted); line-height: 1.55; font-size: 15px; }
.footer-col h4 { font-size: 15px; font-weight: 400; color: var(--dark-muted); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 16px; color: #fff; transition: color 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: #b9a4fb; }
.footer-col a svg { width: 14px; height: 14px; opacity: 0.5; }
.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 40px 0 28px; font-size: 14.5px; color: var(--dark-muted);
}
.footer-bottom a:hover { color: #fff; }
.footer-wordmark {
  position: relative; text-align: center; line-height: 0.75; overflow: hidden;
  font-size: clamp(56px, 13vw, 210px); font-weight: 600; letter-spacing: -0.07em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 0; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0));
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: -0.08em;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + clamp(72px, 9vw, 120px)); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero .display { max-width: 860px; margin-top: 18px; }
.page-hero .lead { max-width: 620px; margin-top: 22px; }
.page-hero--center { text-align: center; }
.page-hero--center .display, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .label { justify-content: center; }
.page-hero--center .label::after { display: none; }

/* ---------- Works index (list with hover preview) ---------- */
.index-list { border-top: 1px solid var(--line-strong); }
.index-row {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr auto 72px 46px; align-items: center; gap: 20px;
  padding: 30px 14px; border-bottom: 1px solid var(--line-strong);
  transition: opacity 0.4s var(--ease), padding 0.5s var(--ease), background-color 0.4s;
}
.index-list:hover .index-row { opacity: 0.4; }
.index-list .index-row:hover { opacity: 1; padding-left: 26px; background: rgba(17, 17, 17, 0.02); }
.index-row__num { font-size: 14px; color: var(--muted); letter-spacing: 0.02em; }
.index-row__title { display: flex; flex-direction: column; gap: 4px; }
.index-row__name { font-size: clamp(30px, 4.2vw, 50px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; color: var(--ink); transition: transform 0.5s var(--ease); }
.index-row:hover .index-row__name { transform: translateX(4px); }
.index-row__summary { color: var(--muted); font-size: 15px; }
.index-row__year { font-size: 15px; color: var(--muted); text-align: right; }
.index-row .arrow-circle { transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.index-row:hover .arrow-circle { background: var(--ink); color: #fff; box-shadow: none; }
.index-row:hover .arrow-circle svg { transform: rotate(-45deg); }
.index-row__thumb { display: none; }

.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 45;
  width: 380px; border-radius: 18px; overflow: hidden; pointer-events: none;
  box-shadow: 0 40px 80px -24px rgba(17, 17, 17, 0.45);
  opacity: 0; transform: translate3d(-9999px, 0, 0); scale: 0.85; transform-origin: left center;
  transition: opacity 0.35s var(--ease), scale 0.45s var(--ease);
  will-change: transform;
}
.hover-preview.is-active { opacity: 1; scale: 1; }
.hover-preview .browser__screen { aspect-ratio: 16 / 10; }
.hover-preview .browser__screen img { transition: opacity 0.3s; }
.hover-preview .browser__bar { height: 26px; }
.hover-preview .browser__bar i { width: 8px; height: 8px; }

@media (max-width: 860px), (hover: none) {
  .hover-preview { display: none; }
  .index-list:hover .index-row { opacity: 1; }
  .index-list .index-row:hover { padding-left: 14px; }
}
@media (max-width: 860px) {
  .index-row { grid-template-columns: 1fr 46px; grid-template-areas: "thumb thumb" "title arrow" "tags tags"; gap: 14px 16px; padding: 28px 0; }
  .index-row__num, .index-row__year { display: none; }
  .index-row__thumb { display: block; grid-area: thumb; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06); }
  .index-row__thumb img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
  .index-row__title { grid-area: title; }
  .index-row .chips { grid-area: tags; }
  .index-row .arrow-circle { grid-area: arrow; }
  .index-row__name { font-size: 32px; }
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--soft-2); color: var(--ink-2); font-size: 15px;
  transition: background-color 0.25s, color 0.25s;
}
.filter-btn:hover { background: #e8e8eb; }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filter-btn .count { color: var(--muted-2); margin-left: 4px; }
.filter-btn[aria-pressed="true"] .count { color: #8f939a; }
.index-row[hidden] { display: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-hero__text { display: flex; flex-direction: column; gap: 22px; }
.about-hero__text .display { margin-top: 0; }
.about-photo { position: relative; }
.about-photo__frame { border-radius: 32px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; }
.about-photo__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-photo .pill { position: absolute; left: 20px; bottom: 20px; background: rgba(255, 255, 255, 0.92); color: var(--ink-2); }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--soft); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.stat__value { font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.stat__value sup { font-size: 0.45em; vertical-align: top; position: relative; top: 0.2em; color: var(--purple); }
.stat__label { color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 24px; background: var(--soft);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.info-card:hover { background: #f1f1f3; transform: translateY(-3px); }
.info-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.03em; }
.info-card p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.info-card .tile__icon { margin-bottom: 6px; }
@media (max-width: 960px) { .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid, .card-grid--4 { grid-template-columns: 1fr; } }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stack-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 20px; background: var(--soft);
  transition: background-color 0.3s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.stack-item:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--line); }
.stack-item__logo { width: 56px; height: 56px; flex: none; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.stack-item__logo img { width: 30px; height: 30px; object-fit: contain; }
.stack-item__logo img.wide { width: 40px; }
.stack-item h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
.stack-item p { font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.stack-item--featured { background: var(--purple-soft); }
@media (max-width: 960px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stack-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.form-card {
  position: relative; overflow: hidden;
  background-color: var(--dark); background-image: var(--noise); background-size: 240px;
  color: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 40px 90px -40px rgba(17, 17, 17, 0.55);
}
.form-card h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.035em; }
.form-card > p { color: var(--dark-muted); margin-top: 6px; }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 500; margin-bottom: 9px; color: #fff; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%; height: 50px; padding: 0 16px;
  border: 0; border-radius: 13px; background: #1e1e1e; color: #fff;
  box-shadow: inset 0 0 0 1px #2b2b2b;
  transition: box-shadow 0.25s, background-color 0.25s;
}
textarea.input { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #6f737a; }
.input:hover { box-shadow: inset 0 0 0 1px #3a3a3a; }
.input:focus { outline: none; background: #222; box-shadow: inset 0 0 0 1px var(--purple), 0 0 0 4px rgba(116, 48, 247, 0.25); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ef4444, 0 0 0 4px rgba(239, 68, 68, 0.18); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px;
  background: #1e1e1e; box-shadow: inset 0 0 0 1px #2b2b2b; color: #c9cbd0; font-size: 14.5px;
  cursor: pointer; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.choice span:hover { box-shadow: inset 0 0 0 1px #444; color: #fff; }
.choice input:checked + span { background: #fff; color: var(--ink); box-shadow: none; }
.choice input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn--white { height: 54px; font-size: 16.5px; }
.form .btn--white[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.form-note { font-size: 14px; color: var(--dark-muted); text-align: center; }
.form-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form-status {
  display: none; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.form-status--success { background: rgba(0, 192, 71, 0.12); box-shadow: inset 0 0 0 1px rgba(0, 192, 71, 0.35); color: #6ee7a0; }
.form-status--error { background: rgba(239, 68, 68, 0.12); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35); color: #fca5a5; }
.form-status--info { background: rgba(116, 48, 247, 0.14); box-shadow: inset 0 0 0 1px rgba(116, 48, 247, 0.4); color: #c4b5fd; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(17, 17, 17, 0.2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.side-stack { display: grid; gap: 16px; }
.side-card { background: var(--soft); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.side-card h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.035em; }
.side-card p { color: var(--muted); line-height: 1.55; }
.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.email-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15.5px; overflow: hidden;
}
.email-box a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn {
  flex: none; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--soft-2);
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; transition: background-color 0.2s;
}
.copy-btn:hover { background: #e6e6e9; }
.copy-btn svg { width: 15px; height: 15px; }
.social-list { display: grid; gap: 8px; }
.social-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; transition: transform 0.4s var(--ease), box-shadow 0.3s;
}
.social-list a:hover { transform: translateX(3px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.social-list a span { display: inline-flex; align-items: center; gap: 12px; }
.social-list svg { width: 20px; height: 20px; }
.social-list a > svg { width: 16px; height: 16px; color: var(--muted-2); }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Project (case study) pages
   ========================================================================== */
.project-hero { padding-top: calc(var(--header-h) + clamp(48px, 6vw, 80px)); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.back-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.back-link:hover { color: var(--ink); }
.back-link:hover svg { transform: translateX(-3px); }
.project-eyebrow { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.project-eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }
.project-title { font-size: clamp(54px, 9vw, 120px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.95; margin-top: 16px; }
.project-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-top: 28px; }
.project-summary { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.035em; color: var(--muted); max-width: 680px; }
.project-intro .btn-row { justify-content: flex-end; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line-strong); }
.meta-grid > div { padding: 22px 20px 0 0; }
.meta-grid dt { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.meta-grid dd { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
@media (max-width: 860px) {
  .project-intro { grid-template-columns: 1fr; gap: 24px; }
  .project-intro .btn-row { justify-content: flex-start; }
  .meta-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
}

.project-shot {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(12px, 3vw, 44px);
  border-radius: 36px;
  background: linear-gradient(180deg, var(--shot-tint, #f4f1ff) 0%, var(--soft) 100%);
  position: relative; overflow: hidden;
}
.project-shot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.project-shot .browser { position: relative; box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), 0 40px 90px -40px rgba(17, 17, 17, 0.5); border-radius: 18px; }
.project-shot .browser__bar { height: 40px; }
.project-shot .browser__url { height: 26px; font-size: 13px; }

.split { display: grid; grid-template-columns: minmax(180px, 1fr) 1.7fr; gap: 40px; align-items: start; }
.split > .label { margin-top: 8px; }
.split .label::after { display: none; }
.prose { display: grid; gap: 18px; }
.prose p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-2); letter-spacing: -0.025em; }
.prose p + p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 16px; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: 22px; background: var(--soft);
  transition: background-color 0.3s, transform 0.5s var(--ease);
}
.feature:hover { background: #f1f1f3; transform: translateY(-3px); }
.feature__num { font-size: 13px; color: var(--purple); font-weight: 500; letter-spacing: 0.02em; }
.feature h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.03em; }
.feature p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 18px 0 10px; border-radius: 16px; background: var(--soft);
  font-weight: 500; letter-spacing: -0.03em;
}
.tech__logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.tech__logo img { width: 20px; height: 20px; object-fit: contain; }
.tech__logo img.wide { width: 26px; }
.tech--text { padding-left: 18px; }

.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg);
  background-color: var(--purple); color: #fff;
  background-image: radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.22), transparent 45%);
  box-shadow: 0 40px 80px -40px rgba(116, 48, 247, 0.8);
}
.cta-card h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; max-width: 560px; }
.cta-card p { color: rgba(255, 255, 255, 0.82); margin-top: 10px; max-width: 520px; }

.next-card {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px;
  padding: 12px 12px 12px clamp(20px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.next-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.next-card__label { font-size: 15px; color: var(--muted); }
.next-card__title { font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: -0.055em; line-height: 1; margin: 10px 0 18px; }
.next-card:hover .browser__screen img { transform: scale(1.04); }
@media (max-width: 760px) {
  .next-card { grid-template-columns: 1fr; padding: 12px; }
  .next-card__text { padding: 12px 10px 4px; }
}

.more-projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.more-projects a {
  display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 14px; border-radius: 20px; background: var(--soft);
  font-weight: 500; letter-spacing: -0.03em; transition: transform 0.5s var(--ease), background-color 0.3s;
}
.more-projects a:hover { transform: translateY(-3px); background: #f1f1f3; }
.more-projects img { border-radius: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.more-projects span { padding: 0 8px; display: flex; justify-content: space-between; }
.more-projects small { color: var(--muted); font-weight: 400; }
@media (max-width: 860px) { .more-projects { grid-template-columns: 1fr 1fr; } }

/* ---------- 404 ---------- */
.not-found { min-height: 72vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.not-found__code { font-size: clamp(110px, 20vw, 220px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.9; background: linear-gradient(180deg, var(--ink), #b8bbc1); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.stack-lg > * + * { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Small additions ---------- */
.chip svg { width: 15px; height: 15px; color: var(--muted); }
.more-projects svg { width: 16px; height: 16px; }
.step__num svg { width: 18px; height: 18px; }
.steps--grid .step, .steps--grid .step:nth-child(even) { grid-column: auto; }
@media (min-width: 1001px) { .tile--span2 .tile__text { max-width: 56%; } }
.tile__text { position: relative; z-index: 1; }
.site-footer .pill { background: rgba(255, 255, 255, 0.06); color: #d4d6da; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.side-card .tile__icon { background: #fff; }

/* ---------- Intro video (About) ---------- */
.video-card { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06), var(--shadow-lift); }
.video-card video { width: 100%; height: 100%; object-fit: cover; background: var(--soft); }
.video-play {
  display: none; position: absolute; inset: 0;
  align-items: flex-end; justify-content: flex-start; padding: clamp(14px, 2.6vw, 32px);
  border: 0; background: linear-gradient(180deg, rgba(17, 17, 17, 0) 55%, rgba(17, 17, 17, 0.18));
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.video-card.is-ready .video-play { display: flex; }
.video-card.is-playing .video-play { opacity: 0; visibility: hidden; pointer-events: none; }
.video-play__pill {
  display: inline-flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 24px 0 8px; border-radius: 999px;
  background: rgba(17, 17, 17, 0.9); color: #fff; box-shadow: 0 18px 40px -16px rgba(17, 17, 17, 0.6);
  font-size: 18px; font-weight: 500; letter-spacing: -0.03em;
  transition: transform 0.4s var(--ease), background-color 0.25s;
}
.video-play__pill small { font-size: 15px; color: var(--dark-muted); font-weight: 400; }
.video-play__icon { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.video-play__icon svg { width: 20px; height: 20px; margin-left: 3px; }
.video-play:hover .video-play__pill { transform: translateY(-2px); background: #000; }
@media (max-width: 560px) {
  .video-card { border-radius: var(--radius); }
  .video-play__pill { height: 52px; padding-right: 18px; font-size: 16px; gap: 10px; }
  .video-play__icon { width: 38px; height: 38px; }
}
