/*
  Corsto shared stylesheet.
  Future pages should reuse these variables, components, spacing rules and
  motion patterns before adding page-specific CSS.
*/

:root {
  --bg: #f6f1ea;
  --paper: #fbf7f1;
  --panel: #fffdf9;
  --ink: #141211;
  --muted: #716963;
  --line: rgba(20, 18, 17, 0.12);
  --dark: #11100f;
  --dark-soft: #201d1c;
  --rose: #d84f72;
  --rose-dark: #aa3655;
  --teal: #23bdbb;
  --amber: #f49a22;
  --coral: #e76c70;
  --max: 1160px;
  --radius: 12px;
  --shadow-soft: 0 20px 50px rgba(20, 18, 17, 0.08);
  --shadow-strong: 0 34px 90px rgba(20, 18, 17, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(216, 79, 114, 0.22);
}

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

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

[id] {
  scroll-margin-top: 90px;
}

.container,
.nav {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--ink);
  background: rgba(246, 241, 234, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 247, 241, 0.92);
  border-color: var(--line);
  box-shadow: 0 12px 34px rgba(20, 18, 17, 0.07);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  width: 156px;
}

.brand img {
  width: 156px;
  height: auto;
}

.menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.menu a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(20, 18, 17, 0.72);
  white-space: nowrap;
  transition: color 180ms var(--ease);
}

.menu a:hover,
.menu a:focus-visible,
.menu a.is-active {
  color: var(--ink);
  outline: none;
}

.nav-indicator {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 0;
  width: 58px;
  height: 38px;
  border-radius: 999px;
  background: rgba(216, 79, 114, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms var(--ease), width 220ms var(--ease), opacity 180ms var(--ease);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone {
  color: rgba(20, 18, 17, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

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

.button.primary {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 14px 30px rgba(216, 79, 114, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--rose-dark);
  box-shadow: 0 18px 42px rgba(216, 79, 114, 0.34);
}

.button.secondary {
  background: rgba(20, 18, 17, 0.04);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.mobile-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mobile-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-button span,
.mobile-button::before,
.mobile-button::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.mobile-button {
  flex-direction: column;
  gap: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  padding: 112px 0 76px;
  background:
    radial-gradient(circle at 78% 18%, rgba(35, 189, 187, 0.2), transparent 26%),
    radial-gradient(circle at 18% 22%, rgba(216, 79, 114, 0.16), transparent 28%),
    linear-gradient(180deg, var(--bg), #f8f2ec 70%, #f7efe7);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 18, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 18, 17, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.56) 34%, transparent 48%),
    linear-gradient(24deg, transparent 48%, rgba(244, 154, 34, 0.12), transparent 78%);
  transform: translateX(-10%);
  animation: softSweep 18s var(--ease) infinite alternate;
  content: "";
  pointer-events: none;
}

.brand-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.brand-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.64;
  animation: floatDot 9s ease-in-out infinite alternate;
}

.brand-orbit span:nth-child(1) {
  top: 18%;
  left: 8%;
  background: var(--rose);
}

.brand-orbit span:nth-child(2) {
  top: 24%;
  right: 12%;
  background: var(--teal);
  animation-delay: 800ms;
}

.brand-orbit span:nth-child(3) {
  bottom: 22%;
  left: 16%;
  background: var(--amber);
  animation-delay: 1400ms;
}

.brand-orbit span:nth-child(4) {
  right: 24%;
  bottom: 14%;
  background: var(--coral);
  animation-delay: 2200ms;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 0.95fr);
  gap: 70px;
  align-items: center;
  min-height: calc(100svh - 188px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 5.9vw, 6.2rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.1vw, 4.7rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.16;
}

.hero-copy,
.section-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-copy {
  margin-bottom: 30px;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: rgba(20, 18, 17, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
}

.trust-row span {
  position: relative;
  padding-left: 16px;
}

.trust-row span::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.hero-studio {
  position: relative;
  min-height: 650px;
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease);
}

.studio-glow {
  position: absolute;
  inset: 8% 2% 10% 4%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 72% 32%, rgba(35, 189, 187, 0.36), transparent 36%),
    radial-gradient(circle at 24% 72%, rgba(216, 79, 114, 0.28), transparent 36%);
  filter: blur(18px);
  opacity: 0.88;
  animation: glowDrift 10s ease-in-out infinite alternate;
}

.browser-mockup {
  position: absolute;
  top: 54px;
  right: 0;
  width: min(100%, 610px);
  overflow: hidden;
  border: 1px solid rgba(20, 18, 17, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
  animation: mockupIn 900ms var(--ease) both 380ms;
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: rgba(20, 18, 17, 0.48);
  font-size: 0.78rem;
  font-weight: 800;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) {
  background: var(--rose);
}

.browser-dots span:nth-child(2) {
  background: var(--amber);
}

.browser-dots span:nth-child(3) {
  background: var(--teal);
}

.browser-canvas {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.canvas-copy {
  display: grid;
  gap: 8px;
  max-width: 390px;
}

.canvas-copy span,
.canvas-metrics span,
.hero-float small,
.portfolio-copy span {
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.canvas-copy strong {
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.12;
}

.browser-canvas figure {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  box-shadow: 0 20px 44px rgba(20, 18, 17, 0.12);
}

.browser-canvas img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.canvas-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.canvas-metrics span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  width: 210px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(18px);
  animation: floatIn 620ms var(--ease) forwards;
}

.hero-float strong {
  display: block;
  line-height: 1.1;
}

.hero-float small {
  display: block;
  margin-top: 4px;
  color: rgba(20, 18, 17, 0.56);
  letter-spacing: 0;
  text-transform: none;
}

.hero-float-web {
  top: 18px;
  left: 4%;
  animation-delay: 780ms;
}

.hero-float-seo {
  top: 168px;
  right: -20px;
  animation-delay: 940ms;
}

.hero-float-ads {
  left: -12px;
  bottom: 164px;
  animation-delay: 1100ms;
}

.hero-float-care {
  right: 6%;
  bottom: 34px;
  animation-delay: 1260ms;
}

.mini-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(216, 79, 114, 0.12);
}

.mini-icon::before,
.mini-icon::after {
  position: absolute;
  content: "";
}

.mini-icon-window::before {
  inset: 10px 8px 8px;
  border: 2px solid var(--rose);
  border-radius: 3px;
}

.mini-icon-window::after {
  top: 15px;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--rose);
}

.mini-icon-search::before {
  width: 15px;
  height: 15px;
  border: 3px solid var(--teal);
  border-radius: 50%;
}

.mini-icon-search::after {
  width: 11px;
  height: 3px;
  right: 8px;
  bottom: 9px;
  border-radius: 999px;
  background: var(--teal);
  transform: rotate(45deg);
}

.mini-icon-bars::before {
  left: 9px;
  bottom: 10px;
  width: 5px;
  height: 11px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 9px -7px 0 var(--amber), 18px -13px 0 var(--amber);
}

.mini-icon-check::before {
  width: 16px;
  height: 9px;
  border-right: 3px solid var(--coral);
  border-bottom: 3px solid var(--coral);
  transform: rotate(38deg) translate(-1px, -2px);
}

.section {
  padding: 110px 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.5fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 58px;
}

.services-section {
  background: var(--paper);
}

.services-studio {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.7fr);
  gap: 58px;
  align-items: start;
}

.service-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.service-item:hover,
.service-item.is-active {
  transform: translateX(6px);
}

.service-item span {
  color: var(--rose);
  font-size: 1rem;
  font-weight: 850;
}

.service-item h3 {
  margin-bottom: 10px;
}

.service-item p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 850;
  white-space: nowrap;
}

.text-link::after {
  content: "->";
  color: var(--rose);
  transition: transform 180ms var(--ease);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(5px);
}

.service-preview {
  position: sticky;
  top: 112px;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216, 79, 114, 0.12), transparent 38%),
    linear-gradient(24deg, transparent 45%, rgba(35, 189, 187, 0.12)),
    var(--dark);
  box-shadow: var(--shadow-strong);
}

.service-preview::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  content: "";
  pointer-events: none;
}

.preview-scene {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 34px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}

.preview-scene.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.preview-wireframe,
.preview-browser,
.rank-card,
.ad-card,
.task-list,
.support-pulse {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.preview-wireframe {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.preview-wireframe span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.preview-wireframe span:nth-child(1) {
  width: 72%;
}

.preview-wireframe span:nth-child(2) {
  width: 46%;
}

.preview-wireframe span:nth-child(3) {
  width: 88%;
  background: var(--rose);
}

.preview-browser {
  overflow: hidden;
}

.preview-browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.seo-map {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.seo-map span {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.rank-card,
.support-pulse {
  padding: 22px;
}

.rank-card small,
.support-pulse small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

.ad-card {
  padding: 22px;
}

.ad-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.task-list {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.task-list span {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
}

.task-list span::before {
  position: absolute;
  top: 17px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.transform-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 24%, rgba(244, 154, 34, 0.12), transparent 30%),
    var(--bg);
}

.transform-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: center;
}

.transform-copy h2 {
  margin-bottom: 22px;
}

.transform-visual {
  position: relative;
  display: grid;
  grid-template-columns: 0.78fr 80px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 520px;
}

.messy-inputs {
  position: relative;
  height: 420px;
}

.messy-inputs span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: rgba(20, 18, 17, 0.72);
  font-weight: 760;
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--r, 0deg));
}

.messy-inputs span:nth-child(1) {
  top: 26px;
  left: 18px;
  --r: -4deg;
}

.messy-inputs span:nth-child(2) {
  top: 122px;
  right: 18px;
  --r: 3deg;
}

.messy-inputs span:nth-child(3) {
  top: 214px;
  left: 4px;
  --r: 5deg;
}

.messy-inputs span:nth-child(4) {
  right: 8px;
  bottom: 82px;
  --r: -5deg;
}

.messy-inputs span:nth-child(5) {
  left: 56px;
  bottom: 18px;
  --r: 2deg;
}

.transform-arrow {
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  transform-origin: left;
}

.transform-arrow::after {
  display: block;
  width: 12px;
  height: 12px;
  margin-left: auto;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  transform: rotate(45deg) translateY(-5px);
  content: "";
}

.clean-output {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: var(--shadow-strong);
}

.output-top,
.output-hero,
.output-grid span,
.output-cta {
  border-radius: 8px;
}

.output-top {
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
}

.output-hero {
  height: 140px;
  background: linear-gradient(135deg, rgba(216, 79, 114, 0.7), rgba(35, 189, 187, 0.58));
}

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

.output-grid span {
  height: 92px;
  background: rgba(255, 255, 255, 0.12);
}

.output-cta {
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
}

.transform-visual.is-visible .messy-inputs span {
  animation: organiseInputs 900ms var(--ease) both;
}

.transform-visual.is-visible .clean-output {
  animation: outputRise 900ms var(--ease) both 160ms;
}

.work-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 12%, rgba(35, 189, 187, 0.16), transparent 32%),
    linear-gradient(180deg, #11100f, #1a1716);
  color: #fff;
}

.work-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
  content: "";
  pointer-events: none;
}

.work-section .container,
.portfolio-showcase {
  position: relative;
  z-index: 1;
}

.work-section h2 {
  color: #fff;
}

.work-section .section-intro {
  color: rgba(255, 255, 255, 0.68);
}

.portfolio-showcase {
  display: grid;
  gap: 48px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.portfolio-panel {
  position: sticky;
  top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.48fr);
  gap: 38px;
  align-items: end;
  min-height: 620px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.portfolio-panel:nth-child(2) {
  top: 116px;
}

.portfolio-panel:nth-child(3) {
  top: 136px;
}

.portfolio-panel figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.portfolio-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease), filter 320ms var(--ease);
}

.portfolio-panel.is-active img,
.portfolio-panel:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.065);
}

.portfolio-copy span {
  color: var(--teal);
}

.portfolio-copy h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.portfolio-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.light-link {
  color: #fff;
}

.light-link::after {
  color: var(--teal);
}

.process-section {
  background: var(--paper);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: 72px;
  align-items: start;
}

.process-heading {
  position: sticky;
  top: 120px;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.timeline-step {
  display: grid;
  grid-template-columns: 82px 170px 1fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-step span {
  color: var(--rose);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
}

.timeline-step h3 {
  margin-bottom: 0;
}

.timeline-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-section {
  overflow: hidden;
  background: var(--bg);
}

.logo-marquee {
  margin: 0 0 42px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logoMove 34s linear infinite;
}

.logo-track img {
  width: 190px;
  height: 106px;
  object-fit: contain;
  padding: 24px;
  filter: saturate(0.82);
  opacity: 0.82;
}

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

.quote-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 64px rgba(20, 18, 17, 0.1);
}

.quote-card p {
  margin-bottom: 22px;
  color: rgba(20, 18, 17, 0.82);
  font-size: 1.02rem;
}

.quote-card cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(35, 189, 187, 0.22), transparent 30%),
    radial-gradient(circle at 18% 74%, rgba(216, 79, 114, 0.22), transparent 32%),
    var(--dark);
}

.final-cta::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  content: "";
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  inset: 8% 8% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216, 79, 114, 0.26), rgba(35, 189, 187, 0.18));
  filter: blur(42px);
  animation: glowDrift 10s ease-in-out infinite alternate;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.45fr);
  gap: 56px;
  align-items: end;
}

.final-cta h2 {
  max-width: 880px;
  color: #fff;
}

.final-cta-copy p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 52px 0;
  color: rgba(255, 255, 255, 0.66);
  background: #100f0e;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.site-footer img {
  width: 148px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  max-width: 520px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
  max-width: 430px;
  font-weight: 760;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 660ms var(--ease), transform 660ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes softSweep {
  to {
    transform: translateX(10%);
  }
}

@keyframes floatDot {
  to {
    transform: translate3d(18px, -22px, 0);
  }
}

@keyframes glowDrift {
  to {
    transform: translate3d(-18px, 14px, 0) scale(1.06);
  }
}

@keyframes mockupIn {
  from {
    opacity: 0;
    transform: translate3d(28px, 24px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes floatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes organiseInputs {
  to {
    transform: rotate(0deg) translateY(-8px);
  }
}

@keyframes outputRise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoMove {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .nav {
    min-height: 72px;
  }

  .menu,
  .nav-actions {
    display: none;
  }

  .mobile-button {
    display: flex;
  }

  .mobile-toggle:checked ~ .menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    padding: 18px 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 247, 241, 0.98);
    box-shadow: 0 24px 60px rgba(20, 18, 17, 0.12);
  }

  .mobile-toggle:checked ~ .menu a {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 0;
  }

  .nav-indicator {
    display: none;
  }

  .hero-layout,
  .split-heading,
  .services-studio,
  .transform-layout,
  .process-layout,
  .final-cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 54px;
    min-height: auto;
  }

  .hero-studio {
    min-height: 650px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }

  .service-preview,
  .process-heading {
    position: relative;
    top: auto;
  }

  .transform-visual {
    max-width: 760px;
  }

  .portfolio-panel {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portfolio-panel:nth-child(2),
  .portfolio-panel:nth-child(3) {
    top: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .brand,
  .brand img {
    width: 136px;
  }

  .hero {
    padding: 102px 0 66px;
  }

  h1 {
    font-size: clamp(2.72rem, 13vw, 4.05rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero-studio {
    min-height: auto;
  }

  .browser-mockup,
  .hero-float {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .browser-mockup {
    margin-bottom: 14px;
  }

  .hero-float {
    margin-bottom: 10px;
    animation-delay: 0ms;
  }

  .hero-float-care {
    margin-bottom: 0;
  }

  .canvas-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 78px 0;
  }

  .split-heading {
    gap: 20px;
    margin-bottom: 36px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .service-preview {
    min-height: 500px;
  }

  .preview-scene {
    padding: 22px;
  }

  .transform-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .messy-inputs {
    height: 330px;
  }

  .transform-arrow {
    width: 2px;
    height: 54px;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .portfolio-showcase {
    width: min(100% - 30px, 1240px);
    gap: 28px;
  }

  .portfolio-panel {
    padding: 18px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline-step span {
    font-size: 1.35rem;
  }

  .logo-track img {
    width: 164px;
  }

  .final-cta {
    padding: 88px 0;
  }
}

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

  .reveal,
  .hero-float,
  .browser-mockup,
  .transform-visual .messy-inputs span,
  .transform-visual .clean-output {
    opacity: 1 !important;
    transform: none !important;
  }

  .logo-track {
    animation: none !important;
  }
}
