/* =========================================================
   Jakub Hejl Portfolio — clean white mode design system
   ========================================================= */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f0f3f8;
  --ink: #111827;
  --ink-soft: #3c4658;
  --muted: #697386;
  --line: #dfe4ec;
  --line-dark: #cbd2dc;
  --dark: #111827;
  --dark-soft: #1b2534;
  --accent: #3569f3;
  --accent-soft: #eaf0ff;
  --success: #0d9b6c;
  --danger: #d33b50;
  --warning: #c47a16;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 30px rgba(17, 24, 39, 0.06);
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  --container: 1180px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(53, 105, 243, 0.055), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

p,
h1,
h2,
h3,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(3.15rem, 7vw, 6.65rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--ink-soft);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 38px 0 112px;
}

.section-soft {
  background: var(--surface-muted);
  border-block: 1px solid rgba(203, 210, 220, 0.7);
}

.section-dark {
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(88, 132, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 95% 85%, rgba(117, 76, 255, 0.14), transparent 28rem),
    var(--dark);
}

.section-dark p {
  color: #b9c1ce;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: #fff;
  background: var(--dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.eyebrow-light {
  color: #9db6ff;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: #fff;
  background: var(--dark);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.button-dark:hover {
  background: #273247;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.24);
}

.button-light {
  color: var(--dark);
  background: #fff;
}

.button-white {
  color: var(--dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  background: transparent;
  border-color: var(--line-dark);
}

.button-ghost:hover {
  background: #fff;
}

.button-small {
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.86rem;
}

.button-full {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 750;
}

.text-link-large {
  font-size: 0.95rem;
}

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

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.back-link:hover {
  color: var(--ink);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(247, 248, 251, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  border-color: rgba(203, 210, 220, 0.76);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.05);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: var(--dark);
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.22;
}

.brand-copy strong {
  font-size: 0.94rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a:not(.button) {
  position: relative;
  padding: 12px 15px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  right: 15px;
  bottom: 7px;
  left: 15px;
  height: 2px;
  content: "";
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav > a:hover,
.main-nav > a.active {
  color: var(--ink);
}

.main-nav > a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

/* Flash */

.flash-wrap {
  position: relative;
  z-index: 90;
}

.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}

.flash-success {
  color: #086c4d;
  background: #effbf7;
  border-color: #bde9d9;
}

.flash-error {
  color: #9e2638;
  background: #fff2f4;
  border-color: #f1c0c8;
}

.flash button {
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
  font-size: 1.4rem;
}

/* Hero */

.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: 72px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 8px 13px;
  color: #37503f;
  background: #f1faf5;
  border: 1px solid #d2eadb;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 750;
}

.availability-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #22a66f;
  border-radius: 50%;
}

.availability-dot::after {
  position: absolute;
  inset: -4px;
  content: "";
  border: 1px solid rgba(34, 166, 111, 0.35);
  border-radius: 50%;
  animation: pulse 2.2s ease-out infinite;
}

.hero-kicker {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 860px;
  margin-bottom: 30px;
}

.hero-highlight {
  display: block;
  color: var(--accent);
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 35px;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-proof strong {
  font-size: 0.93rem;
}

.hero-proof span {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(53, 105, 243, 0.14);
  border-radius: 50%;
}

.visual-orbit-one {
  width: 520px;
  height: 520px;
}

.visual-orbit-two {
  width: 670px;
  height: 670px;
  border-style: dashed;
  opacity: 0.55;
  animation: spin 50s linear infinite;
}

.dashboard-window {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dfe8;
  border-radius: 22px;
  box-shadow: 0 35px 90px rgba(32, 50, 87, 0.18);
  transform: perspective(1500px) rotateY(-5deg) rotateX(2deg);
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 16px;
  color: #7b8596;
  background: #fafbfc;
  border-bottom: 1px solid #e6e9ef;
  font-size: 0.58rem;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots span {
  width: 7px;
  height: 7px;
  background: #d8dde6;
  border-radius: 50%;
}

.window-status {
  justify-self: end;
  color: #16825e;
  font-weight: 800;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 62px 1fr;
  min-height: 405px;
}

.dashboard-sidebar {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 17px;
  padding: 18px 13px;
  background: #111827;
}

.mini-logo {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 10px;
  place-items: center;
  color: #111827;
  background: #fff;
  border-radius: 9px;
  font-size: 0.55rem;
  font-weight: 900;
}

.sidebar-line {
  width: 26px;
  height: 5px;
  background: #3a4556;
  border-radius: 5px;
}

.sidebar-line.active {
  height: 26px;
  background: #4f7aff;
  border-radius: 8px;
}

.sidebar-line.short {
  width: 17px;
}

.dashboard-main {
  padding: 26px;
  background: #f7f9fc;
}

.dashboard-heading,
.chart-header,
.case-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-heading > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skeleton {
  display: block;
  height: 5px;
  background: #cdd5e1;
  border-radius: 10px;
}

.skeleton.small {
  width: 42px;
}

.skeleton.title {
  width: 118px;
  height: 9px;
  background: #677286;
}

.dashboard-chip {
  padding: 7px 10px;
  color: #3156b8;
  background: #edf2ff;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  font-size: 0.55rem;
  font-weight: 800;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 13px;
}

.metric-widget,
.chart-widget,
.task-list {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(29, 43, 72, 0.04);
}

.metric-widget {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.metric-widget span,
.metric-widget small {
  color: #8a94a5;
  font-size: 0.55rem;
}

.metric-widget strong {
  margin: 3px 0;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}

.metric-widget:first-child strong {
  color: #3569f3;
}

.chart-widget {
  padding: 14px 15px;
}

.chart-header {
  color: #697386;
  font-size: 0.57rem;
  font-weight: 800;
}

.chart-header small {
  color: #9ca5b3;
}

.chart-bars {
  display: flex;
  height: 94px;
  align-items: end;
  gap: 7px;
  padding-top: 13px;
  border-bottom: 1px solid #edf0f4;
}

.chart-bars span {
  width: 100%;
  height: var(--bar);
  min-height: 8px;
  background: linear-gradient(180deg, #5480ff, #3467ef);
  border-radius: 4px 4px 1px 1px;
  opacity: 0.82;
}

.task-list {
  margin-top: 13px;
  padding: 6px 14px;
}

.task-list > div {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: #596476;
  border-bottom: 1px solid #eef1f5;
  font-size: 0.56rem;
}

.task-list > div:last-child {
  border-bottom: 0;
}

.task-list strong {
  color: #8993a3;
  font-size: 0.5rem;
}

.task-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: #fff;
  background: #18a574;
  border-radius: 50%;
  font-size: 0.48rem;
}

.task-pulse {
  width: 8px;
  height: 8px;
  margin-left: 3px;
  background: #5179ed;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e9efff;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce2ec;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(32, 50, 87, 0.14);
  backdrop-filter: blur(10px);
}

.floating-note-top {
  top: 82px;
  right: -18px;
}

.floating-note-bottom {
  bottom: 74px;
  left: -30px;
}

.floating-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #315fdc;
  background: #edf2ff;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.floating-note .note-avatar {
  color: #fff;
  background: var(--dark);
}

.floating-note div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.floating-note strong {
  font-size: 0.67rem;
}

.floating-note small {
  color: var(--muted);
  font-size: 0.53rem;
}

/* Trust */

.trust-strip {
  background: #fff;
  border-block: 1px solid var(--line);
}

.trust-strip-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.trust-strip-inner > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.85rem;
}

.trust-items i {
  width: 4px;
  height: 4px;
  background: #bdc5d1;
  border-radius: 50%;
}

/* Section headings */

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 750px;
  margin-bottom: 0;
}

.section-heading p {
  max-width: 570px;
}

/* Projects */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  --project-accent: #3569f3;
  --project-soft: #eaf0ff;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(17, 24, 39, 0.045);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card::before {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 180px;
  height: 180px;
  content: "";
  background: var(--project-soft);
  border-radius: 50%;
  opacity: 0.8;
  transition: transform 260ms ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--project-accent) 35%, var(--line));
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.11);
  transform: translateY(-6px);
}

.project-card:hover::before {
  transform: scale(1.25);
}

.project-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 24px;
}

.project-card-top,
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: var(--project-accent);
  background: var(--project-soft);
  border-radius: 13px;
}

.project-icon svg {
  width: 23px;
}

.project-status {
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 750;
}

.project-card-body {
  margin-top: 50px;
}

.project-card-body .eyebrow {
  margin-bottom: 12px;
  color: var(--project-accent);
  font-size: 0.66rem;
}

.project-card-body .eyebrow::before {
  display: none;
}

.project-card h3 {
  margin-bottom: 15px;
  font-size: 1.65rem;
}

.project-card p {
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-tags,
.case-tech,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-tags {
  margin-top: auto;
  padding: 28px 0 22px;
}

.project-tags span,
.case-tech span,
.tag-row span {
  padding: 6px 9px;
  color: #596476;
  background: #f5f7fa;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 700;
}

.project-card-footer {
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

.project-card-footer .text-link {
  color: var(--ink);
  font-size: 0.7rem;
}

.accent-blue { --project-accent: #3569f3; --project-soft: #eaf0ff; }
.accent-violet { --project-accent: #754eea; --project-soft: #f0ebff; }
.accent-emerald { --project-accent: #10976b; --project-soft: #e7f8f1; }
.accent-orange { --project-accent: #cb711b; --project-soft: #fff1e2; }
.accent-pink { --project-accent: #c44978; --project-soft: #fdeaf2; }
.accent-cyan { --project-accent: #16849e; --project-soft: #e4f7fb; }
.accent-red { --project-accent: #cf4750; --project-soft: #ffebed; }
.accent-sand { --project-accent: #8b6b3f; --project-soft: #f7efe4; }

/* Impact */

.impact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  align-items: start;
}

.impact-copy {
  position: sticky;
  top: 120px;
}

.impact-copy h2 {
  margin-bottom: 25px;
}

.impact-copy p {
  margin-bottom: 32px;
  font-size: 1.03rem;
}

.impact-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.impact-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.impact-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 850;
}

.impact-card h3 {
  margin-bottom: 9px;
}

.impact-card p {
  margin-bottom: 0;
  font-size: 0.91rem;
}

/* Expertise */

.expertise-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
}

.sticky-heading {
  position: sticky;
  top: 120px;
  align-self: start;
  display: block;
}

.sticky-heading h2 {
  margin-bottom: 25px;
}

.expertise-list {
  border-top: 1px solid var(--line);
}

.expertise-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.expertise-index {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.expertise-item h3 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.expertise-item p {
  max-width: 650px;
  margin-bottom: 18px;
}

/* Feedback */

.dark-heading {
  max-width: 810px;
  margin-bottom: 55px;
}

.dark-heading h2 {
  margin-bottom: 0;
}

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

.feedback-grid article {
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
}

.feedback-grid article > span {
  color: #789aff;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.feedback-grid h3 {
  margin: 25px 0 15px;
  font-size: 1.55rem;
}

.feedback-grid p {
  margin-bottom: 0;
}

/* Closing */

.closing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.closing-card,
.closing-quote {
  min-height: 430px;
  padding: 46px;
  border-radius: var(--radius-lg);
}

.closing-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.closing-card h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.6rem);
}

.closing-card p {
  max-width: 680px;
  margin-bottom: 28px;
}

.closing-quote {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(94, 130, 255, 0.35), transparent 15rem),
    var(--dark);
}

.quote-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--dark);
  background: #fff;
  border-radius: 16px;
  font-weight: 900;
}

.closing-quote blockquote {
  margin-bottom: 25px;
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.closing-quote > span {
  color: #aeb7c5;
  font-size: 0.82rem;
}

/* Footer */

.site-footer {
  color: #fff;
  background: #0b111c;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 70px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.footer-cta h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.85rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.9fr;
  gap: 70px;
  padding: 64px 0;
}

.brand-footer .brand-mark {
  color: #111827;
  background: #fff;
}

.brand-footer .brand-copy small {
  color: #8f9aaa;
}

.footer-brand p {
  max-width: 470px;
  margin: 25px 0 0;
  color: #8f9aaa;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
}

.footer-links strong {
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.footer-links a,
.footer-links span {
  color: #8f9aaa;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 30px;
  color: #778293;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.73rem;
}

/* Projects browser */

.page-hero {
  padding-bottom: 70px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 80px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.page-hero p {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 230px auto auto;
  gap: 10px;
  margin-bottom: 30px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.search-field,
.select-field {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field svg {
  position: absolute;
  left: 16px;
  width: 18px;
  color: #8490a1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 48px;
  background: #f7f9fb;
  border: 1px solid #e3e7ed;
  border-radius: 11px;
  outline: none;
}

.search-field input {
  padding: 0 16px 0 45px;
}

.select-field select {
  padding: 0 40px 0 14px;
}

.search-field input:focus,
.select-field select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  background: #fff;
  border-color: #85a4ff;
  box-shadow: 0 0 0 4px rgba(53, 105, 243, 0.1);
}

.button-filter {
  min-height: 48px;
}

.filter-reset {
  align-self: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}

.results-heading strong {
  color: var(--ink);
}

.project-grid-all {
  grid-template-columns: repeat(3, 1fr);
}

.empty-state {
  padding: 90px 30px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius);
}

.empty-state > span {
  font-size: 3rem;
}

.empty-state h2 {
  margin: 15px 0 10px;
  font-size: 2rem;
}

/* Case study */

.case-study {
  --case-accent: var(--project-accent);
  --case-soft: var(--project-soft);
}

.case-hero {
  padding-bottom: 64px;
}

.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: end;
  gap: 60px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-meta i {
  width: 4px;
  height: 4px;
  background: var(--case-accent);
  border-radius: 50%;
}

.case-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
}

.case-hero p {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 1.15rem;
}

.case-hero-badge {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  justify-self: end;
}

.case-hero-badge > span {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  color: var(--case-accent);
  background: var(--case-soft);
  border: 1px solid color-mix(in srgb, var(--case-accent) 25%, white);
  border-radius: 32px;
  font-size: 1.8rem;
  font-weight: 900;
}

.case-hero-badge small {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.case-tech {
  margin-top: 40px;
}

.case-tech span {
  padding: 8px 12px;
  color: var(--case-accent);
  background: var(--case-soft);
  border-color: color-mix(in srgb, var(--case-accent) 18%, white);
}

.case-visual-wrap {
  padding-bottom: 20px;
}

.case-visual {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 25px;
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.14);
}

.case-browser-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 18px;
  color: #8a94a5;
  background: #f7f8fa;
  border-bottom: 1px solid #e2e6ec;
  font-size: 0.65rem;
}

.case-browser-bar > div {
  display: flex;
  gap: 6px;
}

.case-browser-bar > div span {
  width: 8px;
  height: 8px;
  background: #d2d8e0;
  border-radius: 50%;
}

.case-browser-bar strong {
  justify-self: end;
  color: #16825e;
}

.case-screen {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 610px;
  background: #f4f6f9;
}

.case-screen aside {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  padding: 28px 20px;
  background: #111827;
}

.case-logo {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  place-items: center;
  background: #fff;
  border-radius: 13px;
  font-size: 0.72rem;
  font-weight: 900;
}

.case-nav-line {
  width: 36px;
  height: 7px;
  background: #354052;
  border-radius: 6px;
}

.case-nav-line.active {
  width: 44px;
  height: 44px;
  background: var(--case-accent);
  border-radius: 13px;
}

.case-nav-line.short {
  width: 23px;
}

.case-ui {
  padding: 42px;
}

.case-ui-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.case-ui-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-ui-head > div > span {
  width: 11px;
  height: 11px;
  background: var(--case-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--case-soft);
}

.case-ui-head strong {
  font-size: 1.1rem;
}

.case-ui-head button {
  padding: 9px 13px;
  color: var(--case-accent);
  background: var(--case-soft);
  border: 0;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 800;
}

.case-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.case-widget {
  display: flex;
  min-height: 142px;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
}

.case-widget small {
  color: #7d8798;
  font-size: 0.65rem;
}

.case-widget strong {
  margin: 6px 0;
  color: var(--case-accent);
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.mini-trend {
  color: #16946a;
  font-size: 0.58rem;
  font-weight: 750;
}

.case-ui-lower {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 15px;
  margin-top: 15px;
}

.case-chart,
.case-list {
  min-height: 275px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e5ec;
  border-radius: 15px;
}

.case-chart-head {
  color: #5d687a;
  font-size: 0.7rem;
  font-weight: 800;
}

.case-chart-head small {
  color: #9ca5b2;
}

.case-chart svg {
  width: 100%;
  height: 195px;
  margin-top: 16px;
  color: var(--case-accent);
}

.case-list {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.case-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  color: #657083;
  border-bottom: 1px solid #edf0f4;
  font-size: 0.66rem;
}

.case-list div:last-child {
  border: 0;
}

.case-list span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #fff;
  background: var(--case-accent);
  border-radius: 50%;
  font-size: 0.55rem;
}

.case-two-col {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 110px;
}

.case-two-col h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.prose-large p {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.8;
}

.case-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-story-grid article {
  min-height: 370px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story-label {
  color: var(--case-accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-story-grid h2 {
  margin: 65px 0 20px;
  font-size: 2rem;
}

.case-story-grid p {
  margin-bottom: 0;
}

.large-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.large-metrics div {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.large-metrics div:last-child {
  border-right: 0;
}

.large-metrics strong {
  color: var(--case-accent);
  font-size: clamp(2rem, 4vw, 4.4rem);
  letter-spacing: -0.06em;
}

.large-metrics span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.feature-list {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-list > div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-list span {
  color: #819df3;
  font-size: 0.72rem;
}

.feature-list strong {
  font-size: 1rem;
}

/* About */

.about-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 100px;
}

.about-portrait {
  position: relative;
  min-height: 570px;
}

.portrait-card {
  position: absolute;
  inset: 15px 35px 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 18%, rgba(115, 149, 255, 0.55), transparent 15rem),
    linear-gradient(145deg, #202b3d, #0d1420);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.portrait-initials {
  position: relative;
  z-index: 2;
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.09em;
}

.portrait-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.035) 42px 43px);
}

.portrait-card > span {
  position: absolute;
  bottom: 25px;
  left: 28px;
  color: #9fa9b9;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.portrait-label {
  position: absolute;
  right: 0;
  bottom: 50px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.portrait-label strong {
  font-size: 0.76rem;
}

.portrait-label small {
  color: var(--muted);
  font-size: 0.62rem;
}

.about-intro h1 {
  margin-bottom: 32px;
  font-size: clamp(3rem, 5.6vw, 5.5rem);
}

.about-lead {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 100px;
}

.values-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.values-list {
  border-top: 1px solid var(--line-dark);
}

.values-list article {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-dark);
}

.values-list article > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.values-list h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.values-list p {
  margin-bottom: 0;
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 100px;
}

.journey-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.journey-heading h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 96px;
  width: 1px;
  content: "";
  background: var(--line-dark);
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 36px;
  padding: 0 0 60px;
}

.timeline article::before {
  position: absolute;
  top: 5px;
  left: 90px;
  width: 13px;
  height: 13px;
  content: "";
  background: #fff;
  border: 3px solid var(--accent);
  border-radius: 50%;
}

.timeline-year {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.timeline h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

.timeline p {
  margin-bottom: 0;
}

.skills-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 100px;
  align-items: start;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-cloud span {
  padding: 11px 16px;
  color: #d4dae3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.82rem;
}

.split-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.split-callout h2 {
  margin-bottom: 0;
}

.split-callout p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 120px;
}

.contact-copy h1 {
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.4vw, 5.5rem);
}

.contact-copy > p {
  font-size: 1.08rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 35px;
}

.contact-options > a,
.contact-option-static {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.contact-options > a:hover {
  border-color: #9fb5f8;
  transform: translateX(3px);
}

.contact-option-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 850;
}

.contact-options div div,
.contact-options a div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-options small {
  color: var(--muted);
  font-size: 0.63rem;
}

.contact-options strong {
  overflow: hidden;
  font-size: 0.82rem;
  text-overflow: ellipsis;
}

.response-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 30px;
  padding: 18px;
  background: #effbf6;
  border: 1px solid #cdebdc;
  border-radius: 14px;
}

.response-note .availability-dot {
  margin: 8px 0 0 4px;
}

.response-note p {
  margin: 0;
  color: #416052;
  font-size: 0.82rem;
}

.contact-form-card {
  padding: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label,
.login-form label,
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label > span,
.login-form label > span,
.admin-form label > span {
  font-size: 0.73rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.login-form input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  background: #f8f9fb;
  border: 1px solid #dfe4eb;
  border-radius: 11px;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input,
.contact-form select,
.login-form input,
.admin-form input,
.admin-form select {
  height: 50px;
  padding: 0 14px;
}

.contact-form textarea,
.admin-form textarea {
  padding: 13px 14px;
  resize: vertical;
}

.contact-form textarea {
  min-height: 170px;
}

.contact-form ::placeholder,
.login-form ::placeholder {
  color: #a4adba;
}

.form-privacy {
  margin: -7px 0 0;
  color: #8b95a5;
  font-size: 0.67rem;
  text-align: center;
}

.form-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  color: #9c2c3e;
  background: #fff1f3;
  border: 1px solid #f1bdc6;
  border-radius: 11px;
  font-size: 0.82rem;
}

.form-errors ul {
  margin: 7px 0 0;
  padding-left: 19px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Errors */

.error-page {
  display: flex;
  min-height: 72vh;
  align-items: center;
  text-align: center;
}

.error-page .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.error-code {
  color: var(--accent);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.09em;
  opacity: 0.15;
}

.error-page h1 {
  margin: -15px 0 20px;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.error-page p {
  max-width: 650px;
  margin-bottom: 30px;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 120ms;
}

@keyframes pulse {
  from { opacity: 1; transform: scale(0.7); }
  to { opacity: 0; transform: scale(1.5); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-visual {
    width: min(100%, 690px);
    margin-inline: auto;
  }

  .project-grid,
  .project-grid-all {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid,
  .expertise-layout,
  .values-grid,
  .journey-layout,
  .contact-grid {
    gap: 60px;
  }

  .case-screen {
    min-height: 540px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .section {
    padding: 84px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 30px;
    background: rgba(247, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(17, 24, 39, 0.12);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav > a:not(.button) {
    padding: 12px 4px;
  }

  .main-nav > a:not(.button)::after {
    display: none;
  }

  .hero-grid,
  .page-hero-grid,
  .impact-grid,
  .expertise-layout,
  .closing-grid,
  .case-two-col,
  .feature-layout,
  .about-hero-grid,
  .values-grid,
  .journey-layout,
  .skills-layout,
  .split-callout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-grid,
  .case-two-col,
  .split-callout {
    gap: 35px;
  }

  .impact-copy,
  .sticky-heading,
  .values-heading,
  .journey-heading,
  .contact-copy {
    position: static;
  }

  .feedback-grid,
  .case-story-grid {
    grid-template-columns: 1fr;
  }

  .case-story-grid article {
    min-height: 0;
  }

  .case-story-grid h2 {
    margin-top: 35px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .case-hero-grid {
    grid-template-columns: 1fr;
  }

  .case-hero-badge {
    display: none;
  }

  .case-screen {
    grid-template-columns: 62px 1fr;
  }

  .case-ui {
    padding: 28px;
  }

  .case-widget-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-widget-grid .case-widget:last-child {
    grid-column: 1 / -1;
  }

  .case-ui-lower {
    grid-template-columns: 1fr;
  }

  .case-list {
    min-height: 0;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr auto;
  }

  .filter-reset {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.25rem);
  }

  .brand-copy {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .visual-orbit-one {
    width: 390px;
    height: 390px;
  }

  .visual-orbit-two {
    width: 480px;
    height: 480px;
  }

  .dashboard-window {
    transform: none;
  }

  .dashboard-content {
    grid-template-columns: 48px 1fr;
  }

  .dashboard-sidebar {
    padding-inline: 9px;
  }

  .dashboard-main {
    padding: 17px;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-widget:nth-child(2) {
    display: none;
  }

  .floating-note-top {
    top: 20px;
    right: 0;
  }

  .floating-note-bottom {
    bottom: 10px;
    left: 0;
  }

  .trust-strip-inner,
  .trust-items,
  .section-heading,
  .footer-cta,
  .footer-bottom,
  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trust-strip-inner {
    padding: 22px 0;
  }

  .trust-items {
    gap: 10px;
  }

  .trust-items i {
    display: none;
  }

  .project-grid,
  .project-grid-all {
    grid-template-columns: 1fr;
  }

  .project-card-link {
    min-height: 390px;
  }

  .impact-card {
    grid-template-columns: 48px 1fr;
    padding: 22px;
  }

  .impact-number {
    width: 43px;
    height: 43px;
  }

  .expertise-item,
  .values-list article {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .closing-card,
  .closing-quote,
  .contact-form-card {
    min-height: 0;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .button-filter {
    width: 100%;
  }

  .case-browser-bar {
    grid-template-columns: 1fr auto;
  }

  .case-browser-bar small {
    display: none;
  }

  .case-screen {
    grid-template-columns: 1fr;
  }

  .case-screen aside {
    display: none;
  }

  .case-ui {
    padding: 18px;
  }

  .case-widget-grid {
    grid-template-columns: 1fr;
  }

  .case-widget-grid .case-widget:last-child {
    grid-column: auto;
  }

  .case-ui-head button {
    display: none;
  }

  .large-metrics {
    grid-template-columns: 1fr;
  }

  .large-metrics div {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .large-metrics div:last-child {
    border-bottom: 0;
  }

  .about-portrait {
    min-height: 430px;
  }

  .portrait-card {
    right: 0;
  }

  .portrait-label {
    right: 12px;
  }

  .timeline::before {
    left: 72px;
  }

  .timeline article {
    grid-template-columns: 72px 1fr;
    gap: 25px;
  }

  .timeline article::before {
    left: 66px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-options strong {
    max-width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Motion layer — technological depth and progressive effects
   ========================================================= */

:root {
  --pointer-x: 50vw;
  --pointer-y: 35vh;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(53, 105, 243, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 105, 243, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 42rem;
  height: 42rem;
  pointer-events: none;
  background: radial-gradient(circle, rgba(67, 115, 255, 0.115), rgba(117, 76, 255, 0.035) 38%, transparent 68%);
  border-radius: 50%;
  transform: translate(calc(var(--pointer-x) - 50%), calc(var(--pointer-y) - 50%));
  transition: transform 90ms linear;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #3569f3, #754eea, #34b5d2) 0 0 / var(--scroll, 0%) 100% no-repeat;
  filter: drop-shadow(0 0 8px rgba(53, 105, 243, 0.55));
}

.motion-ready body {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 360ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready body.page-entered {
  opacity: 1;
  transform: none;
}

.motion-ready body.page-leaving {
  opacity: 0;
  transform: translateY(-5px);
  transition-duration: 210ms;
}

.hero::before {
  position: absolute;
  top: 12%;
  right: 5%;
  width: 18rem;
  height: 18rem;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(117, 76, 255, 0.1), transparent 68%);
  filter: blur(8px);
  animation: tech-drift 9s ease-in-out infinite alternate;
}

.hero {
  position: relative;
  overflow: clip;
}

.dashboard-window,
.project-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}

.dashboard-window {
  transform: perspective(1500px) rotateX(var(--tilt-x)) rotateY(calc(-5deg + var(--tilt-y))) translateZ(0);
  transition: transform 170ms ease-out, box-shadow 250ms ease;
}

.dashboard-window:hover {
  box-shadow: 0 42px 110px rgba(32, 50, 87, 0.23), 0 0 0 1px rgba(77, 121, 255, 0.12);
}

.dashboard-window::after,
.project-card::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.38), transparent 33%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 220ms ease;
}

.dashboard-window:hover::after,
.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px);
}

.visual-orbit-one::before,
.visual-orbit-two::before {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  content: "";
  background: #4d79ff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(77, 121, 255, 0.12), 0 0 22px #4d79ff;
}

.visual-orbit-one {
  animation: orbit-breathe 5s ease-in-out infinite alternate;
}

.floating-note-top {
  animation: float-note 4.8s ease-in-out infinite;
}

.floating-note-bottom {
  animation: float-note 5.4s 0.7s ease-in-out infinite reverse;
}

.chart-bars span {
  transform: scaleY(0.05);
  transform-origin: bottom;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bars.chart-live span {
  transform: scaleY(1);
}

.chart-bars.chart-live span:nth-child(2) { transition-delay: 55ms; }
.chart-bars.chart-live span:nth-child(3) { transition-delay: 110ms; }
.chart-bars.chart-live span:nth-child(4) { transition-delay: 165ms; }
.chart-bars.chart-live span:nth-child(5) { transition-delay: 220ms; }
.chart-bars.chart-live span:nth-child(6) { transition-delay: 275ms; }
.chart-bars.chart-live span:nth-child(7) { transition-delay: 330ms; }
.chart-bars.chart-live span:nth-child(8) { transition-delay: 385ms; }
.chart-bars.chart-live span:nth-child(9) { transition-delay: 440ms; }

.motion-item {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 650ms ease var(--motion-delay, 0ms), transform 750ms cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay, 0ms);
}

.motion-item.motion-in {
  opacity: 1;
  transform: none;
}

.timeline article::before {
  box-shadow: 0 0 0 0 rgba(53, 105, 243, 0.28);
  animation: timeline-ping 2.8s ease-out infinite;
}

.skills-cloud span,
.tag-row span,
.project-tags span {
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.skills-cloud span:hover,
.tag-row span:hover,
.project-tags span:hover {
  color: var(--accent);
  border-color: rgba(53, 105, 243, 0.35);
  transform: translateY(-2px);
}

@keyframes tech-drift {
  to { transform: translate(-70px, 55px) scale(1.18); }
}

@keyframes orbit-breathe {
  to { transform: scale(1.045) rotate(5deg); opacity: 0.72; }
}

@keyframes float-note {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes timeline-ping {
  65%, 100% { box-shadow: 0 0 0 12px rgba(53, 105, 243, 0); }
}

@media (max-width: 680px) {
  .dashboard-window,
  .project-card:hover {
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready body,
  .motion-ready body.page-entered,
  .motion-ready body.page-leaving,
  .motion-item,
  .chart-bars span {
    opacity: 1;
    transform: none;
  }

  .cursor-glow,
  .scroll-progress {
    display: none;
  }
}

/* Project detail placeholder */
.project-soon {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.project-soon::before,
.project-soon::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(53, 105, 243, 0.14);
  border-radius: 50%;
}

.project-soon::before {
  width: min(72vw, 780px);
  aspect-ratio: 1;
  animation: spin 55s linear infinite;
}

.project-soon::after {
  width: min(54vw, 560px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 38s linear infinite reverse;
}

.project-soon-card {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  padding: clamp(34px, 7vw, 74px);
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 210, 220, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 100px rgba(32, 50, 87, 0.15);
  backdrop-filter: blur(20px);
}

.project-soon-card::before {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 430px;
  height: 300px;
  content: "";
  background: radial-gradient(circle, var(--project-soft, #eaf0ff), transparent 70%);
  transform: translateX(-50%);
}

.project-soon-icon {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  place-items: center;
  color: var(--project-accent, var(--accent));
  background: var(--project-soft, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--project-accent, var(--accent)) 20%, transparent);
  border-radius: 22px;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--project-soft, var(--accent-soft)) 65%, transparent);
  animation: float-note 4.8s ease-in-out infinite;
}

.project-soon-card .eyebrow,
.project-soon-card h1,
.project-soon-card > p,
.project-soon-status,
.project-soon-actions {
  position: relative;
}

.project-soon-card h1 {
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
}

.project-soon-card > p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.project-soon-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 9px 14px;
  color: #3156b8;
  background: #edf2ff;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.project-soon-status span {
  width: 8px;
  height: 8px;
  background: var(--project-accent, var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--project-accent, var(--accent)) 14%, transparent);
}

.project-soon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 680px) {
  .project-soon { padding: 40px 0; }
  .project-soon::before { width: 150vw; }
  .project-soon::after { width: 110vw; }
}
