/* Capital-Hascon — shared styles (Ink Chevron identity) */
:root {
  --ink: #2d2a25;
  --ink-soft: #4a453d;
  --muted: #6b6257;
  --cream: #f4e9d8;
  --cream-deep: #eadbc3;
  --paper: #ffffff;
  --rust: #8a4210;
  --rust-tint: #fdf3ec;
  --line: rgba(45, 42, 37, 0.14);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(45, 42, 37, 0.06), 0 8px 24px rgba(45, 42, 37, 0.06);
  --display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; font-weight: 500; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: #e7b48c; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 680px; }
.section--ink .lede { color: rgba(244, 233, 216, 0.78); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(244, 233, 216, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.brand-tag { display: block; font-family: var(--body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 12px; padding: 8px 12px; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 16px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; }
  .brand-tag { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 500; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: #1c1a17; color: var(--cream); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.section--ink .btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.section--ink .btn--ghost { color: var(--cream); border-color: rgba(244,233,216,.5); }
.section--ink .btn--ghost:hover { background: rgba(244,233,216,.08); }
.btn .chev { width: 14px; height: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero-card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px; display: grid; place-items: center; aspect-ratio: 1 / 1;
}
.hero-card svg { width: 62%; }
.page-hero { padding: 80px 0 48px; }
.page-hero h1 { max-width: 820px; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 260px; padding: 32px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 56px 0 32px; }
}

/* ---------- Badges / pills ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rust-tint); color: var(--rust);
  font-weight: 500; font-size: 0.86rem; padding: 7px 14px; border-radius: 999px;
}
.pill--ink { background: var(--ink); color: var(--cream); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); position: relative;
}
.section--paper .card { background: var(--cream); box-shadow: none; }
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .num {
  display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 12px;
  background: var(--rust-tint); color: var(--rust); border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; margin-bottom: 18px;
}
.section--paper .card .num { background: var(--paper); }
.icon-box {
  width: 52px; height: 52px; border: 2px solid var(--ink); border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon-box svg { width: 24px; height: 24px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px;
  border-right: 2px solid var(--rust); border-top: 2px solid var(--rust); transform: rotate(45deg);
}
.section--ink .ticks li::before { border-color: #e7b48c; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; color: var(--ink); }
.stat span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 16px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Split / two-column ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.split--form { grid-template-columns: 1.15fr 0.85fr; }
@media (max-width: 860px) { .split, .split--form { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Partner cards ---------- */
.partner { display: flex; flex-direction: column; }
.partner .role { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.partner .link { margin-top: auto; padding-top: 16px; font-weight: 500; }

/* ---------- Case studies ---------- */
.case {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 280px 1fr; overflow: hidden;
}
.case + .case { margin-top: 24px; }
.case-side { background: var(--ink); color: var(--cream); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.case-side .k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,233,216,.6); display: block; }
.case-side .v { font-weight: 500; }
.case-body { padding: 36px 40px; }
.case-body h3 { font-size: 1.85rem; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.case-tags span { font-size: 0.8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.case--feature .case-side { background: var(--rust); }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; }
  .case-side { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; padding: 24px; }
  .case-body { padding: 28px 24px; }
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-row button {
  font: inherit; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--cream); }
tr:last-child td { border-bottom: 0; }
td.code { font-family: var(--display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.avatar {
  width: 120px; height: 120px; border-radius: 28px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-family: var(--display); font-weight: 500; font-size: 2.6rem;
}
.person .title { color: var(--rust); font-weight: 500; margin-bottom: 14px; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } .avatar { width: 88px; height: 88px; font-size: 1.8rem; border-radius: 22px; } }

/* ---------- Contact ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: var(--paper); }
textarea { min-height: 150px; resize: vertical; }
.apply-card { padding: 40px; }
@media (max-width: 640px) { .apply-card { padding: 28px 20px; } }
.choice { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice legend { font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
.choice-row { display: flex; gap: 10px; }
.choice-pill { margin: 0; cursor: pointer; }
.choice-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-pill span {
  display: inline-block; min-width: 88px; text-align: center; padding: 11px 22px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--cream); font-weight: 400;
}
.choice-pill input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choice-pill input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.file-drop {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 18px 20px; cursor: pointer;
  background: var(--cream); border: 1.5px dashed rgba(45, 42, 37, 0.35); border-radius: 14px; font-weight: 300;
}
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-drop:focus-within { outline: 2px solid var(--rust); outline-offset: 2px; }
.file-drop.is-over, .file-drop:hover { border-color: var(--ink); background: var(--paper); }
.file-drop.has-file { border-style: solid; border-color: var(--ink); }
.file-drop-text { min-width: 0; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.92rem; color: var(--muted); }
.form-status.is-error { color: var(--rust); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.apply-done { padding: 24px; border-radius: var(--radius-sm); background: var(--cream); }
.apply-done h3 { margin-bottom: 6px; }

.contact-line {display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(244,233,216,.16); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .k { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,233,216,.6); display: block; }
.contact-line a { color: var(--cream); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: var(--cream); border-radius: 40px; padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--cream); margin: 0 0 8px; }
.cta-band p { color: rgba(244,233,216,.75); margin: 0; max-width: 560px; }
.cta-band .btn--solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; border-radius: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(244,233,216,.75); padding: 64px 0 32px; margin-top: 88px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(244,233,216,.75); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.site-footer .brand { color: var(--cream); margin-bottom: 16px; }
.site-footer .brand-tag { color: rgba(244,233,216,.55); display: block; }
.footer-base { border-top: 1px solid rgba(244,233,216,.14); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: rgba(244,233,216,.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.note { font-size: 0.88rem; color: var(--muted); }
