/* ==========================================================================
   Julian White — AI Consultant
   Design tokens
   ========================================================================== */

:root {
  --ink: #16181d;
  --ink-soft: #3a3d45;
  --muted: #666a73;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --line: #e6e2d8;
  --line-strong: #d8d2c2;
  --gold: #9c7c3c;
  --gold-soft: #c9a96e;
  --gold-tint: #f3ead9;
  --dark: #14151a;
  --dark-raised: #1c1e25;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 460; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--dark);
  color: #fdfaf3;
  border-color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-on-dark {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.btn-on-dark:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-inner {
  max-width: 620px;
}

.hero-portrait {
  position: relative;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -18px;
  bottom: -18px;
  left: 18px;
  border: 1px solid var(--gold-soft);
  z-index: 0;
}

.hero-portrait img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  filter: grayscale(1);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 2em;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-border-top {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5em;
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* Pillars / values grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-soft);
  margin-bottom: 0.4em;
}

.pillar h3 {
  margin-bottom: 0.4em;
}

.pillar p {
  font-size: 0.95rem;
  margin: 0;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  margin-bottom: 0;
}

.card p {
  font-size: 0.96rem;
  flex-grow: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Topic / list cards (speaking) */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.topic {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
}

.topic h3 {
  margin-bottom: 0.35em;
  font-size: 1.15rem;
}

.topic p {
  font-size: 0.95rem;
  margin: 0;
}

/* Process steps */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.process-step {
  border-left: 2px solid var(--gold-soft);
  padding-left: 22px;
}

.process-phase {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}

.process-step p {
  font-size: 0.95rem;
  margin: 0;
}

/* Simple bullet list */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--gold);
}

/* Company entries */
.company-list {
  display: grid;
  gap: 0;
}

.company-entry {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.company-entry:last-child {
  border-bottom: 1px solid var(--line);
}

.company-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.company-role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.2em;
}

.company-body p {
  font-size: 0.98rem;
  margin: 0;
}

.company-logo {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 10px;
}

.company-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.company-brand .company-logo {
  margin-bottom: 0;
}

.page-note {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
  max-width: 640px;
}

/* Formats list (speaking) */
.formats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.format-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--dark);
  color: #f4f1e8;
  padding: 80px 0;
}

.cta-band h2 {
  color: #f9f7f1;
}

.cta-band .lede {
  color: #b9b7ad;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.cta-note {
  font-size: 0.85rem;
  color: #8b8a80;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .pillars-grid,
  .cards-grid,
  .topics-grid,
  .process,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .company-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-cta .btn-ghost-label {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }

  .pillars-grid,
  .cards-grid,
  .topics-grid,
  .process,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-portrait {
    max-width: 220px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
