/* ============================================================
   VigorSolutions — warm & approachable, professional
   ============================================================ */

:root {
  /* warm cream surfaces */
  --bg:        #faf7ef;
  --bg-2:      #f3eee2;
  --surface:   #fffdf8;
  --surface-2: #f7f2e7;

  /* warm ink */
  --ink:       #211e18;
  --ink-soft:  #5f594e;
  --ink-faint: #908878;

  /* warm lines */
  --line:      #e8e1d1;
  --line-2:    #ddd4bf;

  /* blue accent */
  --accent:        #2f6df0;
  --accent-deep:   #1f56cf;
  --accent-ink:    #1b4cba;
  --accent-soft:   #e9f0fe;
  --accent-soft-2: #d8e4fd;

  --radius:   16px;
  --radius-s: 11px;
  --radius-l: 26px;

  --shadow-sm: 0 1px 2px rgba(33,30,24,.05), 0 2px 8px rgba(33,30,24,.04);
  --shadow-md: 0 4px 14px rgba(33,30,24,.07), 0 16px 40px rgba(33,30,24,.06);
  --shadow-lg: 0 10px 30px rgba(31,86,207,.10), 0 30px 70px rgba(33,30,24,.10);

  --maxw: 1180px;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section { padding-block: clamp(72px, 11vw, 124px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 var(--accent-deep), var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 4px 0 var(--accent-deep), var(--shadow-md); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink-faint); box-shadow: var(--shadow-md); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(33,30,24,.04);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height .3s;
}
.site-header.scrolled .nav { height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent);
  position: relative;
  box-shadow: 0 2px 0 var(--accent-deep);
  flex: none;
}
.brand .mark::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
}
.brand b { font-weight: 700; }
.brand span { color: var(--accent-ink); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 9px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 11px 20px; font-size: 15px; }

.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(120px, 17vw, 188px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.85rem, 6.7vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-top: 22px;
}
.hero h1 .box {
  background: var(--accent);
  color: #fff;
  padding: 0 .16em;
  border-radius: 13px;
  display: inline-block;
  transform: rotate(-1.6deg);
  box-shadow: 0 6px 18px rgba(31,86,207,.28);
}
.hero-lead {
  margin-top: 26px;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 33ch;
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-proof {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* hero portrait composition */
.hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-disc {
  position: absolute;
  width: min(108%, 420px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent-soft-2));
  filter: blur(2px);
}

/* dark profile panel */
.hero-panel {
  background: linear-gradient(155deg, #1a1611, #2a241b);
  color: #f6f1e6;
  border-radius: var(--radius-l);
  padding: 26px 28px;
  box-shadow: var(--shadow-lg);
}
.hero-panel .who { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #b7ae9e; }
.hero-panel .nm { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em; margin-top: 10px; }
.hero-panel .ds { font-size: .98rem; color: #cfc8ba; line-height: 1.5; margin-top: 8px; }
.hero-panel .exp { font-size: .95rem; color: #b7ae9e; line-height: 1.5; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-panel .exp b { color: #e9e2d4; font-weight: 600; }
.hero-panel .focus { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.hero-panel .focus span { font-family: var(--font-mono); font-size: 11px; color: #d8d0c2; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 5px 10px; }
.hero-panel .avail { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; font-weight: 600; color: #f6f1e6; }
.hero-panel .avail .d { width: 9px; height: 9px; border-radius: 50%; background: #4fd397; box-shadow: 0 0 0 4px rgba(79,211,151,.18); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-panel .avail .d { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(79,211,151,.18); } 50% { box-shadow: 0 0 0 7px rgba(79,211,151,.08); } }

.hero-side { display: grid; gap: 16px; align-content: center; }

.hero-portrait {
  position: relative;
  width: min(78%, 320px); aspect-ratio: 3/3.4;
  border-radius: 200px 200px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--surface);
  background: linear-gradient(155deg, var(--accent-soft-2), var(--accent-soft));
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- section heading ---------- */
.sec-head { max-width: 680px; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 18px; }
.sec-head p { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow::before { display: none; }

/* ---------- about ---------- */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(34px, 6vw, 76px); align-items: start; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { font-size: 1.1rem; color: var(--ink-soft); }
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.fact .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.fact .v { margin-top: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; }
.fact .d { margin-top: 6px; font-size: .98rem; color: var(--ink-soft); }

/* ---------- services index ---------- */
.svc-index { margin-top: 50px; border-top: 1px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: 30px 8px 30px 0;
  border-bottom: 1px solid var(--line-2);
  position: relative;
  transition: padding-left .3s cubic-bezier(.2,.7,.3,1), background .3s;
}
.svc-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
  border-radius: 2px;
}
.svc-row:hover { padding-left: 18px; background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 70%); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row .n { font-family: var(--font-mono); font-size: 14px; color: var(--accent-ink); letter-spacing: .04em; padding-top: 6px; }
.svc-row .body { display: grid; gap: 9px; }
.svc-row h4 { font-size: clamp(1.25rem, 2.1vw, 1.55rem); font-weight: 600; letter-spacing: -.02em; }
.svc-row .desc { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.55; max-width: 64ch; }
.svc-row .fit { font-size: .95rem; color: var(--ink-faint); line-height: 1.5; max-width: 64ch; }
.svc-row .fit b { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; display: block; margin-bottom: 3px; }
.svc-row .arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--ink-faint);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
  flex: none; margin-top: 4px;
}
.svc-row .arrow svg { width: 17px; height: 17px; }
.svc-row:hover .arrow { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-45deg); }
@media (max-width: 760px) {
  .svc-row { grid-template-columns: 38px 1fr; padding: 24px 0; }
  .svc-row .arrow { display: none; }
  .svc-row:hover { padding-left: 12px; }
}

/* ---------- positioning strip ---------- */
.positioning { background: var(--ink); color: #f6f1e6; }
.positioning .wrap { padding-block: clamp(54px, 8vw, 84px); }
.positioning .lab { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8fb3ff; }
.positioning p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.28; letter-spacing: -.02em; margin-top: 18px; max-width: 24ch; }
.positioning p span { color: #93b4ff; }
.positioning .big { max-width: 22ch; }

/* ---------- approach ---------- */
.approach { background: var(--bg-2); }
.steps { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 28px;
  box-shadow: var(--shadow-sm); position: relative;
}
.step .si { font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .08em; }
.step h4 { font-size: 1.22rem; margin-top: 14px; }
.step p { margin-top: 10px; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.step .bar { position: absolute; left: 24px; right: 24px; top: 0; height: 3px; background: var(--accent-soft-2); border-radius: 0 0 3px 3px; overflow: hidden; }
.step .bar i { position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 3px; }
.step:nth-child(2) .bar i { left: 20%; }
.step:nth-child(3) .bar i { left: 40%; }
.step:nth-child(4) .bar i { left: 60%; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work { background: var(--bg-2); }
.feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 36px;
}
.feature-body { padding: clamp(30px, 4vw, 52px); display: flex; flex-direction: column; }
.feature-tag { display: inline-flex; align-self: flex-start; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 7px 12px; border-radius: 999px; }
.feature-body h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 22px; }
.feature-body .sub { margin-top: 14px; font-size: 1.12rem; color: var(--ink-soft); }
.feature-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.feature-list li svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.feature-actions { margin-top: auto; padding-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.feature-visual {
  position: relative; min-height: 340px;
  background: var(--surface-2); border-left: 1px solid var(--line);
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }

/* ---------- case studies ---------- */
.case-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.case {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .26s cubic-bezier(.2,.7,.3,1), box-shadow .26s, border-color .26s;
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.case .ct { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.case h4 { font-size: 1.32rem; margin-top: 12px; }
.case p { margin-top: 11px; font-size: 1rem; color: var(--ink-soft); line-height: 1.55; }
.case .demo { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-faint); }
.case .demo b { color: var(--ink-soft); font-weight: 600; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- metrics band ---------- */
.metrics-band { background: var(--ink); color: #f4efe4; }
.metrics-band .wrap { padding-block: clamp(56px, 8vw, 88px); }
.metrics-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.metric { background: #211e18; padding: 30px 26px; }
.metric .v { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.025em; color: #fff; }
.metric .v span { color: #93b4ff; }
.metric .k { margin-top: 8px; font-size: .98rem; color: #b7ae9e; line-height: 1.45; }
.metrics-band .eyebrow { color: #8fb3ff; }
.metrics-band .eyebrow::before { background: #4f86ff; }
.metrics-band h2 { color: #fff; }
@media (max-width: 760px) { .metrics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .metrics-grid { grid-template-columns: 1fr; } }

/* ---------- when to call (signals) ---------- */
.signals { list-style: none; margin: 46px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.signals li {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 8px 24px 0;
  border-bottom: 1px solid var(--line-2);
  position: relative;
  transition: padding-left .3s cubic-bezier(.2,.7,.3,1), background .3s;
}
.signals li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
  border-radius: 2px;
}
.signals li:hover { padding-left: 18px; background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 70%); }
.signals li:hover::before { transform: scaleY(1); }
.signals .sig-ic {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep);
}
.signals .sig-ic svg { width: 23px; height: 23px; }
.signals .sig-tx { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.3; }
@media (max-width: 600px) {
  .signals li { gap: 15px; }
  .signals .sig-ic { width: 40px; height: 40px; }
}

/* ---------- engagement models ---------- */
.engage { background: var(--bg-2); }
.engage-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.engage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.engage-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-ink); }
.engage-card h4 { font-size: 1.18rem; margin-top: 10px; }
.engage-card p { margin-top: 9px; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- contact ---------- */
.contact-card {
  background: linear-gradient(150deg, #1a1611, #2a241b);
  color: #f6f1e6;
  border-radius: var(--radius-l);
  padding: clamp(40px, 6vw, 76px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-card::before {
  content: ""; position: absolute; top: -30%; right: -10%;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,109,240,.55), transparent 65%);
  pointer-events: none;
}
.contact-card .eyebrow { color: #8fb3ff; }
.contact-card .eyebrow::before { background: #4f86ff; }
.contact-card h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-top: 18px; max-width: 16ch; }
.contact-card .lead { margin-top: 20px; font-size: 1.18rem; color: #d8d0c2; max-width: 46ch; }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; position: relative; }
.contact-actions .btn-ghost { background: rgba(255,255,255,.06); color: #f6f1e6; border-color: rgba(255,255,255,.2); box-shadow: none; }
.contact-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.contact-direct { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-mono); font-size: 13px; color: #b7ae9e; position: relative; }
.contact-direct a { color: #e9e2d4; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1px; transition: border-color .2s; }
.contact-direct a:hover { border-color: #8fb3ff; }

/* ---------- contact form ---------- */
.contact-form { margin-top: 32px; display: grid; gap: 0; position: relative; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; }
.contact-form input,
.contact-form textarea {
  -webkit-appearance: none; appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  padding: 16px 0;
  color: #f6f1e6;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .2s;
  -webkit-text-fill-color: #f6f1e6;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
/* prevent browser autofill white/blue flash */
.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f6f1e6;
  -webkit-box-shadow: 0 0 0 1000px #1e1a14 inset;
  transition: background-color 9999s;
}
.cf-row input:first-child { padding-right: 24px; }
.contact-form textarea { resize: none; margin-top: 0; min-height: 110px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; position: relative; }
.cf-actions .btn-ghost { background: rgba(255,255,255,.06); color: #f6f1e6; border-color: rgba(255,255,255,.2); box-shadow: none; }
.cf-actions .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.cf-actions .btn-primary:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.cf-status { font-size: .95rem; min-height: 1.4em; font-family: var(--font-mono); letter-spacing: .03em; }
.cf-status.success { color: #4fd397; }
.cf-status.error { color: #f87171; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } .cf-row input:first-child { padding-right: 0; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer-brand { max-width: 460px; }
.footer-brand .brand { font-size: 18px; }
.footer-tag { margin-top: 14px; font-size: .98rem; color: var(--ink-soft); line-height: 1.5; }
.footer-svc { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-faint); line-height: 1.7; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .18s; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-meta { font-size: 13.5px; color: var(--ink-faint); }
@media (max-width: 640px) {
  .footer-right { align-items: flex-start; }
}

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-d="1"] { transition-delay: .08s; }
[data-reveal-d="2"] { transition-delay: .16s; }
[data-reveal-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; margin-bottom: 8px; }
  .hero-lead { max-width: 46ch; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
  .feature { grid-template-columns: 1fr; }
  .feature-visual { order: -1; min-height: 280px; border-left: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--line-2);
    cursor: pointer;
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .mobile-menu {
    position: fixed; inset: 0 0 auto 0; top: 0;
    background: var(--bg);
    z-index: 200;
    padding: 22px clamp(20px,5vw,44px) 30px;
    transform: translateY(-100%);
    transition: transform .34s cubic-bezier(.2,.7,.3,1);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu.open { transform: none; }
  .mobile-menu .mm-top { display: flex; align-items: center; justify-content: space-between; }
  .mobile-menu nav { margin-top: 24px; display: grid; gap: 4px; }
  .mobile-menu nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .mobile-menu .btn { margin-top: 22px; width: 100%; justify-content: center; }
}
@media (min-width: 721px) { .mobile-menu { display: none; } }
