/* ==========================================================================
   MadeByMyst: "Simple on purpose."
   Few elements, plenty of room, one accent colour.
   Written mobile-first. Larger screens are added with min-width queries.
   ========================================================================== */

/* DESIGN TOKENS */

:root {
  /* Colours (the same palette as before) */
  --bg: #111111;
  --bg-soft: #141414;
  --bg-raised: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);

  --pink: #ea0990;
  --purple: #ab0895;
  --btn-left: rgb(180, 27, 133);
  --btn-right: rgb(81, 18, 127);
  --error: #ff6b6b;

  /* Type */
  --font-display: "Epunda Sans", sans-serif;
  --font-body: "M PLUS 2", sans-serif;

  /* Shape & layout */
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 72px;

  /* Motion: one soft ease-out curve for almost everything */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* RESET & BASE */

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

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

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

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* TYPOGRAPHY */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

p {
  color: var(--text-muted);
  text-wrap: pretty;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.accent {
  color: var(--pink);
}

/* Text links with an arrow, e.g. "Visit site" */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 0.3s ease;
}

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

.link .icon {
  width: 16px;
  height: 16px;
  transition: translate 0.5s var(--ease-out);
}

.link:hover .icon {
  translate: 3px -3px;
}

/* LAYOUT HELPERS */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section {
  padding-block: clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--line);
}

.section-top {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-top p {
  margin-top: 16px;
  font-size: 1.1rem;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* BUTTONS (the gradient slides across on hover) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-position 0.7s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: translate 0.5s var(--ease-out);
}

.btn:hover .icon {
  translate: 4px 0;
}

.btn-primary {
  color: #fff;
  background-image: linear-gradient(
    135deg,
    var(--btn-left),
    var(--btn-right),
    var(--btn-left)
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 24px -14px rgba(180, 27, 133, 0.8);
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(180, 27, 133, 0.9);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  color: var(--text);
  background-color: transparent;
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background-color: rgba(255, 255, 255, 0.04);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

/* Line icons (arrows, envelope) */
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* HEADER (hides while scrolling down, comes back when scrolling up) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    transform 0.6s var(--ease-out),
    border-color 0.4s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header:focus-within {
  transform: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: rotate 0.9s var(--ease-out);
}

/* The logo is an hourglass, so hovering flips it over */
.brand:hover img {
  rotate: 180deg;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-name span {
  color: var(--pink);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 30px;
}

.site-nav a:not(.btn) {
  position: relative;
  color: var(--text-muted);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  scale: 0 1;
  transform-origin: right;
  transition: scale 0.5s var(--ease-out);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.site-nav a:not(.btn):hover::after {
  scale: 1 1;
  transform-origin: left;
}

/* Menu button (only on small screens, and only with JavaScript) */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.menu-toggle .bar {
  position: absolute;
  right: 12px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--text);
  transition:
    translate 0.5s var(--ease-out),
    rotate 0.5s var(--ease-out),
    opacity 0.3s ease;
}

.menu-toggle .bar:nth-child(2) {
  top: 14px;
}

.menu-toggle .bar:nth-child(3) {
  top: 20px;
}

.menu-toggle .bar:nth-child(4) {
  top: 26px;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  translate: 0 6px;
  rotate: 45deg;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(4) {
  translate: 0 -6px;
  rotate: -45deg;
}

@media (max-width: 860px) {
  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
  }

  .js .menu-toggle {
    display: block;
  }

  /* The open menu fills the screen below the header */
  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
    background-color: var(--bg);
    visibility: hidden;
    opacity: 0;
    translate: 0 -12px;
    transition:
      opacity 0.4s var(--ease-out),
      translate 0.6s var(--ease-out),
      visibility 0s linear 0.6s;
  }

  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
    transition-delay: 0s;
  }

  .js .site-nav a:not(.btn) {
    padding: 16px 2px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav a:not(.btn)::after {
    display: none;
  }

  .js .site-nav .btn {
    margin-top: 24px;
    min-height: 52px;
  }

  /* Links slide in one after another */
  .js .site-nav.is-open > * {
    animation: menu-item-in 0.7s var(--ease-out) backwards;
  }

  .js .site-nav.is-open > :nth-child(2) {
    animation-delay: 0.04s;
  }
  .js .site-nav.is-open > :nth-child(3) {
    animation-delay: 0.08s;
  }
  .js .site-nav.is-open > :nth-child(4) {
    animation-delay: 0.12s;
  }
  .js .site-nav.is-open > :nth-child(5) {
    animation-delay: 0.16s;
  }
  .js .site-nav.is-open > :nth-child(6) {
    animation-delay: 0.2s;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@keyframes menu-item-in {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}

/* HERO */

.hero {
  position: relative;
  padding-block: clamp(40px, 8vw, 104px) clamp(80px, 11vw, 140px);
  overflow: hidden;
}

/* One soft glow in the brand pink */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    620px 460px at 76% 50%,
    rgba(234, 9, 144, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 64px;
  align-items: center;
}

.hero-title {
  margin-bottom: 28px;
}

/* Each line slides up from behind a mask when the page loads */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .line > span {
  display: inline-block;
  animation: line-up 1.2s var(--ease-out) 0.05s backwards;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.15s;
}

.hero-title .line:nth-child(3) > span {
  animation-delay: 0.25s;
}

@keyframes line-up {
  from {
    translate: 0 110%;
  }
}

.hero-fade {
  animation: fade-up 1.1s var(--ease-out) 0.4s backwards;
}

.actions.hero-fade {
  animation-delay: 0.5s;
}

.hero-note.hero-fade {
  animation-delay: 0.6s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 20px;
  }
}

.lead {
  max-width: 33em;
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.92rem;
}

.hero-note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  margin-top: 0.62em;
  border-radius: 50%;
  background-color: var(--pink);
}

/* Two real project screenshots, fanned out like photos.
   --mx / --my are set by script.js as the mouse moves over the hero. */
.hero-visual {
  --mx: 0;
  --my: 0;
  position: relative;
  display: block;
  justify-self: center;
  width: min(100%, 560px);
  aspect-ratio: 6 / 5;
}

.shot {
  position: absolute;
  width: 82%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    translate 1.2s var(--ease-out),
    rotate 1.2s var(--ease-out),
    scale 1.2s var(--ease-out);
}

.shot-back {
  top: 4%;
  left: 0;
  rotate: -7deg;
  translate: calc(var(--mx) * -14px) calc(var(--my) * -10px);
  animation: shot-in 1.4s var(--ease-out) 0.3s backwards;
}

.shot-front {
  right: 0;
  bottom: 4%;
  rotate: 4deg;
  translate: calc(var(--mx) * 18px) calc(var(--my) * 14px);
  animation: shot-in 1.4s var(--ease-out) 0.45s backwards;
}

.hero-visual:hover .shot-back {
  rotate: -10deg;
  translate: calc(-5% + var(--mx) * -14px) calc(-4% + var(--my) * -10px);
}

.hero-visual:hover .shot-front {
  rotate: 6deg;
  translate: calc(4% + var(--mx) * 18px) calc(3% + var(--my) * 14px);
  scale: 1.02;
}

@keyframes shot-in {
  from {
    opacity: 0;
    translate: 0 60px;
    rotate: 0deg;
  }
}

/* WHY SIMPLE */

.statement {
  max-width: 24em;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.38;
  color: var(--text);
}

.pillars {
  display: grid;
  gap: 36px;
  margin-top: clamp(48px, 7vw, 80px);
  padding: 0;
  list-style: none;
}

.pillars li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

/* A short pink mark on each top line */
.pillars li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.pillars h3 {
  margin-bottom: 8px;
}

/* WORK */

.project {
  display: grid;
  gap: 28px;
  align-items: center;
}

.project + .project {
  margin-top: clamp(64px, 9vw, 104px);
}

.project-image {
  display: block;
  overflow: hidden;
  background-color: #0c0c0c;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  transition: scale 1.4s var(--ease-out);
}

.project-image:hover img {
  scale: 1.04;
}

.project-text h3 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 750;
}

.project-meta {
  margin: 6px 0 16px;
  font-size: 0.95rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

.work-more {
  margin-top: clamp(64px, 9vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.work-more .link {
  margin-left: 4px;
}

/* SERVICES */

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

.service {
  padding: 32px 0;
  border-bottom: 1px solid var(--line-strong);
}

.service h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 750;
}

.service-fit {
  margin-top: 16px;
  font-size: 0.97rem;
  color: var(--text);
}

.extras {
  display: grid;
  gap: 40px;
  margin-top: clamp(48px, 7vw, 72px);
}

.extras h3 {
  margin-bottom: 20px;
}

.dot-list {
  display: grid;
  gap: 12px 32px;
  padding: 0;
  list-style: none;
}

.dot-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.good-to-know {
  align-self: start;
  padding: 28px;
  background-color: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.good-to-know h3 {
  margin-bottom: 12px;
}

/* PROCESS (the line fills as you scroll, see script.js) */

.steps {
  --progress: 0;
  position: relative;
  display: grid;
  gap: 40px;
  padding: 0;
  list-style: none;
}

/* Track and fill: vertical on phones, horizontal on wide screens */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  border-radius: 2px;
}

.steps::before {
  background-color: var(--line-strong);
}

.steps::after {
  background: linear-gradient(var(--pink), var(--purple));
  transform-origin: top;
  scale: 1 var(--progress);
  transition: scale 0.6s var(--ease-out);
}

.step {
  position: relative;
  padding-left: 40px;
}

.step-dot {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background-color: var(--bg);
  transition:
    border-color 0.5s ease,
    background-color 0.5s ease,
    box-shadow 0.5s ease,
    scale 0.6s var(--ease-out);
}

.step.is-active .step-dot {
  border-color: var(--pink);
  background-color: var(--pink);
  box-shadow: 0 0 0 6px rgba(234, 9, 144, 0.15);
  scale: 1.1;
}

.step h3 {
  margin-bottom: 8px;
}

.needs {
  max-width: 40em;
  margin-top: clamp(48px, 7vw, 72px);
  font-size: 1.1rem;
}

/* ABOUT */

.about-grid {
  display: grid;
  gap: 48px;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p + p {
  margin-top: 16px;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--text);
}

.facts {
  border-top: 1px solid var(--line-strong);
}

.facts div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-strong);
}

.facts dt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.facts dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

/* FAQ (opening and closing is animated in script.js) */

.faq-grid {
  display: grid;
  gap: 40px;
}

.faq-head p {
  margin-top: 16px;
}

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

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  list-style: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--pink);
}

/* A plus that turns into a minus */
.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--pink);
  transition: rotate 0.5s var(--ease-out);
}

.faq-icon::after {
  rotate: 90deg;
}

.faq-item[open]:not(.is-closing) .faq-icon::after {
  rotate: 0deg;
}

.faq-answer {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 48px 26px 0;
}

/* CONTACT */

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-intro h2 {
  margin-bottom: 20px;
}

.channels {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.channels a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-left 0.5s var(--ease-out);
}

.channels a::after {
  content: "→";
  margin-left: auto;
  color: var(--text-muted);
  transition:
    translate 0.5s var(--ease-out),
    color 0.3s ease;
}

.channels a:hover {
  padding-left: 14px;
}

.channels a:hover::after {
  translate: 4px 0;
  color: var(--pink);
}

.channels img,
.channel-icon {
  width: 26px;
  height: 26px;
  flex: none;
}

.channel-icon {
  padding: 2px;
  color: var(--pink);
}

/* Name with an optional detail (like the email address) underneath */
.channel-text {
  display: grid;
  line-height: 1.35;
}

.channel-name {
  font-weight: 600;
  color: var(--text);
}

.channel-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  background-color: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.field-row {
  display: grid;
  gap: 0 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background-color: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  transition:
    border-color 0.3s ease,
    box-shadow 0.4s var(--ease-out);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(234, 9, 144, 0.15);
}

.field ::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea0990' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

.field select option {
  background-color: var(--bg-raised);
}

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

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 8px;
}

.form-status {
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--text);
}

.form-status.is-error {
  color: var(--error);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  gap: 32px;
  padding-block: 56px 40px;
}

.footer-brand p {
  max-width: 24em;
  margin-top: 14px;
  font-size: 0.97rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
}

.footer-social {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid var(--line);
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--text);
}

/* SCROLL REVEAL (only when JavaScript is on, see script.js) */

.js .reveal,
.js .stagger > * {
  opacity: 0;
  translate: 0 32px;
  transition:
    opacity 1s var(--ease-out),
    translate 1.2s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible,
.js .stagger.is-visible > * {
  opacity: 1;
  translate: 0 0;
}

/* Items in a .stagger group arrive one after another */
.stagger > :nth-child(2) {
  --delay: 0.1s;
}
.stagger > :nth-child(3) {
  --delay: 0.2s;
}
.stagger > :nth-child(4) {
  --delay: 0.3s;
}
.stagger > :nth-child(5) {
  --delay: 0.4s;
}
.stagger > :nth-child(6) {
  --delay: 0.5s;
}

/* LARGER SCREENS */

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 640px) {
  .dot-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .services {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line-strong);
  }

  .service {
    padding: 40px 48px 40px 0;
    border-bottom: 0;
  }

  /* Two per row: a line between the columns, and between the rows */
  .service:nth-child(even) {
    padding-left: 48px;
    border-left: 1px solid var(--line-strong);
  }

  .service:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }
}

@media (min-width: 860px) {
  .footer-top {
    grid-template-columns: 1.4fr auto auto;
    align-items: start;
    gap: 72px;
  }
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
  }

  .project-flip {
    grid-template-columns: 1fr 1.5fr;
  }

  .project-flip .project-image {
    order: 2;
  }

  /* Steps sit side by side with the line running across the top */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-top: 44px;
  }

  .steps::before,
  .steps::after {
    top: 7px;
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    height: 2px;
  }

  .steps::after {
    background: linear-gradient(90deg, var(--pink), var(--purple));
    transform-origin: left;
    scale: var(--progress) 1;
  }

  .step {
    padding-left: 0;
  }

  .step-dot {
    top: -44px;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }

  .extras {
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
  }

  .about-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 88px;
  }

  .faq-grid {
    grid-template-columns: 1fr 1.7fr;
    align-items: start;
    gap: 80px;
  }

  .faq-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 80px;
  }
}

/* SMALL PHONES */

@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }
}

/* RESPECT REDUCED MOTION */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .stagger > * {
    opacity: 1;
    translate: 0 0;
  }
}
