
/* =====================================================
   WebStudios Club — shared styles
   Editorial minimal, deep-green accent
   ===================================================== */

:root {
  --ink: #1A1A1A;
  --ink-2: #2a2a29;
  --ink-3: #4a4a48;
  --paper: #F5F5F5;
  --paper-2: #EDEDE9;
  --paper-3: #E4E3DD;
  --accent: #2D7D46;
  --accent-2: #245e37;
  --accent-tint: rgba(45, 125, 70, 0.08);
  --muted: rgba(26, 26, 26, 0.62);
  --faint: rgba(26, 26, 26, 0.42);
  --line: rgba(26, 26, 26, 0.08);
  --line-2: rgba(26, 26, 26, 0.16);

  --ff-heading: 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --page: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 6px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

/* Layout */
.container {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(32px, 5vw, 60px) 0; }
.section--tight { padding: clamp(24px, 4vw, 48px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--paper); }

/* Common bits */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section--dark .eyebrow { color: rgba(245,245,245,0.6); }
.section--dark .eyebrow::before { background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.section--dark .btn--ghost { border-color: rgba(245,245,245,0.24); color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ============================================
   HEADER + NAV
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__cta {
  display: none;
}
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  z-index: 220;
  -webkit-tap-highlight-color: transparent;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav__burger { display: none; } }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  padding: 88px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer a {
  font-family: var(--ff-heading);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.drawer a:last-child {
  border-bottom: none;
  margin-top: 24px;
}

/* ============================================
   HERO variants
   ============================================ */
.hero { padding: 40px 0 24px;
  position: relative;
}
@media (min-width: 900px) { .hero { padding: 48px 0 32px; } }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 20ch;
  margin: 0 0 24px;
}
.hero__h1 .accent { color: var(--accent); }

.hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 40px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Small stats row under hero */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stats .stat { padding: 20px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .hero__stats .stat:last-child { border-bottom: none; }
}
.stat {
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--ff-heading);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__num .accent { color: var(--accent); }
.stat__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  max-width: 24ch;
}

/* ============================================
   Trust strip — logo cloud
   ============================================ */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.trust__label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 24px;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 640px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(6, 1fr); } }
.trust__logo {
  font-family: var(--ff-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
  transition: color 0.3s;
}
.trust__logo:hover { color: var(--ink); }

/* ============================================
   Section titles (used across pages)
   ============================================ */
.section__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 2fr; align-items: end; }
}
.section__eyebrow { }
.section__title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 20ch;
  margin: 0;
}
.section__title .accent { color: var(--accent); }
.section__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

/* ============================================
   Benefits / Feature grid
   ============================================ */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .benefits { grid-template-columns: repeat(3, 1fr); }
}
.benefit {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.benefit:last-child { border-right: none; }
.benefit:not(:first-child) { padding-left: 32px; }
@media (max-width: 899px) {
  .benefit { border-right: none; padding-left: 0 !important; padding-right: 0; }
}
.benefit__num {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 32px;
}
.benefit__title {
  font-family: var(--ff-heading);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.benefit__body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 32ch;
}

/* ============================================
   Services preview — 3 cards
   ============================================ */
.services-preview {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .services-preview { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service-card__num {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 40px;
}
.service-card__title {
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.service-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 auto;
  padding-bottom: 24px;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.service-card__link svg {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__link svg { transform: translateX(3px); }

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
}
.testimonial {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.testimonial__quote {
  font-family: var(--ff-heading);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 28px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  flex-shrink: 0;
}
.testimonial__name { font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3; }
.testimonial__role { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ============================================
   About preview / About page
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-preview { grid-template-columns: 5fr 4fr; gap: 80px; }
}
.about-preview__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
}
.about-preview__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}
.about-preview__img:hover img { transform: scale(1.03); }

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--ink);
  color: var(--paper);
}
.final-cta__inner {
  display: grid;
  gap: 40px;
  align-items: end;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .final-cta__inner { grid-template-columns: 3fr 2fr; }
}
.final-cta__title {
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--paper);
  margin: 0;
  max-width: 16ch;
}
.final-cta__title .accent { color: #7fbf94; }
.final-cta__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 900px) {
  .final-cta__side { align-items: flex-end; text-align: right; }
}
.final-cta__side p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,245,245,0.7);
  max-width: 32ch;
  margin: 0;
}
.final-cta .btn--accent:hover { background: #7fbf94; color: var(--ink); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(245,245,245,0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245,245,245,0.08);
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer__brand {
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}
.footer__brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.footer__desc {
  font-size: 14px;
  color: rgba(245,245,245,0.7);
  line-height: 1.65;
  max-width: 34ch;
  margin: 0;
}
.footer__col h4 {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.5);
  margin: 0 0 20px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; font-size: 14px; }
.footer__col a { color: rgba(245,245,245,0.85); transition: color 0.3s; }
.footer__col a:hover { color: var(--accent); color: #7fbf94; }
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer__social {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  border: 1px solid rgba(245,245,245,0.15);
  transition: background 0.3s, border-color 0.3s;
}
.footer__social:hover { background: rgba(245,245,245,0.08); border-color: rgba(245,245,245,0.3); }
.footer__social svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(245,245,245,0.5);
}

/* ============================================
   Reveal on scroll
   ============================================ */
/* Progressive enhancement: reveals only activate with JS.
   Without .js-motion on body, content is visible by default. */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-motion [data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"].in { transition-delay: 0.08s; }
[data-reveal-delay="2"].in { transition-delay: 0.16s; }
[data-reveal-delay="3"].in { transition-delay: 0.24s; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}
.skip-link:focus { top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================
   HALIDE-STYLE HERO
   Cinematic 3D perspective with topographic overlay
   ============================================ */
.halide-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1100px;
  background: #0a0a0a;
  color: #e0e0e0;
  overflow: hidden;
  font-family: var(--ff-heading);
}
.halide-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.14;
  mix-blend-mode: overlay;
}

/* 3D viewport */
.halide-viewport {
  position: absolute;
  inset: 0;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
}
.halide-canvas {
  position: relative;
  width: min(560px, 60vw);
  height: min(760px, 82vh);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.halide-layer {
  position: absolute;
  inset: 0;
  
  transition: transform 0.5s ease;
  will-change: transform;
}
.halide-layer--1 {
  filter: grayscale(0.6) contrast(1.15) brightness(0.65) saturate(0.85);
}
.halide-layer--2 {
  filter: grayscale(1) contrast(1.4) brightness(0.9);
  opacity: 0.35;
  mix-blend-mode: screen;
}
.halide-layer--3 {
  filter: grayscale(1) contrast(1.5) brightness(1);
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.halide-contours {
  position: absolute;
  width: 220%;
  height: 220%;
  top: -60%;
  left: -60%;
  background-image: repeating-radial-gradient(
    circle at 50% 50%,
    transparent 0,
    transparent 44px,
    rgba(45, 125, 70, 0.15) 45px,
    transparent 46px
  );
  transform: translateZ(140px);
  pointer-events: none;
}


/* Overlay UI grid */
.halide-ui {
  position: absolute;
  inset: 0;
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  z-index: 10;
  pointer-events: none;
}
.halide-mark {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.halide-mark__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.halide-meta {
  text-align: right;
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  opacity: 0.9;
}

.halide-title {
  grid-column: 1 / -1;
  align-self: center;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: clamp(48px, 9.5vw, 140px);
  line-height: 0.86;
  letter-spacing: -0.045em;
  mix-blend-mode: difference;
  color: #fff;
  margin: 0;
  pointer-events: auto;
}
.halide-title .thin {
  font-weight: 300;
  font-style: italic;
  opacity: 0.85;
}

.halide-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  pointer-events: auto;
  flex-wrap: wrap;
}
.halide-archive {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: rgba(224, 224, 224, 0.7);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.halide-archive strong { color: #e0e0e0; font-weight: 700; }

.halide-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #e0e0e0;
  color: #0a0a0a;
  padding: 16px 28px;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 0 100%);
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.3s;
  cursor: pointer;
}
.halide-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-4px);
}
.halide-cta__arrow {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.halide-cta:hover .halide-cta__arrow { transform: translateX(3px); }

.halide-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: flow 2.2s infinite ease-in-out;
  z-index: 15;
}
@keyframes flow {
  0%, 100% { transform: translateX(-50%) scaleY(0); transform-origin: top; }
  50%      { transform: translateX(-50%) scaleY(1); transform-origin: top; }
  51%      { transform: translateX(-50%) scaleY(1); transform-origin: bottom; }
}

/* Halide-hero — header sits on top */
.header--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: transparent;
  border-bottom: none;
  color: #e0e0e0;
}
.header--overlay .nav__brand { color: #e0e0e0; }
.header--overlay .nav__links a { color: #e0e0e0; opacity: 0.75; }
.header--overlay .nav__links a:hover { opacity: 1; color: #fff; }
.header--overlay .nav__burger span { background: #e0e0e0; }
.header--overlay .btn--accent {
  background: rgba(224, 224, 224, 0.1);
  border: 1px solid rgba(224, 224, 224, 0.2);
  color: #e0e0e0;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.header--overlay .btn--accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Mobile — simpler layout, no 3D transforms */
@media (max-width: 900px) {
  .halide-hero { height: auto; min-height: 100vh; padding-bottom: 20px; }
  .halide-canvas {
    width: 88vw;
    height: 60vh;
    max-height: 500px;
  }
  .halide-ui {
    grid-template-columns: 1fr;
    padding: 88px 20px 24px;
    gap: 16px;
  }
  .halide-meta { text-align: left; }
  .halide-title { font-size: clamp(44px, 13vw, 84px); }
  .halide-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============================================
   PORTFOLIO GRID (used on portfolio.html + home)
   ============================================ */
.portfolio-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-2);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  display: block;
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover { transform: translateY(-4px); }
.portfolio-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.85);
}
.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.05);
  filter: brightness(1);
}
.portfolio-card__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    transparent 100%);
  pointer-events: none;
}
.portfolio-card__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}
.portfolio-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  z-index: 2;
  color: #fff;
}
.portfolio-card__title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: #fff;
}
.portfolio-card__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}
.portfolio-card__arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover .portfolio-card__arrow {
  transform: translate(4px, -4px);
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================
   PAGE HERO (about/services/portfolio/contact)
   ============================================ */
.page-hero {
  padding: 80px 0 40px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .page-hero { padding: 120px 0 64px; } }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) { .page-hero__grid { grid-template-columns: 3fr 2fr; } }
.page-hero__title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  max-width: 14ch;
  margin: 16px 0 0;
}
.page-hero__title .accent { color: var(--accent); }
.page-hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

/* ============================================
   PROCESS STEPS (services)
   ============================================ */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process-step {
  padding: 48px 32px 48px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-step:not(:first-child) { padding-left: 32px; }
.process-step:last-child { border-right: none; }
@media (max-width: 899px) {
  .process-step { border-right: none; padding-left: 0 !important; padding-right: 0; }
}
.process-step__num {
  font-family: var(--ff-heading);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: -0.04em;
}
.process-step__title {
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 12px;
}
.process-step__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 34ch;
}
.process-step__time {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ============================================
   FAQ (services)
   ============================================ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: color 0.3s;
}
.faq__q:hover { color: var(--accent); }
.faq__q-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__item.open .faq__q-icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__item.open .faq__a { max-height: 400px; }
.faq__a-inner {
  padding: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 3fr 2fr; gap: 80px; } }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form__row { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label {
  display: block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0 14px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }

.contact-form__success {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.contact-info__block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__block:first-child { padding-top: 0; }
.contact-info__label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-info__value {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-info__value a:hover { color: var(--accent); }
.contact-info__sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.map-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin-top: 40px;
  filter: grayscale(0.6) contrast(0.95);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =====================================================
   HALIDE TOPO HERO — cinematic 3D landing
   Adapted from halide-topo-hero component
   ===================================================== */

.halide-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0e0e0d;
  color: #E8E4DA;
  overflow: hidden;
  isolation: isolate;
}

/* Grain overlay */
.halide-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

/* 3D viewport that holds the tilted canvas */
.halide-viewport {
  position: absolute;
  inset: 0;
  perspective: 2000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.halide-canvas {
  position: relative;
  width: min(880px, 82vw);
  height: min(560px, 62vh);
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  opacity: 1;
  transform: rotateX(55deg) rotateZ(-25deg) scale(1);
}
.js-motion .halide-canvas {
  opacity: 0;
  transform: rotateX(90deg) rotateZ(0deg) scale(0.85);
}
.halide-canvas.entered {
  opacity: 1;
  transform: rotateX(55deg) rotateZ(-25deg) scale(1);
}

.halide-layer {
  position: absolute;
  inset: 0;
  
  background-repeat: no-repeat;
  
  transition: transform 0.5s ease;
  will-change: transform;
}
.halide-layer--1 { filter: grayscale(1) contrast(1.15) brightness(0.55); }
.halide-layer--2 {
  filter: grayscale(1) contrast(1.35) brightness(0.85);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.halide-layer--3 {
  filter: grayscale(1) contrast(1.5) brightness(1.05) sepia(0.4) hue-rotate(70deg);
  opacity: 0.35;
  mix-blend-mode: overlay;
}
.halide-contours {
  position: absolute;
  width: 220%; height: 220%;
  top: -60%; left: -60%;
  background-image:
    repeating-radial-gradient(
      circle at 50% 50%,
      transparent 0,
      transparent 44px,
      rgba(127, 191, 148, 0.09) 45px,
      transparent 46px
    );
  transform: translateZ(120px);
  pointer-events: none;
}


/* Interface overlay grid
   NOTE: horizontal padding is intentionally moved to the direct children
   so head / title / foot all align with the site's .container edge
   (same left edge as the header nav across every viewport). */
.halide-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  /* Single column — overrides the earlier .halide-ui { grid-template-columns: 1fr 1fr }
     declared for a different hero variant, which was auto-placing the title
     into the RIGHT column and causing it to visually "float" on desktop. */
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: clamp(88px, 10vh, 128px) 0 clamp(24px, 4vh, 56px);
  pointer-events: none;
}
.halide-ui > * {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
.halide-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.halide-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E8E4DA;
  font-weight: 600;
}
.halide-mark-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7fbf94;
  animation: pulse 2s ease-in-out infinite;
}
.halide-meta {
  text-align: right;
  color: #7fbf94;
  font-size: 10px;
  line-height: 1.8;
}
.halide-meta div { display: block; }
.halide-meta strong { color: #E8E4DA; font-weight: 500; }

.halide-title-wrap {
  align-self: center;
  justify-self: start;
  pointer-events: none;
  /* container props inherited via .halide-ui > * — see comment above */
}
.halide-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 500;
  /* Reduced max from 172px → 140px so line 1 "Sites that" never overflows
     the container on wide viewports. 9vw scales predictably on all sizes. */
  font-size: clamp(52px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #E8E4DA;
  margin: 0;
  padding: 0;
  mix-blend-mode: difference;
  text-align: left;
  text-wrap: balance;
  /* Prevent any inherited centering from a parent flex/grid */
  align-self: flex-start;
}
.halide-title__accent {
  color: #7fbf94;
  font-style: italic;
  font-weight: 400;
}

.halide-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  pointer-events: auto;
}
.halide-archive {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(232, 228, 218, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
}
.halide-archive strong { color: #E8E4DA; font-weight: 500; }

.halide-cta {
  pointer-events: auto;
  background: #E8E4DA;
  color: #0e0e0d;
  padding: 18px 32px;
  text-decoration: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 88% 100%, 0 100%);
  transition: background 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
}
.halide-cta:hover {
  background: #7fbf94;
  color: #0e0e0d;
  transform: translateY(-3px);
}
.halide-cta__arrow { display: inline-block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.halide-cta:hover .halide-cta__arrow { transform: translateX(4px); }

.halide-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #E8E4DA, transparent);
  animation: halide-flow 2.4s infinite ease-in-out;
  z-index: 6;
  pointer-events: none;
}
@keyframes halide-flow {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
}

/* Halide inside a mostly-light site — no header background on this hero */
.halide-hero + .header,
.halide-hero-page .header {
  background: transparent;
}

/* Header sits over the hero, transparent-first */
.halide-hero-page .header {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: rgba(14, 14, 13, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100;
}
.halide-hero-page .header.scrolled {
  position: fixed;
  background: rgba(14, 14, 13, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(232, 228, 218, 0.08);
}
.halide-hero-page .header.scrolled .nav__brand,
.halide-hero-page .header .nav__brand { color: #E8E4DA; }
.halide-hero-page .header .nav__links a { color: rgba(232, 228, 218, 0.75); }
.halide-hero-page .header .nav__links a:hover { color: #E8E4DA; }
.halide-hero-page .header .nav__burger span { background: #E8E4DA; }
.halide-hero-page .header .btn--accent { background: #E8E4DA; color: #0e0e0d; }
.halide-hero-page .header .btn--accent:hover { background: #7fbf94; color: #0e0e0d; }

/* Mobile adaptation for halide-hero */
@media (max-width: 900px) {
  .halide-viewport {
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  .halide-canvas {
    /* Smaller so the FULL rotated rectangle fits in viewport instead of only bottom edge showing —
       preserves the same tilted composition as desktop, just scaled down and centered. */
    width: 76vw;
    height: 40vh;
    max-width: 460px;
    max-height: 320px;
    margin: 0 auto;
    /* Keep the same tilt angles as desktop so the design reads identically */
    transform: rotateX(55deg) rotateZ(-25deg) scale(0.85);
    transform-origin: center center;
  }
  .halide-canvas.entered {
    transform: rotateX(55deg) rotateZ(-25deg) scale(0.85);
  }
  .halide-layer {
    background-position: center center;
  }
  .halide-ui {
    /* keep vertical spacing tight, horizontal padding comes from --gutter */
    padding-top: 96px;
    padding-bottom: 24px;
    gap: 20px;
  }
  .halide-title {
    /* Slightly smaller ceiling on phones so line 1 fits without wrap. */
    font-size: clamp(44px, 13vw, 82px);
    line-height: 0.92;
  }
  .halide-foot {
    gap: 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .halide-cta { align-self: stretch; justify-content: center; padding: 16px 24px; }
  .halide-meta { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .halide-canvas,
  .halide-canvas.entered {
    transform: rotateX(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
    transition: none;
  }
  .halide-scroll { animation: none; }
}

/* =====================================================
   PORTFOLIO PAGE
   ===================================================== */
.page-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow { margin-bottom: 24px; }
.page-hero__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 18ch;
}
.page-hero__title .accent { color: var(--accent); }
.page-hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.filter-bar__btn {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.filter-bar__btn:hover { background: var(--paper-2); }
.filter-bar__btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

.portfolio-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover { transform: translateY(-3px); }
.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.portfolio-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover .portfolio-card__img { transform: scale(1.04); }
.portfolio-card__tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 6px 12px;
  background: rgba(245, 245, 245, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-family: var(--ff-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
}
.portfolio-card__body {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.portfolio-card__title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--ink);
}
.portfolio-card__meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.portfolio-card__meta .accent { color: var(--accent); font-weight: 500; }

/* =====================================================
   SERVICES PAGE — how it works, FAQ
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
.service-full {
  padding: 48px 32px 48px 0;
  border-bottom: 1px solid var(--line);
}
.service-full:nth-child(odd) { border-right: 1px solid var(--line); }
@media (min-width: 900px) {
  .service-full:nth-child(even) { padding-left: 48px; padding-right: 0; }
}
@media (max-width: 899px) {
  .service-full { padding: 32px 0; border-right: none !important; }
}
.service-full__num {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 32px;
}
.service-full__title {
  font-family: var(--ff-heading);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.service-full__body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 42ch;
}
.service-full__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-full__list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.service-full__list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); } }
.process__step {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  position: relative;
}
.process__step:last-child { border-right: none; }
.process__step:not(:first-child) { padding-left: 32px; }
@media (max-width: 899px) {
  .process__step { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0 !important; padding-right: 0; }
}
.process__step-num {
  font-family: var(--ff-heading);
  font-size: 40px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.process__step-title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.process__step-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq__q:hover { color: var(--accent); }
.faq__toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.faq__item.open .faq__toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.faq__toggle svg { width: 12px; height: 12px; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.faq__item.open .faq__toggle svg { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
}
.faq__item.open .faq__a { max-height: 400px; padding: 0 0 12px; }
.faq__a p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 64ch;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.story-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
@media (min-width: 900px) {
  .story-block { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}
.story-block__title {
  font-family: var(--ff-heading);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 24px;
}
.story-block__title .accent { color: var(--accent); }
.story-block__body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0 0 20px;
}
.story-block__body p:last-child { margin-bottom: 0; }
.story-block__quote {
  font-family: var(--ff-heading);
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  padding: 32px 32px 32px 40px;
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  background: var(--paper-2);
}
.differences {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .differences { grid-template-columns: 1fr 1fr; } }
.difference {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
@media (max-width: 699px) { .difference { border-right: none; padding-right: 0; padding-left: 0; } }
.difference:nth-child(2n) { padding-left: 32px; padding-right: 0; border-right: none; }
@media (max-width: 699px) {
  .difference:nth-child(2n) { padding-left: 0; }
}
.difference__num {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.difference__title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.difference__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 3fr 2fr; gap: 80px; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .contact-form__row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-2);
  padding: 8px 0 12px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.contact-form__success {
  padding: 16px 20px;
  background: rgba(45, 125, 70, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--ink);
  font-size: 14px;
}
.contact-info__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info__item:first-child { border-top: 1px solid var(--line); }
.contact-info__label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.contact-info__value {
  font-family: var(--ff-heading);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.contact-info__value a { color: var(--ink); transition: color 0.3s; }
.contact-info__value a:hover { color: var(--accent); }

.map-wrap {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  margin-top: 40px;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(0.95); }

/* =====================================================
   SINGLE-PAGE LANDING — anchor scroll offsets + active nav
   ===================================================== */
section[id] { scroll-margin-top: 80px; }
.halide-hero { scroll-margin-top: 0; }

/* Active nav link on scroll */
.nav__links a.is-active {
  color: var(--accent);
}
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

/* Section transitions between light/dark strips */
.strip-alt { background: var(--paper-2); }

/* --- LANDING v2 enhancements --- */
:root {}
.halide-layer { /* image removed */ }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
.halide-hero { scroll-margin-top: 0; }
.nav__links a.is-active { color: var(--accent) !important; }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.halide-hero-page .header .nav__links a.is-active::after { background: #7fbf94; }
.strip-alt { background: var(--paper-2); }

/* Extra mobile fixes */
@media (max-width: 900px) {
  .halide-title { mix-blend-mode: normal; color: #E8E4DA; }
  .halide-title__accent { color: #7fbf94; }
}
/* If mix-blend-mode not supported (older iOS Safari), title still readable */
@supports not (mix-blend-mode: difference) {
  .halide-title { mix-blend-mode: normal; color: #E8E4DA; }
}


.halide-mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  
  
}
@media (max-width: 900px) {
  .halide-viewport { display: none !important; }
  .halide-mobile-bg { display: block; }
  .halide-mobile-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(14,14,13,0.55) 0%, rgba(14,14,13,0.2) 35%, rgba(14,14,13,0.7) 100%);
    pointer-events: none;
  }
  .halide-ui {
    position: relative;
    z-index: 10;
    padding-top: 96px;
    padding-bottom: 32px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .halide-title {
    font-size: clamp(44px, 13vw, 82px);
    line-height: 0.92;
    mix-blend-mode: normal;
    color: #ffffff;
    text-shadow: 0 2px 30px rgba(0,0,0,0.5), 0 0 60px rgba(0,0,0,0.3);
    font-weight: 600;
  }
  .halide-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .halide-cta { align-self: stretch; justify-content: center; padding: 16px 24px; }
  .halide-meta { display: none; }
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0,0,0,0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), visibility 0.5s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 32px 40px;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), visibility 0.7s;
  visibility: hidden;
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  z-index: 210;
  transition: background 0.3s, transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s;
}
.drawer__close:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); transform: rotate(90deg); }
.drawer__close span { position: absolute; width: 20px; height: 2px; background: #ffffff; }
.drawer__close span:nth-child(1) { transform: rotate(45deg); }
.drawer__close span:nth-child(2) { transform: rotate(-45deg); }
.drawer__nav { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 400px; }
.drawer__link {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(40px, 10vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff !important;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1), color 0.3s, text-shadow 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  width: 100%;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.5);
}
.drawer.open .drawer__link { opacity: 1; transform: translateY(0); }
.drawer.open .drawer__link:nth-child(1) { transition-delay: 0.15s; }
.drawer.open .drawer__link:nth-child(2) { transition-delay: 0.22s; }
.drawer.open .drawer__link:nth-child(3) { transition-delay: 0.29s; }
.drawer.open .drawer__link:nth-child(4) { transition-delay: 0.36s; }
.drawer.open .drawer__link:nth-child(5) { transition-delay: 0.43s; }
.drawer__link:hover { color: #7fbf94 !important; text-shadow: 0 0 30px rgba(127,191,148,0.5), 0 2px 20px rgba(0,0,0,0.8); }
.drawer__footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s 0.5s cubic-bezier(0.22,1,0.36,1);
}
.drawer.open .drawer__footer { opacity: 1; transform: translateY(0); }
.drawer__cta { font-size: 14px; padding: 16px 32px; }
.drawer__meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.8;
}
.drawer__meta strong { color: #ffffff; font-weight: 600; }


/* ===== SERVICES — карточки с иконками ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  border-color: var(--accent);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card__icon {
  width: 56px; height: 56px;
  background: var(--accent-tint);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.service-card:hover .service-card__icon {
  transform: scale(1.1);
  background: rgba(45, 125, 70, 0.15);
}

/* ===== FOOTER CTA ===== */
.footer-cta {
  background: linear-gradient(135deg, rgba(45,125,70,0.08), rgba(45,125,70,0.03));
  border: 1px solid rgba(45,125,70,0.15);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  margin-bottom: 64px;
  margin-top: 40px;
}
.footer-cta__title {
  font-family: var(--ff-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.footer-cta__desc {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.footer-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.footer-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,125,70,0.25);
  background: var(--accent-2);
}

/* ===== PORTFOLIO HOVER OVERLAY ===== */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover {
  transform: translateY(-3px);
}
.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}
.portfolio-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.portfolio-card:hover .portfolio-card__img {
  transform: scale(1.04);
}
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}
.portfolio-card__overlay-text {
  color: #fff;
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__overlay-text {
  transform: translateY(0);
}

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
.halide-hero { scroll-margin-top: 0; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .page-hero { padding: 180px 0 80px; } }
.page-hero__eyebrow { margin-bottom: 24px; }
.page-hero__title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 24px;
  max-width: 18ch;
}
.page-hero__title .accent { color: var(--accent); }
.page-hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
