/* ── RESET & VARS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --w:     #ffffff;
  --off:   #f6f4f1;
  --ink:   #141412;
  --ink2:  #4e4c49;
  --ink3:  #8a8784;
  --rule:  #e4e0d9;
  --acc:   #d4521f;
  --acc2:  #b84215;
  --acct:  #fdf0eb;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;
  --pad:   clamp(20px, 5.5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--w);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
nav.on { border-color: var(--rule); }
.logo {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  letter-spacing: -.01em; flex-shrink: 0;
}
.logo b { color: var(--acc); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .82rem; color: var(--ink2);
  text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--w);
  padding: 8px 20px; border-radius: 6px;
  font-size: .82rem; font-weight: 500;
  text-decoration: none; transition: background .15s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--acc); }
.ham {
  display: none; background: none; border: none;
  cursor: pointer; color: var(--ink); padding: 4px;
  flex-shrink: 0;
}

/* ── REVEAL ANIMATIONS ── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.rv.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

/* ── SHARED LAYOUT ── */
.wrap { max-width: 1060px; margin: 0 auto; }

.label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.label::before {
  content: ''; width: 20px; height: 1px;
  background: var(--acc); display: block; flex-shrink: 0;
}

.heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -.022em; color: var(--ink);
}
.heading em { font-style: italic; font-weight: 400; color: var(--acc); }

/* ─────────────────────────────────────
   1. HERO
───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px var(--pad) 80px;
  border-bottom: 1px solid var(--rule);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.hero-label {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 20px;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 700; line-height: 1.07;
  letter-spacing: -.025em; color: var(--ink);
  margin-bottom: 22px;
}
h1 em { font-style: italic; font-weight: 400; color: var(--acc); }
.hero-sub {
  font-size: 1rem; color: var(--ink2);
  line-height: 1.75; font-weight: 300;
  max-width: 420px; margin-bottom: 36px;
}
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 24px; border-radius: 6px;
  font-family: var(--sans); font-size: .875rem; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: all .15s; white-space: nowrap;
}
.btn-a { background: var(--acc); color: var(--w); }
.btn-a:hover { background: var(--acc2); transform: translateY(-1px); }
.btn-b { background: transparent; color: var(--ink2); border: 1.5px solid var(--rule); }
.btn-b:hover { border-color: var(--ink3); color: var(--ink); }

/* SVG workflow */
.hero-visual { position: relative; }
.wf-svg { width: 100%; max-width: 460px; display: block; }
.wf-box { fill: var(--w); stroke: var(--rule); stroke-width: 1.5; }
.wf-box-hi { fill: var(--acct); stroke: var(--acc); stroke-width: 1.5; }
.wf-box-dark { fill: var(--ink); stroke: var(--ink); }
.wf-line { stroke: var(--rule); stroke-width: 1.5; fill: none; }
.wf-line-acc {
  stroke: var(--acc); stroke-width: 1.5; fill: none;
  stroke-dasharray: 4 3;
  animation: dash 2s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -28; } }
.wf-text { font-family: 'Outfit', sans-serif; font-size: 10px; fill: var(--ink2); }
.wf-text-w { font-family: 'Outfit', sans-serif; font-size: 10px; fill: #fff; }
.wf-text-acc { font-family: 'Outfit', sans-serif; font-size: 10px; fill: var(--acc); }
.wf-label { font-family: 'Outfit', sans-serif; font-size: 9px; fill: var(--ink3); letter-spacing: .06em; }
.wf-dot { fill: var(--acc); animation: wfpulse 2s ease-in-out infinite; }
.wf-dot-g { fill: #22c55e; animation: wfpulse 2.4s ease-in-out infinite; }
@keyframes wfpulse { 0%,100%{opacity:1} 50%{opacity:.25} }
.wf-diamond { fill: var(--w); stroke: var(--ink3); stroke-width: 1.5; }

/* ─────────────────────────────────────
   2. PROBLEMS
───────────────────────────────────── */
.problems { background: var(--ink); padding: 100px var(--pad); }
.problems .label { color: rgba(255,255,255,.35); }
.problems .label::before { background: rgba(255,255,255,.3); }
.problems .heading { color: #f5f3ef; margin: 18px 0 52px; }
.problems .heading em { color: #e88060; }

.prob-list { display: flex; flex-direction: column; }
.prob {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 0; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.prob:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.prob-n {
  font-family: var(--serif); font-style: italic;
  font-size: .9rem; font-weight: 400;
  color: rgba(255,255,255,.3);
  padding-top: 2px;
}
.prob-title {
  font-size: .95rem; font-weight: 500;
  color: #f5f3ef; margin-bottom: 5px;
}
.prob-desc {
  font-size: .84rem; color: rgba(255,255,255,.5);
  line-height: 1.65; font-weight: 300;
}

/* ─────────────────────────────────────
   BRIDGE
───────────────────────────────────── */
.bridge {
  background: var(--acc);
  padding: 52px var(--pad);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.bridge-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 400; font-style: italic;
  color: #fff; line-height: 1.3;
}
.bridge-text b { font-style: normal; font-weight: 700; }
.bridge-btn {
  background: #fff; color: var(--acc);
  padding: 11px 26px; border-radius: 6px;
  font-size: .86rem; font-weight: 600;
  text-decoration: none; flex-shrink: 0;
  transition: opacity .15s;
}
.bridge-btn:hover { opacity: .88; }

/* ─────────────────────────────────────
   3. SOLUTIONS
───────────────────────────────────── */
.services {
  background: var(--off);
  padding: 100px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.services .heading { margin: 18px 0 52px; }

.svc-list { display: flex; flex-direction: column; }
.svc {
  display: grid; grid-template-columns: 200px 1fr 1fr;
  padding: 22px 0; border-top: 1px solid var(--rule);
  transition: all .2s; cursor: default;
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc:hover {
  background: var(--w);
  padding: 22px var(--pad);
  margin: 0 calc(-1 * var(--pad));
}
.svc-name {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  padding-right: 20px; padding-top: 2px;
}
.svc-what {
  font-size: .82rem; color: var(--ink2);
  line-height: 1.65; font-weight: 300; padding-right: 32px;
}
.svc-how {
  font-size: .76rem; color: var(--ink3);
  line-height: 1.6; font-weight: 300;
}

/* ─────────────────────────────────────
   4. LIVE EXAMPLES
───────────────────────────────────── */
.automation {
  background: var(--w);
  padding: 100px var(--pad);
  border-bottom: 1px solid var(--rule);
}
.automation .heading { margin: 18px 0 52px; }

.auto-list { display: flex; flex-direction: column; }
.auto-item {
  display: grid; grid-template-columns: 48px 1fr;
  padding: 40px 0; border-top: 1px solid var(--rule);
}
.auto-item:last-child { border-bottom: 1px solid var(--rule); }
.auto-n {
  font-family: var(--serif); font-style: italic;
  font-size: .9rem; color: var(--ink3); padding-top: 4px;
}
.auto-body {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: start;
}
.auto-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .64rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc); background: var(--acct);
  border: 1px solid rgba(212,82,31,.2);
  border-radius: 4px; padding: 2px 8px; margin-bottom: 10px;
}
.auto-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--acc); display: inline-block;
  animation: wfpulse 2.5s ease-in-out infinite;
}
.auto-title {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -.015em; color: var(--ink);
  margin-bottom: 10px; line-height: 1.15;
}
.auto-title em { font-style: italic; font-weight: 400; color: var(--acc); }
.auto-desc {
  font-size: .84rem; color: var(--ink2);
  line-height: 1.7; font-weight: 300;
}
.wf-diagram svg { width: 100%; display: block; overflow: visible; }

/* ─────────────────────────────────────
   5. CONTACT
───────────────────────────────────── */
.contact { background: var(--ink); padding: 100px var(--pad); }
.contact .label { color: rgba(255,255,255,.32); }
.contact .label::before { background: rgba(255,255,255,.28); }
.contact .heading { color: #f5f3ef; margin: 18px 0 16px; }
.contact .heading em { color: #e88060; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.contact-sub {
  font-size: .88rem; color: rgba(255,255,255,.45);
  line-height: 1.75; font-weight: 300; margin-bottom: 32px;
}
.clist { list-style: none; display: flex; flex-direction: column; }
.citem {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .84rem; color: rgba(255,255,255,.45); font-weight: 300;
}
.citem:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.citem::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--acc); flex-shrink: 0;
}

/* Form */
.cform { display: flex; flex-direction: column; gap: 12px; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ff { display: flex; flex-direction: column; gap: 5px; }
.ff label {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.ff input, .ff textarea, .ff select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px; padding: 11px 13px;
  font-family: var(--sans); font-size: .875rem;
  color: #f5f3ef; outline: none;
  transition: border-color .15s, background .15s;
  width: 100%; -webkit-appearance: none;
}
.ff input::placeholder, .ff textarea::placeholder { color: rgba(255,255,255,.22); }
.ff input:focus, .ff textarea:focus, .ff select:focus {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.09);
}
.ff select { cursor: pointer; }
.ff select option { background: #1d1d1a; color: #f5f3ef; }
.ff textarea { resize: none; height: 90px; line-height: 1.5; }

.csub {
  background: #f5f3ef; color: var(--ink);
  border: none; border-radius: 6px; padding: 13px;
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  cursor: pointer; transition: all .15s; width: 100%;
}
.csub:hover { background: var(--acc); color: #fff; }
.csub:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.3); cursor: default; }
.cnote { font-size: .72rem; color: rgba(255,255,255,.24); text-align: center; }

/* Error state */
.ff input.error, .ff textarea.error, .ff select.error {
  border-color: #e05252;
}

/* Thank you state */
.form-thanks {
  display: none;
  flex-direction: column; align-items: flex-start;
  gap: 16px; padding: 40px 0;
}
.form-thanks.visible { display: flex; }
.thanks-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #f5f3ef;
}
.thanks-title {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 700;
  color: #f5f3ef; letter-spacing: -.02em;
}
.thanks-body {
  font-size: .88rem; color: rgba(255,255,255,.45);
  line-height: 1.75; font-weight: 300; max-width: 360px;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px var(--pad);
}
.fi {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.fi-logo {
  font-family: var(--serif); font-size: .95rem;
  font-weight: 700; color: rgba(255,255,255,.28);
  text-decoration: none;
}
.fi-logo b { color: var(--acc); }
.fi-links { display: flex; gap: 20px; }
.fi-links a {
  font-size: .75rem; color: rgba(255,255,255,.22);
  text-decoration: none; transition: color .15s;
}
.fi-links a:hover { color: rgba(255,255,255,.6); }
.fi-copy { font-size: .72rem; color: rgba(255,255,255,.18); }

/* ─────────────────────────────────────
   RESPONSIVE — TABLET (≤860px)
───────────────────────────────────── */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-visual { display: none; }
  .hero-sub { max-width: 100%; }

  .svc {
    grid-template-columns: 160px 1fr;
  }
  .svc:hover { margin: 0; padding: 22px 0; }
  .svc-how { display: none; }

  .auto-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

/* ─────────────────────────────────────
   RESPONSIVE — MOBILE (≤600px)
───────────────────────────────────── */
@media (max-width: 600px) {
  /* Nav */
  .nav-links {
    display: none;
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0; z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px var(--pad); font-size: .92rem; }
  .nav-cta { display: none; }
  .ham { display: block; }

  /* Hero */
  .hero { padding-top: 90px; padding-bottom: 60px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-sub { font-size: .95rem; }
  .btns { flex-direction: column; }
  .btn { justify-content: center; }

  /* Problems */
  .problems { padding-top: 72px; padding-bottom: 72px; }
  .prob { grid-template-columns: 36px 1fr; }
  .prob-n { font-size: .8rem; }

  /* Bridge */
  .bridge { flex-direction: column; align-items: flex-start; gap: 20px; }
  .bridge-btn { width: 100%; text-align: center; }

  /* Services */
  .services { padding-top: 72px; padding-bottom: 72px; }
  .svc { grid-template-columns: 1fr; gap: 6px; }
  .svc-how { display: none; }
  .svc:hover { margin: 0; padding: 22px 0; }
  .svc-name { font-size: .9rem; margin-bottom: 4px; }

  /* Automation */
  .automation { padding-top: 72px; padding-bottom: 72px; }
  .auto-item { grid-template-columns: 1fr; }
  .auto-n { display: none; }
  .auto-body { grid-template-columns: 1fr; gap: 24px; }

  /* Contact */
  .contact { padding-top: 72px; padding-bottom: 72px; }
  .crow { grid-template-columns: 1fr; }
  .contact-grid { gap: 40px; }

  /* Footer */
  .fi-links { display: none; }
  .fi { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ─────────────────────────────────────
   RESPONSIVE — SMALL MOBILE (≤380px)
───────────────────────────────────── */
@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .heading { font-size: 1.7rem; }
  .bridge-text { font-size: 1.1rem; }
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-img--footer {
  height: 22px;
  opacity: .5;
}