/* ============================================================
   KC.SYSTEMS / V1.0 — khalilcadi.com  (v2)
   Engineering-spec brutalism. Tokens from brand/BRAND.md.
   ============================================================ */

:root {
  --bg:        #131313;  /* Deep Black — never pure #000        */
  --surface:   #1A1A1A;  /* secondary surface — cards, entries  */
  --text:      #E5E2E1;  /* Off-White — never pure #FFF         */
  --graphite:  #353534;  /* borders, dividers, grid lines       */
  --muted:     #CAC6BE;  /* secondary text                      */
  --accent:    #FF6B35;  /* Signal Orange — accent only, rare   */

  --grid:      32px;     /* background grid unit                */

  --section:   96px;     /* vertical rhythm between sections    */
  --maxw:      960px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;          /* borderRadius: 0 everywhere */
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* 32px technical grid — slightly more present than v1 (~0.25),
     warmth comes from perceptible TEXTURE, not warm colour */
  background-image:
    linear-gradient(to right,  rgba(53,53,52,0.30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53,53,52,0.30) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-position: center top;
}

a { color: inherit; }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section) 0;
  border-top: 1px solid var(--graphite);   /* neutral section divider */
}

/* ---------- monospace bracket labels ---------- */

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
}

.topbar__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 32px 12px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.7;
}

.topbar__rule {
  height: 1px;
  background: var(--accent);
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ============================================================
   1. HERO — promise before identity
   ============================================================ */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 120px 0 56px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin: 0 0 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 11vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.3;
  opacity: 0.8;
  max-width: 24ch;
  margin: 0;
}

.hero__signoff {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin: 88px 0 0;
}

/* ============================================================
   2. NOW — 3-card grid with 1px hairline gutters
   ============================================================ */

.now__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--graphite);   /* gutters show through */
  border: 1px solid var(--graphite);
}

.card {
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.card__body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  margin: auto 0 0;
}

.card__meta a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s linear, color 0.12s linear;
}

.card__meta a:hover,
.card__meta a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--accent);
  outline: none;
}

/* ============================================================
   3. THINGS I'VE BUILT
   ============================================================ */

.built__intro {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 48px;
}

.built__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.built__item {
  padding: 32px 0;
  border-top: 1px solid var(--graphite);
}

/* short orange accent rule introducing each entry (kept rare / short) */
.built__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  padding-top: 20px;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.built__name::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 1px;
  background: var(--accent);
}

.built__year {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.built__desc {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  max-width: 68ch;
  margin: 0;
}

/* ============================================================
   4. PERSPECTIVE — quiet manifesto
   ============================================================ */

.perspective__line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 3vw, 22px);
  line-height: 1.35;
  max-width: 52ch;
  margin: 0;
}

.perspective__rule {
  display: block;
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 28px 0;
}

/* ============================================================
   5. TALK
   ============================================================ */

.talk__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.talk__body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  margin: 24px 0 24px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  transition: background 0.12s linear, color 0.12s linear;
}

.btn:hover,
.btn:focus-visible {
  background: var(--bg);
  color: var(--accent);
  outline: none;
}

.talk__email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
  margin: 0;
}

.talk__email a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s linear;
}

.talk__email a:hover,
.talk__email a:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

/* ============================================================
   6. ELSEWHERE / footer
   ============================================================ */

.elsewhere__list {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.elsewhere__list li {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.elsewhere__list .k    { color: var(--muted); }
.elsewhere__list .arrow{ color: var(--accent); padding: 0 12px; }

.elsewhere__list a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s linear;
}

.elsewhere__list a:hover,
.elsewhere__list a:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

.footer {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.5;
}

/* ============================================================
   RESPONSIVE — single column, tighter rhythm
   ============================================================ */

@media (max-width: 720px) {
  .now__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section: 64px; }

  .wrap { padding: 0 20px; }
  .topbar__inner { padding: 20px 20px 10px; }
  .topbar__rule  { margin: 0 20px; }

  .hero {
    min-height: 60vh;
    padding: 104px 0 40px;
  }
  .hero__signoff { margin-top: 56px; }

  .built__item     { padding: 28px 0; }
}
