/* ---------------------------------------------
   Tokens
--------------------------------------------- */
:root {
  --bg: #14181C;
  --bg-elevated: #1B2026;
  --bg-elevated-2: #20262D;
  --text: #F4F1EA;
  --text-muted: #9AA3AB;
  --accent: #F2624B;
  --accent-2: #F0A438;
  --accent-3: #2F9E93;
  --accent-4: #7C6CF0;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.24);
  --gradient: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 100%);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --wrap: 1160px;
  --radius: 4px;
}

/* ---------------------------------------------
   Reset
--------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

/* ---------------------------------------------
   Signature: Sprint Line (scroll progress)
--------------------------------------------- */
.progress-line {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 1000;
  transition: width 60ms linear;
}

/* ---------------------------------------------
   Type utilities
--------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--accent-2);
  margin: 0 0 16px;
}

.accent-name { color: var(--accent); }

.hero-title .accent-name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: text-decoration-color 900ms ease-out 500ms;
}
.hero-title.is-visible .accent-name {
  text-decoration-color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .accent-name {
    transition: none;
    text-decoration-color: var(--accent);
  }
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #241206;
}
.btn-primary:hover { background: #F87A64; }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(20, 24, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 160ms ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero {
  padding: 96px 0 64px;
}
.hero-inner {
  max-width: 1040px;
}
.hero-title {
  font-size: clamp(36px, 5.4vw, 66px);
  text-wrap: balance;
  margin-bottom: 24px;
}
.hero-position {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--text);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 16px;
}
.hero-location {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* ---------------------------------------------
   Trust bar
--------------------------------------------- */
.marquee-bar {
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 58s linear infinite;
}
.marquee-bar:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group span:not(.marquee-sep) {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text);
  white-space: nowrap;
  padding: 0 24px;
}
.marquee-sep {
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}
.marquee-sep:nth-of-type(8n+4) { color: var(--accent-2); }
.marquee-sep:nth-of-type(8n+6) { color: var(--accent-3); }
.marquee-sep:nth-of-type(8n) { color: var(--accent-4); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------------------------------------------
   Sections (generic)
--------------------------------------------- */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--bg-elevated); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); font-size: 17px; }

/* ---------------------------------------------
   Who I Help
--------------------------------------------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.who-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.who-item p {
  font-size: 16px;
  color: var(--text);
  margin: 0;
}
.who-title {
  font-weight: 600;
  margin-bottom: 6px !important;
}
.who-mark {
  flex-shrink: 0;
  color: var(--accent);
}
.who-mark svg {
  width: 24px;
  height: 24px;
  display: block;
}
.who-grid .who-item:nth-child(3n+2) .who-mark { color: var(--accent-2); }
.who-grid .who-item:nth-child(3n+3) .who-mark { color: var(--accent-3); }

/* ---------------------------------------------
   Work
--------------------------------------------- */
.work-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.work-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}

.case-list {
  display: flex;
  flex-direction: column;
}
.case-row {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.case-row:first-child { padding-top: 0; }
.case-row:last-child { border-bottom: none; padding-bottom: 0; }
.case-row-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.case-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.case-row:nth-child(1) .case-num { color: var(--accent); }
.case-row:nth-child(2) .case-num { color: var(--accent-2); }
.case-row:nth-child(3) .case-num { color: var(--accent-3); }
.case-row:nth-child(4) .case-num { color: var(--accent-4); }
.case-row-line {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.case-row .work-tag { flex-shrink: 0; }
.case-row h3 {
  font-size: 26px;
  margin-bottom: 14px;
  max-width: 640px;
}
.case-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.case-badges li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------------------------------------------
   Services
--------------------------------------------- */
.pillar-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), border-color 320ms ease, box-shadow 320ms ease;
}
.pillar:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}
.pillar:nth-child(3n+2):hover { border-color: var(--accent-2); }
.pillar:nth-child(3n+3):hover { border-color: var(--accent-3); }
.pillar-num {
  position: absolute;
  top: -22px;
  right: -8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 132px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 320ms ease, transform 320ms ease;
}
.pillar:hover .pillar-num { opacity: 0.22; transform: translateY(-4px); }
.pillar:nth-child(3n+2) .pillar-num { color: var(--accent-2); }
.pillar:nth-child(3n+3) .pillar-num { color: var(--accent-3); }
.pillar-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pillar-body h3 {
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.25;
  min-height: 2.5em;
  margin-bottom: 12px;
}
.pillar-desc {
  color: var(--text-muted);
  font-size: 15px;
  min-height: 4.65em;
  margin-bottom: 24px;
}
.pillar-items {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.pillar-items li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text);
}
.pillar-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------------------------------------------
   About
--------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-visual {
  position: sticky;
  top: 110px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  object-position: 50% 32%;
}
.about-content h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; max-width: 480px; }
.about-lede {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 560px;
}
.about-lede-highlight {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  transition: text-decoration-color 900ms ease-out 250ms;
}
.about-lede-highlight.is-visible {
  text-decoration-color: var(--accent);
}

/* ---------------------------------------------
   Book a call CTA band
--------------------------------------------- */
.call-band {
  background: var(--gradient);
  padding: 90px 0;
}
.call-band-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.call-band-inner h2 {
  color: #1B0F06;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 20px;
}
.call-band-sub {
  color: rgba(27, 15, 6, 0.75);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 10px;
}
.call-band-sub:last-of-type { margin-bottom: 32px; }
.call-band-btn {
  background: #1B0F06;
  color: var(--text);
  font-size: 16px;
  padding: 16px 36px;
}
.call-band-btn:hover { background: #2B1B0E; }

/* ---------------------------------------------
   Contact
--------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-details {
  margin-top: 40px;
  display: grid;
  gap: 18px;
}
.contact-details li {
  display: flex;
  gap: 16px;
  font-size: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-details span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-details a { transition: color 160ms ease; }
.contact-details a:hover { color: var(--accent); }
.contact-location-note {
  margin-top: 32px;
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg-elevated-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-2);
}
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.form-note-success { color: var(--accent-3); }
.form-note-error { color: var(--accent); }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-copy p { margin: 0; }
.footer-service-area {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 6px !important;
  opacity: 0.75;
}
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; color: var(--text-muted); }
.footer-social svg { width: 20px; height: 20px; display: block; }
.footer-social:hover { color: var(--text); }

/* ---------------------------------------------
   Scroll reveal
--------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { position: static; width: 140px; }
  .contact-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .pillar-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }
  .nav.is-open { max-height: 420px; }
  .nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }
  .case-row { padding: 32px 0; }
  .case-row-head { flex-wrap: wrap; gap: 10px; }
  .case-row-line { display: none; }
  .case-num { font-size: 30px; }
  .case-row h3 { font-size: 22px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
}
