/* skeelx.com — v1. Tokens are canonical in brand/tokens.css; keep in sync. */

:root {
  --ink: #0F1115;
  --paper: #F6F5F1;
  --bone: #EDEBE4;
  --gunmetal: #565B64;
  --steel: #7E8795;
  --line: #DDDACF;
  --line-dark: #2A2E36;
  --beam: #FF4D00;
  --beam-deep: #C93D02;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --display: clamp(2.6rem, 6.5vw, 5rem);
  --title: clamp(1.9rem, 3.6vw, 2.9rem);
  --head: clamp(1.25rem, 2vw, 1.5rem);
  --space-section: clamp(5rem, 12vw, 8.5rem);
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.logo img { width: 118px; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.9375rem; color: var(--gunmetal);
  transition: color 150ms var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.btn-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.55rem 1.1rem; border-radius: 6px;
  transition: background 150ms var(--ease);
}
.btn-cta:hover { background: var(--beam); }

/* ---------- overlay header (full-bleed hero pages) ---------- */
.site-head--overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 20; background: transparent; border-bottom: none; }
.site-head--overlay .site-nav a { color: rgba(246, 245, 241, 0.78); }
.site-head--overlay .site-nav a:hover, .site-head--overlay .site-nav a[aria-current="page"] { color: var(--paper); }
.site-head--overlay .btn-cta { background: var(--beam); }
.site-head--overlay .btn-cta:hover { background: var(--ink); }

/* ---------- full-bleed video hero ---------- */
.hero-full { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.hero-full video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,21,.6) 0%, rgba(15,17,21,.3) 42%, rgba(15,17,21,.68) 100%); }
.hero-full .content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero-full h1 { color: var(--paper); text-shadow: 0 1px 24px rgba(15,17,21,.5); }
.hero-full .lede { margin-top: 1.5rem; color: rgba(246, 245, 241, 0.88); text-shadow: 0 1px 16px rgba(15,17,21,.5); }
.hero-full .eyebrow { color: rgba(246, 245, 241, 0.72); }
.hero-full .btn-primary { background: var(--beam); }
.hero-full .btn-primary:hover { background: var(--paper); color: var(--ink); }
.hero-full .btn-ghost { border-color: rgba(246, 245, 241, 0.55); color: var(--paper); }
.hero-full .btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.scroll-hint { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 245, 241, 0.7); text-align: center; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 26px; margin: 0.5rem auto 0; background: rgba(246, 245, 241, 0.5); }
@media (max-width: 760px) {
  .site-head--overlay .btn-cta { display: none; } /* hero's own CTA is in view */
  .hero-full .content { padding-top: 5rem; }
}

/* ---------- type & bits ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gunmetal);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 14px; height: 3px; background: var(--beam); }
h1 { font-size: var(--display); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: var(--title); line-height: 1.1; letter-spacing: -0.015em; font-weight: 600; }
h3 { font-size: var(--head); line-height: 1.25; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--gunmetal); max-width: 52ch; }
p { max-width: var(--measure); }
.muted { color: var(--gunmetal); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 0.8rem 1.5rem; border-radius: 6px; transition: all 180ms var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--beam); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--beam); color: var(--beam-deep); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.2rem; }

.text-link { font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--beam); padding-bottom: 1px; }
.text-link:hover { color: var(--beam-deep); }

/* ---------- sections ---------- */
.hero { padding: var(--space-section) 0; }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.6rem; }
.hero-img { margin-top: 3.2rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.hero-img img { display: block; width: 100%; height: auto; }
.hero-img video { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }

.section { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.section.on-ink { background: var(--ink); color: var(--paper); border-top: none; }
.section.on-ink .eyebrow { color: var(--steel); }
.section.on-ink .muted, .section.on-ink p { color: var(--steel); }
.section.on-ink h2, .section.on-ink h3 { color: var(--paper); }
.sec-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 1.2rem; }
.idx { font-family: var(--mono); font-size: 0.9375rem; color: var(--beam-deep); letter-spacing: 0.08em; }
.section .lede { margin-bottom: 2.5rem; }

/* ---------- tiles (capability preview) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
.tile {
  background: var(--paper); padding: 1.8rem 1.6rem 2rem; text-decoration: none;
  transition: background 180ms var(--ease);
}
.tile:hover { background: var(--bone); }
.tile .idx { display: block; margin-bottom: 1.6rem; }
.tile h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.tile p { font-size: 0.9375rem; color: var(--gunmetal); }

/* ---------- expertise pillars ---------- */
.pillar { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.pillar .thesis { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--gunmetal); font-style: italic; max-width: 52ch; margin-top: 0.6rem; }
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.6rem 3rem; margin-top: 3rem; }
.sub h3 { margin-bottom: 0.6rem; }
.sub p { font-size: 0.9875rem; color: var(--gunmetal); }

/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; margin-top: 2.8rem; }
.proc .step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.section.on-ink .proc .step { border-top-color: var(--line-dark); }
.proc .step .idx { display: block; margin-bottom: 0.9rem; }
.proc .step h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.proc .step p { font-size: 0.9375rem; }
.proc-detail .step { margin-bottom: 3.2rem; }
.proc-detail .step .roles { margin-top: 0.9rem; font-size: 0.9375rem; }
.proc-detail .step .roles strong { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--beam-deep); font-weight: 500; }

/* ---------- work placeholders ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.case-slot {
  border: 1px dashed var(--line); border-radius: 6px; padding: 2rem 1.6rem;
  min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--gunmetal);
}
.case-slot .mono { color: var(--steel); margin-bottom: 0.6rem; }

/* ---------- tick lists ---------- */
.ticks { list-style: none; max-width: var(--measure); }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: 0.55rem; color: var(--gunmetal); font-size: 0.9875rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 14px; height: 3px; background: var(--beam); }
.section.on-ink .ticks li { color: var(--steel); }

/* ---------- prose pages ---------- */
.prose { padding: var(--space-section) 0; }
.prose h2 { margin: 3rem 0 0.9rem; font-size: 1.45rem; }
.prose p + p { margin-top: 1rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--steel); margin-top: var(--space-section); }
.site-foot .wrap { padding-top: 4rem; padding-bottom: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.site-foot img { width: 110px; }
.site-foot h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); font-weight: 500; margin-bottom: 1rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 0.55rem; }
.site-foot a { color: var(--steel); text-decoration: none; font-size: 0.9375rem; transition: color 150ms var(--ease); }
.site-foot a:hover { color: var(--paper); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.05em; }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .subs { gap: 2rem; }
}
