/* =========================================================
   Argio Roofing & Construction — site styles
   ========================================================= */
:root {
  --ink: #0c1424;          /* deep navy, primary dark surface */
  --ink-2: #131e33;
  --blue: #3a55a5;         /* brand blue from the logo */
  --blue-bright: #6b8cf0;
  --paper: #f3f1ec;        /* warm off-white */
  --paper-2: #e9e5dc;
  --white: #ffffff;
  --text: #0c1424;
  --muted: #5d6576;
  --line: rgba(12, 20, 36, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --radius: 4px;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Labels / eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow, .eyebrow.light { color: var(--blue-bright); }

.num { font-size: 12px; font-weight: 500; letter-spacing: 0.18em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px;
  font: 500 13px/1 var(--font); letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer; background: transparent;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.dark .btn-solid:hover, .hero .btn-solid:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn-ghost, .hero .btn-ghost { color: #fff; }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link .arrow { transition: transform .35s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; transition: height .4s var(--ease); }
.site-header.scrolled { background: rgba(12, 20, 36, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.scrolled .wrap { height: 72px; }
.site-header.solid { background: var(--ink); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-weight: 600; font-size: 16px; letter-spacing: 0.14em; }
.brand-text span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; opacity: .65; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  position: relative; font-size: 13px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; opacity: .85;
  transition: opacity .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 12px 20px; font-size: 12px; }

.menu-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav a:not(.btn) { font-size: 22px; letter-spacing: 0.08em; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff;
  display: flex; align-items: flex-end; overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,20,36,.75) 0%, rgba(12,20,36,.45) 40%, rgba(12,20,36,.95) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(44px, 8.4vw, 124px); font-weight: 500; letter-spacing: -0.035em; line-height: .98; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--blue-bright); }
.hero-bottom {
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: end;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-light);
}
.hero-bottom p { max-width: 46ch; opacity: .85; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .7; text-align: right; line-height: 1.9; }

.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-bottom: 28px; }
.scroll-cue i { width: 1px; height: 36px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: cue 2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* rotating badge */
.badge { position: absolute; right: var(--gutter); top: 130px; z-index: 3; width: 150px; height: 150px; }
.badge svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge img { position: absolute; inset: 30px; width: 90px; height: 90px; border-radius: 50%; background: #fff; padding: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-meta { text-align: left; }
  .badge { width: 110px; height: 110px; top: 104px; }
  .badge img { inset: 22px; width: 66px; height: 66px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,36,.6), rgba(12,20,36,.95)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 190px; padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.035em; margin-top: 22px; }
.page-hero p.lead { max-width: 58ch; margin-top: 26px; font-size: 19px; opacity: .85; }
.crumbs { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-tight { padding: clamp(60px, 7vw, 100px) 0; }
.dark { background: var(--ink); color: #fff; }
.dark .num, .dark .muted { color: rgba(255,255,255,.55); }
.paper-2 { background: var(--paper-2); }
.white { background: #fff; }
.muted { color: var(--muted); }

.statement { font-size: clamp(30px, 4.6vw, 64px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.12; max-width: 22ch; }
.statement .hl { color: var(--blue); }
.dark .statement .hl { color: var(--blue-bright); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(34px, 5vw, 68px); letter-spacing: -0.03em; margin-top: 18px; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; transition: transform 1.2s var(--ease); }
.split-img:hover img { transform: scale(1.04); }
.split-img .tag {
  position: absolute; left: 20px; bottom: 20px; background: rgba(12,20,36,.85); color: #fff; padding: 10px 16px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; border-radius: 999px; backdrop-filter: blur(6px);
}
.split-body h2 { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.03em; margin: 20px 0 28px; }
.split-body p { color: var(--muted); font-size: 18px; }
.dark .split-body p { color: rgba(255,255,255,.72); }
.split-body .btn, .split-body .link { margin-top: 20px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split-img img { aspect-ratio: 4/3; }
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 80px; }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* full-bleed statement */
.bleed { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.bleed .bg { position: absolute; inset: -10% 0; }
.bleed .bg img { width: 100%; height: 100%; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,20,36,.9) 0%, rgba(12,20,36,.55) 55%, rgba(12,20,36,.2) 100%); }
.bleed .wrap { position: relative; z-index: 2; }
.bleed h2 { font-size: clamp(42px, 7vw, 108px); letter-spacing: -0.04em; line-height: .98; }
.bleed h2 span { display: block; color: var(--blue-bright); }
.bleed p { max-width: 50ch; margin-top: 32px; font-size: 18px; opacity: .85; }

/* services list (numbered) */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 90px 1fr 1.2fr 40px; gap: 32px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease);
}
.service h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; }
.service p { color: var(--muted); margin: 0; }
.service .arrow { font-size: 22px; color: var(--blue); transition: transform .4s var(--ease); }
.service:hover { padding-left: 14px; }
.service:hover .arrow { transform: translateX(6px); }
.dark .services, .dark .service { border-color: var(--line-light); }
.dark .service p { color: rgba(255,255,255,.65); }
.dark .service .arrow { color: var(--blue-bright); }
@media (max-width: 800px) {
  .service { grid-template-columns: 50px 1fr; gap: 10px 16px; }
  .service p { grid-column: 2; }
  .service .arrow { display: none; }
}

/* project cards */
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px; }
.project { grid-column: span 6; display: block; }
.project.feature { grid-column: span 7; }
.project.side { grid-column: span 5; }
.project.third { grid-column: span 4; }
.project-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.project-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.1s var(--ease); }
.project.feature .project-media img { aspect-ratio: 16/11; }
.project:hover .project-media img { transform: scale(1.05); }
.project-media .pill {
  position: absolute; top: 16px; left: 16px; background: #fff; color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px;
}
.project-info { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; }
.project-info h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; }
.project-info .loc { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.dark .project-info .loc { color: rgba(255,255,255,.55); }
.project-info .num { padding-top: 6px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.specs dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.specs dd { margin: 0; }
@media (max-width: 900px) {
  .project, .project.feature, .project.side, .project.third { grid-column: span 12; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .projects-grid.cols .project { grid-column: span 6; }
}

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter {
  font: 500 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter sup { font-size: 10px; opacity: .6; margin-left: 4px; }
.project.hide { display: none; }

/* logo marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto; width: 190px; height: 100px; display: grid; place-items: center; padding: 22px 26px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.logo-tile img { max-height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-grid .logo-tile { width: auto; height: 130px; }
.logo-grid .logo-tile img { filter: none; opacity: 1; }

/* credentials strip */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-light); border-radius: var(--radius); }
.cred { padding: 34px 32px; }
.cred + .cred { border-left: 1px solid var(--line-light); }
.cred .state { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); }
.cred b { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 400; margin-top: 10px; letter-spacing: -.01em; }
.cred span { display: block; font-size: 14px; opacity: .6; margin-top: 4px; }
@media (max-width: 800px) {
  .creds { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--line-light); }
}

.choice { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line-light); }
.choice img { background: #fff; padding: 18px; border-radius: var(--radius); }
.choice p { opacity: .75; max-width: 70ch; }
@media (max-width: 700px) { .choice { grid-template-columns: 1fr; } .choice img { max-width: 200px; } }

/* feature cards (buildertrend / why) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--paper); padding: 40px 34px; transition: background .35s var(--ease); }
.card:hover { background: #fff; }
.card .icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 26px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pills span { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.dark .pills span { border-color: var(--line-light); }

/* quote block */
.quote { border-left: 2px solid var(--blue); padding: 6px 0 6px 28px; font-size: 18px; }
.quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.quote cite a { border-bottom: 1px solid currentColor; }

/* CTA */
.cta { text-align: left; }
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.cta h2 { font-size: clamp(44px, 7.4vw, 112px); letter-spacing: -0.04em; line-height: .96; }
.cta h2 span { color: var(--blue-bright); }
.cta-side p { opacity: .75; font-size: 18px; }
.cta-phone { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 400; letter-spacing: -.01em; margin: 18px 0 28px; }
.cta-phone:hover { color: var(--blue-bright); }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; gap: 32px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); }
.info-block { padding: 30px 0; border-top: 1px solid var(--line); }
.info-block h3 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.info-block p, .info-block a { font-size: 20px; font-weight: 400; }
.info-block a:hover { color: var(--blue); }
.form { background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); }
.form h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-top: 24px; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: 300 17px/1.4 var(--font); color: var(--ink);
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.form .btn { margin-top: 34px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; gap: 0; } }

.map { margin-top: 0; border-radius: var(--radius); overflow: hidden; filter: grayscale(.9) contrast(1.05); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: #070c17; color: #fff; padding: 90px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-light); }
.footer-top h4 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 20px; }
.footer-top p, .footer-top li { font-size: 15px; opacity: .7; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a:hover { opacity: 1; color: #fff; }
.footer-top li a { transition: opacity .3s; }
.footer-brand p { max-width: 34ch; margin-top: 22px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; opacity: .55; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-word { font-size: clamp(60px, 15vw, 230px); font-weight: 600; letter-spacing: -0.05em; line-height: .8; color: rgba(255,255,255,.05); margin-top: 48px; user-select: none; white-space: nowrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

.split-lines .line { display: block; overflow: hidden; }
.split-lines .line > span { display: block; }
.js .split-lines .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split-lines.in .line > span { transform: none; }
.split-lines .line:nth-child(2) > span { transition-delay: .1s; }
.split-lines .line:nth-child(3) > span { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .split-lines .line > span { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .badge { display: none; } }

/* ---------- Form states ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.form-status.show { display: block; }
.form-status.ok { background: #e7f3ec; color: #14532d; border: 1px solid #b7dcc4; }
.form-status.err { background: #fbeaea; color: #7a1c1c; border: 1px solid #efc2c2; }
.form-status a { border-bottom: 1px solid currentColor; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
.field .err-msg { display: none; font-size: 13px; color: #b42318; margin-top: 6px; }
.field input:user-invalid + .err-msg { display: block; }
.form.tried .field :invalid { border-color: #b42318; }
.form.tried .field :invalid + .err-msg { display: block; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Mobile menu fix: the scrolled header's backdrop-filter traps the fixed menu inside the header bar */
body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
