/* ============ Halvencor Consulting — brand v2 ============ */
:root {
  --navy-950: #0a1220;
  --navy-900: #0f1a2e;
  --navy-800: #16233c;
  --navy-700: #1d2c47;
  --steel-400: #8fa8c8;
  --steel-300: #aabfd9;
  --ice-100: #dce6f2;
  --ivory: #f5f7fa;
  --paper: #eef1f6;
  --ink: #16233c;
  --ink-soft: #44536e;
  --line-dark: rgba(170, 191, 217, 0.16);
  --line-light: rgba(22, 35, 60, 0.12);
  --glow: rgba(220, 230, 242, 0.55);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--navy-900);
  color: var(--ice-100);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--steel-400); color: var(--navy-950); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--sans); font-weight: 500;
  font-size: 17px; letter-spacing: 0.34em; text-transform: uppercase;
  color: #fff; padding-left: 2px;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 38px); list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--steel-300); transition: color 0.25s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ice-100); font-size: 26px; cursor: pointer; }

/* ---------- hero ---------- */
header.hero {
  position: relative;
  background: var(--navy-950) url("hero-bg.jpg") center / cover no-repeat;
  padding: calc(72px + clamp(64px, 12vh, 130px)) 0 clamp(72px, 12vh, 130px);
  overflow: hidden;
}
header.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,32,0.62) 0%, rgba(13,22,39,0.7) 45%, rgba(15,26,46,0.94) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.kicker {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--steel-400); margin-bottom: 22px; font-weight: 400;
}
.kicker::before { content: "— "; }
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 64px); line-height: 1.12;
  color: #fff; max-width: 17ch; margin-bottom: 26px;
}
h1 em { font-style: italic; color: var(--steel-300); }
.hero-sub { max-width: 62ch; color: var(--steel-300); font-size: clamp(15.5px, 1.6vw, 17.5px); margin-bottom: 40px; }
.hero-logo { width: clamp(200px, 26vw, 300px); margin-bottom: 34px; filter: drop-shadow(0 0 34px rgba(220,230,242,0.18)); }
.hero-home { text-align: center; }
.hero-home h1, .hero-home .hero-sub, .hero-home .hero-logo { margin-left: auto; margin-right: auto; }
.hero-home .kicker::before { content: ""; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-home .btn-row { justify-content: center; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 15px 34px; transition: all 0.3s;
}
.btn-primary { background: var(--ice-100); color: var(--navy-950); border: 1px solid var(--ice-100); }
.btn-primary:hover { background: transparent; color: var(--ice-100); }
.btn-ghost { background: transparent; color: var(--ice-100); border: 1px solid rgba(220,230,242,0.4); }
.btn-ghost:hover { border-color: var(--ice-100); background: rgba(220,230,242,0.08); }
.btn-dark { background: var(--navy-900); color: var(--ivory); border: 1px solid var(--navy-900); }
.btn-dark:hover { background: transparent; color: var(--navy-900); }

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vh, 110px) 0; }
.section-dark { background: var(--navy-900); }
.section-deep {
  background: var(--navy-950) url("hero-bg.jpg") center / cover no-repeat;
  position: relative;
}
.section-deep::after { content: ""; position: absolute; inset: 0; background: rgba(10,18,32,0.72); }
.section-deep .wrap { position: relative; z-index: 2; }
.section-light { background: var(--ivory); color: var(--ink); }
.section-paper { background: var(--paper); color: var(--ink); }
.section-light .kicker, .section-paper .kicker { color: #7286a3; }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.18;
  color: #fff; margin-bottom: 18px; max-width: 24ch;
}
.section-light h2, .section-paper h2 { color: var(--ink); }
.lede { max-width: 66ch; color: var(--steel-300); font-size: 16.5px; margin-bottom: 14px; }
.section-light .lede, .section-paper .lede { color: var(--ink-soft); }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 26px; margin-top: 48px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(29,44,71,0.55), rgba(15,26,46,0.35));
  padding: 34px 30px;
  text-decoration: none; display: block;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.card:hover { border-color: rgba(170,191,217,0.45); transform: translateY(-4px); }
.card .num {
  font-family: var(--serif); font-style: italic;
  color: var(--steel-400); font-size: 14px; letter-spacing: 0.12em;
  display: block; margin-bottom: 16px;
}
.card h3 {
  font-family: var(--serif); font-weight: 500; font-size: 21px;
  color: #fff; margin-bottom: 12px; line-height: 1.3;
}
.card p { font-size: 14.5px; color: var(--steel-300); }
.card .go { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-400); }
.card:hover .go { color: #fff; }

.section-light .card, .section-paper .card {
  background: #fff; border: 1px solid var(--line-light);
}
.section-light .card h3, .section-paper .card h3 { color: var(--ink); }
.section-light .card p, .section-paper .card p { color: var(--ink-soft); }

.practice-item {
  border-top: 1px solid var(--line-light);
  padding: 44px 0;
  display: grid; grid-template-columns: 110px 1fr; gap: 26px;
}
.practice-item .num { font-family: var(--serif); font-style: italic; color: #7286a3; font-size: 17px; }
.practice-item h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.practice-item p { color: var(--ink-soft); max-width: 62ch; margin-bottom: 16px; }
.practice-item ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 28px; }
.practice-item li { font-size: 14.5px; color: var(--ink-soft); padding-left: 20px; position: relative; }
.practice-item li::before { content: "—"; position: absolute; left: 0; color: var(--steel-400); }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 40px; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; filter: saturate(0.92); }
.founder-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-dark); z-index: -1;
}
.section-light .founder-photo::after, .section-paper .founder-photo::after { border-color: var(--line-light); }
.founder h3 { font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 500; margin-bottom: 4px; }
.founder .role { font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel-400); margin-bottom: 22px; }
.section-light .founder .role, .section-paper .founder .role { color: #7286a3; }
.founder p { margin-bottom: 14px; max-width: 60ch; }
.founder-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tag {
  font-size: 11.5px; letter-spacing: 0.08em; font-weight: 400;
  padding: 7px 14px; border: 1px solid var(--line-dark); color: var(--steel-300);
}
.section-light .tag, .section-paper .tag { border-color: var(--line-light); color: var(--ink-soft); background: #fff; }
.service-note {
  display: flex; align-items: center; gap: 14px; margin-top: 26px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-400);
}
.section-light .service-note, .section-paper .service-note { color: #7286a3; }
.service-note img { height: 16px; }

/* ---------- pillars ---------- */
.pillar { border-top: 1px solid var(--line-dark); padding: 38px 0; display: grid; grid-template-columns: 90px 1fr; gap: 24px; }
.section-light .pillar, .section-paper .pillar { border-color: var(--line-light); }
.pillar .num { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--steel-400); }
.pillar h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.pillar p { max-width: 66ch; font-size: 15px; }
.section-dark .pillar p { color: var(--steel-300); }

/* ---------- engagements ---------- */
.eng-card { border: 1px solid var(--line-light); background: #fff; padding: 36px 32px; }
.eng-card .sector { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #7286a3; margin-bottom: 14px; }
.eng-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.35; }
.eng-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 11px; letter-spacing: 0.06em; padding: 6px 12px; background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line-light); }

/* ---------- tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 34px; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 18px; font-size: 14.5px; border: 1px solid var(--line-light); }
.spec-table th { font-weight: 500; color: var(--ink); width: 38%; background: #fff; }
.spec-table td { color: var(--ink-soft); background: rgba(255,255,255,0.6); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 80px); margin-top: 48px; }
.contact-item { border-top: 1px solid var(--line-light); padding: 22px 0; }
.contact-item .label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #7286a3; margin-bottom: 6px; }
.contact-item a { color: var(--ink); text-decoration: none; font-weight: 400; }
.contact-item a:hover { text-decoration: underline; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: #7286a3; margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; border: 1px solid var(--line-light); background: #fff;
  padding: 14px 16px; font-family: var(--sans); font-size: 15px; color: var(--ink);
  transition: border-color 0.25s; border-radius: 0;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--steel-400); }

/* ---------- CTA band ---------- */
.cta h2 { max-width: none; }
.cta { text-align: center; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .btn { margin-top: 26px; }

/* ---------- footer ---------- */
footer {
  background: var(--navy-950);
  border-top: 1px solid var(--line-dark);
  padding: 64px 0 40px;
  font-size: 14px; color: var(--steel-300);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h5 { font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel-400); margin-bottom: 16px; font-weight: 500; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--steel-300); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-brand img { height: 30px; margin-bottom: 18px; }
.foot-brand p { font-size: 13.5px; max-width: 40ch; color: var(--steel-400); }
.foot-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--steel-400);
}
.vet-flag { display: flex; align-items: center; gap: 10px; }
.vet-flag img { height: 15px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .practice-item { grid-template-columns: 1fr; gap: 8px; }
  .practice-item ul { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 8px; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,18,32,0.97); flex-direction: column;
    padding: 24px clamp(20px, 4vw, 48px) 32px; gap: 20px;
    border-bottom: 1px solid var(--line-dark);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
