/* ==========================================================================
   VEXLEN Design tokens
   ========================================================================== */

:root {
  /* Brand scale darker */
  --brand: #585ad9;
  --brand-10: #4f51c3;
  --brand-20: #4648ae;
  --brand-30: #3e3f98;
  --brand-40: #353682;
  --brand-50: #2c2d6d;
  --brand-60: #232457;
  --brand-70: #1a1b41;
  --brand-80: #12122b;
  --brand-90: #090916;
  --brand-100: #000000;

  /* Brand scale lighter */
  --tint-10: #696bdd;
  --tint-20: #797be1;
  --tint-30: #8a8ce4;
  --tint-40: #9b9ce8;
  --tint-50: #acadec;
  --tint-60: #bcbdf0;
  --tint-70: #cdcef4;
  --tint-80: #dedef7;
  --tint-90: #eeeffb;
  --tint-100: #ffffff;

  --bg: var(--brand-90);
  --bg-elevated: var(--brand-80);
  --bg-section: var(--brand-80);
  --bg-section-alt: var(--brand-70);
  --text: var(--tint-90);
  --text-muted: var(--tint-60);
  --heading: var(--tint-100);
  --accent: var(--brand);
  --border: var(--brand-50);
  --border-subtle: var(--brand-60);

  --font-display: "Rubik", sans-serif;
  --font-body: "Heebo", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 7.5rem;

  --container: 72rem;
  --header-h: 5.5rem;
  --radius: 0;
  --focus-ring: 2px solid var(--tint-40);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--tint-40);
  text-decoration: none;
}

a:hover {
  color: var(--tint-20);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  right: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--tint-100);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--tint-100);
  border-bottom: 1px solid var(--tint-80);
}

.header-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--container));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 3.75rem;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
}

.header-end {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--brand-80);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown-toggle.is-active {
  color: var(--brand);
}

.nav-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 0.28rem solid transparent;
  border-right: 0.28rem solid transparent;
  border-top: 0.34rem solid currentColor;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.nav-item--dropdown.is-open .nav-chevron {
  border-top: none;
  border-bottom: 0.34rem solid currentColor;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-start: 0;
  min-width: 11.5rem;
  padding: 0.4rem 0;
  background: var(--tint-100);
  border: 1px solid var(--tint-80);
  display: none;
  z-index: 120;
}

.nav-item--dropdown.is-open .nav-dropdown {
  display: block;
}

.nav-dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  color: var(--brand-70);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-dropdown-link:hover {
  color: var(--brand);
  background: var(--tint-90);
}

.btn-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 1.05rem;
  border: 2px solid var(--brand);
  border-radius: 0.55rem;
  background: var(--brand);
  color: var(--tint-100);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-offer:hover {
  background: var(--brand-10);
  border-color: var(--brand-10);
  color: var(--tint-100);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--tint-70);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--brand-80);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--brand);
  color: var(--tint-100);
}

.btn-primary:hover {
  background: var(--brand-10);
  color: var(--tint-100);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  isolation: isolate;
  overflow: visible;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--brand-90);
  background-image: url("../Hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-inner {
  width: min(100% - 2.5rem, 58rem);
  margin-inline: auto;
  padding-top: clamp(3rem, 10vh, 6.5rem);
  padding-bottom: var(--space-xl);
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--tint-100);
}

.hero-line {
  display: block;
}

.hero-sub {
  margin: 0;
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 42rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--tint-80);
}

.hero-sub + .hero-sub {
  margin-top: 0.45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.4rem 1.05rem;
  border-radius: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-hero--outline {
  border: 2px solid var(--tint-100);
  background: transparent;
  color: var(--tint-100);
}

.btn-hero--outline:hover {
  background: color-mix(in srgb, var(--tint-100) 12%, transparent);
  color: var(--tint-100);
}

.btn-hero--solid {
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--tint-100);
}

.btn-hero--solid:hover {
  background: var(--brand-10);
  border-color: var(--brand-10);
  color: var(--tint-100);
}

.hero-cards {
  width: min(100% - 2.5rem, var(--container));
  margin-top: auto;
  margin-bottom: -4.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 5;
  padding-bottom: 0;
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 14.5rem;
  padding: 1.55rem 1.3rem;
  overflow: hidden;
  background: var(--tint-100);
  border: 1px solid var(--tint-80);
  border-radius: 0.75rem;
  color: var(--brand-80);
  text-align: right;
}

.hero-card-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.35rem;
  align-self: flex-start;
  background-color: var(--brand);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-card-icon--graphic {
  -webkit-mask-image: url("graphic-design.png");
  mask-image: url("graphic-design.png");
}

.hero-card-icon--branding {
  -webkit-mask-image: url("logo-design.png");
  mask-image: url("logo-design.png");
}

.hero-card-icon--web {
  -webkit-mask-image: url("web-dev.png");
  mask-image: url("web-dev.png");
}

.hero-card-icon--games {
  -webkit-mask-image: url("code-games.png");
  mask-image: url("code-games.png");
}

.hero-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-90);
  margin: 0;
  line-height: 1.3;
}

.hero-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--brand-50);
  flex: 1;
}

.hero-card-price {
  margin: 0;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand);
}

/* ==========================================================================
   Sections shared
   ========================================================================== */

.section {
  padding-block: var(--space-3xl);
}

.section-header {
  max-width: 40rem;
  margin-bottom: var(--space-xl);
}

.section-eyebrow {
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--brand);
  margin-bottom: var(--space-md);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ==========================================================================
   About / Services
   ========================================================================== */

.about {
  background: var(--tint-100);
  border-bottom: 1px solid var(--tint-80);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about-media {
  justify-self: center;
}

.about-photo {
  width: 100%;
  max-width: 20rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--tint-80);
}

.about-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.about-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  color: var(--brand-90);
  line-height: 1.2;
}

.about-role {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand);
}

.about-text {
  max-width: 40rem;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--brand-50);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    max-width: 14rem;
    margin-inline: auto;
  }

  .about-text {
    margin-inline: auto;
    text-align: right;
  }
}

.services-section {
  background: var(--brand);
  border-block: 1px solid var(--brand-10);
  padding-top: calc(var(--space-3xl) + 6rem);
  position: relative;
  z-index: 1;
}

.services-intro {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.services-intro-label {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint-70);
}

.services-intro-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tint-100);
}

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

.services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
  padding: 1.5rem 1.5rem 1.6rem;
  background: color-mix(in srgb, var(--brand-90) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint-100) 18%, transparent);
  border-inline-start: 3px solid var(--tint-100);
}

.service-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: 0.15rem;
  background-color: var(--tint-100);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.service-icon--graphic {
  -webkit-mask-image: url("graphic-design.png");
  mask-image: url("graphic-design.png");
}

.service-icon--branding {
  -webkit-mask-image: url("logo-design.png");
  mask-image: url("logo-design.png");
}

.service-icon--web {
  -webkit-mask-image: url("web-dev.png");
  mask-image: url("web-dev.png");
}

.service-icon--games {
  -webkit-mask-image: url("code-games.png");
  mask-image: url("code-games.png");
}

.service-body {
  min-width: 0;
}

.service-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--tint-100);
  margin: 0 0 var(--space-md);
  line-height: 1.3;
}

.service-text {
  color: var(--tint-70);
  max-width: 46rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-text p {
  margin: 0 0 0.7rem;
}

.service-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .service {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 1.25rem 1.1rem;
  }
}

/* ==========================================================================
   AI section
   ========================================================================== */

.ai-section {
  background: var(--tint-100);
  border-bottom: 1px solid var(--tint-80);
}

.ai-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.ai-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.ai-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--brand-90);
}

.ai-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: var(--space-2xl);
}

.ai-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
}

.ai-tool img {
  width: auto;
  height: 2.5rem;
  max-width: 10rem;
  object-fit: contain;
}

.ai-statement {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2xl);
  max-width: 42rem;
  min-height: 12rem;
  padding: 2.5rem 2.75rem;
  text-align: center;
  border: none;
  color: var(--brand);
}

.ai-statement-scribble {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ai-statement p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--brand-90);
}

.ai-content {
  max-width: 44rem;
  margin-inline: auto;
  text-align: right;
}

.ai-subtitle {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--brand);
  line-height: 1.35;
}

.ai-lead {
  margin: 0 0 var(--space-lg);
  color: var(--brand-50);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ai-list-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-90);
}

.ai-list {
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ai-list li {
  position: relative;
  padding-inline-start: 1.15rem;
  color: var(--brand-50);
  font-size: 1.02rem;
  line-height: 1.6;
}

.ai-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  inset-inline-start: 0;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
}

.ai-note {
  margin: 0 0 var(--space-md);
  color: var(--brand-40);
  font-size: 1.02rem;
  line-height: 1.7;
}

.ai-note--emphasis {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.7;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio {
  background: var(--brand);
  border-block: 1px solid var(--brand-10);
}

.portfolio-intro {
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.portfolio-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint-70);
}

.portfolio-heading {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--tint-100);
}

.portfolio-lead {
  margin: 0;
  color: var(--tint-70);
  font-size: 1.05rem;
  line-height: 1.7;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-90) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint-100) 18%, transparent);
  border-radius: 0.75rem;
  color: inherit;
}

.project:hover {
  border-color: color-mix(in srgb, var(--tint-100) 40%, transparent);
  color: inherit;
}

.project-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--brand-70);
  border: none;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
  padding: 1.15rem 1.2rem 1.3rem;
}

.project-category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tint-70);
}

.project-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--tint-100);
}

.project-text {
  margin: 0;
  color: var(--tint-70);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

.project-link {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tint-100);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--brand);
  border-top: 1px solid var(--brand-10);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-intro {
  margin-bottom: 0;
}

.contact-eyebrow {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tint-70);
}

.contact-heading {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  color: var(--tint-100);
}

.contact-lead {
  margin: 0;
  color: var(--tint-70);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-details {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tint-60);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--tint-100);
  font-weight: 500;
  font-size: 1.1rem;
}

.contact-details a:hover {
  color: var(--tint-80);
}

.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-whatsapp i {
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--tint-100);
  border: 1px solid color-mix(in srgb, var(--tint-100) 30%, transparent);
  border-radius: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-50);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--tint-80);
  background: var(--tint-90);
  color: var(--brand-90);
  border-radius: 0.45rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--brand-40);
}

.form-field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #c45c6a;
}

.field-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #c45c6a;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--tint-90);
  border: 1px solid var(--brand);
  color: var(--brand-70);
  font-weight: 500;
  border-radius: 0.45rem;
}

.form-status.is-error {
  border-color: #c45c6a;
  background: color-mix(in srgb, #c45c6a 12%, var(--tint-100));
  color: #8f3a48;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Legal pages (accessibility, etc.)
   ========================================================================== */

.page-legal {
  background: var(--tint-100);
  color: var(--brand-80);
}

.page-legal .legal-main {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space-2xl);
  background: var(--tint-100);
}

.legal-article {
  max-width: 46rem;
}

.breadcrumb {
  margin-bottom: 1.35rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--brand-40);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: ">";
  color: var(--tint-60);
  font-weight: 400;
}

.breadcrumb-list a {
  color: var(--brand-40);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  color: var(--brand);
}

.breadcrumb-list [aria-current="page"] {
  color: var(--brand-80);
  font-weight: 500;
}

.legal-article h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--brand-90);
}

.legal-updated {
  margin-bottom: 1.75rem;
  font-size: 0.925rem;
  color: var(--brand-40);
}

.legal-article h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: var(--brand);
}

.legal-article p {
  margin-bottom: 1rem;
  color: var(--brand-70);
  font-size: 1.05rem;
  line-height: 1.85;
}

.legal-list {
  margin: 0.5rem 0 1.25rem;
  padding-inline-start: 1.35rem;
  list-style: disc;
  color: var(--brand-70);
}

.legal-list li {
  margin-bottom: 0.45rem;
  line-height: 1.7;
  padding-inline-start: 0.25rem;
}

.legal-list--keys {
  list-style: none;
  padding-inline-start: 0;
}

.legal-list--keys li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  background: var(--tint-90);
  border-inline-start: 3px solid var(--brand);
}

.legal-article kbd {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--tint-60);
  border-radius: 0.25rem;
  background: var(--tint-100);
  color: var(--brand-80);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.legal-contact {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.35rem;
  background: var(--tint-90);
  border: 1px solid var(--tint-80);
}

.legal-contact div {
  display: grid;
  gap: 0.15rem;
}

.legal-contact dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.legal-contact dd {
  margin: 0;
  color: var(--brand-80);
  font-weight: 500;
}

.legal-article a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-article a:hover {
  color: var(--brand-20);
}

.legal-inline-btn {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.legal-inline-btn:hover {
  color: var(--brand-20);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 0;
  background: var(--tint-100);
  border-top: 1px solid var(--tint-80);
  color: var(--brand-70);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-brand img {
  width: auto;
  height: 2.75rem;
}

.footer-studio-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-90);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.15rem 0 0.35rem;
}

.footer-contact a {
  color: var(--brand-50);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--brand);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.footer-col-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-90);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-links a,
.footer-links button {
  color: var(--brand-40);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.footer-links button {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: inherit;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--brand);
}

.footer-links a[aria-current="page"] {
  color: var(--brand);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--tint-80);
  border-radius: 999px;
  background: var(--tint-100);
  color: var(--brand-60);
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--tint-100);
}

.footer-bottom {
  padding-block: 1.35rem;
  border-top: 1px solid var(--tint-80);
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--brand-40);
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }
}

@media (max-width: 560px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
  }

  .footer-brand img {
    height: 2.4rem;
  }
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.85rem;
  box-shadow: none;
}

.whatsapp-float:hover {
  background: #1ebe57;
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    transform: none;
    background: var(--tint-100);
    border-bottom: 1px solid var(--tint-80);
    padding: var(--space-md) 1.25rem var(--space-lg);
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 100;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-dropdown {
    position: static;
    border: none;
    border-inline-start: 2px solid var(--tint-80);
    margin-inline-start: 1rem;
    margin-block: 0.15rem 0.35rem;
    min-width: 0;
    padding: 0;
    display: none;
  }

  .nav-item--dropdown.is-open .nav-dropdown {
    display: block;
  }
}

@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: -3rem;
  }

  .services-section {
    padding-top: calc(var(--space-3xl) + 7.5rem);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 5rem;
  }

  .brand img {
    height: 3rem;
  }

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

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

  .hero-inner {
    padding-top: clamp(2.25rem, 8vh, 4rem);
    padding-bottom: var(--space-lg);
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: -2.5rem;
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-card {
    min-height: 12rem;
    padding: 1.2rem;
  }

  .section {
    padding-block: var(--space-2xl);
  }

  .services-section {
    padding-top: calc(var(--space-2xl) + 10rem);
  }
}

@media (max-width: 480px) {
  .container,
  .header-inner,
  .hero-inner {
    width: min(100% - 1.5rem, 58rem);
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .contact-form {
    padding: var(--space-md);
  }
}

/* Prefer reduced motion keep smooth scroll off if requested */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
