/* =========================================================================
   Island View Construction — Coastal Blue Design System
   Brand: deep navy, Pacific ocean blue, sky, crisp white — with a sparing
   brass accent. Drawn from the Island View mountain-and-sea mark.
   Built for Cloudflare Pages.
   ========================================================================= */

/* ----------  Design tokens  ----------
   Token names are kept stable across the codebase; values now map to the
   Island View blue brand. (e.g. the old "clay" accent is now ocean blue.) */
:root {
  /* Palette */
  --clay:        #1E5A8A;   /* primary ocean blue (accent / links / buttons) */
  --clay-dark:   #15436A;   /* deeper ocean — hover / active */
  --clay-soft:   #A0C0D9;   /* light ocean tint */
  --adobe:       #4A90C2;   /* mid sky blue */
  --stucco:      #FAFAF8;   /* warm white plaster */
  --stucco-2:    #F2F0EB;   /* secondary warm grey */
  --sand:        #E2DCD3;   /* warm sand / stone */
  --ink:         #1A1E24;   /* cool near-black text / dark sections */
  --ink-soft:    #5A6472;   /* muted slate body text */
  --olive:       #3A7D6A;   /* coastal teal (checkmarks / success) */
  --olive-dark:  #2C5F51;
  --pacific:     #1A3D5C;   /* mid deep blue */
  --pacific-deep:#112338;   /* brand deep navy */
  --gold:        #C7A353;   /* richer brass accent */
  --line:        #DCD8D2;   /* warm hairline */
  --white:       #FFFFFF;

  /* Typography */
  --serif: "Fraunces", "Hoefler Text", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --container: 1180px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(20,34,79,.08), 0 1px 2px rgba(20,34,79,.06);
  --shadow-md: 0 14px 34px -14px rgba(20,34,79,.30);
  --shadow-lg: 0 34px 64px -22px rgba(20,34,79,.40);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

/* ----------  Skip link  ---------- */
.skip-link { position: absolute; left: 0; top: -100%; z-index: 200; background: var(--clay); color: #fff; padding: 12px 20px; font-family: var(--sans); font-weight: 600; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { top: 0; }

/* ----------  Keyboard focus styles  ---------- */
.btn:focus-visible, .nav__links a:focus-visible, .brand:focus-visible, .svc-card:focus-visible, .footer-social a:focus-visible, .dropdown a:focus-visible, .skip-link:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.is-on-hero:not(.is-scrolled) .nav__links a:focus-visible, .is-on-hero:not(.is-scrolled) .brand:focus-visible { outline-color: #fff; }

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--stucco);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--clay-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.02em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p { margin: 0 0 1.1em; color: var(--ink-soft); }
ul { color: var(--ink-soft); }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--clay-dark);
  margin: 0 0 1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--clay); display: inline-block; }
.eyebrow--center::after { content: ""; width: 28px; height: 1px; background: var(--clay); display: inline-block; }
.eyebrow--center { justify-content: center; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.measure { max-width: 64ch; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid transparent; transition: all .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn--primary { background: linear-gradient(135deg, var(--pacific) 0%, var(--pacific-deep) 100%); color: #fff; box-shadow: 0 8px 24px -8px rgba(20,34,79,.4); }
.btn--primary:hover { background: linear-gradient(135deg, var(--clay) 0%, var(--pacific) 100%); color: #fff; transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px -10px rgba(20,34,79,.5); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--stucco); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px -10px rgba(20,34,79,.3); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(6px); }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
  padding: 18px 0; border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(250, 250, 248, 0.75); backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 8px 30px -16px rgba(20,34,79,.20); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 54px; width: auto; display: block; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand__logo { height: 46px; }
.brand__logo--white { display: none; }
.is-on-hero:not(.is-scrolled) .brand__logo--color { display: none; }
.is-on-hero:not(.is-scrolled) .brand__logo--white { display: block; }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
  position: relative;
}
.is-on-hero:not(.is-scrolled) .nav__links > li > a { color: rgba(255,255,255,.92); }
.nav__links a:hover { color: var(--clay); }
.is-on-hero:not(.is-scrolled) .nav__links a:hover { color: #fff; }
.nav__links a[aria-current="page"] { color: var(--clay-dark); }
.is-on-hero:not(.is-scrolled) .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--clay);
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 10px; list-style: none; margin: 8px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s var(--ease); border: 1px solid var(--line);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 11px 14px; border-radius: var(--radius); color: var(--ink) !important; text-transform: none; letter-spacing: 0; font-size: .92rem; }
.dropdown a:hover { background: var(--stucco); color: var(--clay) !important; }
.dropdown a small { display: block; font-weight: 400; font-size: .76rem; color: var(--ink-soft); margin-top: 2px; }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 120; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .3s var(--ease); }
.is-on-hero:not(.is-scrolled) .nav__toggle span { background: #fff; }

/* ----------  Hero  ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg svg, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }

/* CSS Parallax using scroll-driven animations */
@supports (animation-timeline: scroll()) {
  .hero__bg img, .hero__bg svg {
    animation: parallax-bg both;
    animation-timeline: scroll(root);
    animation-range: 0vh 100vh;
  }
}
@keyframes parallax-bg {
  0% { transform: translateY(0); }
  100% { transform: translateY(30%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 70% 10%, rgba(58,118,180,.20) 0%, rgba(20,34,79,0) 55%),
    linear-gradient(180deg, rgba(20,34,79,.4) 0%, rgba(20,34,79,.1) 42%, rgba(15,26,58,.85) 100%),
    radial-gradient(circle at center, transparent 30%, rgba(10,15,30,0.6) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.20'/%3E%3C/svg%3E");
}
.hero__inner { padding-top: 120px; padding-bottom: 80px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__lede { font-size: 1.3rem; color: rgba(255,255,255,.92); max-width: 56ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__eyebrow { color: #fff; }
.hero__eyebrow::before { background: var(--gold); }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,.5); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6);} 50% { opacity: 1; transform: scaleY(1);} }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: 200px 0 90px; color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg svg, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,34,79,.66) 0%, rgba(31,84,145,.55) 50%, rgba(15,26,58,.82) 100%); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 1.2rem; max-width: 60ch; }
.breadcrumb { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1.2rem; }
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }

/* ----------  Stat bar  ---------- */
.stats { background: var(--ink); color: var(--stucco); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.stat { background: var(--ink); padding: 40px 28px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold); line-height: 1; }
.stat__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,241,231,.7); margin-top: 10px; }

/* ----------  Service cards  ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.svc-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 0 4px 12px rgba(20,34,79,.04), 0 1px 2px rgba(20,34,79,.02); border: 1px solid rgba(220, 216, 210, 0.5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); display: flex; flex-direction: column;
}
.svc-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--clay), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); z-index: 3; }
.svc-card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px -12px rgba(20,34,79,.15); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.svc-card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  transition: opacity 0.6s var(--ease); z-index: 2;
}
.svc-card:hover .svc-card__media::after { opacity: 0.15; }
.svc-card__media svg, .svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .8s var(--ease); }
.svc-card:hover .svc-card__media svg, .svc-card:hover .svc-card__media img { transform: scale(1.08); filter: brightness(1.05); }
.svc-card__body { padding: 32px 28px 34px; flex: 1; display: flex; flex-direction: column; }
.svc-card__body h3 { margin-bottom: .5em; font-weight: 500; letter-spacing: -0.01em; }
.svc-card__body p { font-size: .98rem; }
.svc-card__link { margin-top: auto; font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clay); display: inline-flex; align-items: center; gap: .5rem; }
.svc-card__link .arr { transition: transform .4s var(--ease); }
.svc-card:hover .svc-card__link .arr { transform: translateX(6px); color: var(--clay-dark); }

/* ----------  Split feature  ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; position: relative; }
.split__media svg, .split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--tall { aspect-ratio: 3/4; }
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.feature-list li { position: relative; padding-left: 28px; font-size: .96rem; color: var(--ink); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: var(--olive); border-radius: 3px; transform: rotate(45deg);
}

/* ----------  Process timeline  ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process__step { position: relative; padding: 0 22px; }
.process__step::before {
  content: counter(step, decimal-leading-zero); counter-increment: step;
  font-family: var(--serif); font-size: 1.1rem; color: #fff; background: var(--clay);
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; position: relative; z-index: 2;
}
.process__step::after {
  content: ""; position: absolute; top: 26px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px;
  background: var(--line); z-index: 1;
}
.process__step:last-child::after { display: none; }
.process__step h3 { font-size: 1.2rem; margin-bottom: .4em; }
.process__step p { font-size: .92rem; }

/* ----------  Testimonials  ---------- */
.quote-band { background: linear-gradient(135deg, var(--pacific-deep), var(--pacific)); color: #fff; position: relative; overflow: hidden; }
.quote-band .container { position: relative; z-index: 2; }
.quote { max-width: 820px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.35; margin: 0 0 1.4rem; color: #fff; font-weight: 500; }
.quote__author { font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.quote__mark { font-family: var(--serif); font-size: 6rem; line-height: .5; color: var(--gold); opacity: .5; display: block; margin-bottom: .2em; }

/* ----------  CTA band  ---------- */
.cta-band { background: linear-gradient(135deg, var(--pacific-deep) 0%, var(--clay-dark) 60%, var(--clay) 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 1.2rem; max-width: 52ch; margin-inline: auto; }
.cta-band .btn--light:hover { background: #fff; color: var(--pacific-deep); border-color: #fff; }

/* ----------  Contact  ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info dl { margin: 0; }
.contact-info dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dark); margin-bottom: 4px; }
.contact-info dd { margin: 0 0 1.6rem; font-size: 1.05rem; color: var(--ink); }
.contact-info dd a { color: var(--ink); }
.contact-info dd a:hover { color: var(--clay); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 8px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--stucco); border: 1.5px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(46,111,176,.16); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
.form-status { padding: 14px 18px; border-radius: var(--radius); margin-top: 18px; font-size: .92rem; display: none; }
.form-status.is-success { display: block; background: #E3F1ED; color: var(--olive-dark); border: 1px solid var(--olive); }
.form-status.is-error { display: block; background: #FCE8E5; color: #B23A2E; border: 1px solid #E7A99F; }
.hp { position: absolute; left: -9999px; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--ink); color: rgba(246,241,231,.78); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 56px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.4rem; }
.site-footer a { color: rgba(246,241,231,.78); }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand__logo { height: 60px; }
.footer-brand .brand__logo--color { display: none; }
.footer-brand .brand__logo--white { display: block; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: rgba(246,241,231,.55); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--clay); border-color: var(--clay); }
.footer-social svg { width: 18px; height: 18px; }

/* ----------  Tile pattern divider (Spanish tile motif)  ---------- */
.tile-divider { height: 14px; background-image: url('/assets/img/tile-pattern.svg'); background-size: 40px 14px; background-repeat: repeat-x; }

/* ----------  Photo slot (styled placeholder for real photos)  ---------- */
.photo-slot {
  width: 100%; height: 100%; min-height: 220px; position: relative;
  background:
    linear-gradient(135deg, rgba(46,111,176,.12), rgba(20,34,79,.14)),
    var(--sand);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  color: var(--olive-dark); text-align: center; padding: 24px;
}
.photo-slot svg { width: 46px; height: 46px; opacity: .5; }
.photo-slot span { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; max-width: 28ch; }

/* ----------  Instagram / Our Work gallery  ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ig-tile { aspect-ratio: 1/1; min-height: 0; border-radius: var(--radius-lg); overflow: hidden; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
behold-widget { display: block; --behold-gap: 16px; --behold-row-count: 2; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ----------  Reveal animation  ---------- */
/* Fallback: using the existing JS .is-visible class */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Modern CSS scroll-driven reveal (no JS needed) */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: none; /* override JS fallback transition */
    animation: scroll-reveal both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
  .reveal.is-visible { opacity: initial; transform: initial; } /* override fallback if JS runs anyway */
}
@keyframes scroll-reveal {
  0% { opacity: 0; transform: translateY(32px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; animation: none !important; } .hero__scroll::after { animation: none; } html { scroll-behavior: auto; } }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process__step::after { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand__logo, .site-header.is-scrolled .brand__logo { height: 42px; }
  .footer-brand .brand__logo { height: 52px; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--stucco);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 100px 24px 40px; box-shadow: var(--shadow-lg); transform: translateX(100%);
    transition: transform .35s var(--ease); overflow-y: auto;
  }
  body.nav-open .nav__links { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .nav__links > li > a, .is-on-hero:not(.is-scrolled) .nav__links > li > a { color: var(--ink); font-size: 1rem; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: auto; }
  .dropdown a { padding: 10px 4px; }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--ink); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }
  .svc-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__inner { padding-top: 110px; }
  .page-hero { padding: 150px 0 70px; }
}

