/* ============================================================
   Silon — design tokens
   ============================================================ */
:root {
  --ink: #0c0c10;
  --ink-soft: #55555f;
  --ink-faint: #8b8b95;
  --bg: #ffffff;
  --surface: #f8f7fb;
  --border: #ebe9f2;

  --lavender: #b9a6ee;
  --pink: #e08fc4;
  --pink-bright: #ee5da3;
  --badge-bg: #d7e0fb;

  --gradient-brand: linear-gradient(135deg, #dfe6f4 0%, #d6cdf6 22%, #d1c4f6 45%, #d3c6f7 68%, #e7bbca 100%);
  --gradient-hero-bg: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #eee9f9 55%, #ddd0f3 70%, #d7c7f3 85%, #e7bbca 100%);

  --font: 'DM Sans', system-ui, -apple-system, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 50px -24px rgba(96, 72, 168, 0.28);
  --shadow-lift: 0 28px 60px -20px rgba(96, 72, 168, 0.35);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 300;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ============================================================
   Buttons & chips
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--pink-bright); outline-offset: 3px; }

.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { box-shadow: var(--shadow-lift); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45); }

.chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--badge-bg);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
/* .reveal-armed is only ever added by JS once it has successfully set up
   an IntersectionObserver — content stays fully visible if JS fails. */
.reveal-armed {
  opacity: 0;
  transform: translateY(18px);
}
.reveal-armed.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
/* Whenever the full-screen nav is open, the header must look the same at
   every scroll position — just the logo and toggle floating over it. */
.site-header.nav-is-open {
  background: rgba(255, 255, 255, 0) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
.site-header.nav-is-open .logo__word { color: #fff; }

.header__row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 36px; height: 36px; border-radius: 50%; }
.logo__word { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; transition: color 0.3s var(--ease); }

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

.lang-switch { position: relative; }
.lang-switch__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.7rem 0 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch__current:hover { transform: translateY(-1px); }
.lang-switch__current img {
  width: 22px;
  height: 15px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(12, 12, 16, 0.1);
  object-fit: cover;
}
.lang-switch__chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}
.lang-switch__current[aria-expanded="true"] .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 220;
}
.lang-switch__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.lang-switch__option:hover, .lang-switch__option:focus-visible { background: var(--surface); }
.lang-switch__option img { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(12, 12, 16, 0.1); }

.nav-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  z-index: 210;
  position: relative;
}
.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   Nav overlay
   ============================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: #0c0c10;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-overlay__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.nav-overlay__links a {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 0.2rem 0.4rem;
  background: linear-gradient(90deg, var(--lavender), var(--pink-bright));
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s var(--ease), opacity 0.3s ease;
}
.nav-overlay__links a:hover,
.nav-overlay__links a:focus-visible { background-size: 100% 3px; }

.nav-overlay__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: #a9a9b3;
  font-size: 0.95rem;
  text-align: center;
}
.nav-overlay__footer a { color: #fff; font-weight: 700; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-9);
  background: var(--gradient-hero-bg);
  overflow: hidden;
}

.hero__inner { position: relative; width: 100%; }

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--space-6);
  transform: translateX(-50%);
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: scroll-cue-bounce 1.8s ease-in-out infinite;
}
.hero__scroll-cue svg { width: 18px; height: 18px; }
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-cue { animation: none; }
}

.hero__headline {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(2.75rem, 5vw + 1.4rem, 5.25rem);
  margin-bottom: var(--space-6);
}
.hero__headline--mobile { display: none; }

.hero__line {
  display: block;
  animation: hero-line-in 0.8s var(--ease) both;
}
.hero__line:nth-child(1) { animation-delay: 0.05s; }
.hero__line:nth-child(2) { animation-delay: 0.2s; }
.hero__line:nth-child(3) { animation-delay: 0.35s; }
.hero__line:nth-child(4) { animation-delay: 0.5s; }
.hero__line:nth-child(5) { animation-delay: 0.65s; }
.hero__line:nth-child(6) { animation-delay: 0.8s; }
@keyframes hero-line-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.dots {
  position: relative;
  display: inline-flex;
  width: 1.05em;
  height: 0.6em;
  vertical-align: -0.02em;
  margin: 0 0.06em;
}
.dots__circle {
  position: absolute;
  top: 0;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
}
.dots__circle--a { left: 0; background: var(--lavender); }
.dots__circle--b {
  left: 0.42em;
  background: var(--pink);
  animation: dot-pulse 2.4s ease-in-out 1.3s infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.badge-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8em;
  height: 0.8em;
  border-radius: 0.24em;
  background: var(--badge-bg);
  margin: 0 0.04em;
}
.badge-arrow svg {
  width: 0.42em;
  height: 0.42em;
  animation: badge-nudge 2.2s ease-in-out 1.5s infinite;
}
@keyframes badge-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}

.ring-arrow {
  display: inline-flex;
  width: 0.8em;
  height: 0.8em;
  vertical-align: -0.12em;
  margin-left: -0.05em;
  transition: transform 0.25s var(--ease);
  animation: ring-nudge 2.4s ease-in-out 1.7s infinite;
}
.ring-arrow:hover { animation-play-state: paused; transform: translateX(0.08em) scale(1.06); }
.ring-arrow svg { width: 100%; height: 100%; }
@keyframes ring-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.u-solid, .u-dash {
  position: relative;
  display: inline-block;
}
/* Curly underline: a tiled wavy SVG stroke, wiped in left-to-right via clip-path
   (clip-path, not a scaleX transform, so the wave shape itself never distorts).
   The path's start/end points share the same position AND tangent direction,
   so consecutive tiles connect into one continuous wave instead of visible
   separate dashes — no stroke-linecap, so there's no bulge at the seams either. */
.u-solid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  height: 0.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5 C 2.5 0 7.5 0 10 5 C 12.5 10 17.5 10 20 5' fill='none' stroke='%230c0c10' stroke-width='2.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 0.42em 100%;
  clip-path: inset(0 100% 0 0);
  animation: draw-underline 0.9s var(--ease) 0.5s forwards;
}
@keyframes draw-underline {
  to { clip-path: inset(0 0% 0 0); }
}
.u-dash {
  border-bottom: 0.075em dashed var(--ink);
  padding-bottom: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .hero__line { animation: none; }
  .u-solid::after { animation: none; clip-path: inset(0 0% 0 0); }
  .dots__circle--b, .badge-arrow svg, .ring-arrow { animation: none; }
}

.hero__sub {
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ============================================================
   Offer
   ============================================================ */
.offer { padding-block: var(--space-9); }

.offer__heading {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: var(--space-5);
}
.offer__lead {
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-8);
}

.offer__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.offer__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.offer__item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.3rem; }
.offer__item p { color: var(--ink-soft); font-size: 0.95rem; }
.offer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: var(--space-4);
}
.offer__icon svg { width: 24px; height: 24px; }

/* ============================================================
   Section heads (shared)
   ============================================================ */
.section-head { max-width: 62ch; margin-bottom: var(--space-8); }
.section-head h2, .portfolio h2 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section-head__sub { color: var(--ink-soft); font-size: 1.0625rem; }

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio { padding-block: var(--space-9); background: var(--surface); }

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.project-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover, .project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.project-card__art { aspect-ratio: 4 / 3; background: var(--badge-bg); }
.project-card__art img { width: 100%; height: 100%; object-fit: cover; }

.project-card__body { padding: 0 var(--space-6) var(--space-6); }
.project-card__body .chip { margin-bottom: var(--space-3); }
.project-card__body h3 { font-size: 1.25rem; font-weight: 800; margin: 0.25rem 0 0.6rem; }
.project-card__body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: var(--space-4); }

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.project-card__cta:hover, .project-card__cta:focus-visible {
  background: var(--ink);
  color: #fff;
}
.project-card__cta span { transition: transform 0.25s var(--ease); }
.project-card__cta:hover span { transform: translateX(4px); }

/* ============================================================
   Numbers
   ============================================================ */
.numbers { padding-block: var(--space-9); }

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7);
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(2.5rem, 3vw + 1.5rem, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: var(--space-2);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   Callout band
   ============================================================ */
.callout {
  position: relative;
  background: var(--gradient-brand);
  padding-block: var(--space-9);
  overflow: hidden;
}
.callout::before,
.callout::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}
.callout::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.callout::after { width: 260px; height: 260px; bottom: -130px; right: -60px; background: rgba(255, 255, 255, 0.2); }

.callout__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}
.callout__heading {
  font-family: var(--font);
  font-size: clamp(2.25rem, 4vw + 1.2rem, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 16ch;
}
/* This particular badge-arrow is a static illustration, not an affordance —
   no idle nudge here (unlike the hero's). */
.callout__heading .badge-arrow svg { animation: none; }

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 48px -18px rgba(20, 10, 40, 0.35);
}
.btn--light:hover { box-shadow: 0 28px 58px -16px rgba(20, 10, 40, 0.4); }
.btn--light svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.btn--light:hover svg { transform: translateX(3px); }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding-block: var(--space-9); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.contact__intro h2 {
  font-size: clamp(2rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.contact__intro p { color: var(--ink-soft); margin-bottom: var(--space-4); max-width: 42ch; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: var(--space-4); }
.contact__email {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 2px solid var(--ink);
}
.contact__phone { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--ink-soft); }
.contact__location { color: var(--ink-faint); font-size: 0.9rem; }

.contact__form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: grid;
  gap: var(--space-5);
}

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pink-bright);
  box-shadow: 0 0 0 4px rgba(238, 93, 163, 0.15);
}
.field textarea { resize: vertical; min-height: 6rem; }

.field__error {
  display: none;
  color: var(--pink-bright);
  font-size: 0.82rem;
  font-weight: 600;
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--pink-bright); }
.field.is-invalid .field__error { display: block; }

.contact__submit { justify-self: start; margin-top: var(--space-2); }

.contact__success {
  font-weight: 700;
  color: var(--ink);
  background: var(--badge-bg);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #e6e6ec; padding-top: var(--space-9); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand .logo__word { color: #fff; }
.footer__brand p { color: #9d9da8; margin-top: var(--space-3); font-size: 0.9rem; }

.footer__col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9d9da8;
  margin-bottom: var(--space-4);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a:hover { color: var(--pink-bright); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-5);
  color: #9d9da8;
  font-size: 0.85rem;
}
.footer__top { font-weight: 700; color: #e6e6ec; }
.footer__top:hover { color: var(--pink-bright); }

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 16, 0.55);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-7);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .modal__panel { transition: none; transform: none; }
}

.modal__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__content img { border-radius: var(--radius-md); margin-bottom: var(--space-5); aspect-ratio: 4/3; object-fit: cover; }
.modal__content .modal__visit { display: flex; margin-bottom: var(--space-5); }
.modal__content h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-4); }
.modal__content h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink-bright); margin: var(--space-4) 0 0.35rem; }
.modal__content p { color: var(--ink-soft); }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (max-width: 640px) {
  .hero__headline--desktop { display: none; }
  .hero__headline--mobile { display: block; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
}

/* Below the two-column contact breakpoint, the form is stacked under the
   heading — drop the card treatment so its fields line up flush with the
   heading's left edge instead of sitting padding-in from it. */
@media (max-width: 899px) {
  .contact__form {
    background: none;
    padding: 0;
    border-radius: 0;
  }
}

@media (min-width: 641px) {
  .numbers__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .offer__list { grid-template-columns: repeat(4, 1fr); }
}
