/* Hickman Connect — shared site styles (header, layout primitives, sections)
   Used by: js/site-nav.js (header) and every page that includes it. */

:root {
  --hc-ink: #0b0f1a;
  --hc-ink-2: #1c2233;
  --hc-text: #1f2533;
  --hc-muted: #5f6b85;
  --hc-line: #e3e7ef;
  --hc-bg: #ffffff;
  --hc-bg-alt: #f4f6fa;
  --hc-cyan: #19c2e6;
  --hc-violet: #6f4cff;
  --hc-accent: #ffd400;           /* EY-style yellow accent bar */
  --hc-header-h: 72px;
  --hc-max: 1280px;
  --hc-font: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* The header is fixed, so an anchored section would scroll flush to the top of
   the viewport and sit underneath it — hiding the eyebrow and heading. Offset
   every anchor target by the header height plus a little breathing room. */
:target, [id] { scroll-margin-top: calc(var(--hc-header-h) + 1.5rem); }
body {
  margin: 0;
  font-family: var(--hc-font);
  color: var(--hc-text);
  background: var(--hc-bg);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--hc-header-h);
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { width: min(var(--hc-max), 100% - 3rem); margin: 0 auto; }
.eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--hc-violet); font-weight: 600; margin: 0 0 .8rem;
}
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 1.1rem; color: var(--hc-muted); max-width: 44rem; margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 4px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: var(--hc-ink); color: #fff; }
.btn-primary:hover { background: var(--hc-violet); }
.btn-ghost { border-color: currentColor; color: var(--hc-ink); }
.btn-ghost:hover { background: var(--hc-ink); color: #fff; }
.btn-light { background: #fff; color: var(--hc-ink); }
.btn-light:hover { background: var(--hc-accent); }
.arrow::after { content: "\2192"; font-weight: 400; }

/* ------------------------------------------------------------------ header */
.hc-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--hc-header-h);
  background: var(--hc-ink); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hc-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.hc-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.hc-logo .mark {
  width: 38px; height: 38px; border-radius: 6px;
  background: linear-gradient(135deg, var(--hc-cyan), var(--hc-violet));
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 1rem;
}
.hc-logo .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.05; }
.hc-logo .tag { font-size: .68rem; color: rgba(255,255,255,.6); font-weight: 400; display: block; }

.hc-nav { display: flex; align-items: stretch; height: 100%; margin-left: .5rem; }
.hc-nav > li { list-style: none; position: relative; display: flex; }
.hc-nav, .hc-nav ul { margin: 0; padding: 0; }
.hc-nav > li > a {
  display: flex; align-items: center; gap: .35rem;
  padding: 0 .9rem; text-decoration: none; font-size: .93rem; font-weight: 500;
  color: rgba(255,255,255,.88); border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.hc-nav > li > a .chev { width: 10px; height: 10px; transition: transform .2s; }
.hc-nav > li:hover > a, .hc-nav > li.open > a { color: #fff; border-bottom-color: var(--hc-accent); }
.hc-nav > li.open > a .chev { transform: rotate(180deg); }

/* mega menu */
.hc-mega {
  position: fixed; left: 0; right: 0; top: var(--hc-header-h);
  background: #fff; color: var(--hc-text);
  border-bottom: 1px solid var(--hc-line);
  box-shadow: 0 24px 40px -20px rgba(11,15,26,.35);
  display: none;
}
.hc-nav > li.open > .hc-mega { display: block; }
.hc-mega .wrap { display: grid; grid-template-columns: 1.1fr 3fr; gap: 3rem; padding: 2.2rem 0 2.6rem; height: auto; align-items: start; }
.hc-mega .intro h3 { margin: 0 0 .6rem; font-size: 1.45rem; }
.hc-mega .intro p { margin: 0 0 1.2rem; color: var(--hc-muted); font-size: .95rem; }
.hc-mega .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem 2rem; }
.hc-mega .cols h4 { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-muted); }
.hc-mega .cols li { list-style: none; }
.hc-mega .cols a { display: block; padding: .32rem 0; text-decoration: none; font-size: .95rem; color: var(--hc-text); }
.hc-mega .cols a:hover { color: var(--hc-violet); text-decoration: underline; }

/* Portfolio's navigation action follows its oxblood collection palette. */
.hc-header .hc-mega .intro .btn[href="/work.html"] {
  background: #641e32; border-color: #641e32; color: #fff8f4;
}
.hc-header .hc-mega .intro .btn[href="/work.html"]:hover,
.hc-header .hc-mega .intro .btn[href="/work.html"]:focus-visible {
  background: #401424; border-color: #401424; color: #fff8f4;
}

/* utilities right */
.hc-util { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.hc-search { display: flex; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 0 .5rem 0 .75rem; height: 40px; width: 220px; }
.hc-search input { background: none; border: 0; color: #fff; outline: 0; flex: 1; font: inherit; font-size: .9rem; min-width: 0; }
.hc-search input::placeholder { color: rgba(255,255,255,.5); }
.hc-search svg { width: 16px; height: 16px; opacity: .8; }
/* the magnifier is now a real submit button; keep it looking like the icon did */
.hc-search button { background: none; border: 0; padding: 0 0 0 .35rem; margin: 0; display: grid; place-items: center; color: inherit; cursor: pointer; }
.hc-search button:hover svg { opacity: 1; }
.hc-search button:focus-visible { outline: 2px solid var(--hc-cyan); outline-offset: 2px; border-radius: 3px; }
.hc-util .btn-util { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; }
.hc-util .btn-util:hover { background: #fff; color: var(--hc-ink); }
.hc-burger { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.hc-burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: transform .2s, opacity .2s; }
.hc-header.menu-open .hc-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hc-header.menu-open .hc-burger span:nth-child(2) { opacity: 0; }
.hc-header.menu-open .hc-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hc-search { width: 160px; }
  .hc-nav > li > a { padding: 0 .6rem; font-size: .88rem; }
}
@media (max-width: 900px) {
  .hc-burger { display: block; margin-left: auto; }
  .hc-util { margin-left: 0; }
  .hc-search, .hc-util .btn-util { display: none; }
  .hc-nav {
    display: none; position: fixed; inset: var(--hc-header-h) 0 0 0;
    background: var(--hc-ink); flex-direction: column; overflow-y: auto; padding: .5rem 0 2rem; height: auto;
  }
  .hc-header.menu-open .hc-nav { display: flex; }
  .hc-nav > li { flex-direction: column; }
  .hc-nav > li > a { padding: 1rem 1.5rem; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); justify-content: space-between; font-size: 1.05rem; }
  .hc-mega { position: static; box-shadow: none; background: var(--hc-ink-2); color: #fff; border: 0; }
  .hc-mega .wrap { display: block; padding: 1rem 0 1.5rem; }
  .hc-mega .intro { display: none; }
  .hc-mega .cols { grid-template-columns: 1fr; gap: 1rem; }
  .hc-mega .cols h4 { color: rgba(255,255,255,.55); }
  .hc-mega .cols a { color: #fff; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--hc-bg-alt); }
.section.dark { background: var(--hc-ink); color: #fff; }
.section.dark .lead { color: rgba(255,255,255,.7); }
.section.dark .eyebrow { color: var(--hc-cyan); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--hc-ink); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; min-height: 560px; padding: 4rem 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.05; margin: 0 0 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--hc-cyan), var(--hc-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 36rem; margin: 0 0 2rem; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(25,194,230,.5), transparent 55%), radial-gradient(circle at 75% 70%, rgba(111,76,255,.55), transparent 55%), var(--hc-ink-2); border: 1px solid rgba(255,255,255,.08); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-art.flow-art svg.flow { opacity: 1; }
.hero-art.flow-art { background: #070a14; box-shadow: 0 0 0 1px rgba(62,230,255,.15), 0 30px 80px -30px rgba(62,230,255,.35); }
.hero-art.flow-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ph-label { position: absolute; left: 1rem; bottom: 1rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* generic placeholder graphic */
.ph {
  position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #d9dfec, #eef1f7);
}
.ph::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(11,15,26,.04) 0 12px, transparent 12px 24px); }
.ph.p1 { background: linear-gradient(135deg, #19c2e6, #6f4cff); }
.ph.p2 { background: linear-gradient(135deg, #ffd400, #ff7a59); }
.ph.p3 { background: linear-gradient(135deg, #0b0f1a, #3a4a7a); }
.ph.p4 { background: linear-gradient(135deg, #24d39f, #19c2e6); }
.ph.p5 { background: linear-gradient(135deg, #6f4cff, #ff4f9a); }
.ph .ph-label { color: rgba(255,255,255,.8); }
.ph.has-img { background: #2b1a14; }
.ph.has-img::before { display: none; }
.ph.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* inline diagram (about section) */
.model-art { background: #fff; border: 1px solid var(--hc-line); border-radius: 10px; padding: .6rem; box-shadow: 0 24px 50px -30px rgba(11,15,26,.35); }
.model-art svg { width: 100%; height: auto; display: block; }

/* cards */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--hc-line); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(11,15,26,.35); }
.card .ph { border-radius: 0; }
.card .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hc-violet); font-weight: 600; }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.card p { margin: 0; color: var(--hc-muted); font-size: .93rem; line-height: 1.5; }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--hc-ink); }
.section.dark .card { background: var(--hc-ink-2); border-color: rgba(255,255,255,.08); color: #fff; }
.section.dark .card p { color: rgba(255,255,255,.65); }
.section.dark .card .more { color: var(--hc-cyan); }

/* services list (EY "Services spotlight" style) */
.svc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hc-line); border: 1px solid var(--hc-line); }
.svc a {
  position: relative; isolation: isolate;
  background: #fff; padding: 1.6rem 1.4rem; text-decoration: none; color: inherit;
  min-height: 200px; display: flex; flex-direction: column; gap: .6rem;
  transition: background-color .12s ease, color .12s ease;
}
.svc .num { font-size: .75rem; color: var(--hc-muted); letter-spacing: .12em; transition: color .12s ease; }
.svc h3 { margin: 0; font-size: 1.1rem; }
.svc p { margin: 0; color: var(--hc-muted); font-size: .9rem; transition: color .12s ease; }
.svc .more { margin-top: auto; font-weight: 600; font-size: .88rem; transition: color .12s ease; }

/* pillar image — square tile, capped at its natural 200px */
.svc .svc-art {
  display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 1/1;
  object-fit: cover; margin-bottom: .35rem; border-radius: 8px;
  background: var(--hc-ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: filter .2s ease;
}

/* skill tags — light chip with a solid tint */
.svc .skills { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .8rem; }
.svc .skills span {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 600; letter-spacing: .01em; line-height: 1;
  padding: .3rem .55rem; border-radius: 4px; white-space: nowrap;
  background: #e8f0fb; color: #33405c;
  border: 1px solid #d3e0f2;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

/* hover: invert to brand ink with a cyan/violet accent bar */
.svc a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--hc-cyan), var(--hc-violet));
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.svc a:hover, .svc a:focus-visible { background: var(--hc-ink); color: #fff; }
.svc a:focus-visible { outline: 2px solid var(--hc-cyan); outline-offset: -2px; }
.svc a:hover::after, .svc a:focus-visible::after { transform: scaleX(1); }
.svc a:hover .num, .svc a:focus-visible .num { color: var(--hc-cyan); }
.svc a:hover p, .svc a:focus-visible p { color: rgba(255,255,255,.72); }
.svc a:hover .more, .svc a:focus-visible .more { color: var(--hc-accent); }
.svc a:hover .svc-art, .svc a:focus-visible .svc-art { filter: brightness(1.18) saturate(1.15); }
.svc a:hover .skills span, .svc a:focus-visible .skills span {
  background: rgba(255,255,255,.12); color: #eaf3ff; border-color: rgba(255,255,255,.22);
}

@media (prefers-reduced-motion: reduce) {
  .svc a, .svc a::after, .svc .svc-art, .svc .skills span,
  .svc .num, .svc p, .svc .more { transition: none; }
}

/* split (image + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split .ph { aspect-ratio: 4/3; }

/* roles strip */
.roles { display: flex; flex-wrap: wrap; gap: .6rem; }
.roles a { text-decoration: none; padding: .55rem 1rem; border: 1px solid var(--hc-line); border-radius: 999px; font-size: .9rem; font-weight: 500; background: #fff; }
.roles a:hover { border-color: var(--hc-violet); color: var(--hc-violet); }

/* role cards: compact — small round headshot beside the role and its data need */
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.role-card {
  background: #fff; border: 1px solid var(--hc-line); border-radius: 6px;
  padding: .6rem .7rem; display: grid; grid-template-columns: 40px 1fr;
  gap: .6rem; align-items: start;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.role-card:hover { border-color: var(--hc-violet); box-shadow: 0 10px 20px -14px rgba(11,15,26,.4); }
.role-card .shot {
  position: relative; width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; background: var(--hc-ink-2); flex-shrink: 0;
}
.role-card .shot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
/* fallback only: sits behind the photo, so it shows when the image is absent */
.role-card .shot .initials {
  position: absolute; inset: 0; z-index: 0; display: grid; place-items: center;
  font-size: .62rem; font-weight: 800; color: rgba(255,255,255,.95); letter-spacing: .02em;
  background: linear-gradient(135deg, var(--hc-cyan), var(--hc-violet));
}
.role-card .body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.role-card h3 { margin: 0; font-size: .82rem; line-height: 1.25; }
.role-card .need-label {
  font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hc-violet); font-weight: 700; margin-top: .12rem;
}
.role-card p { margin: 0; font-size: .74rem; line-height: 1.4; color: var(--hc-muted); }

@media (max-width: 1100px) { .role-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .role-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .role-cards { grid-template-columns: 1fr; } }

/* partner logos */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 1rem; }
.logos div { height: 64px; display: grid; place-items: center; border: 1px dashed var(--hc-line); border-radius: 6px; color: var(--hc-muted); font-size: .8rem; font-weight: 600; letter-spacing: .06em; }

/* platform cards: product logo + name */
.platforms { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.platform {
  background: #fff; border: 1px solid var(--hc-line); border-radius: 8px;
  padding: 1rem .6rem .8rem; display: flex; flex-direction: column;
  align-items: center; gap: .55rem; text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.platform:hover { border-color: var(--hc-cyan); box-shadow: 0 16px 30px -22px rgba(11,15,26,.4); transform: translateY(-2px); }
.platform svg { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.platform span { font-size: .78rem; font-weight: 600; color: var(--hc-ink); line-height: 1.3; }
.platform small { font-size: .68rem; color: var(--hc-muted); font-weight: 500; }

@media (max-width: 1100px) { .platforms { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .platforms { grid-template-columns: repeat(3, 1fr); } }

/* capability cards: icon + what I do, sized between a platform chip and a service card */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1.6rem; }
.cap {
  background: #fff; border: 1px solid var(--hc-line); border-radius: 8px;
  padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cap:hover { border-color: var(--hc-violet); box-shadow: 0 16px 30px -22px rgba(11,15,26,.4); transform: translateY(-2px); }
.cap .ico {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(25,194,230,.12), rgba(111,76,255,.16));
  flex-shrink: 0;
}
.cap .ico svg { width: 21px; height: 21px; display: block; }
.cap .ico .s1 { stroke: var(--hc-violet); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cap .ico .s2 { stroke: var(--hc-cyan);   fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cap .ico .f1 { fill: var(--hc-accent); }
.cap h3 { margin: 0; font-size: .93rem; line-height: 1.3; }
.cap p { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--hc-muted); }

@media (max-width: 1100px) { .caps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .caps { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .platforms { grid-template-columns: repeat(2, 1fr); } }

/* news list */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news article { border-top: 3px solid var(--hc-accent); padding-top: 1rem; }
.news time { font-size: .78rem; color: var(--hc-muted); letter-spacing: .08em; text-transform: uppercase; }
.news h3 { margin: .4rem 0 .5rem; font-size: 1.08rem; line-height: 1.35; }
.news p { margin: 0; color: var(--hc-muted); font-size: .92rem; }

/* newsletter */
.newsletter .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.newsletter form { display: flex; gap: .6rem; }
.newsletter input { flex: 1; padding: .85rem 1rem; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; font: inherit; }

/* contact form: stacked fields, inline validation and a status line */
.contact-form { display: flex; flex-direction: column; gap: .6rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06);
  color: #fff; font: inherit; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--hc-cyan); outline-offset: 1px; border-color: transparent; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border-color: #ff4f9a; }
.contact-form button { align-self: flex-start; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
/* honeypot: off-screen rather than display:none, which some bots detect */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; line-height: 1.5; margin: 0; min-height: 1.2em; }
.form-status.ok { color: #7fe3b0; }
.form-status.err { color: #ff9ec4; }
.form-note { font-size: .78rem; color: rgba(255,255,255,.5); margin: .2rem 0 0; }
.form-note a { color: rgba(255,255,255,.7); }

/* footer */
.hc-footer { background: #05070d; color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; font-size: .9rem; }
.hc-footer .cols { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.hc-footer h4 { color: #fff; margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.hc-footer ul { list-style: none; margin: 0; padding: 0; }
.hc-footer li { padding: .22rem 0; }
.hc-footer a { text-decoration: none; }
.hc-footer a:hover { color: #fff; text-decoration: underline; }
.hc-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: rgba(255,255,255,.5); }

/* ------------------------------------------------------------------ people */
.person-card { text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--hc-line); border-radius: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.person-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgba(11,15,26,.35); }
.person-card .photo { aspect-ratio: 1/1; position: relative; }
.person-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.person-card .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: rgba(255,255,255,.85); }
.person-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.person-card .practice { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hc-violet); font-weight: 600; }
.person-card h3 { margin: .3rem 0 .15rem; font-size: 1.15rem; }
.person-card .role { color: var(--hc-muted); font-size: .9rem; }
.person-card .links { margin-top: .8rem; display: flex; gap: 1rem; font-size: .85rem; font-weight: 600; }
.section.dark .person-card { background: var(--hc-ink-2); border-color: rgba(255,255,255,.08); color: #fff; }
.section.dark .person-card .role { color: rgba(255,255,255,.65); }
.section.dark .person-card .practice { color: var(--hc-cyan); }

.profile-hero { background: var(--hc-ink); color: #fff; }
.profile-hero .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0; }
.profile-hero .photo { aspect-ratio: 1/1; border-radius: 10px; position: relative; overflow: hidden; }
.profile-hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.profile-hero .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,.85); }
.profile-hero h1 { margin: 0 0 .3rem; font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; line-height: 1.05; }
.profile-hero .role { font-size: 1.15rem; color: var(--hc-cyan); margin: 0 0 1rem; }
.profile-hero .tagline { font-size: 1.2rem; color: rgba(255,255,255,.75); max-width: 40rem; margin: 0 0 1.5rem; }
.profile-hero .contact { display: flex; gap: .6rem; flex-wrap: wrap; }

.profile-tabs { position: sticky; top: var(--hc-header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--hc-line); }
.profile-tabs .wrap { display: flex; gap: 1.6rem; overflow-x: auto; }
.profile-tabs a { text-decoration: none; padding: .95rem 0; font-size: .9rem; font-weight: 600; color: var(--hc-muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.profile-tabs a:hover { color: var(--hc-ink); border-bottom-color: var(--hc-accent); }

.bio { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.bio p { font-size: 1.05rem; line-height: 1.65; margin: 0 0 1rem; }
.aside h4 { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hc-muted); }
.aside ul { margin: 0 0 1.6rem; padding: 0; list-style: none; }
.aside li { padding: .3rem 0; border-bottom: 1px solid var(--hc-line); font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips span { padding: .35rem .75rem; border: 1px solid var(--hc-line); border-radius: 999px; font-size: .85rem; background: #fff; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--hc-line); }
.timeline li { position: relative; padding: 0 0 1.8rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--hc-violet); }
.timeline .when { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hc-muted); }
.timeline h3 { margin: .2rem 0 .1rem; font-size: 1.1rem; }
.timeline .org { color: var(--hc-violet); font-weight: 600; font-size: .95rem; }
.timeline p { margin: .4rem 0 0; color: var(--hc-muted); font-size: .95rem; }

.svc-4 { grid-template-columns: repeat(4, 1fr); }
.practice-block { padding: 3rem 0; border-top: 1px solid var(--hc-line); }
.practice-block:first-of-type { border-top: 0; }
.practice-block .lead-line { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; font-size: .95rem; color: var(--hc-muted); }
.practice-block .lead-line a { font-weight: 600; color: var(--hc-ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; }

@media (max-width: 900px) {
  .profile-hero .wrap { grid-template-columns: 1fr; }
  .profile-hero .photo { max-width: 240px; }
  .bio { grid-template-columns: 1fr; }
  .svc-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .svc-4 { grid-template-columns: 1fr; } }

/* preview ribbon (remove when live) */
.preview-ribbon { position: fixed; left: 1rem; bottom: 1rem; z-index: 1100; background: #ff4f9a; color: #fff; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: .45rem .9rem; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.25); pointer-events: none; }

/* responsive */
@media (max-width: 1100px) {
  .grid-5, .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .svc { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .hc-footer .cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .grid-3, .grid-4, .grid-5, .grid-6, .news { grid-template-columns: 1fr 1fr; }
  .split, .newsletter .wrap { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-5, .grid-6, .news, .svc { grid-template-columns: 1fr; }
  .logos { grid-template-columns: 1fr 1fr; }
  .hc-footer .cols { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
}
