/* ============== Globals ============== */
html { scroll-behavior: smooth; }
body {
  font-feature-settings: "ss01","cv11";
  background-image:
    radial-gradient(circle at 12% 8%, rgba(238,125,17,0.06), transparent 45%),
    radial-gradient(circle at 88% 4%, rgba(29,78,137,0.05), transparent 45%);
  background-attachment: fixed;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #fbf7f0; }
::-webkit-scrollbar-thumb { background: #d6caaf; border-radius: 10px; border: 2px solid #fbf7f0; }
::-webkit-scrollbar-thumb:hover { background: #ee7d11; }

/* ============== Nav ============== */
#nav.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(251,247,240,0.82);
  border-bottom: 1px solid rgba(13,35,64,0.06);
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  color: rgba(13,35,64,0.7);
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav-link:hover { color: #0d2340; background: rgba(13,35,64,0.04); }
.nav-link::before {
  content: "";
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: #ee7d11; transition: width .35s;
}
.nav-link:hover::before { width: 40%; }

/* ============== Reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============== Hero underline draw ============== */
.draw-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawline 2.2s cubic-bezier(.7,.1,.3,1) .8s forwards;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* ============== Bars ============== */
.bar-fill {
  width: 0;
  animation: barfill 1.6s cubic-bezier(.6,.1,.2,1) .4s forwards;
}
@keyframes barfill { to { width: var(--w); } }

/* ============== Ticker ============== */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-ticker {
  animation: ticker 50s linear infinite;
  will-change: transform;
}

/* ============== Pillar cards ============== */
.pillar-card {
  position: relative;
  display: block;
  padding: 36px 32px 32px;
  border: 1px solid rgba(13,35,64,0.08);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,35,64,0.04);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.pillar-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--accent,#ee7d11) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.pillar-card[data-accent="#1d4e89"] { --accent:#1d4e89; }
.pillar-card[data-accent="#ee7d11"] { --accent:#ee7d11; }
.pillar-card[data-accent="#c43c2b"] { --accent:#c43c2b; }
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 40px rgba(13,35,64,0.10);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-num {
  position: absolute; top: 18px; right: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .25em;
  color: rgba(13,35,64,0.3);
}
.pillar-cta {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  color: #ee7d11;
  font-size: 13px;
  border-top: 1px solid rgba(13,35,64,0.08);
  padding-top: 18px;
  width: 100%;
  transition: gap .3s;
}
.pillar-card:hover .pillar-cta { gap: 14px; }

/* ============== Accordion ============== */
.acc {
  border-top: 1px solid rgba(13,35,64,0.12);
  background: transparent;
}
.acc:last-of-type { border-bottom: 1px solid rgba(13,35,64,0.12); }
.acc summary {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 6px;
  cursor: pointer;
  list-style: none;
  transition: background .25s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { background: rgba(238,125,17,0.04); }
.acc-idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .25em;
  color: #ee7d11;
  min-width: 70px;
}
.acc-title {
  flex: 1;
  font-family: 'Instrument Serif', serif;
  font-size: 30px;
  color: #0d2340;
}
.acc-icon { color: rgba(13,35,64,0.5); transition: transform .35s; }
.acc[open] .acc-icon { transform: rotate(45deg); color:#ee7d11; }
.acc-body {
  padding: 0 6px 28px 88px;
  color: rgba(13,35,64,0.72);
  line-height: 1.7;
  animation: accreveal .4s ease;
}
@keyframes accreveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tag-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-row span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid rgba(13,35,64,0.18);
  border-radius: 999px;
  color: rgba(13,35,64,0.7);
  background: rgba(255,255,255,0.6);
}
@media (max-width: 640px) {
  .acc-body { padding-left: 6px; }
  .acc-title { font-size: 22px; }
}

/* ============== Business cards ============== */
.biz-card {
  padding: 26px 22px;
  border: 1px solid rgba(13,35,64,0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(13,35,64,0.04);
  transition: transform .4s, border-color .3s, box-shadow .3s;
}
.biz-card:hover {
  transform: translateY(-3px);
  border-color: rgba(238,125,17,0.55);
  box-shadow: 0 14px 30px rgba(13,35,64,0.08);
}
.biz-ico {
  width: 24px; height: 24px; color: #ee7d11; margin-bottom: 14px;
  transition: transform .4s;
}
.biz-card:hover .biz-ico { transform: rotate(-8deg) scale(1.08); }
.biz-card h4 { font-family: 'Instrument Serif', serif; font-size: 24px; margin-bottom: 6px; color:#0d2340; }
.biz-card p { font-size: 13px; color: rgba(13,35,64,0.65); line-height: 1.6; margin-bottom: 12px; }
.biz-card ul {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 12px; border-top: 1px dashed rgba(13,35,64,0.12);
}
.biz-card ul li {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .1em; color: rgba(13,35,64,0.55);
  padding: 3px 8px; border: 1px solid rgba(13,35,64,0.12); border-radius: 999px;
  background: #fbf7f0;
}

/* ============== IA steps ============== */
.ia-step {
  padding: 20px 20px;
  border: 1px solid rgba(13,35,64,0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(13,35,64,0.03);
}
.ia-step span {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .25em; color: #ee7d11; margin-bottom: 8px;
}
.ia-step strong { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; display: block; color:#0d2340; }
.ia-step p { font-size: 12px; color: rgba(13,35,64,0.6); margin-top: 6px; line-height: 1.55; }

/* ============== Testimonials ============== */
.tcard {
  padding: 32px 28px;
  border: 1px solid rgba(13,35,64,0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 24px rgba(13,35,64,0.05);
  transition: border-color .3s, box-shadow .3s;
  position: relative;
}
.tcard:hover { border-color: rgba(238,125,17,0.5); box-shadow: 0 18px 38px rgba(13,35,64,0.10); }
.tquote {
  font-family: 'Instrument Serif', serif;
  font-size: 23px; line-height: 1.45;
  color: #0d2340;
  margin-bottom: 24px;
}
.tcard figcaption {
  padding-top: 18px;
  border-top: 1px solid rgba(13,35,64,0.1);
  font-size: 13px; color: rgba(13,35,64,0.8);
}
.tcard figcaption span { color: rgba(13,35,64,0.45); }

/* ============== Values ============== */
.vcard {
  padding: 32px 28px;
  background: #ffffff;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .3s;
}
.vcard:hover { background: #fff7eb; }
.vcard h4 { font-family: 'Instrument Serif', serif; font-size: 30px; font-weight: 400; margin-top: 8px; color:#0d2340; }
.vcard p { color: rgba(13,35,64,0.65); line-height: 1.6; font-size: 14px; }

/* ============== Timeline ============== */
.tl { position: relative; padding-top: 32px; }
.tl .dot {
  position: absolute; top: 0; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fbf7f0; border: 2px solid rgba(13,35,64,0.35);
  transition: background .3s, border-color .3s;
}
.tl .dot.active { background: #ee7d11; border-color: #ee7d11; box-shadow: 0 0 0 6px rgba(238,125,17,0.22); }
.tl time {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em; color: #ee7d11; margin-bottom: 8px;
}
.tl h5 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 6px; color:#0d2340; }
.tl p { font-size: 13px; color: rgba(13,35,64,0.65); line-height: 1.6; }

/* ============== Sheet (mobile) ============== */
#sheet.open { transform: translateX(0); }

/* ============== Subpage shared ============== */
.subhero {
  padding: 11rem 0 5rem;
  position: relative;
}
.subhero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #0d2340;
}
.crumbs {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(13,35,64,0.4);
  margin-bottom: 28px;
}
.crumbs a:hover { color: #ee7d11; }

/* Subpage offer cards */
.offer {
  padding: 36px 32px;
  border: 1px solid rgba(13,35,64,0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(13,35,64,0.04);
  transition: border-color .3s, box-shadow .3s, transform .4s;
  position: relative;
  overflow: hidden;
}
.offer:hover { border-color: rgba(238,125,17,0.55); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(13,35,64,0.10); }
.offer h3 { font-family: 'Instrument Serif', serif; font-size: 34px; margin-bottom: 10px; color:#0d2340; }
.offer .pill {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(238,125,17,0.13); color: #c5640a; margin-bottom: 18px;
}
.offer p { color: rgba(13,35,64,0.7); line-height: 1.65; }
.offer ul { margin-top: 18px; display: grid; gap: 8px; }
.offer ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(13,35,64,0.8);
}

/* Form */
.field { display: block; margin-bottom: 22px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(13,35,64,0.5);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(13,35,64,0.18);
  padding: 10px 0 12px;
  color: #0d2340;
  font-size: 16px;
  transition: border-color .3s;
  font-family: inherit;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(13,35,64,0.35); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: #ee7d11;
}
.field select option { background:#ffffff; color:#0d2340; }

/* misc */
em { font-style: italic; color:#ee7d11; }
mark { background: linear-gradient(180deg, transparent 60%, rgba(238,125,17,0.35) 60%); padding: 0 2px; color: inherit; }

/* dark code panels (kept dark on light page) */
.codepanel {
  background: #0d2340;
  color: #f5ecdd;
  border: 1px solid #0d2340;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13,35,64,0.18);
}
.codepanel-bar { background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.codepanel-bar .muted { color: rgba(245,236,221,0.45); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .animate-ticker { animation: none; }
  .draw-path, .bar-fill { animation: none; }
}
