/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #f9f5ec;
  color: #212527;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

blockquote,
figure {
  margin: 0;
}

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg-primary: #f9f5ec;
  --bg-secondary: #f6edd9;
  --text: #212527;
  --accent-blue: #3657e9;
  --accent-orange: #ec6137;
  --line: #212527;

  --container-max: 1200px;
  --container-pad: clamp(24px, 5vw, 64px);
  --section-pad: clamp(72px, 10vw, 128px);
}

/* ============================================================
   LAYOUT UTILITY
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 15px 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.18s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
}

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

/* ============================================================
   SHARED SECTION HEADER
   ============================================================ */
.section-eyebrow {
  display: block;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text);
  opacity: 0.45;
  margin-bottom: 14px;
}

.section-title {
  font-family: "Lora", serif;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.section-header {
  padding-block: var(--section-pad) 56px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.65;
  transition: opacity 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  outline: none;
}

.nav-cta {
  opacity: 1 !important;
  background-color: var(--accent-blue);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background-color 0.18s ease !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--accent-orange);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100svh - 64px);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(64px, 8vw, 100px);
  padding-inline-end: clamp(40px, 5vw, 72px);
  /* Align left edge with the container on wide viewports */
  padding-inline-start: max(
    var(--container-pad),
    calc((100vw - var(--container-max)) / 2)
  );
}

.hero-right {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-h1 {
  font-family: "Lora", serif;
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-greeting {
  display: block;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.65;
}

.hero-sub {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.68;
  color: var(--text);
  opacity: 0.78;
  max-width: 500px;
  margin-bottom: 48px;
}

/* ============================================================
   LOGO TICKER
   ============================================================ */
.logo-bar {
  overflow: hidden;
  border-top: 1px solid;
  padding-block: 26px;
  background-color: var(--bg-primary);
}

.ticker-wrapper {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker-track img {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(100%) opacity(0.5);
}

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

/* ============================================================
   ANCHOR TESTIMONIAL
   ============================================================ */
.anchor-testimonial {
  padding-block: var(--section-pad);
}

.anchor-figure {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.anchor-quote {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: clamp(21px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  quotes: none;
  margin-bottom: 36px;
}

.anchor-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
}

.anchor-caption .cite-name {
  font-weight: 600;
  color: var(--text);
}

.anchor-caption .cite-divider {
  opacity: 0.3;
}

.anchor-caption .cite-role {
  color: var(--text);
  opacity: 0.55;
}

/* ============================================================
   KEY STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-max);
  margin-inline: auto;
  /* The dark background + 1px gap creates vertical hairlines */
  background-color: var(--line);
  gap: 0 1px;
}

.stat-item {
  background-color: var(--bg-primary);
  padding: clamp(40px, 6vw, 64px) var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.stat-number {
  font-family: "Lora", serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  opacity: 0.5;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding-bottom: var(--section-pad);
}

/* Dark background + 1px gap = hairlines */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--line);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  background-color: var(--bg-primary);
  padding: clamp(40px, 5vw, 64px);
}

.service-heading {
  font-family: "Lora", serif;
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

.service-body {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  opacity: 0.72;
  max-width: 420px;
}

/* ============================================================
   HOW I WORK
   ============================================================ */
.how-i-work {
  border-top: 1px solid var(--line);
  padding-bottom: var(--section-pad);
}

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hiw-item {
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
}

.hiw-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.hiw-heading {
  font-family: "Lora", serif;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 16px;
}

.hiw-body {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  opacity: 0.72;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  border-top: 1px solid var(--line);
  padding-bottom: var(--section-pad);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid rgba(33, 37, 39, 0.12);
  border-radius: 6px;
  padding: clamp(32px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.testimonial-quote {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.76;
  color: var(--text);
  opacity: 0.85;
  quotes: none;
}

.testimonial-cite {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
}

.testimonial-cite .cite-name {
  font-weight: 600;
  color: var(--text);
}

.testimonial-cite .cite-role {
  color: var(--text);
  opacity: 0.5;
}

/* ============================================================
   ABOUT ME
   ============================================================ */
.about {
  border-top: 1px solid var(--line);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: 580px;
}

.about-left {
  padding: var(--section-pad) var(--container-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left .section-title {
  margin-top: 14px;
  margin-bottom: 32px;
}

.about-left p {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.76;
  color: var(--text);
  opacity: 0.78;
  max-width: 460px;
  margin-bottom: 20px;
}

.about-left p:last-child {
  margin-bottom: 0;
}

.about-right {
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  border-top: 1px solid var(--line);
  padding-block: var(--section-pad);
}

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

.cta-headline {
  font-family: "Lora", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}

.cta-sub {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text);
  opacity: 0.72;
  margin-bottom: 32px;
}

.cta-contact-links {
  display: flex;
  gap: 32px;
}

.cta-contact-link {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

.cta-contact-link:hover,
.cta-contact-link:focus-visible {
  opacity: 0.6;
  outline: none;
}

.cta-footnote {
  margin-top: 20px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  color: var(--text);
  opacity: 0.4;
  letter-spacing: 0.01em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}

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

.footer-name {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  color: var(--text);
  opacity: 0.5;
  transition: opacity 0.15s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 1;
  outline: none;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Testimonials: 2-col → 1-col */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* About split: side by side → stacked */
  .about-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-right {
    height: 72vw;
    min-height: 340px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 680px)
   ============================================================ */
@media (max-width: 680px) {
  /* Nav: hide text links, keep CTA */
  .nav-links li:not(:last-child) {
    display: none;
  }

  .nav-links {
    gap: 0;
  }

  /* Hero: stack vertically */
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right {
    height: 72vw;
    min-height: 340px;
    order: -1; /* image on top */
    border-left: none;
    border-bottom: 1px solid var(--line);
  }

  .hero-left {
    padding: 48px var(--container-pad);
  }

  .hero-sub {
    max-width: none;
  }

  /* Stats: stack to 1 col */
  .stats-inner {
    grid-template-columns: 1fr;
    gap: 1px 0;
  }

  /* Services: stack to 1 col */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* How I Work: stack to 1 col */
  .hiw-grid {
    grid-template-columns: 1fr;
  }

  .hiw-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  /* Footer: stack */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 420px)
   ============================================================ */
@media (max-width: 420px) {
  .hero-h1 {
    font-size: 36px;
  }

  .anchor-quote {
    font-size: 19px;
  }

  .stat-number {
    font-size: 40px;
  }

  .cta-headline {
    font-size: 42px;
  }

}
