/* =============================================================
   1. Tokens
   ============================================================= */
@font-face {
  font-family: "Big Bang";
  src: url("assets/fonts/BigBang.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:         #ffffff;
  --bg-soft:    #f5f8fc;
  --paper:      #ffffff;
  --ink:        #10131c;
  --ink-soft:   #333846;
  --ink-mute:   #6b7280;
  --accent:     #1e56e0;
  --accent-dark:#1442ad;
  --accent-soft:#eaf1fd;
  --line:       rgba(16,19,28,0.10);
  --line-soft:  rgba(16,19,28,0.06);

  --display: "Big Bang", "Arial Black", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 88px;   /* mobile default; grows on desktop (see §6) */
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

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

.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; margin-top: .75rem; }
.section-head.is-center { max-width: 56ch; margin-inline: auto; text-align: center; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.eyebrow-none { display: none; } /* explicit: no decorative eyebrows above headlines */

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 18px rgba(30,86,224,0.28), 0 1px 3px rgba(16,19,28,0.08);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(30,86,224,0.32), 0 8px 18px rgba(16,19,28,0.12); background: var(--accent-dark); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: 0 18px 36px rgba(16,19,28,0.10); }

.btn-outline-light {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-outline-light:hover { transform: translateY(-3px); background: rgba(255,255,255,0.94); color: var(--ink); box-shadow: 0 18px 36px rgba(0,0,0,0.25); }

.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { width: 64px; height: 64px; border-radius: 50%; }
.nav-right { display: flex; align-items: center; gap: 1.8rem; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-weight: 600; font-size: .95rem; padding: .3rem 0; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
@media (min-width: 960px) {
  :root { --nav-h: 112px; }
  .nav-brand img { width: 80px; height: 80px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* Transparent nav sitting over a dark hero photo: start white, flip to ink once solid */
.nav-on-hero .nav-link { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.25); }
.nav-on-hero .nav-toggle-bars span { background: #fff; }
.nav-on-hero.is-scrolled .nav-link { color: var(--ink-soft); text-shadow: none; }
.nav-on-hero.is-scrolled .nav-toggle-bars span { background: var(--ink); }

.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; }
.nav-toggle-bars { position: relative; width: 22px; height: 15px; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-soft), opacity .35s var(--ease-soft), top .35s var(--ease-soft);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6.5px; }
.nav-toggle-bars span:nth-child(3) { top: 13px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 95;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; color: var(--ink); }
@media (min-width: 960px) { .nav-mobile { display: none; } }

/* =============================================================
   7. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  /* Cinematic entrance (once) hands off into a slow ambient Ken Burns drift */
  animation: heroImgIn 1.9s var(--ease-out) both, heroAmbientZoom 34s ease-in-out 1.9s infinite;
}
@keyframes heroImgIn {
  from { transform: scale(1.24); opacity: 0; }
  to   { transform: scale(1.04); opacity: 1; }
}
@keyframes heroAmbientZoom {
  0%, 100% { transform: scale(1.04) translate3d(0,0,0); }
  50%      { transform: scale(1.12) translate3d(-1%,-1%,0); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,12,22,0.22) 0%, rgba(9,12,22,0.08) 28%, rgba(9,12,22,0.66) 78%, rgba(9,12,22,0.9) 100%);
  animation: heroScrimIn 2.2s ease both;
}
@keyframes heroScrimIn { from { opacity: 0; } to { opacity: 1; } }
.hero-content {
  position: relative;
  width: 100%;
  padding-block: clamp(2.5rem, 8vh, 5rem);
  color: #fff;
}
.hero-title {
  color: #fff;
  max-width: 15ch;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
  animation: heroTextIn 1.15s var(--ease-out) .4s both;
}
.hero-title em { font-style: normal; color: #fff; }
.hero-sub {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  font-weight: 500;
  animation: heroTextIn 1.05s var(--ease-out) .58s both;
}
.hero-actions { margin-top: 2.2rem; animation: heroTextIn 1s var(--ease-out) .72s both; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(46px); filter: blur(14px); }
  to   { opacity: 1; transform: none;            filter: blur(0); }
}

/* =============================================================
   8. Sections — Gallery / cards with photo hover
   ============================================================= */
.gallery-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.photo-card {
  position: relative; overflow: hidden; border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
}
.photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-soft), filter .5s var(--ease-out);
}
.photo-card::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 -60px 60px -40px rgba(0,0,0,0.28);
  opacity: 0; transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.photo-card:hover img { transform: scale(1.08); filter: brightness(1.03) saturate(1.05); }
.photo-card:hover::after { opacity: 1; }
.photo-card:hover { box-shadow: 0 30px 60px -20px rgba(16,19,28,0.28); }
.photo-card { transition: box-shadow .5s var(--ease-out); }

/* =============================================================
   9. Sections — Testimonials (template slots, see HTML comment)
   ============================================================= */
.testi-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 30px -18px rgba(16,19,28,0.18);
}
.testi-stars { color: var(--accent); letter-spacing: .15em; font-size: .95rem; }
.testi-quote { margin-top: .8rem; font-style: italic; color: var(--ink-mute); font-size: .98rem; }
.testi-name { margin-top: 1rem; font-weight: 700; font-size: .85rem; color: var(--ink-soft); }

/* =============================================================
   10. Sections — Services
   ============================================================= */
.services-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  overflow: hidden;
  display: flex; flex-direction: column;
}
.service-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.service-card:hover .service-photo img { transform: scale(1.06); }
.service-body { padding: 1.9rem clamp(1.4rem, 3vw, 2.2rem) 2.2rem; }
.service-body h3 { margin-bottom: .7rem; }
.service-body p { color: var(--ink-mute); }
.service-list { margin-top: 1.1rem; display: grid; gap: .55rem; }
.service-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; color: var(--ink-soft); }
.service-list li::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-top: .5rem;
  border-radius: 50%; background: var(--accent);
}
.service-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .7rem; }

/* =============================================================
   11. Sections — Process
   ============================================================= */
.process-row {
  display: grid; gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .process-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-row { grid-template-columns: repeat(4, 1fr); } }
.process-step { padding-inline-end: 1rem; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--display); font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.process-step h3 { font-size: 1.1rem; text-transform: none; margin-bottom: .4rem; }
.process-step p { color: var(--ink-mute); font-size: .95rem; }

/* --- Process elevated on brand blue --- */
.section-process {
  position: relative;
  overflow: clip;
  color: #fff;
  background: radial-gradient(135% 130% at 50% -30%, #2f66ec 0%, #1e56e0 46%, #163f9c 100%);
}
.section-process::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(38% 55% at 88% 12%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(46% 55% at 8% 92%, rgba(255,255,255,0.07), transparent 60%);
}
.section-process > .container { position: relative; z-index: 1; }
.section-process .section-head { max-width: 52ch; margin-inline: auto; text-align: center; }
.section-process .section-head h2 { color: #fff; }
.section-process .section-head p { color: rgba(255,255,255,0.74); }

.section-process .process-row { gap: 1.3rem; }
.section-process .process-step {
  padding: 1.7rem 1.5rem 1.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  transition: opacity .9s var(--ease-out), transform .6s var(--ease-out), filter .9s var(--ease-out),
              background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .5s var(--ease-out);
}
.section-process .process-step:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 28px 54px -22px rgba(0,0,0,0.55);
}
.section-process .process-num {
  display: block; width: auto; height: auto;
  background: none; border-radius: 0;
  color: #fff; font-family: var(--display);
  font-size: 2.5rem; line-height: 1; letter-spacing: .02em;
  margin-bottom: .55rem;
}
.section-process .process-num::after {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.55); margin-top: .75rem;
}
.section-process .process-step h3 { color: #fff; font-size: 1.14rem; margin-bottom: .5rem; }
.section-process .process-step p { color: rgba(255,255,255,0.78); }

/* =============================================================
   12. Final CTA band
   ============================================================= */
.cta-band {
  border: 1.5px solid var(--line);
  border-radius: 28px;
  padding: clamp(2.2rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--accent-soft), #fff 70%);
  text-align: center;
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 1.6rem; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand img { width: 38px; height: 38px; border-radius: 50%; }
.footer-brand span { font-family: var(--display); text-transform: uppercase; font-size: 1rem; }
.footer p { color: var(--ink-mute); font-size: .92rem; margin-top: .8rem; }
.footer h4 { font-family: var(--sans); text-transform: none; font-size: .85rem; letter-spacing: .06em; color: var(--ink); font-weight: 700; margin-bottom: .9rem; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a { color: var(--ink-mute); font-size: .95rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--accent); }

/* =============================================================
   14. Page hero (interior pages)
   ============================================================= */
.page-hero {
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)) clamp(2rem, 4vw, 3rem);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: 1rem; color: var(--ink-mute); max-width: 52ch; font-size: 1.05rem; }

/* =============================================================
   15. Portfolio
   ============================================================= */
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .6rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: .92rem; color: var(--ink-mute);
  transition: all .3s var(--ease-out);
}
.filter-btn.is-active, .filter-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.portfolio-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px)  { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-item { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.portfolio-item[hidden] { display: none; }
.portfolio-note {
  margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1.5px dashed var(--line);
  border-radius: 14px; font-size: .9rem; color: var(--ink-mute);
}

/* =============================================================
   16. Contact page
   ============================================================= */
/* Split contact panel: bright photo beside the brand-blue CTA */
.contact-panel {
  max-width: 980px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr;
  border-radius: 28px; overflow: clip;
  background: var(--paper);
  box-shadow: 0 44px 90px -34px rgba(20,60,180,0.42), 0 2px 12px rgba(16,19,28,0.08);
}
@media (min-width: 820px) { .contact-panel { grid-template-columns: 1.05fr 1fr; } }

.contact-panel-media { position: relative; min-height: 280px; }
.contact-panel-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-soft);
}
.contact-panel:hover .contact-panel-media img { transform: scale(1.05); }

.contact-panel-body {
  position: relative; isolation: isolate; overflow: clip;
  padding: clamp(2rem, 4vw, 3.1rem);
  background: radial-gradient(150% 150% at 8% -10%, #3169ef 0%, #1e56e0 52%, #163f9c 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.15rem;
}
.contact-panel-body::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 60% at 92% 6%, rgba(255,255,255,0.16), transparent 62%),
    radial-gradient(52% 60% at 0% 100%, rgba(255,255,255,0.08), transparent 62%);
}
.sms-callout-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 15px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
}
.contact-panel-body h3 { color: #fff; text-transform: none; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.1; }
.contact-panel-body p { color: rgba(255,255,255,0.84); font-size: .98rem; }
.contact-panel-body .btn { width: 100%; margin-top: .4rem; }
.contact-panel-note { color: rgba(255,255,255,0.64) !important; font-size: .84rem !important; margin-top: .1rem; }

.btn-white { background: #fff; color: var(--accent); box-shadow: 0 12px 26px rgba(10,20,50,0.22); }
.btn-white:hover { transform: translateY(-3px); background: #f4f7ff; box-shadow: 0 22px 44px rgba(10,20,50,0.28); }
.btn-white:active { transform: translateY(-1px); transition-duration: .12s; }

.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }

.segmented { display: flex; flex-wrap: wrap; gap: .6rem; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  padding: .7rem 1.2rem; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-mute);
  transition: all .25s var(--ease-out);
}
.segmented input:checked + label { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.segmented input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-note { font-size: .85rem; color: var(--ink-mute); margin-top: 1rem; }

.form-status { margin-top: 1.1rem; font-size: .92rem; font-weight: 600; }
.form-status[data-state="ok"] { color: #1a7f4e; }
.form-status[data-state="err"] { color: #b3261e; }

/* =============================================================
   17. Cinematic reveal on scroll (universal)
   ============================================================= */
/* Single elements: "focus pull" — rise + settle + de-blur */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(12px);
  transition: opacity 1s var(--ease-out), transform 1.15s var(--ease-out), filter 1s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-reveal].is-revealed { opacity: 1; transform: none; filter: blur(0); will-change: auto; }

/* Staggered containers: the wrapper stays put, its children cascade in sequence */
[data-reveal][data-stagger] { opacity: 1; transform: none; filter: none; }
[data-stagger] > * {
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  filter: blur(10px);
  transition: opacity .9s var(--ease-out), transform 1.05s var(--ease-out), filter .9s var(--ease-out);
}
[data-stagger].is-revealed > * { opacity: 1; transform: none; filter: blur(0); }
[data-stagger].is-revealed > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-revealed > *:nth-child(2) { transition-delay: .11s; }
[data-stagger].is-revealed > *:nth-child(3) { transition-delay: .22s; }
[data-stagger].is-revealed > *:nth-child(4) { transition-delay: .33s; }
[data-stagger].is-revealed > *:nth-child(5) { transition-delay: .44s; }
[data-stagger].is-revealed > *:nth-child(6) { transition-delay: .55s; }
[data-stagger].is-revealed > *:nth-child(7) { transition-delay: .66s; }
[data-stagger].is-revealed > *:nth-child(8) { transition-delay: .77s; }
/* Once the cascade has played, drop the delays so hover/interactions feel instant */
[data-stagger].stagger-done > * { transition-delay: 0s !important; }

.reveal[data-split] { opacity: 1; transform: none; }

/* If JS is disabled, never hide content */
@media (scripting: none) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* =============================================================
   18. Responsive helpers
   ============================================================= */
@media (min-width: 540px)  { .hero-title { max-width: 17ch; } }
@media (min-width: 1600px) { .container { max-width: 1360px; } }

/* Phone-only refinements (<540px) — full-width tap targets, comfortable spacing */
@media (max-width: 539px) {
  .hero-actions .btn,
  .cta-band .btn,
  .service-actions .btn { width: 100%; }
  .cta-row { gap: .7rem; }
  .btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
  /* Two-up portfolio stays, but give the tiles a touch more breathing room */
  .portfolio-grid { gap: .8rem; }
  /* Keep the process number badge from feeling oversized on small cards */
  .section-process .process-num { font-size: 2.1rem; }
  /* Footer bottom bar reads left-aligned when it's a single line */
  .footer-bottom { justify-content: flex-start; }
}

/* =============================================================
   19. Reduced-motion — soften, don't kill (keep content lively but calm)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Hero image: gentle fade-in, no infinite Ken Burns drift */
  .hero-bg img { animation: heroImgInReduced 1s ease both; }
  @keyframes heroImgInReduced { from { opacity: 0; } to { opacity: 1; } }
  .hero-title, .hero-actions, .hero-sub { animation: heroFadeReduced .8s ease both; }
  @keyframes heroFadeReduced { from { opacity: 0; } to { opacity: 1; } }
  /* Scroll reveals: keep a soft opacity fade, drop motion + blur */
  [data-reveal], [data-stagger] > * {
    transform: none !important;
    filter: none !important;
    transition: opacity .6s ease !important;
  }
  [data-stagger].is-revealed > * { transition-delay: 0s !important; }
}
