:root {
  --ink: #111216;
  --muted: #5c626d;
  --blue: #1d4df2;
  --blue-dark: #1134b3;
  --lime: #ddff62;
  --paper: #ffffff;
  --soft: #f4f5f6;
  --line: #dfe2e6;
  --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
}
.brand strong { color: var(--blue); }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 5px;
  background: var(--blue);
  color: white;
  font-weight: 900;
}
nav { display: flex; gap: 30px; font-size: 14px; font-weight: 750; }
nav a:hover { color: var(--blue); }
.header-button { justify-self: end; }

.button {
  min-height: 48px;
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 19px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  overflow: hidden;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 18, 22, 0.16); }
.button span { display: inline-block; transition: transform 220ms ease; }
.button:hover span { transform: translateX(4px); }
.button-dark { background: var(--ink); color: white; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); }

.hero { min-height: 690px; display: flex; align-items: center; padding: 56px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 90px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: 72px; font-weight: 870; line-height: 1; }
.hero-text { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.email-link { border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 800; }
.email-link:hover { color: var(--blue); }
.reply-note { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.reply-note span { width: 9px; height: 9px; border-radius: 50%; background: #24a566; box-shadow: 0 0 0 4px #e0f4e8; }

.js .hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
}
.js.page-ready .hero-copy > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.js.page-ready .hero-copy > :nth-child(2) { transition-delay: 80ms; }
.js.page-ready .hero-copy > :nth-child(3) { transition-delay: 150ms; }
.js.page-ready .hero-copy > :nth-child(4) { transition-delay: 220ms; }
.js.page-ready .hero-copy > :nth-child(5) { transition-delay: 290ms; }

.hero-visual { position: relative; height: 500px; --mx: 0; --my: 0; }
.hero-visual img {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 5px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease, transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 320ms ease;
}
.hero-main-image {
  top: 0;
  left: 0;
  width: 72%;
  height: 88%;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -8px), 0) rotate(-4deg) scale(0.96);
}
.hero-small-image {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 52%;
  transform: translate3d(calc(var(--mx) * 11px), calc(var(--my) * 11px), 0) rotate(4deg) scale(0.94);
}
.page-ready .hero-visual img { opacity: 1; box-shadow: 0 18px 44px rgba(17, 18, 22, 0.12); }
.page-ready .hero-main-image { transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -8px), 0) rotate(-2deg) scale(1); }
.page-ready .hero-small-image { transform: translate3d(calc(var(--mx) * 11px), calc(var(--my) * 11px), 0) rotate(2deg) scale(1); }
.visual-label {
  position: absolute;
  top: 20px;
  right: 0;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-10px) rotate(3deg);
  transition: opacity 520ms ease 420ms, transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1) 420ms;
}
.page-ready .visual-label { opacity: 1; transform: translateY(0) rotate(3deg); }

.service-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service-grid article {
  min-height: 270px;
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  align-items: start;
  gap: 20px;
  padding: 42px 50px 40px 0;
  border-right: 1px solid var(--line);
}
.service-grid article:last-child { padding-right: 0; padding-left: 50px; border-right: 0; }
.service-number { margin: 5px 0 0; color: var(--blue); font-size: 11px; font-weight: 900; }
.service-grid h2 { margin-bottom: 12px; font-size: 32px; line-height: 1.1; }
.service-grid article div > p { max-width: 430px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.service-grid .price-note { margin-bottom: 0; color: var(--ink); font-weight: 800; }
.service-grid article > a { font-size: 26px; line-height: 1; transition: color 180ms ease, transform 180ms ease; }
.service-grid article > a:hover { color: var(--blue); }
.service-grid article:hover > a { transform: translateX(6px); }
.service-grid article { transition: background 220ms ease; }
.service-grid article:hover { background: rgba(255, 255, 255, 0.62); }

.section { padding: 96px 0; }
.section-title {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}
.section-title h2, .contact-copy h2 { margin-bottom: 0; font-size: 54px; font-weight: 850; line-height: 1.04; }
.section-title > p { margin: 0; color: var(--muted); font-size: 16px; }

.work-section { background: var(--paper); }
.portfolio-grid { columns: 3; column-gap: 20px; }
.portfolio-item { break-inside: avoid; margin: 0 0 24px; overflow: hidden; }
.portfolio-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  background: var(--soft);
  transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 320ms ease;
}
.portfolio-item figcaption {
  padding-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  transition: color 220ms ease, transform 220ms ease;
}
.portfolio-item:hover img { transform: scale(1.018); filter: saturate(1.05); }
.portfolio-item:hover figcaption { color: var(--ink); transform: translateX(5px); }

.case-studies { background: var(--ink); color: white; }
.case-section-title { margin-bottom: 18px; }
.case-section-title .eyebrow { color: var(--lime); }
.case-section-title > p { color: #b7bdc7; }
.case-study { padding: 84px 0; border-top: 1px solid #373b43; scroll-margin-top: 72px; }
.case-intro {
  display: grid;
  grid-template-columns: 110px minmax(300px, 0.95fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 42px;
  margin-bottom: 46px;
}
.case-index { margin: 8px 0 0; color: var(--lime); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.case-intro h3 { max-width: 560px; margin: 0; font-size: 42px; line-height: 1.08; }
.case-intro > div > p { margin-bottom: 22px; color: #b7bdc7; font-size: 15px; line-height: 1.65; }
.case-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.case-points li { position: relative; padding-left: 13px; color: white; font-size: 12px; font-weight: 750; }
.case-points li::before { content: ""; position: absolute; top: 7px; left: 0; width: 5px; height: 5px; background: var(--lime); }
.product-case-grid { display: grid; grid-template-columns: 0.52fr 0.58fr 1fr; align-items: start; gap: 20px; }
.case-figure { margin: 0; }
.case-image { overflow: hidden; border: 1px solid #3d4149; border-radius: 5px; background: #22252a; }
.case-image img { width: 100%; height: auto; transition: transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1); }
.case-figure:hover .case-image img { transform: scale(1.012); }
.source-image { min-height: 520px; display: grid; place-items: center; padding: 24px; background: #08090a; }
.source-image img { max-height: 640px; object-fit: contain; }
.case-figure figcaption { display: flex; gap: 11px; padding-top: 10px; color: #c1c6ce; font-size: 12px; }
.case-figure figcaption span { color: var(--lime); font-weight: 900; }

.local-edit-layout { display: grid; grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 0.78fr); align-items: start; gap: 100px; }
.case-intro-stacked { position: sticky; top: 110px; grid-template-columns: 1fr; gap: 20px; margin-bottom: 0; }
.case-intro-stacked .case-index { margin-top: 0; }
.before-after { position: relative; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid #444952; border-radius: 5px; background: #262a30; }
.before-after > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.comparison-before { clip-path: inset(0 calc(100% - var(--position)) 0 0); }
.comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--position); width: 2px; background: white; transform: translateX(-1px); pointer-events: none; }
.comparison-divider > span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: white; color: var(--ink); font-size: 18px; font-weight: 900; transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }
.comparison-label { position: absolute; top: 14px; z-index: 2; padding: 7px 10px; border-radius: 4px; background: rgba(17, 18, 22, 0.82); color: white; font-size: 10px; font-weight: 900; text-transform: uppercase; pointer-events: none; }
.comparison-label-before { left: 14px; }
.comparison-label-after { right: 14px; }
.comparison-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparison-hint { margin: 10px 0 0; color: #9ea5b0; font-size: 11px; text-align: center; }

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

.js .reveal-item {
  opacity: 0;
  transform: translateY(34px);
}
.js .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease var(--reveal-delay, 0ms), transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--reveal-delay, 0ms);
}

.steps-section { border-top: 1px solid var(--line); background: var(--soft); }
.simple-title { grid-template-columns: 1fr; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.steps li { min-height: 220px; padding: 26px 34px 24px; border-right: 1px solid var(--line); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps span { color: var(--blue); font-size: 12px; font-weight: 900; }
.steps h3 { margin: 60px 0 10px; font-size: 21px; }
.steps p { max-width: 280px; margin: 0; color: var(--muted); font-size: 14px; }
.steps li { transition: background 220ms ease, padding-left 220ms ease; }
.steps li:hover { background: var(--paper); }

.contact-section { padding: 100px 0; background: var(--blue); color: white; }
.contact-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; align-items: start; gap: 100px; }
.contact-copy .eyebrow { color: var(--lime); }
.contact-copy h2 { max-width: 480px; margin-bottom: 22px; }
.contact-copy p:not(.eyebrow) { max-width: 470px; color: #dfe5ff; font-size: 17px; }
.contact-copy > a { display: inline-block; margin-top: 14px; border-bottom: 1px solid currentColor; font-weight: 800; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 18px; padding: 32px; border-radius: 6px; background: white; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
label span { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #cbd0d7; border-radius: 4px; padding: 12px 13px; background: white; color: var(--ink); outline: none; }
input, select { height: 48px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 77, 242, 0.12); }
.contact-form .button { width: 100%; }
.form-note, .form-status { margin: -4px 0 0; color: var(--muted); font-size: 11px; }
.form-status { min-height: 16px; color: #13703d; font-weight: 700; }

.site-footer { padding: 44px 0 20px; background: var(--ink); color: white; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.footer-inner > p { margin: 0; color: #aeb4bd; font-size: 13px; }
.footer-inner > div { display: flex; gap: 20px; color: #aeb4bd; font-size: 12px; }
.footer-inner a:hover { color: var(--lime); }

@media (max-width: 940px) {
  .header-inner { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  h1 { font-size: 62px; }
  .hero-visual { max-width: 700px; height: 430px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article, .service-grid article:last-child { padding: 36px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-grid article:last-child { border-bottom: 0; }
  .section-title { grid-template-columns: 1fr; gap: 18px; }
  .portfolio-grid { columns: 2; }
  .case-intro { grid-template-columns: 80px 1fr; }
  .case-intro > div { grid-column: 2; }
  .product-case-grid { grid-template-columns: 0.75fr 0.75fr; }
  .product-case-grid .case-figure:last-child { grid-column: 1 / -1; width: 70%; justify-self: center; }
  .local-edit-layout { grid-template-columns: 1fr; gap: 44px; }
  .case-intro-stacked { position: static; grid-template-columns: 80px 1fr; }
  .case-intro-stacked > div { grid-column: 2; }
  .comparison-wrap { width: min(100%, 580px); justify-self: center; }
  .portrait-case-grid { grid-template-columns: 1fr 1fr; }
  .portrait-case-grid .case-figure:last-child { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { min-height: 64px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .header-button { min-height: 40px; padding: 0 14px; font-size: 12px; }
  .hero { padding: 34px 0 28px; }
  .hero-grid { gap: 28px; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; }
  h1 { margin-bottom: 18px; font-size: 44px; }
  .hero-text { margin-bottom: 22px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; }
  .email-link { align-self: flex-start; }
  .reply-note { margin-top: 22px; }
  .hero-visual { height: 190px; }
  .hero-main-image { width: 72%; height: 90%; }
  .hero-small-image { width: 49%; height: 53%; }
  .visual-label { top: 6px; right: -3px; padding: 6px 8px; font-size: 8px; }
  .service-grid article, .service-grid article:last-child { grid-template-columns: 32px 1fr 24px; gap: 10px; padding: 30px 0; }
  .service-grid h2 { font-size: 26px; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 30px; }
  .section-title h2, .contact-copy h2 { font-size: 38px; }
  .portfolio-grid { columns: 1; }
  .case-studies { padding-top: 72px; padding-bottom: 72px; }
  .case-study { padding: 62px 0; }
  .case-intro, .case-intro-stacked { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .case-intro > div, .case-intro-stacked > div { grid-column: auto; }
  .case-intro h3 { font-size: 32px; }
  .product-case-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-case-grid .case-figure:last-child { grid-column: auto; width: 100%; }
  .source-image { min-height: 440px; }
  .local-edit-layout { gap: 32px; }
  .portrait-case-grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait-case-grid .case-figure:last-child { grid-column: auto; width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child { min-height: 180px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .steps h3 { margin-top: 38px; }
  .contact-section { padding: 72px 0; }
  .contact-grid { gap: 34px; }
  .contact-form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 420px) {
  h1 { font-size: 41px; }
  .hero-visual { height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .hero-copy > *,
  .js .reveal-item,
  .hero-visual img,
  .visual-label { opacity: 1 !important; transform: none !important; }
}
