/* Layout idea: dark studio page. The hero is a working demo you can resize;
   the rest is three big project panels, a short services list, and contact. */
:root {
  --bg: #0B0D10;
  --surface: #13161B;
  --surface-2: #1A1E24;
  --line: #252A31;
  --line-2: #353A42;
  --text: #EDEEF0;
  --muted: #A9AEB6;
  --dim: #6B717B;
  --accent: #7C93FF;
  --accent-text: #9DB0FF;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}

svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* Header */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: #C3C7CD;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg) !important;
  font-weight: 600;
  text-decoration: none;
}

/* Hero */
.hero {
  padding-top: 48px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 56px;
}

.hero h1 {
  flex: 999 1 620px;
  font-weight: 700;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-side {
  flex: 1 1 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-side p {
  font-size: 18px;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}

.btn-quiet {
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* Showcase: the sample site is laid out at real pixel widths inside a fixed
   1140 x 660 "screen", then scaled to fit, so it plays the same on any device. */
.showcase {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
}

.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1140 / 660;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}

.scaler {
  position: absolute;
  left: 0;
  top: 0;
  width: 1140px;
  height: 660px;
  transform-origin: 0 0;
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.frame {
  width: 1100px;
  height: 700px;
  transition: width 0.9s cubic-bezier(.65, 0, .35, 1);
}

.browser {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: border-radius 0.9s ease;
}

.frame.is-phone .browser {
  border-radius: 30px;
}

.browser-bar {
  height: 30px;
  background: #1E2228;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A3F48;
  flex: none;
}

.browser-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: #8B9099;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 6px 2px;
}

.now-showing {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.now-showing svg {
  color: var(--text);
}

.now-showing b {
  color: var(--text);
  font-weight: 600;
}

.device-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-dots button,
.play-btn {
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 13px var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.device-dots button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.play-btn {
  margin-left: 6px;
}

/* The sample site. Its layout responds to its own width with container queries,
   so it reflows inside the frame exactly as it would on a real device. */
.demo {
  container-type: inline-size;
  container-name: demo;
  min-height: calc(100% - 30px);
  background: var(--d-bg);
  color: var(--d-fg);
  transition: background 0.3s ease, color 0.3s ease;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 44px;
  border-bottom: 1px solid var(--d-line);
}

.demo-name {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 20px;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.demo-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--d-muted);
}

.demo-burger {
  display: none;
}

.demo-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 52px 44px;
}

.demo-copy {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-accent-text);
}

.demo-title {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.05;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.demo-sub {
  font-size: 17px;
  color: var(--d-muted);
}

.demo-cta {
  align-self: flex-start;
  background: var(--d-accent);
  color: var(--d-accent-fg);
  padding: 12px 20px;
  border-radius: var(--d-radius);
  font-weight: 600;
  font-size: 14px;
}

.demo-art {
  flex: 1 1 0;
  min-width: 0;
  height: 280px;
  border-radius: var(--d-radius);
  background: var(--d-art1);
  position: relative;
  overflow: hidden;
}

.demo-art::before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--d-art2);
  right: -12%;
  bottom: -26%;
}

.demo-art::after {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--d-art3);
  left: 12%;
  top: 14%;
}

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 44px 52px;
}

.demo-card {
  background: var(--d-card);
  border-radius: var(--d-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-card strong {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 17px;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.demo-card span {
  font-size: 13px;
  color: var(--d-muted);
}

@container demo (max-width: 899px) {

  .demo-nav,
  .demo-hero {
    padding-left: 28px;
    padding-right: 28px;
  }

  .demo-hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .demo-cards {
    padding: 0 28px 36px;
  }

  .demo-title {
    font-size: 38px;
  }

  .demo-art {
    height: 220px;
  }
}

@container demo (max-width: 559px) {

  .demo-nav,
  .demo-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .demo-links {
    display: none;
  }

  .demo-burger {
    display: block;
  }

  .demo-hero {
    flex-direction: column;
    align-items: stretch;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .demo-title {
    font-size: 30px;
  }

  .demo-sub {
    font-size: 15px;
  }

  .demo-cta {
    align-self: stretch;
    text-align: center;
  }

  .demo-art {
    flex: none;
    height: 150px;
  }

  .demo-cards {
    grid-template-columns: 1fr;
    padding: 0 18px 24px;
  }
}

/* Business themes for the sample site and the work panels */
.theme-coffee {
  --d-bg: #F3EADF;
  --d-fg: #2B1D14;
  --d-muted: #6B5545;
  --d-accent: #B5532C;
  --d-accent-fg: #FFFFFF;
  --d-accent-text: #9A4423;
  --d-card: #E9DCCB;
  --d-line: #D9C8B4;
  --d-art1: #D9A46B;
  --d-art2: #B5532C;
  --d-art3: #2B1D14;
  --d-head: 'Fraunces', Georgia, serif;
  --d-case: none;
  --d-track: -0.01em;
  --d-radius: 14px;
}

.theme-roof {
  --d-bg: #0F1B2D;
  --d-fg: #FFFFFF;
  --d-muted: #B9C3D1;
  --d-accent: #F5B700;
  --d-accent-fg: #0F1B2D;
  --d-accent-text: #F5B700;
  --d-card: #1B2A40;
  --d-line: #2B3B54;
  --d-art1: #1F3B63;
  --d-art2: #F5B700;
  --d-art3: #FFFFFF;
  --d-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --d-case: uppercase;
  --d-track: 0.01em;
  --d-radius: 4px;
}

.theme-salon {
  --d-bg: #FBF4F1;
  --d-fg: #2A2426;
  --d-muted: #6E5F63;
  --d-accent: #9E4A5A;
  --d-accent-fg: #FFFFFF;
  --d-accent-text: #8C3E4E;
  --d-card: #F2E3DE;
  --d-line: #E4D1CB;
  --d-art1: #E8C3B9;
  --d-art2: #9E4A5A;
  --d-art3: #FFFFFF;
  --d-head: 'Playfair Display', Georgia, serif;
  --d-case: none;
  --d-track: 0;
  --d-radius: 18px;
}

.theme-pod {
  --d-bg: #11131F;
  --d-fg: #F1EEF8;
  --d-muted: #A7A9C2;
  --d-accent: #FF6B4A;
  --d-accent-fg: #11131F;
  --d-accent-text: #FF8466;
  --d-card: #1C1F31;
  --d-line: #2A2E45;
  --d-art1: #6D5BD0;
  --d-art2: #FF6B4A;
  --d-art3: #F1EEF8;
  --d-head: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --d-case: none;
  --d-track: -0.03em;
  --d-radius: 22px;
}

/* Built from scratch */

/* Features: small working pieces of the example sites */
.feats {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 24px;
}

.feat {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.feat.flip .feature-demo {
  order: 2;
}

.feature-demo {
  background: var(--d-bg);
  color: var(--d-fg);
  height: 340px;
  padding: 32px 40px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.feature-demo button {
  font: 600 14px var(--font-body);
  cursor: pointer;
}

.feat-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feat-who {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.feat-text h3 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.feat-text p {
  color: var(--muted);
  font-size: 18px;
  max-width: 38ch;
}

.feat-text a {
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

.feat-text a:hover {
  text-decoration: underline;
}

/* Scroll reveal: only applied by script, so content stays visible without it */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2, .8, .2, 1);
}

.reveal.pre {
  opacity: 0;
  transform: translateY(32px);
}

/* Personal theme for the RSVP demo */
.theme-personal {
  --d-bg: #ECEFE4;
  --d-fg: #23281F;
  --d-muted: #5C6655;
  --d-accent: #4F6B4A;
  --d-accent-fg: #FFFFFF;
  --d-accent-text: #3F5A3B;
  --d-card: #DDE3D3;
  --d-line: #CBD3C0;
  --d-head: 'Playfair Display', Georgia, serif;
  --d-radius: 999px;
}

.rsvp {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rsvp-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.rsvp-names {
  font-family: var(--d-head);
  font-size: 34px;
  font-style: italic;
}

.rsvp-head span:last-child {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--d-muted);
}

.rsvp-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rsvp input {
  min-height: 44px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--d-fg);
  font: 15px var(--font-body);
}

.rsvp-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rsvp-choice button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  background: transparent;
  color: var(--d-fg);
}

.rsvp-choice button[aria-pressed="true"] {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: #fff;
}

.rsvp-msg {
  text-align: center;
  font-family: var(--d-head);
  font-size: 22px;
  min-height: 0;
}

.rsvp-msg:empty {
  display: none;
}

/* Order ahead */
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--d-line);
  font-size: 14px;
}

.mini-row span {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 16px;
}

.mini-row em {
  font-style: normal;
  color: var(--d-muted);
  font-size: 13px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.mini-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--d-accent);
  color: var(--d-accent-fg);
  font-size: 18px !important;
  line-height: 1;
}

.mini-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.mini-btn {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--d-fg);
  color: var(--d-bg);
}

.mini-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--d-fg);
  color: var(--d-bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.toast.show {
  transform: none;
}

/* Live hours */
.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--d-card);
  font-weight: 600;
  font-size: 15px;
}

.status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3F7D4E;
  box-shadow: 0 0 0 0 rgba(63, 125, 78, 0.5);
  animation: pulse 2s infinite;
}

.status.closed i {
  background: var(--d-muted);
  animation: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(63, 125, 78, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(63, 125, 78, 0);
  }
}

.mini-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}

.mini-hours td {
  padding: 6px 0;
  border-bottom: 1px solid var(--d-line);
  color: var(--d-muted);
}

.mini-hours td:last-child {
  text-align: right;
}

.mini-hours tr.today td {
  color: var(--d-fg);
  font-weight: 600;
}

/* Quote steps */
.q-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.q-bars i {
  height: 4px;
  background: var(--d-line);
}

.q-bars i.on {
  background: var(--d-accent);
}

.q-title {
  font-family: var(--d-head);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.q-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.q-opts button {
  min-height: 44px;
  border: 1px solid var(--d-line);
  background: var(--d-card);
  color: var(--d-fg);
  border-radius: 4px;
  text-align: left;
  padding: 0 12px;
}

.q-opts button:hover {
  border-color: var(--d-accent);
}

.q-done {
  color: var(--d-accent);
}

/* Before / after */
.ba {
  position: relative;
  flex: 1;
  border-radius: 4px;
  overflow: hidden;
  margin: -4px 0;
}

.ba svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ba .ba-after {
  clip-path: inset(0 0 0 var(--p, 50%));
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--p, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: var(--d-accent);
  pointer-events: none;
}

.ba-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--d-accent);
}

.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.ba-tag {
  position: absolute;
  top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  pointer-events: none;
}

/* Booking */
.b-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.b-days button,
.b-times button {
  border: 1px solid var(--d-line);
  background: #fff;
  color: var(--d-fg);
  border-radius: 12px;
}

.b-days button {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 12px !important;
}

.b-days button b {
  font-family: var(--d-head);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
}

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

.b-times button {
  min-height: 38px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.b-days button[aria-pressed="true"] {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: #fff;
}

.b-times button[aria-pressed="true"] {
  background: var(--d-fg);
  border-color: var(--d-fg);
  color: var(--d-bg);
}

.b-times button:disabled {
  text-decoration: line-through;
  opacity: 0.45;
  cursor: default;
  background: transparent;
}

.b-sum {
  font-size: 13px;
  color: var(--d-muted);
  min-height: 1.2em;
}

@media (max-width: 860px) {
  .feat {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feat.flip .feature-demo {
    order: 0;
  }

  .feats {
    gap: 56px;
  }
}

@media (max-width: 560px) {
  .feature-demo {
    height: 300px;
    padding: 22px;
    border-radius: 16px;
  }

  .ba {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status i {
    animation: none;
  }

  .toast,
  .reveal {
    transition: none;
  }
}

/* Social feed */
.ig-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.ig-head span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-head i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--d-accent);
}

.ig-head small {
  font-weight: 400;
  color: var(--d-muted);
  font-size: 12px;
}

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

.ig-grid button {
  aspect-ratio: 3 / 2;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.ig-grid button svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.ig-grid button:hover svg {
  transform: scale(1.08);
}

.ig-pop {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--d-fg);
  color: var(--d-bg);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  transform: translateY(calc(100% + 24px));
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
}

.ig-pop.show {
  transform: none;
}

.ig-pop b {
  display: block;
  font-size: 14px;
}

/* SEO search preview */
.theme-seo {
  --d-bg: #F7F8FA;
  --d-fg: #1F2328;
  --d-muted: #5A6170;
  --d-line: #DADDE3;
  --d-card: #FFFFFF;
  --d-accent: #1A0DAB;
}

.serp-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.serp-q {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--d-line);
  font-size: 14px;
  color: var(--d-fg);
}

.serp-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #E8EAEE;
}

.serp-toggle button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--d-muted);
}

.serp-toggle button[aria-pressed="true"] {
  background: #1F2328;
  color: #fff;
}

.serp {
  background: #fff;
  border: 1px solid var(--d-line);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: Arial, Helvetica, sans-serif;
  transition: opacity 0.25s ease;
}

.serp.swap {
  opacity: 0.2;
}

.serp-site {
  display: flex;
  align-items: center;
  gap: 10px;
}

.serp-site i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #B5532C;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.serp-site span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.serp-site b {
  font-size: 14px;
  font-weight: 400;
  color: #1F2328;
}

.serp-site small {
  font-size: 12px;
  color: #4D5156;
}

.serp-title {
  font-size: 19px;
  color: #1A0DAB;
  line-height: 1.3;
}

.serp-desc {
  font-size: 14px;
  color: #4D5156;
  line-height: 1.5;
}

.serp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.serp-links span {
  font-size: 13px;
  color: #1A0DAB;
  padding: 4px 10px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
}

.serp-links:empty {
  display: none;
}

.serp.bare .serp-site i {
  background: #C4C7CE;
}

/* Work */
.section {
  padding-top: 96px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-head p {
  color: var(--muted);
  max-width: 420px;
}

.project {
  background: var(--d-bg);
  color: var(--d-fg);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.project-art {
  flex: 999 1 560px;
  min-width: 0;
  position: relative;
  min-height: 380px;
}

.mock-desktop {
  position: absolute;
  left: 48px;
  top: 48px;
  right: 110px;
  bottom: 0;
  background: var(--d-bg);
  border: 1px solid var(--d-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.mock-nav {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--d-line);
}

.mock-nav b {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 17px;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.mock-nav span {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--d-muted);
}

.mock-body {
  display: flex;
  gap: 20px;
  padding: 26px 22px;
}

.mock-body>div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-title {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.mock-cta {
  align-self: flex-start;
  background: var(--d-accent);
  color: var(--d-accent-fg);
  padding: 9px 16px;
  border-radius: var(--d-radius);
  font-size: 12px;
  font-weight: 600;
}

.mock-img {
  flex: 0.8;
  height: 170px;
  border-radius: var(--d-radius);
  background: var(--d-art1);
  position: relative;
  overflow: hidden;
}

.mock-img::after {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--d-art2);
  right: -14%;
  bottom: -30%;
}

.mock-phone {
  position: absolute;
  right: 36px;
  bottom: -20px;
  width: 150px;
  height: 290px;
  background: var(--d-bg);
  border: 6px solid #111316;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.mock-phone .mock-nav {
  padding: 12px;
}

.mock-phone .mock-nav b {
  font-size: 11px;
}

.mock-phone-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-phone-body i {
  height: 70px;
  border-radius: 8px;
  background: var(--d-art1);
}

.mock-phone-body b {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
  text-transform: var(--d-case);
}

.mock-phone-body span {
  background: var(--d-accent);
  color: var(--d-accent-fg);
  padding: 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.project-info {
  flex: 1 1 320px;
  min-width: 0;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.project-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-accent-text);
}

.project-info h3 {
  font-family: var(--d-head);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.project-info p {
  color: var(--d-muted);
}

.tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
}

.project-link {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--d-radius);
  background: var(--d-accent);
  color: var(--d-accent-fg);
  font-weight: 600;
  text-decoration: none;
}

.theme-salon .project-link {
  border-radius: 999px;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}

.service {
  border-top: 1px solid var(--line-2);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.service h3 {
  font-size: 24px;
}

.service-top span {
  color: var(--muted);
  white-space: nowrap;
}

.service p {
  color: var(--muted);
}

/* Contact */
.contact-wrap {
  padding-top: 24px;
  padding-bottom: 96px;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.contact-info {
  flex: 1 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.me {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--muted);
}

.me div {
  display: flex;
  flex-direction: column;
}

.me span {
  color: var(--muted);
  font-size: 14px;
}

.contact h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.contact-info p {
  color: var(--muted);
  font-size: 17px;
}

.contact-form {
  flex: 999 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #3A3F48;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 16px var(--font-body);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.send {
  justify-self: start;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font: 600 16px var(--font-body);
  cursor: pointer;
}

.form-status {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--muted);
  min-height: 1.4em;
}

footer {
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #8B9099;
}

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

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  body {
    font-size: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .showcase {
    padding: 8px;
    border-radius: 16px;
  }

  .device-dots button {
    padding: 0 10px;
  }

  .project-art {
    min-height: 300px;
  }

  .mock-desktop {
    left: 20px;
    top: 24px;
    right: 70px;
  }

  .mock-phone {
    right: 14px;
    width: 120px;
    height: 240px;
  }

  .project-info {
    padding: 28px 22px 32px;
  }

  .contact {
    padding: 26px 20px;
  }

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

  .section {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .frame,
  .demo,
  .browser {
    transition: none;
  }
}

/* ===== Motion ===== */
body {
  position: relative;
  overflow-x: hidden;
}

.bg-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -200px;
  height: calc(100% + 400px);
  background-image: radial-gradient(rgba(237, 238, 240, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(#000 0, #000 40%, transparent 100%);
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.4));
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  will-change: transform;
}

.orb-a {
  width: 560px;
  height: 560px;
  background: #7C93FF;
  top: -140px;
  right: -120px;
}

.orb-b {
  width: 420px;
  height: 420px;
  background: #FF6B4A;
  top: 900px;
  left: -180px;
  opacity: 0.18;
}

.orb-c {
  width: 480px;
  height: 480px;
  background: #3DD6B5;
  top: 2100px;
  right: -160px;
  opacity: 0.16;
}

.orb-d {
  width: 520px;
  height: 520px;
  background: #A99BFF;
  top: 3500px;
  left: -200px;
  opacity: 0.2;
}

.orb-e {
  width: 460px;
  height: 460px;
  background: #7C93FF;
  top: 5200px;
  right: -140px;
  opacity: 0.2;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-head.scrolled {
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}

.site-head.scrolled .nav {
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav {
  transition: padding 0.3s ease;
}

/* Hero intro */
.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.w {
  display: inline-block;
  animation: wordUp 0.9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(0.1s + var(--i) * 0.07s);
}

@keyframes wordUp {
  from {
    transform: translateY(105%);
  }

  to {
    transform: none;
  }
}

.intro {
  animation: fadeUp 0.9s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.showcase {
  transform-origin: 50% 0;
  will-change: transform;
}

.showcase-tilt {
  transition: transform 0.1s linear;
}

/* Buttons */
.btn,
.pill-btn,
.project-link,
.send {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.pill-btn:hover,
.project-link:hover,
.send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(124, 147, 255, 0.7);
}

/* Section heads wipe up */
.section-head h2 {
  transition: clip-path 0.9s cubic-bezier(.2, .8, .2, 1), transform 0.9s cubic-bezier(.2, .8, .2, 1);
  clip-path: inset(0 0 -10% 0);
}

.section-head p {
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-head.pre {
  opacity: 1;
  transform: none;
}

.section-head.pre h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(40px);
}

.section-head.pre p {
  opacity: 0;
  transform: translateY(16px);
}

/* Feature rows: demo slides in from its side, text follows */
.feat.reveal,
.feat.reveal.pre {
  opacity: 1;
  transform: none;
}

.feat .feature-demo {
  transition: opacity 0.9s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}

.feat .feat-text {
  transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(.2, .8, .2, 1) 0.15s;
}

.feat.pre .feature-demo {
  opacity: 0;
  transform: translateX(-80px) rotate(-2deg);
}

.feat.flip.pre .feature-demo {
  transform: translateX(80px) rotate(2deg);
}

.feat.pre .feat-text {
  opacity: 0;
  transform: translateY(30px);
}

/* Project panels */
.project.reveal {
  transition: opacity 0.9s ease, transform 1s cubic-bezier(.2, .8, .2, 1);
}

.project.pre {
  opacity: 0;
  transform: translateY(60px) scale(0.96);
}

.mock-phone,
.mock-desktop {
  will-change: transform;
}

/* Services stagger */
.services .service {
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1);
}

.services.reveal,
.services.reveal.pre {
  opacity: 1;
  transform: none;
}

.services.pre .service {
  opacity: 0;
  transform: translateY(30px);
}

.services .service:nth-child(2) {
  transition-delay: 0.12s;
}

.services .service:nth-child(3) {
  transition-delay: 0.24s;
}

.services .service:nth-child(4) {
  transition-delay: 0.36s;
}

.services .service:nth-child(5) {
  transition-delay: 0.48s;
}

.services .service:nth-child(6) {
  transition-delay: 0.6s;
}

@media (max-width: 720px) {
  .orb {
    filter: blur(70px);
  }

  .orb-a {
    width: 360px;
    height: 360px;
  }

  .feat.pre .feature-demo,
  .feat.flip.pre .feature-demo {
    transform: translateY(40px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .w,
  .intro {
    animation: none;
  }

  .site-head,
  .nav,
  .section-head h2,
  .section-head p,
  .feat .feature-demo,
  .feat .feat-text,
  .project.reveal,
  .services .service,
  .btn,
  .pill-btn,
  .project-link,
  .send {
    transition: none;
  }

  .btn:hover,
  .pill-btn:hover,
  .project-link:hover,
  .send:hover {
    transform: none;
  }
}