/* ==========================================================================
   Ajmain Fayek — site stylesheet
   One file, no framework. Sections:
   1. Tokens  2. Base  3. Layout  4. Type  5. Buttons & links
   6. Header / nav  7. Hero  8. Components  9. Pages  10. Footer
   11. Overlays (cookie, WhatsApp, lightbox)  12. Motion  13. Utilities
   ========================================================================== */

/* Fonts (self-hosted Latin subsets, SIL Open Font License) ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500&display=swap');

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #08080a;
  --bg-raised: #0d0d10;
  --surface: #121216;
  --surface-2: #19191e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f1;
  --text-2: #b0b0b8;
  --text-3: #85858f;

  --accent: #f24f07;
  --accent-hover: #ff6a2b;
  --accent-text: #f97140;
  --accent-soft: rgba(242, 79, 7, 0.14);
  --success: #34d399;
  --danger: #f87171;

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1240px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 72px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* 3. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--raised { background: var(--bg-raised); border-block: 1px solid var(--line); }
.section:not(.section--raised) + .section:not(.section--raised):not(.section--tight) { padding-top: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 899px) { .split { grid-template-columns: minmax(0, 1fr); } }

.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
@media (max-width: 899px) { .sticky-col { position: static; } }

/* 4. Type ------------------------------------------------------------------ */
.display, .h1, .h2, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.display {
  font-size: clamp(2.1rem, 10.2vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-stretch: 112%;
  text-transform: uppercase;
}
.h1 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.25; letter-spacing: -0.015em; }
.h1--article { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  font-stretch: 100%;
}
.accent { color: var(--accent-text); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 820px;
}
.section-head p { color: var(--text-2); max-width: 60ch; }
.section-head--row {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.section-head--row > :first-child { display: grid; gap: 20px; max-width: 820px; }
.section-head .link-arrow { justify-self: start; }
@media (max-width: 767px) { .section-head--row { grid-template-columns: minmax(0, 1fr); } }

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease), translate 0.45s var(--ease);
}
.btn:hover { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transform-origin: right center;
}
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover::after { opacity: 1; animation: underline-swap 0.9s var(--ease); }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* 6. Header / nav ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(8, 8, 10, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 88px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent-text);
}
.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 24px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mobile-menu nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu nav a svg { width: 22px; height: 22px; color: var(--text-3); }
.mobile-menu__foot { display: grid; gap: 20px; }
.mobile-menu__foot .btn { width: 100%; }
.mobile-menu__foot .socials { justify-content: center; }

@media (max-width: 899px) {
  .site-header .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (min-width: 900px) { .mobile-menu { display: none; } }

main { display: block; }
.page-top { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }

/* 7. Hero (home) — typographic ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3.5vh, 44px);
  padding-top: calc(var(--header-h) + clamp(16px, 3.5vh, 48px));
  padding-bottom: clamp(16px, 2.5vh, 36px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  transition: translate 1.8s var(--ease);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
.hero::before {
  width: min(80vw, 900px); height: min(80vw, 900px);
  top: -30%; right: -18%;
  background: radial-gradient(circle, rgba(242, 79, 7, 0.5), transparent 65%);
  translate: calc(var(--gx, 0) * 110px) calc(var(--gy, 0) * 110px);
}
.hero::after {
  width: min(70vw, 760px); height: min(70vw, 760px);
  bottom: -12%; left: -22%;
  background: radial-gradient(circle, rgba(242, 79, 7, 0.32), transparent 65%);
  translate: calc(var(--gx, 0) * -90px) calc(var(--gy, 0) * -90px);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}
@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 10%) scale(1.18); }
}
/* Background portrait — full-cover behind the hero text */
.hero__bg-portrait {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.3) 40%, rgba(8,8,10,0.65) 100%);
}
.hero__bg-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.38;
  filter: grayscale(0.15) contrast(0.9) brightness(0.75);
}
/* Faint grid that fades out toward the edges */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: clamp(56px, 6vw, 96px) clamp(56px, 6vw, 96px);
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 15%, transparent 75%);
}
.hero__inner { position: relative; text-align: center; margin-block: auto; }
@media (min-width: 900px) { .hero__inner { margin-top: auto; margin-bottom: clamp(46px, calc(4vh + 30px), 90px); } }
.hero__title {
  position: relative;
  font-size: clamp(2.8rem, 10vw, 6.5rem);
}
@media (max-width: 599px) {
  /* bigger font + tighter tracking; nowrap on each span locks each line to one row regardless of sub-pixel rendering */
  .hero__title { font-size: clamp(1.2rem, 8.5vw, 6.5rem); letter-spacing: -0.05em; }
  .hero__title .line > span { white-space: nowrap; }
  .hero__lead { display: none; }
}
/* Each line sits in its own mask so it can slide up into view; padding keeps descenders (the "g") unclipped. */
.hero__title .line { display: block; overflow: hidden; padding: 0 0.06em 0.16em; margin-bottom: -0.16em; }
.hero__title .line > span { display: inline-block; }
.hero__title .serif {
  color: var(--accent-text);
  font-size: 1.08em;
  letter-spacing: -0.03em;
  padding-right: 0.04em;
  display: inline-block;
  transition: letter-spacing 0.7s var(--ease), transform 0.7s var(--ease), text-shadow 0.7s var(--ease);
  transform-origin: center bottom;
}
.hero__title .ch { transition: font-weight 0.7s var(--ease); }
.hero__doodle {
  position: absolute;
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--accent-text);
  margin: 0;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: rotate(-30deg);
  transform-origin: right top;
  opacity: 0;
  pointer-events: none;
}
.hero__doodle.is-placed {
  opacity: 0.9;
  transition: opacity 0.9s var(--ease);
}
.hero__lead {
  max-width: 560px;
  margin: clamp(16px, 2.5vh, 32px) auto 0;
}
.hero .btn-row { justify-content: center; margin-top: clamp(16px, 2.5vh, 28px); }
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(20px, 3vh, 32px);
}
.hero .logos { padding-top: 0; }
.hero .logos__label { margin-bottom: clamp(12px, 2vh, 24px); }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

/* Logos marquee */
.logos { padding-block: 40px 0; }
.logos__label { text-align: center; font-size: 0.875rem; color: var(--text-3); margin-bottom: 24px; }
.marquee {
  --gap: clamp(48px, 6vw, 88px);
  --duration: 40s;
  display: flex;
  overflow: hidden;
  gap: var(--gap);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-shrink: 0;
  min-width: 100%;
  justify-content: space-around;
  animation: marquee var(--duration) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.logos img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s var(--ease);
}
@media (max-width: 599px) {
  .logos img { height: 22px; }
  .marquee { --gap: clamp(28px, 7vw, 48px); }
}
.logos img:hover { opacity: 0.85; }

/* 8. Components ------------------------------------------------------------ */

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat__label { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
@media (max-width: 559px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* Work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}
@media (max-width: 767px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }
.work-card { display: grid; gap: 20px; }
.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10.5;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__badge {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(8, 8, 10, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.work-card__body { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.work-card__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.work-card__desc { margin-top: 6px; color: var(--text-2); font-size: 1rem; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.arrow-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), translate 0.45s var(--ease);
}
.arrow-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.work-card:hover .arrow-btn { background: var(--accent); border-color: var(--accent); }
.work-card:hover .arrow-btn svg { transform: rotate(45deg); }

/* Cards (services, features) */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(18, 18, 22, 0.4));
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 12px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card--link { padding-bottom: clamp(28px, 3vw, 40px); }
.card__arrow { position: absolute; bottom: 16px; right: 18px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2, rgba(255,255,255,0.06)); color: var(--text-3); transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.card__arrow svg { width: 14px; height: 14px; }
a.card--link:hover .card__arrow { background: var(--accent); color: #fff; transform: translate(2px, -2px); }
.card p { color: var(--text-2); font-size: 1rem; }
.card__num { font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Pricing cards */
.card--accent { border-color: var(--accent); background: linear-gradient(160deg, rgba(242,79,7,0.12), var(--surface)); }
.card--accent:hover { border-color: var(--accent); }
.pricing__price { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.pricing__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pricing__list li { font-size: 0.9375rem; color: var(--text-2); padding-left: 1.25em; position: relative; }
.pricing__list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-text); font-weight: 600; }

/* Service showcase (image cards on services page) */
.showcase-card { display: grid; gap: 16px; }
.showcase-card__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--img-bg, var(--surface));
}
.showcase-card__media img { width: 100%; height: 100%; object-fit: var(--img-fit, cover); object-position: var(--img-pos, center center); transition: transform 0.9s var(--ease); }
.showcase-card:hover .showcase-card__media img { transform: scale(1.04); }
.showcase-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.showcase-card h3 svg { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.showcase-card:hover h3 svg { transform: translate(2px, -2px); color: var(--accent-text); }
.showcase-card p { color: var(--text-2); font-size: 1rem; margin-top: -6px; }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--accent-text); }
.step h3 { margin-top: 20px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 0.975rem; }
@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0; border-left: 0; margin: 0; border-top: 0; border-bottom: 1px solid var(--line); }
}

/* Gallery marquee (UI shots) */
.shots { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.shots .marquee { --gap: clamp(12px, 1.6vw, 20px); --duration: 70s; }
.shots .marquee__track { justify-content: flex-start; }
.shot {
  width: clamp(260px, 30vw, 420px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonials */
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote__mark { font-family: var(--font-serif); font-size: 4.5rem; line-height: 0.6; color: var(--accent-text); height: 28px; }
.quote blockquote p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.quote figcaption .quote__avatar { flex: none; display: grid; place-items: end center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: #3a3a3f; color: #8e8e95; }
.quote__avatar svg { width: 42px; height: 42px; }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote figcaption span { font-size: 0.9375rem; color: var(--text-2); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq summary .icon {
  position: relative;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq summary .icon::before, .faq summary .icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  border-radius: 2px;
}
.faq summary .icon::after { transform: rotate(90deg); transition: transform 0.35s var(--ease); }
.faq details[open] summary .icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details[open] summary .icon::after { transform: rotate(0deg); }
.faq details.is-closing summary .icon { background: transparent; border-color: var(--line-strong); color: inherit; }
.faq details.is-closing summary .icon::after { transform: rotate(90deg); }
.faq .answer { overflow: hidden; color: var(--text-2); max-width: 70ch; }
.faq .answer p { padding: 0 56px 28px 0; }
@media (max-width: 559px) { .faq .answer p { padding-right: 0; } }

/* CTA panel */
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(242, 79, 7, 0.45), transparent 70%);
  pointer-events: none;
}
.cta-panel .h2 { max-width: 16ch; margin-inline: auto; }
.cta-panel p { max-width: 52ch; margin: 20px auto 0; color: var(--text-2); }
.cta-panel .btn-row { justify-content: center; margin-top: 36px; }

/* Contact form */
.form { display: grid; gap: 18px; }
@media (max-width: 767px) { .form .btn { width: 100%; justify-content: center; } }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 559px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9375rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(242, 79, 7, 0.06);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.875rem; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form__note { font-size: 0.875rem; color: var(--text-3); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 0.9375rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status[data-state="success"] { color: var(--success); }
.form__status[data-state="error"] { color: var(--danger); }
.form .btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.form.is-sending .btn .spinner { display: inline-block; }
.form.is-sending .btn svg { display: none; }

.contact-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
a.contact-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.contact-item__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item__label { font-size: 0.8125rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-item__value { font-weight: 600; word-break: break-word; }

/* Socials */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), translate 0.45s var(--ease);
}
.socials a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* Cal.com embed */
.cal-embed {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: clip; /* clips border-radius without creating a scroll container that blocks iframe resize */
  padding: clamp(24px, 4vw, 48px) 0;
}
.cal-embed__frame { min-height: 760px; }
.cal-embed__frame iframe { width: 100%; height: 100%; min-height: 760px; }
.cal-embed__placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; padding: 40px; text-align: center; color: var(--text-2); }
.cal-embed.is-loaded .cal-embed__placeholder { display: none; }

/* Breadcrumbs */
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-3); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-2); }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%; right: -10%;
  width: min(70vw, 760px); height: min(70vw, 760px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 79, 7, 0.3), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}
.page-hero__inner { display: grid; gap: 28px; }
.page-hero .lead { max-width: 62ch; }

/* 9. Pages ----------------------------------------------------------------- */

/* About */
.about-intro { display: block; }
.about-intro__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: clamp(32px, 5vw, 56px); }
.about-intro__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 30%; display: block; }
.project-badge { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; background: rgba(8,8,10,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.13); border-radius: 100px; padding: 8px 16px 8px 12px; font-size: .8125rem; font-weight: 500; color: #fff; letter-spacing: .01em; white-space: nowrap; }
.project-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex-shrink: 0; animation: badge-pulse 2.2s ease-in-out infinite; }
@keyframes badge-pulse { 0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(52,211,153,.5); } 50% { opacity:.7; box-shadow: 0 0 0 5px rgba(52,211,153,0); } }

.prose-cols { display: grid; gap: 1.25em; color: var(--text-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.prose-cols p:first-child { color: var(--text); }

.photo-grid { columns: 3 280px; column-gap: clamp(12px, 1.6vw, 20px); }
.photo-grid a {
  position: relative;
  display: block;
  margin-bottom: clamp(12px, 1.6vw, 20px);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.photo-grid img { width: 100%; transition: transform 0.9s var(--ease), filter 0.5s var(--ease); }
.photo-grid a:hover img { transform: scale(1.03); }
.photo-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  font-size: 0.875rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.photo-grid a:hover figcaption, .photo-grid a:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .photo-grid figcaption { opacity: 1; transform: none; } }

.cert-card { display: grid; gap: 16px; }
.cert-card__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.cert-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.cert-card:hover .cert-card__media img { transform: scale(1.04); }
.cert-card h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cert-card h3 svg { width: 16px; height: 16px; color: var(--text-3); }
.cert-card p { color: var(--text-2); font-size: 0.9375rem; margin-top: -8px; }

/* Blog list */
.post-card { display: grid; gap: 20px; align-content: start; }
.post-card__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__meta { display: flex; gap: 12px; align-items: center; font-size: 0.875rem; color: var(--text-3); }
.post-card h2, .post-card h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-top: 10px; transition: color 0.2s var(--ease); }
.post-card:hover h2, .post-card:hover h3 { color: var(--accent-text); }
.post-card p:not(.post-card__meta) { margin-top: 10px; color: var(--text-2); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.post-feature .post-card__media { aspect-ratio: 16 / 10; }
.post-feature h2 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; }
@media (max-width: 899px) { .post-feature { grid-template-columns: minmax(0, 1fr); } }

/* Article */
.article-head { display: grid; gap: 24px; max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--text-2); font-size: 0.9375rem; }
.article-meta .author { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.article-meta .author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.article-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.article-cover { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.prose { font-size: 1.125rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose .lead { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.prose h2 {
  margin-top: 2.4em;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.prose h3 { margin-top: 1.9em; font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; color: var(--text); }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--accent-text); }
.prose ul ul { margin-top: 0.45em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text); }
.prose figure { margin-block: 2em; }
.prose figure img { border-radius: var(--radius); }
.prose .example, .prose .tip {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  font-size: 1.0625rem;
}
.prose .tip { border-left-color: var(--success); }
.prose .swatch-list { list-style: none; padding: 0; }
.prose .swatch-list li { display: flex; gap: 12px; align-items: baseline; }
.prose .swatch { flex-shrink: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 1px solid var(--line-strong); transform: translateY(2px); }

.author-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: clamp(48px, 7vw, 80px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box h2 { font-size: 1.15rem; font-weight: 600; }
.author-box p { color: var(--text-2); font-size: 0.975rem; margin-top: 4px; }
.author-box .link-arrow { margin-top: 12px; font-size: 0.9375rem; }
@media (max-width: 479px) { .author-box { grid-template-columns: minmax(0, 1fr); } }

/* Case study */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 64px);
}
.cs-meta > div { padding: 22px 20px 0 0; }
.cs-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.cs-meta dt { font-size: 0.8125rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; }
.cs-meta dd { margin: 8px 0 0; font-weight: 500; }
@media (max-width: 767px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-meta > div:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line); }
}
.cs-cover { margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cs-body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
@media (max-width: 899px) { .cs-body { grid-template-columns: minmax(0, 1fr); } }
.cs-body .prose { font-size: 1.125rem; }
.cs-sequence { display: grid; gap: clamp(20px, 3vw, 40px); }
.cs-figure { display: grid; gap: 14px; }
.cs-figure a { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.cs-figure img { width: 100%; transition: transform 0.9s var(--ease); }
.cs-figure a:hover img { transform: scale(1.015); }
.cs-figure figcaption { display: flex; gap: 12px; font-size: 0.9375rem; color: var(--text-2); }
.cs-figure figcaption b { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }

.cs-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cs-nav a {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s var(--ease);
}
.cs-nav a:hover { border-color: var(--line-strong); }
.cs-nav a:last-child { text-align: right; }
.cs-nav span { font-size: 0.875rem; color: var(--text-3); }
.cs-nav strong { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 559px) { .cs-nav { grid-template-columns: minmax(0, 1fr); } .cs-nav a:last-child { text-align: left; } }

/* Error pages */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; position: relative; isolation: isolate; overflow: hidden; }
.error-page::before { content: ""; position: absolute; z-index: -1; width: min(80vw, 720px); height: min(80vw, 720px); border-radius: 50%; background: radial-gradient(circle, rgba(242, 79, 7, 0.35), transparent 65%); filter: blur(60px); }
.error-page__code { font-size: clamp(6rem, 24vw, 16rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; font-stretch: 115%; background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page p { max-width: 46ch; margin: 20px auto 0; color: var(--text-2); }
.error-page .btn-row { justify-content: center; margin-top: 32px; }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { position: relative; padding-top: var(--section); border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: -30%;
  width: min(90vw, 900px); height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(242, 79, 7, 0.22), transparent 70%);
  pointer-events: none;
}
.footer-cta { display: grid; gap: 24px; justify-items: start; }
.footer-cta__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  font-size: clamp(1.45rem, 6.6vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  word-break: break-word;
  transition: color 0.3s var(--ease);
}
.footer-cta__mail:hover { color: var(--accent-text); }
.footer-cta__mail svg { width: 0.55em; height: 0.55em; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.footer-cta__mail:hover svg { transform: translate(6px, -6px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: clamp(56px, 8vw, 96px);
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.footer-grid h2 { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid ul:not(.socials) { display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-2); max-width: 36ch; margin-top: 18px; font-size: 0.975rem; }
.footer-about .socials { margin-top: 24px; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-3);
}
.footer-bottom a:hover { color: var(--text); }
.footer-bottom button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom button:hover { color: var(--text); }
.footer-watermark {
  font-size: clamp(4rem, 17vw, 16rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-align: center;
  font-stretch: 115%;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  margin-bottom: -0.12em;
  user-select: none;
  pointer-events: none;
}

/* 11. Overlays ------------------------------------------------------------- */
.cookie {
  position: fixed;
  z-index: 400;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(22, 22, 27, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  color: var(--text-2);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { opacity: 1; transform: none; }
.cookie p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn-row { margin-top: 16px; }
.cookie .btn { flex: 1; }

.wa-float {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.45s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.7); }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 479px) { .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }

.lightbox {
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(4, 4, 6, 0.94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(4, 4, 6, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(96vw, 1800px); max-height: 88vh; width: auto; height: auto; border-radius: var(--radius-sm); }
.lightbox__close {
  position: fixed;
  top: 16px; right: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center;
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__caption { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(90vw, 720px); text-align: center; font-size: 0.9375rem; color: var(--text-2); }

/* 12. Motion ---------------------------------------------------------------
   Everything below is progressive enhancement: `html.js` is set inline in <head>,
   `html.is-ready` is added by site.js, and all of it switches off for
   prefers-reduced-motion (see the end of this section). */
:root {
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes underline-swap {
  0% { transform: scaleX(1); transform-origin: right center; }
  45% { transform: scaleX(0); transform-origin: right center; }
  46% { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}

/* Page-to-page transitions (Chrome/Edge 126+, Safari 18.2+; others just navigate) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.45s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-in 0.9s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(40px); } }

/* Intro curtain — home page, first visit per session only */
.intro { display: none; }
.intro-play .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: transform 1.1s var(--ease-in-out) 0.1s, visibility 0s linear 1.3s;
}
.intro-play:not(.is-ready) body { overflow: hidden; }
.intro__inner { display: grid; justify-items: center; gap: 24px; }
.intro__logo { width: 150px; height: auto; opacity: 0; transform: translateY(18px); animation: intro-in 0.9s var(--ease) 0.1s forwards; }
.intro__bar { width: 132px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.intro__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: intro-bar 1.1s var(--ease) 0.2s forwards; }
.intro-play.is-ready .intro { transform: translateY(-100%); visibility: hidden; }
@keyframes intro-in { to { opacity: 1; transform: none; } }
@keyframes intro-bar { to { transform: scaleX(1); } }

/* Hero entrance: title lines slide up out of their masks, everything else rises in sequence.
   Image (hero__bg-portrait) has no data-hero so it shows instantly.
   Content waits ~2s so the portrait is seen first. */
.hero { --hero-delay: 1s; }
.intro-play { --hero-delay: 0s; } /* curtain takes ~1.2s, so content appears at ~1.2s total */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(10px);
  transition: opacity 1.6s var(--ease), transform 1.9s var(--ease), filter 1.6s var(--ease);
  transition-delay: calc(var(--hero-delay, 0s) + var(--d, 0s));
}
.js.is-ready .hero [data-hero] { opacity: 1; transform: none; filter: none; }
.js .hero__title .line > span {
  transform: translateY(115%);
  transition: transform 1.8s var(--ease);
  transition-delay: calc(var(--hero-delay, 0s) + var(--d, 0s));
}
.js.is-ready .hero__title .line > span { transform: none; }
.hero__title { will-change: translate; }

/* Scroll reveal: slow fade-up; siblings entering together are staggered by site.js */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Headings reveal word by word (site.js wraps each word in .w > span) */
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.08em 0.14em 0.15em;
  margin: 0 -0.08em -0.14em -0.15em;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--delay, 0s) + var(--i, 0) * 60ms);
}
.split-words.is-in .w > span { transform: none; }

/* Images wipe open from the bottom and settle from a slight zoom */
.js [data-media] {
  clip-path: inset(22% 4% 0 4% round var(--radius));
  transition: clip-path 1.5s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-in [data-media], .js [data-media].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-media] img { scale: 1.2; transition: scale 2s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in [data-media] img, .js [data-media].is-in img { scale: 1; }

/* Text roll on hover (site.js wraps labels in .roll > .roll__inner) */
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: top; height: 1.25em; line-height: 1.25; }
.roll__inner { display: block; transition: transform 0.6s var(--ease); }
.roll__inner::after { content: attr(data-text); content: attr(data-text) / ""; display: block; }
:is(a, button):hover .roll__inner, :is(a, button):focus-visible .roll__inner { transform: translateY(-50%); }

/* Smart header: slides away on scroll down, returns on scroll up */
.site-header.is-hidden { transform: translateY(-100%); }

/* Mobile menu links cascade in */
.mobile-menu nav a { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
body.menu-open .mobile-menu nav a { opacity: 1; transform: none; }
body.menu-open .mobile-menu nav a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu nav a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu nav a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu nav a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu nav a:nth-child(5) { transition-delay: 0.32s; }
body.menu-open .mobile-menu nav a:nth-child(6) { transition-delay: 0.38s; }

/* Cursor-following spotlight on cards */
.card::after, .quote::after, .contact-panel::after, .cs-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 79, 7, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.card:hover::after, .quote:hover::after, .contact-panel:hover::after, .cs-nav a:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }

/* UI shots lift on hover */
.shot { transition: transform 0.6s var(--ease), border-color 0.4s var(--ease); }
.shot:hover { transform: translateY(-8px); border-color: var(--line-strong); }

/* Custom cursor ring (fine pointers only; created by site.js) */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 500;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), opacity 0.3s var(--ease);
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.6); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor.is-hidden { opacity: 0; }
.cursor__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: #fff; opacity: 0; transform: scale(0.5); transition: opacity 0.3s var(--ease), transform 0.45s var(--ease); }
.cursor.is-label .cursor__label { opacity: 1; transform: none; }

/* Scroll-driven text band (rows are moved by site.js; speed follows scroll velocity) */
.ticker {
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 72px);
  border-block: 1px solid var(--line);
  user-select: none;
}
.ticker__row { display: flex; width: max-content; will-change: transform; }
.ticker__row + .ticker__row { margin-top: clamp(4px, 1vw, 12px); }
.ticker__group { display: flex; flex-shrink: 0; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding-right: 0.35em;
  white-space: nowrap;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-transform: uppercase;
}
.ticker__item .serif { text-transform: none; font-size: 1.06em; color: var(--accent-text); }
.ticker__item .star { font-size: 0.45em; color: var(--accent-text); }
.ticker__row--outline .ticker__item { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
.ticker__row--outline .ticker__item .serif, .ticker__row--outline .star { -webkit-text-stroke: 0; color: rgba(242, 79, 7, 0.55); }
.section--raised + .ticker { border-top: 0; }
.site-footer .ticker { border-top: 0; margin-top: calc(-1 * var(--section)); margin-bottom: var(--section); }

/* Film grain for depth (static, very subtle) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lenis smooth scrolling (from lenis.css) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-hero], .js .hero__title .line > span, .split-words .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-media] { clip-path: none !important; }
  .js [data-media] img { scale: 1 !important; filter: none !important; }
  .intro, .cursor { display: none !important; }
  .marquee { overflow-x: auto; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .ticker__row { flex-wrap: wrap; width: auto; }
  .ticker__group[aria-hidden="true"] { display: none; }
}

/* 13. Utilities ------------------------------------------------------------ */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.stack { display: grid; gap: 24px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Available popup ---------------------------------------------------------- */
.avail-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  transform: rotate(-2deg) scale(0) translateY(24px);
  opacity: 0;
  transform-origin: bottom left;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}
.avail-popup.is-visible {
  transform: rotate(-2deg) scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
  animation: popup-float 3.6s ease-in-out infinite;
}
@keyframes popup-float {
  0%   { transform: rotate(-2deg) scale(1) translateY(0px); }
  30%  { transform: rotate(-1deg) scale(1) translateY(-6px); }
  60%  { transform: rotate(-3deg) scale(1) translateY(-3px); }
  100% { transform: rotate(-2deg) scale(1) translateY(0px); }
}
.avail-popup__card {
  background: #f97316;
  color: #fff;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 11px 22px 12px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.18);
  position: relative;
}
.avail-popup__card::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 36px;
  width: 0;
  height: 0;
  border-top: 24px solid #f97316;
  border-left: 10px solid transparent;
  border-right: 18px solid transparent;
}
.avail-popup__sticker {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 14px;
  margin-left: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.avail-popup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: badge-pulse 2.2s ease-in-out infinite;
}
.avail-popup__text {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  padding: 2px 0;
  transition: width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.avail-popup__msg {
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s ease, filter 0.35s ease;
}
.avail-popup__msg.is-out { transform: translateY(-110%) rotate(-4deg); opacity: 0; filter: blur(3px); transition-timing-function: cubic-bezier(0.55, 0, 1, 0.45), ease, ease; }
.avail-popup__msg.is-in { transform: translateY(110%) rotate(4deg); opacity: 0; filter: blur(3px); transition: none; }
@media (prefers-reduced-motion: reduce) {
  .avail-popup__text, .avail-popup__msg { transition: none; }
}
body.menu-open .avail-popup { opacity: 0; pointer-events: none; }
.avail-popup__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.avail-popup__btn:hover, .avail-popup__btn:active, .avail-popup__btn:focus { background: transparent; }
.avail-popup.is-visible, .avail-popup__btn { pointer-events: none; cursor: default; }
.avail-popup.is-visible:not(.is-gone) .avail-popup__sticker { pointer-events: auto; cursor: pointer; }
.avail-popup__btn:focus-visible { outline: none; }
.avail-popup__btn:focus-visible .avail-popup__card { outline: 2px solid #fff; outline-offset: 3px; }
.avail-popup__btn:hover .avail-popup__card { background: #fb8a3c; }
.avail-popup__btn:hover .avail-popup__card::after { border-top-color: #fb8a3c; }
.avail-popup__card, .avail-popup__card::after { transition: background-color 0.2s ease, border-color 0.2s ease; }

/* Smoke vanish near the footer */
.avail-popup__smoke { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.avail-popup__smoke i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 232, 228, 0.85) 0%, rgba(210, 205, 200, 0.45) 45%, rgba(200, 195, 190, 0) 70%);
  filter: blur(4px);
  opacity: 0;
  transform: scale(0.3);
}
.avail-popup__smoke i:nth-child(1) { --x: 22%; --y: 72%; --s: 70px; --dx: -26px; --dy: -40px; --d: 0s; }
.avail-popup__smoke i:nth-child(2) { --x: 40%; --y: 30%; --s: 80px; --dx: 6px;   --dy: -56px; --d: 0.05s; }
.avail-popup__smoke i:nth-child(3) { --x: 70%; --y: 28%; --s: 74px; --dx: 34px;  --dy: -46px; --d: 0.1s; }
.avail-popup__smoke i:nth-child(4) { --x: 18%; --y: 40%; --s: 60px; --dx: -38px; --dy: -24px; --d: 0.08s; }
.avail-popup__smoke i:nth-child(5) { --x: 36%; --y: 80%; --s: 64px; --dx: 14px;  --dy: -30px; --d: 0.12s; }
.avail-popup__smoke i:nth-child(6) { --x: 88%; --y: 34%; --s: 56px; --dx: 40px;  --dy: -20px; --d: 0.15s; }
.avail-popup__smoke i:nth-child(7) { --x: 55%; --y: 55%; --s: 90px; --dx: 0px;   --dy: -64px; --d: 0.02s; }
@keyframes popup-puff {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.3); }
  25%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(2.2); }
}
@keyframes popup-vanish {
  0%   { opacity: 1; filter: blur(0); transform: scale(1); }
  100% { opacity: 0; filter: blur(10px); transform: scale(1.12) translateY(-14px); }
}
@keyframes popup-return {
  0%   { opacity: 0; filter: blur(8px); transform: scale(0.85) translateY(10px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
.avail-popup.is-gone { pointer-events: none; }
.avail-popup.is-gone .avail-popup__btn { animation: popup-vanish 0.55s ease-in forwards; }
.avail-popup.is-gone .avail-popup__smoke i { animation: popup-puff 1.1s ease-out var(--d) forwards; }
.avail-popup.is-return .avail-popup__btn { animation: popup-return 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .avail-popup.is-gone .avail-popup__btn { animation: none; opacity: 0; }
  .avail-popup.is-gone .avail-popup__smoke i, .avail-popup.is-return .avail-popup__btn { animation: none; }
}

@media (max-width: 639px) {
  .avail-popup { bottom: 14px; left: 12px; }
  .avail-popup__card { font-size: 1rem; padding: 8px 15px 9px 12px; border-radius: 12px; gap: 7px; }
  .avail-popup__card::after { bottom: -17px; left: 26px; border-top-width: 18px; border-left-width: 8px; border-right-width: 13px; }
  .avail-popup__dot { width: 6px; height: 6px; }
  .avail-popup__sticker { width: 58px; height: 58px; margin-top: 10px; margin-left: 6px; }
}

/* Contact form modal */
.form-modal {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.form-modal::backdrop { background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.form-modal[open] { animation: modal-in 0.4s cubic-bezier(0.34, 1.3, 0.64, 1); }
.form-modal[open]::backdrop { animation: modal-fade 0.3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.form-modal__inner { position: relative; padding: clamp(24px, 4vw, 40px); }
.form-modal__inner > .eyebrow { padding-right: 48px; }
.form-modal__title { margin-top: 10px; padding-right: 40px; }
.form-modal__lead { margin: 8px 0 24px; color: var(--text-2); }
.form-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.form-modal__close:hover { border-color: var(--line-strong); transform: rotate(90deg); }
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .form-modal[open], .form-modal[open]::backdrop { animation: none; }
}
@media print {
  .site-header, .site-footer, .cookie, .wa-float, .progress, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .prose h2, .prose h3 { color: #000; }
}
