/* ==========================================================================
   Zain Hamza portfolio
   One rule set per component; each component keeps its own responsive rules.
   Breakpoints: 1050px (tablet), 809px (reference phone), 700px (phone),
   max-height 600px (short screens). Motion timings live in assets/js/script.js.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../fonts/inter-display-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Tokens and base --------------------------------------------------------- */
:root {
  --bg: #e3e3e3;
  --ink: #141414;
  --muted: #676767;
  --line: #c9c9c9;
  --purple: #8052bf;
  --pale: #d9c6f6;
  --white: #fff;
  --display: "Inter Display", Inter, Arial, sans-serif;
  --radius: 28px;
  --glass-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25), 12px 16px 16px rgba(0, 0, 0, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font:
    400 16px/1.65 Inter,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1500px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, #fff 0%, transparent 46%),
    radial-gradient(ellipse at 85% 30%, #f2f2f2 0%, transparent 53%),
    linear-gradient(125deg, transparent 20%, #ffffff55 35%, transparent 52%);
}
::selection {
  color: #fff;
  background: var(--purple);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button {
  border: 0;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
}
h1 {
  font-size: clamp(3rem, 7.5vw, 6.75rem);
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
p {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout helpers ---------------------------------------------------------- */
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.section {
  padding-block: 100px;
}
.center {
  text-align: center;
}
.below {
  margin-top: 48px;
}
.muted {
  color: #7b7b7b;
}
.small {
  font-size: 0.875rem;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 24px;
  border-radius: 50px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .section {
    padding-block: 75px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .section {
    padding-block: 65px;
  }
  .desktop-break {
    display: none;
  }
}

/* Header: fixed 80px bar with a wordmark pill and menu button ------------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.brand {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 22px;
  background: #fff;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.5;
}
.brand .logo-wordmark {
  display: block;
  width: auto;
  height: 22px;
}
.menu-toggle {
  position: relative;
  z-index: 32;
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 48px;
  background: #fff;
  transition: background-color 0.3s;
}
.menu-toggle span {
  position: absolute;
  left: calc(50% - 8px);
  width: 16px;
  height: 1px;
  border-radius: 10px;
  background: #000;
  transition:
    top 0.32s cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.menu-toggle span:first-child {
  top: calc(38.64% - 0.5px);
}
.menu-toggle span:last-child {
  top: calc(59.09% - 0.5px);
}
.menu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.9);
}
.menu-toggle[aria-expanded="true"] span {
  top: calc(50% - 0.5px);
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}
/* Dropdown: 320px card, 8px under the button, right aligned. */
#navigation {
  position: absolute;
  top: 70px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 50px;
  border-radius: 24px 8px 24px 24px;
  background: #fff;
  box-shadow: 0 24px 60px #0000001a;
  transform-origin: top right;
}
#navigation > a {
  color: #000;
  font: 400 20px/1.5 var(--display);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
#navigation > a:hover,
#navigation > a[aria-current] {
  color: var(--purple);
}
#navigation .nav-email {
  font-weight: 700;
}
.nav-socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.nav-socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #111;
  transition: background-color 0.2s;
}
.nav-socials a:hover {
  background: #e7dff0;
}
@media (max-width: 700px) {
  .brand .logo-wordmark {
    height: 20px;
  }
  #navigation {
    padding: 40px;
  }
}

/* Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 54px;
  padding: 15px 26px;
  border: 1px solid #ffffff15;
  border-radius: 40px;
  background: #080808;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: 0 8px 20px #00000016;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.button.light {
  border: 1px solid #ffffffb0;
  background: #fafafa;
  color: #111;
  box-shadow: none;
}
.button:hover {
  background: #242424;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #00000016;
}
.button.light:hover {
  background: #fff;
}
.button-arrow {
  display: inline-block;
  flex: none;
  width: 28px;
  height: 24px;
  line-height: 0;
  transition: transform 0.3s;
}
.button:hover .button-arrow {
  transform: translateX(5px);
}
@media (max-width: 700px) {
  .button {
    min-height: 50px;
    font-size: 0.95rem;
  }
}

/* Section titles ---------------------------------------------------------- */
.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
  color: #777;
  font:
    italic 1.25rem Georgia,
    serif;
}
.eyebrow:before,
.eyebrow:after {
  content: "";
  width: 54px;
  height: 1px;
  background: #bfbfbf;
}
.section-heading {
  text-align: center;
  margin-bottom: 64px;
}
.section-heading > p:not(.eyebrow) {
  max-width: 510px;
  margin: 24px auto 0;
}
/* Left-aligned eyebrow used in two-column sections. */
.care-detail .eyebrow,
.values .eyebrow,
.case-overview .eyebrow {
  justify-content: start;
}
.care-detail .eyebrow:before,
.values .eyebrow:before,
.case-overview .eyebrow:before {
  display: none;
}
.page-head {
  text-align: center;
  padding-top: 165px;
  padding-bottom: 75px;
}
.page-head h1 {
  font-size: clamp(3.25rem, 7vw, 6.25rem);
}
.page-head > p:not(.eyebrow) {
  max-width: 600px;
  margin: 30px auto 0;
}
/* Desktop: scale the page hero with screen height so laptops (around 650 to
   750px of viewport) still see the start of the next section. Tall screens
   keep the full spacing. */
@media (min-width: 701px) {
  .page-head {
    padding-top: clamp(118px, 19vh, 165px);
    padding-bottom: clamp(40px, 8vh, 75px);
  }
  .page-head h1 {
    font-size: clamp(3.25rem, min(7vw, 12.5vh), 6.25rem);
  }
  .page-head + .section {
    padding-top: clamp(48px, 10.5vh, 100px);
  }
  .page-head + .service-list > .service:first-child {
    padding-top: clamp(32px, 6vh, 60px);
  }
}
@media (max-width: 700px) {
  .eyebrow {
    gap: 17px;
    margin-bottom: 22px;
    font-size: 1.05rem;
  }
  .eyebrow:before,
  .eyebrow:after {
    width: 35px;
  }
  .section-heading {
    margin-bottom: 38px;
  }
  .page-head {
    padding-top: 140px;
    padding-bottom: 55px;
  }
  .page-head h1 {
    font-size: clamp(2.7rem, 11vw, 4rem);
  }
  .page-head > p:not(.eyebrow) {
    margin-top: 25px;
    padding-inline: 6px;
    font-size: 0.95rem;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 32px;
  text-align: center;
}
.hero h1 {
  width: 100%;
  font-size: clamp(2.88rem, min(10.2vw, 14.4svh), 8.4rem);
  line-height: 1.12;
}
.hero-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.16em;
  white-space: nowrap;
}
.hero-line + .hero-line {
  margin-top: 8px;
}
.hero-tile {
  display: inline-flex;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 1.38em;
  height: 1.04em;
  overflow: hidden;
  vertical-align: middle;
  border: 3px solid #151515;
  border-radius: 0.32em;
  background: #222;
  box-shadow:
    2px 9px 12px #0004,
    inset 0 1px 2px #fff5;
  transition: transform 0.4s;
}
/* Resting angles the intro animates to (reference: -2deg and 2deg tiles). */
.tile-logo {
  background: linear-gradient(145deg, #292929, #181818);
  transform: rotate(2deg);
}
.tile-logo .logo-icon {
  width: 60%;
  height: auto;
}
.tech-slider {
  position: relative;
  width: 1.15em;
  height: 0.95em;
  transform: rotate(-2deg);
}
.tech-slider:last-child {
  transform: rotate(2deg);
}
.hero-tile:hover {
  transform: rotate(-5deg) translateY(-4px);
}
.tech-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(-110%);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s;
}
.tech-slide.active {
  opacity: 1;
  transform: translateY(0);
}
.tech-slide.leaving {
  opacity: 0;
  transform: translateY(110%);
}
.tech-slide img {
  width: 42%;
  height: 48%;
}
.tech-slide small {
  color: #ddd;
  font: 400 10px/1 Inter;
  letter-spacing: 0;
}
.hero-description {
  max-width: 500px;
  margin: 24px auto 0;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}
.hero-actions .button {
  gap: 12px;
  min-height: 46px;
  padding: 11px 19px;
  font-size: 0.95rem;
}
.hero-actions .button-arrow {
  width: 23px;
}
.personal-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}
.personal-note img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 45%;
}
@media (max-width: 1050px) {
  .hero-actions {
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-top: 85px;
    padding-bottom: 25px;
  }
  .hero h1 {
    font-size: clamp(2.4rem, min(9vw, 10svh), 4.4rem);
  }
  .hero-line {
    gap: 0.15em;
  }
  .hero-tile {
    border-width: 2px;
  }
  .tech-slide {
    gap: 2px;
  }
  .tech-slide small {
    font-size: 7px;
  }
  .hero-description {
    max-width: 380px;
    margin-top: 20px;
    padding: 0 12px;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .hero-actions {
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
  }
  .hero-actions .button {
    min-width: 245px;
  }
  .personal-note img {
    width: 34px;
    height: 34px;
  }
}
@media (max-height: 600px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 20px;
  }
  .hero-line + .hero-line {
    margin-top: 4px;
  }
  .hero-description {
    margin-top: 12px;
    line-height: 1.5;
  }
  .hero-actions {
    flex-direction: row;
    gap: 20px;
    margin-top: 16px;
  }
  .hero-actions .button {
    min-width: 0;
  }
  .personal-note {
    font-size: 0.65rem;
  }
}
@media (max-width: 700px) {
  .personal-note {
    font-size: 0.7rem;
  }
}
@media (max-width: 700px) and (max-height: 600px) {
  .hero h1 {
    font-size: min(9vw, 10svh);
  }
}
@media (max-width: 430px) and (max-height: 600px) {
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero-description {
    font-size: 0.8rem;
  }
}
/* First paint: hide what the home intro animates in (removed by script).
   The header stays visible when arriving from another page of the site. */
html.js:not(.hero-ready):not(.nav-internal):has(.hero) .site-header > a,
html.js:not(.hero-ready):not(.nav-internal):has(.hero) .menu-toggle,
html.js:not(.hero-ready) .hero h1,
html.js:not(.hero-ready) .hero-description,
html.js:not(.hero-ready) .hero-actions {
  opacity: 0;
}
/* Split text used by the character and word effects. */
.fx-text {
  display: inline;
}
.fx-word {
  display: inline-block;
  white-space: nowrap;
}
.fx-char {
  display: inline-block;
}

/* Work collage: dark card, two vertical tickers, shade, folder button ----- */
.showreel {
  --ticker-gap: 24px;
  position: relative;
  isolation: isolate;
  height: 1080px;
  overflow: hidden;
  border-radius: 24px;
  background: #2b2b2b;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
}
.showreel-shade {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 75%;
  pointer-events: none;
  background: linear-gradient(180deg, #2b2b2b 0%, rgba(43, 43, 43, 0) 100%);
}
.showreel-tickers {
  position: absolute;
  top: -400px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: var(--ticker-gap);
  padding: 0 48px;
  overflow: hidden;
  will-change: transform;
}
.ticker-col {
  flex: 1 0 0;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  flex-direction: column;
  gap: var(--ticker-gap);
  animation: ticker-up var(--ticker-duration, 60s) linear infinite;
  will-change: transform;
}
.ticker-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #333;
}
.ticker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
@keyframes ticker-up {
  to {
    transform: translateY(calc(-25% - var(--ticker-gap) / 4));
  }
}
.showreel-button {
  position: absolute;
  top: calc(50% - 64px);
  left: calc(50% - 64px);
  z-index: 2;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 213px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
  color: #000;
  transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.showreel-button:hover {
  transform: scale(1.05);
}
.showreel-button .folder {
  grid-area: 1 / 1;
  transition:
    opacity 0.3s,
    transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.showreel-button .folder-open,
.showreel-button.is-open .folder-closed {
  opacity: 0;
  transform: scale(0.7);
}
.showreel-button.is-open .folder-open {
  opacity: 1;
  transform: none;
}
.showreel-tip {
  position: absolute;
  bottom: calc(100% - 26px);
  left: 50%;
  padding: 10px 16px;
  border-radius: 40px;
  background: #000;
  color: #fff;
  font:
    500 14px/1 Inter,
    Arial,
    sans-serif;
  white-space: nowrap;
  transform: translateX(-38%) rotate(12deg);
  transform-origin: left bottom;
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.showreel-button:not(.is-open) .showreel-tip {
  transform: translateX(-38%) rotate(12deg) scale(0.85);
}
@media (min-width: 1440px) {
  .showreel {
    --ticker-gap: 48px;
    height: 120vh;
  }
}
@media (max-width: 809px) {
  .showreel {
    --ticker-gap: 16px;
    height: 844px;
  }
  .showreel-tickers {
    padding: 0 24px;
  }
  .ticker-item {
    border-radius: 10px;
  }
}

/* Intro statement and skill pills ----------------------------------------- */
.intro {
  max-width: 950px;
  padding-top: 130px;
  padding-bottom: 75px;
  text-align: center;
}
.intro h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.17;
  letter-spacing: -0.045em;
}
.intro h2 span {
  color: var(--ink);
}
.skill-pills {
  max-width: 690px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 35px;
  margin: 48px auto 0;
}
.skill-pills > span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 9px;
  border: 1px solid #ffffff40;
  border-radius: 50px;
  background: #fff;
  color: #151515;
  font-size: 1.1rem;
  line-height: 1.4;
  box-shadow:
    0 0 0 9px #ffffff45,
    0 12px 25px #00000012;
  transform: rotate(-4deg);
}
.skill-pills > span:nth-child(2n) {
  transform: rotate(4deg);
}
.skill-pills i {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #9b78d1;
  color: white;
  font: normal 22px Inter;
}
.skill-pills > span:nth-child(2) i {
  background: #363f3c;
}
.skill-pills > span:nth-child(3) i {
  background: #55d8a6;
}
.skill-pills > span:nth-child(4) i {
  background: #ee4ca3;
}
.skill-pills > span:nth-child(5) i {
  background: #00b6e8;
}
.skill-pills > span:nth-child(6) i {
  background: #f4d328;
  color: #59378d;
}
@media (max-width: 1050px) {
  .intro {
    padding-top: 75px;
  }
}
@media (max-width: 700px) {
  .intro {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .intro h2 {
    font-size: 2.15rem;
  }
  .skill-pills {
    max-width: 510px;
    gap: 24px 20px;
  }
  .skill-pills > span {
    gap: 7px;
    padding: 7px 12px 7px 7px;
    font-size: 0.85rem;
  }
  .skill-pills i {
    width: 29px;
    height: 29px;
    font-size: 18px;
  }
}

/* Process cards ----------------------------------------------------------- */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 50px 0;
}
.process-card {
  position: relative;
  min-height: 350px;
  padding: 35px;
  border: 8px solid #eeeeee;
  border-radius: 30px;
  background: #fff;
  transform: rotate(-5deg);
}
.process-card:nth-of-type(2) {
  z-index: 2;
  transform: translateY(-35px) rotate(9deg);
}
.process-card:nth-of-type(3) {
  transform: rotate(-3deg);
}
.process-card h3 {
  margin: 25px 0 16px;
}
.process-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}
.process-number {
  display: block;
  margin-bottom: 80px;
  font: 400 5rem/1 var(--display);
}
.process-connectors {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: #9c80c0;
  pointer-events: none;
}
.process-line {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--line-progress, 1));
}
@media (max-width: 700px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-inline: 12px;
  }
  /* Stacked cards: each card gets its own short hand-drawn link to the next. */
  .process-connectors {
    display: none;
  }
  .process-card:not(:last-of-type):after {
    content: "";
    position: absolute;
    /* Dots sit on the 8px card borders: this card's bottom, the next card's top. */
    top: calc(100% - 2px);
    left: calc(50% - 20px);
    width: 40px;
    height: 76px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 76' fill='none' stroke='%239c80c0' stroke-linecap='round'%3E%3Cpath d='M20 6C3 18 37 28 20 38S3 58 20 70' stroke-width='2.5'/%3E%3Cpath d='M20 6h0M20 70h0' stroke-width='10'/%3E%3C/svg%3E")
      center / contain no-repeat;
    pointer-events: none;
    transition: clip-path 0.9s cubic-bezier(0.44, 0, 0.56, 1);
  }
  html.js .process-card:not(.linked):after {
    clip-path: inset(0 0 100% 0);
  }
  .process-card {
    min-height: 280px;
    transform: rotate(-3deg);
  }
  .process-card:nth-of-type(2) {
    transform: rotate(3deg);
  }
  .process-card h3 {
    margin-top: 12px;
  }
  .process-card p {
    max-width: 450px;
  }
  .process-number {
    margin-bottom: 40px;
    font-size: 4rem;
  }
}

/* Project cards ----------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px 56px;
}
.project-art {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ffffff60;
  border-radius: var(--radius);
  background: #f2f2f2;
  perspective: 1100px;
}
.project:nth-child(4n + 2) .project-art {
  background: #d8d3e0;
}
.project:nth-child(4n + 3) .project-art {
  background: #d4d9d9;
}
.project:nth-child(4n + 4) .project-art {
  background: #d0d0d0;
}
.screen {
  width: 88%;
  border: 9px solid #171717;
  border-bottom-width: 12px;
  border-radius: 16px;
  background: #171717;
  box-shadow: 10px 22px 28px #0003;
  transform: rotateY(-10deg) rotateZ(-4deg) translateY(14px);
  transition: transform 0.8s cubic-bezier(0.4, 0.23, 0.07, 1.01);
}
.project:nth-child(even) .screen {
  transform: rotateY(10deg) rotateZ(4deg) translateY(14px);
}
.project-link:hover .screen {
  transform: rotateY(0) rotateZ(0) translateY(0) scale(1.02);
}
.screen-bar {
  position: relative;
  height: 17px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 2px 5px;
  background: #171717;
}
.screen-bar i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #555;
}
.screen-bar span {
  position: absolute;
  left: 50%;
  color: #aaa;
  font-size: 7px;
  white-space: nowrap;
  transform: translateX(-50%);
}
.screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}
.view-project {
  position: absolute;
  padding: 11px 20px;
  border-radius: 50px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 5px 15px #0004;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.project-link:hover .view-project,
.project-link:focus-visible .view-project {
  opacity: 1;
  transform: translateY(0);
}
/* Cursor-follow label (fine pointers, set up by script). */
@media (hover: hover) and (pointer: fine) {
  .cursor-ready .project-art {
    cursor: none;
  }
  .cursor-ready .view-project {
    top: 0;
    left: 0;
    z-index: 3;
    opacity: 1;
    pointer-events: none;
    transition: none;
    will-change: transform;
  }
}
.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.project-caption h3 {
  font-size: 1.15rem;
  letter-spacing: -0.035em;
  opacity: 0.5;
  transition: opacity 0.8s cubic-bezier(0.4, 0.23, 0.07, 1.01);
}
.project-link:hover .project-caption h3,
.project-link:focus-visible .project-caption h3 {
  opacity: 1;
}
.project-link:focus-visible {
  display: block;
  border-radius: 28px;
  outline-offset: 8px;
}
.tags {
  display: flex;
  gap: 5px;
}
.tags span {
  padding: 5px 10px;
  border: 1px solid #ffffff40;
  border-radius: 50px;
  background: #f1f1f1;
  color: #656565;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}
.next-project {
  max-width: 650px;
  margin: auto;
}
@media (max-width: 1050px) {
  .project-grid {
    gap: 40px 28px;
  }
  .tags span {
    font-size: 0.7rem;
  }
}
@media (max-width: 700px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .project-art {
    border-radius: 22px;
  }
  .project-caption h3 {
    font-size: 1.1rem;
  }
}

/* About ------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 64px;
}
.portrait {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 26px;
  background: #171717;
  transform: rotate(-2deg);
}
.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  font-size: 0.875rem;
}
.portrait-caption strong {
  display: block;
  color: #222;
  font-size: 1rem;
  font-weight: 400;
}
.portrait-caption span {
  display: block;
  color: #737373;
}
.portrait-caption a {
  padding: 6px 13px;
  border-radius: 30px;
  background: #eee;
}
.large-copy {
  color: #343434;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
.about-copy > p + p {
  margin-top: 22px;
}
.expertise {
  margin: 28px 0;
}
.expertise > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.expertise span {
  color: #777;
}
.expertise strong {
  font-weight: 400;
  text-align: right;
}
.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.values article {
  padding: 30px 0;
  border-bottom: 1px solid #bbb;
}
.values article:first-child {
  padding-top: 0;
}
.values h3 {
  margin-bottom: 16px;
}
@media (max-width: 1050px) {
  .about-grid {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .portrait {
    aspect-ratio: 1.35;
  }
  .large-copy {
    font-size: 1.55rem;
  }
  .values {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .values article {
    padding-block: 25px;
  }
}

/* Pricing ----------------------------------------------------------------- */
.price-switch {
  position: relative;
  width: fit-content;
  display: flex;
  margin: 0 auto 30px;
  padding: 5px;
  border: 1px solid #d0d0d0;
  border-radius: 50px;
  background: #d5d5d5;
}
/* Shared pill buttons (pricing plans and work filters). */
.price-switch button,
.filters button {
  padding: 10px 23px;
  border-radius: 40px;
  background: transparent;
  color: #686868;
  transition:
    background 0.2s,
    color 0.2s;
}
.filters button {
  background: #ffffff55;
}
.price-switch button[aria-pressed="true"],
.filters button[aria-pressed="true"] {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 5px #00000008;
}
.price-switch button {
  position: relative;
  z-index: 1;
}
/* Sliding pill, positioned by script; the active button turns transparent. */
.price-switch-pill {
  position: absolute;
  top: 5px;
  left: 0;
  width: 0;
  height: calc(100% - 10px);
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 2px 5px #00000008;
  opacity: 0;
}
.price-switch.has-pill .price-switch-pill {
  opacity: 1;
}
.price-switch.has-pill button[aria-pressed="true"] {
  background: transparent;
  box-shadow: none;
}
.price-panel {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-shadow);
}
.price-main {
  padding: 44px;
}
.price-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
}
.price-kicker span:first-child {
  color: #222;
  font: 400 1.5rem var(--display);
}
.price {
  margin: 17px 0 8px;
  color: #111;
  font: 400 5.25rem/1.3 var(--display);
  letter-spacing: -0.06em;
}
.price-main > p:not(.price) {
  max-width: 340px;
}
.price-main > .button {
  display: flex;
  margin: 32px 0 20px;
  font-size: 0.95rem;
}
.care-option {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #555;
  font-size: 0.875rem;
  cursor: pointer;
}
.care-option span {
  display: block;
  margin-left: 3px;
  color: var(--purple);
  font-size: 0.85rem;
  white-space: nowrap;
}
#care-toggle {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: #ccc;
  appearance: none;
  cursor: pointer;
}
#care-toggle:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0002;
}
#care-toggle,
#care-toggle:before {
  transition:
    background-color 0.4s,
    transform 0.4s cubic-bezier(0.3, 1.35, 0.5, 1);
}
#care-toggle:checked {
  background: #8052bf;
}
#care-toggle:checked:before {
  transform: translateX(18px);
}
.price-includes {
  margin: 12px;
  padding: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(1deg);
}
.price-includes h3 {
  margin-bottom: 25px;
}
.price-includes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.price-includes li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: #555;
}
.price-includes li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8664b0;
}
#care-features {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #d4d4d4;
}
#care-features h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.price-note {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #d4d4d4;
  font: 400 1.75rem/1.25 var(--display);
  letter-spacing: -0.04em;
}
.price-note span {
  color: #888;
}
.care-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 100px;
}
.care-detail p + p {
  margin-top: 20px;
}
.care-detail h2 {
  font-size: 2.5rem;
}
@media (max-width: 1050px) {
  .price-main,
  .price-includes {
    padding: 32px;
  }
  .care-detail {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .price-switch {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .price-switch button {
    flex: 1;
    padding: 10px 17px;
    font-size: 0.875rem;
  }
  .price-panel {
    grid-template-columns: 1fr;
  }
  .price-main,
  .price-includes {
    padding: 28px;
  }
  .price {
    font-size: 4.5rem;
  }
  .price-main > .button {
    margin-top: 28px;
  }
  .care-option {
    font-size: 0.8rem;
  }
  .price-includes h3 {
    font-size: 1.4rem;
  }
  .price-note {
    font-size: 1.6rem;
  }
  .care-detail {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 60px;
  }
  .care-detail h2 {
    font-size: 2.2rem;
  }
}

/* FAQ --------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 90px;
}
.avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 45%;
}
/* The aside is a tilted glass card. */
.faq-card {
  align-self: start;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--glass-shadow);
  transform: rotate(-2deg);
}
.faq-grid aside h3 {
  font-size: 1.75rem;
}
.faq-grid aside p {
  max-width: 300px;
  margin: 20px 0 26px;
}
.faq-grid aside .small {
  margin-top: 22px;
}
.faq-grid aside .small a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.faq-list details {
  border-bottom: 1px solid #bdbdbd;
}
.faq-list details:first-child {
  border-top: 1px solid #bdbdbd;
}
.faq-list summary {
  position: relative;
  padding: 24px 36px 24px 0;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary span {
  position: absolute;
  top: 23px;
  right: 0;
  color: #777;
  font: 400 22px Inter;
  transition: transform 0.2s;
}
.faq-list details[open] summary span {
  transform: rotate(45deg);
}
.faq-list details p {
  padding: 0 35px 25px 0;
  font-size: 0.95rem;
}
@media (max-width: 1050px) {
  .faq-grid {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-card {
    padding: 30px 22px;
  }
  .faq-grid aside {
    text-align: center;
  }
  .faq-grid .avatar {
    margin-inline: auto;
  }
  .faq-grid aside p {
    max-width: 350px;
    margin-inline: auto;
  }
  .faq-list summary {
    padding-block: 22px;
    font-size: 1.05rem;
  }
  .faq-list details p {
    font-size: 0.9rem;
  }
}

/* Footer ------------------------------------------------------------------ */
.footer {
  padding-top: 110px;
}
.footer-cta {
  position: relative;
  isolation: isolate;
  margin-bottom: 45px;
  padding: 85px 30px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 32px;
  background: radial-gradient(ellipse at 50% 0%, #353139, #151515 65%);
  color: #fff;
  text-align: center;
}
.footer-cta:before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    125deg,
    transparent 0 95px,
    #ffffff38 96px 97px,
    transparent 98px 190px
  );
  opacity: 0.15;
  transform: rotate(-8deg);
}
.footer-cta h2 {
  font-size: clamp(4rem, 8.8vw, 8rem);
  letter-spacing: -0.065em;
}
.footer-cta h2 span {
  color: #aaa;
}
.footer-cta p {
  color: #bbb;
}
.footer-cta > p:not(.eyebrow) {
  max-width: 500px;
  margin: 30px auto 42px;
}
.footer-cta .eyebrow:before,
.footer-cta .eyebrow:after {
  background: #555;
}
.footer-cta .button {
  background: #fff;
  color: #111;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 40px;
  border-top: 1px solid #c5c5c5;
  color: #777;
  font-size: 0.875rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-icon {
  width: auto;
  height: 20px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.footer-links a:not(:last-child) {
  border-radius: 50%;
  color: #555;
}
.footer-links a:hover {
  background: #f3f3f3;
  color: #111;
}
@media (max-width: 700px) {
  .footer {
    padding-top: 60px;
  }
  .footer-cta {
    padding: 60px 20px;
  }
  .footer-cta h2 {
    font-size: 4rem;
  }
  .footer-cta > p:not(.eyebrow) {
    margin-top: 25px;
    font-size: 0.95rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 23px;
    padding-block: 27px 35px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
  }
}

/* Work page --------------------------------------------------------------- */
.work-section {
  padding-top: 0;
  padding-bottom: 50px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.project-count {
  margin: 20px 0 55px;
  font-size: 0.875rem;
  text-align: center;
}
@media (max-width: 700px) {
  .filters {
    gap: 6px;
  }
  .filters button {
    padding: 9px 14px;
    font-size: 0.8rem;
  }
  .project-count {
    margin-bottom: 35px;
  }
}

/* Services page ----------------------------------------------------------- */
/* Hero icon row: tiles spring in one after another, then bob in a slow wave.
   Each links to its service below. The global reduced-motion rule turns the
   animations off and leaves the tiles in their resting state. */
.service-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  margin: clamp(44px, 7vh, 60px) auto 0; /* room for the hover label above the row */
}
.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #f6f6f6;
  color: #9372ba;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px -12px rgba(20, 20, 20, 0.35);
  transform: rotate(var(--r));
  animation:
    service-icon-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.35s + var(--i) * 0.07s) both,
    service-icon-wave 4.2s ease-in-out calc(1.4s + var(--i) * 0.18s) infinite;
  transition:
    scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.25s,
    color 0.25s;
}
.service-icon:hover,
.service-icon:focus-visible {
  scale: 1.12;
  background: #9372ba;
  color: #fff;
}
.service-icon-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 6px 11px;
  border-radius: 999px;
  background: #141414;
  color: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  translate: -50% 4px;
  rotate: calc(var(--r) * -1);
  transition:
    opacity 0.2s,
    translate 0.25s;
}
.service-icon:hover .service-icon-label,
.service-icon:focus-visible .service-icon-label {
  opacity: 1;
  translate: -50% 0;
}
@keyframes service-icon-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.4) rotate(calc(var(--r) * -2));
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--r));
    filter: blur(0);
  }
}
@keyframes service-icon-wave {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
@media (max-width: 700px) {
  .service-icons {
    gap: 10px;
    max-width: 222px; /* four tiles per row */
    margin-top: 34px;
  }
  .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }
  .service-icon svg {
    width: 21px;
    height: 21px;
  }
}
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding: 60px 0;
  border-top: 1px solid #c3c3c3;
}
.service-symbol {
  display: block;
  margin-bottom: 16px;
  color: #9372ba;
  font-size: 2.5rem;
}
.service-symbol svg {
  display: block;
}
.service h2 {
  font-size: 2.75rem;
}
.service ul {
  margin: 0 0 20px;
  padding: 15px 0;
  list-style: none;
}
.service li {
  padding: 6px 0;
  color: #666;
}
.service li:before {
  content: "+";
  margin-right: 12px;
  color: #9a80b8;
}
@media (max-width: 700px) {
  .service {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 38px;
  }
  .service-symbol {
    margin-bottom: 12px;
    font-size: 2rem;
  }
  .service h2 {
    font-size: 2.2rem;
  }
  .service .button {
    font-size: 0.9rem;
  }
}

/* Contact and call forms -------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 85px;
  padding-bottom: 60px;
}
.contact-sidebar {
  padding-top: 32px;
}
.contact-sidebar h2 {
  font-size: 2.25rem;
}
.contact-sidebar p {
  max-width: 330px;
  margin: 25px 0;
}
.contact-sidebar > a {
  width: fit-content;
  display: block;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-color: #b8b8b8;
  text-underline-offset: 5px;
}
.contact-sidebar > a:hover {
  color: var(--purple);
}
.form-card {
  padding: 40px;
  border: 1px solid #fff;
  border-radius: 28px;
  background: #f6f6f6;
}
.form-card > h2 {
  margin-bottom: 34px;
  font-size: 1.8rem;
}
.inquiry-form {
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.inquiry-form label {
  display: block;
  margin-bottom: 20px;
  color: #333;
  font-size: 0.875rem;
}
.form-row > label {
  min-width: 0; /* let grid columns shrink so fields never overflow on phones */
}
.inquiry-form .label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inquiry-form .optional {
  padding: 1px 8px;
  border-radius: 20px;
  background: #ececec;
  color: #777;
  font-size: 0.72rem;
}
.field-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 0.8rem;
  line-height: 1.4;
}
.field-error:empty {
  display: none;
}
.inquiry-form [aria-invalid="true"] {
  border-color: #e3a7a0 !important;
  background-color: #fbf1f0 !important;
}
.inquiry-form input:not([type="checkbox"]),
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  min-height: 48px;
  display: block;
  margin-top: 8px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ececec;
  color: #242424;
  font-size: 1rem;
  line-height: 1.5;
}
.inquiry-form textarea {
  min-height: 120px;
  resize: vertical;
}
/* Date and time: stay inside the column on iOS and Android, picker icon pinned right. */
.inquiry-form input[type="date"],
.inquiry-form input[type="time"] {
  min-width: 0;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.inquiry-form input::-webkit-date-and-time-value {
  margin: 0;
  text-align: left;
}
.inquiry-form input::-webkit-calendar-picker-indicator {
  margin: 0 0 0 auto;
  padding: 2px;
  opacity: 0.55;
  cursor: pointer;
}
.inquiry-form select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: #848484;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  outline: 2px solid #a07ac9;
  outline-offset: 1px;
  background-color: #f4effa;
}
.inquiry-form .honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
}
.form-note {
  margin: 20px 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.inquiry-form > .button {
  width: 100%;
  margin-top: 10px;
}
.form-status {
  color: #75519e;
  font-size: 0.875rem;
}
.inquiry-form > .button:disabled {
  opacity: 0.6;
  transform: none;
}
.form-success {
  padding: 28px 0 8px;
  outline: none;
}
.form-success h3 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}
/* Custom select built by script on top of the native select. */
.custom-select {
  position: relative;
  margin-top: 8px;
}
.select-trigger {
  width: 100%;
  min-height: 50px;
  padding: 13px 40px 13px 15px;
  border-radius: 10px;
  background: #ececec;
  color: #242424;
  font-size: 1rem;
  text-align: left;
}
.select-trigger:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #777;
  border-bottom: 1.5px solid #777;
  transform: translateY(-70%) rotate(45deg);
}
.select-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 250px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  box-shadow: 0 12px 25px #0002;
}
.select-options button {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  background: transparent;
  color: #333;
  font-size: 0.95rem;
  text-align: left;
}
.select-options button:hover,
.select-options button:focus,
.select-options [aria-selected="true"] {
  background: #e8def4;
  outline: none;
}
.timezone-search {
  position: sticky;
  top: 0;
  z-index: 1;
}
@media (max-width: 1050px) {
  .contact-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
  }
  .form-card {
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-sidebar {
    padding-top: 0;
  }
  .contact-sidebar h2 {
    font-size: 2rem;
  }
  .contact-sidebar p {
    max-width: 100%;
  }
  .form-card {
    padding: 25px 20px;
    border-radius: 22px;
  }
  .form-card > h2 {
    font-size: 1.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .inquiry-form label {
    margin-bottom: 17px;
  }
  .form-note {
    font-size: 0.8rem;
  }
}

/* Project case studies and prose pages ------------------------------------ */
.project-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding-bottom: 60px;
}
.case-hero {
  padding: 48px;
  border: 1px solid #fff;
  border-radius: 28px;
  background: #f1f1f1;
}
.case-hero img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 15px 35px #0002;
}
.case-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  padding-top: 90px;
  padding-bottom: 30px;
}
dl {
  margin-top: 30px;
}
dl > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid #c3c3c3;
  font-size: 0.875rem;
}
dt {
  color: #777;
}
dd {
  margin: 0;
  text-align: right;
}
.prose {
  max-width: 800px;
  padding: 0 0 60px;
}
.prose h2 {
  margin: 40px 0 15px;
  font-size: 1.75rem;
}
.prose p + p {
  margin-top: 15px;
}
.prose a {
  text-decoration: underline;
}
@media (max-width: 1050px) {
  .case-overview {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .project-actions {
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 20px 40px;
  }
  .case-hero {
    padding: 18px;
    border-radius: 22px;
  }
  .case-hero img {
    border-radius: 6px;
  }
  .case-overview {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 55px;
  }
  .case-overview h2 {
    font-size: 2.2rem;
  }
  .prose h2 {
    font-size: 1.5rem;
  }
}

/* Page transitions -------------------------------------------------------- */
/* Native cross-document View Transitions are set up in an inline <style> in each
   page's <head> (scripts/build.cjs), because the incoming page must have them
   before its first frame. This is the fallback for other browsers; the script
   adds these classes. */
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
  }
}
html.page-enter main,
html.page-enter .footer {
  animation: page-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
html.page-leaving main,
html.page-leaving .footer {
  opacity: 0;
  transform: translateY(-24px);
  filter: blur(6px);
  transition:
    opacity 0.28s cubic-bezier(0.44, 0, 0.56, 1),
    transform 0.28s cubic-bezier(0.44, 0, 0.56, 1),
    filter 0.28s;
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .button-arrow {
    transform: none !important;
  }
  .process-card {
    transform: none !important;
  }
  .process-line {
    stroke-dashoffset: 0;
  }
  .fx-char,
  .fx-word {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
