/* ============================================================
   Minimal modern reset
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --text: #0A0A0A;
  --muted: #666666;
  --hairline: #EAEAEA;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ============================================================
   Base
   ============================================================ */
body {
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: #0A0A0A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 120ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* Selection */
::selection {
  background: #0A0A0A;
  color: #FFFFFF;
}

::-moz-selection {
  background: #0A0A0A;
  color: #FFFFFF;
}

/* Focus — hairline ring on keyboard nav only */
:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid #0A0A0A;
  outline-offset: 4px;
}

/* Mono baseline */
.mono {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ============================================================
   Home page — shared shell (used by index-v3.html)
   ============================================================ */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #FFFFFF;
}

.home__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.home__nameplate {
  text-align: center;
  max-width: 1100px;
  width: 100%;
}

.home__footer {
  text-align: center;
  padding: 32px 24px 48px;
}

.home__contact {
  font-size: 14px;
  color: #666666;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.home__contact a {
  color: #0A0A0A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 120ms ease;
}

.home__contact a:hover {
  text-decoration-thickness: 2px;
}

.home__separator {
  color: #CCCCCC;
}

@media (max-width: 768px) {
  .home__main {
    padding: 24px;
  }

  .home__footer {
    padding: 24px 20px 32px;
  }

  .home__contact {
    flex-direction: column;
    gap: 8px;
  }

  .home__separator {
    display: none;
  }
}

/* ============================================================
   About page — editorial two-column layout
   Strict type scale: 32 / 17 / 15 / 13 / 12 (+ mono 15)
   Weights: 400, 500, italic only
   Colors: #0A0A0A, #666666, #EAEAEA
   ============================================================ */

.about {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 48px 160px;
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .about {
    max-width: 100%;
    padding: 56px 24px 80px;
  }
}

/* Each section is its own 2-column grid so sticky labels scope per-section.
   (Kept from v5 — `display: contents` on sections breaks sticky scope
   because labels then stick relative to the full .about container.) */
.about__section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 64px;
}

@media (max-width: 768px) {
  .about__section {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Section label — left margin, sticky within its own section */
.about__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  padding-top: 8px;
  position: sticky;
  top: 32px;
  align-self: start;
}

@media (max-width: 768px) {
  .about__label {
    position: static;
    margin-bottom: 12px;
    padding-top: 0;
  }
}

.about__content {
  min-width: 0;
}

/* Section spacing — desktop: 80px above hairline + 80px below.
   Margin-top on the section creates breathing room ABOVE the hairline
   (the border-top is on .about__content, which sits at the top of the
   section's content column — without the margin, the hairline would
   touch the previous section's last paragraph).
   Mobile: hairline on the section itself so it reads as a section separator
   (placing it on content alone on mobile puts the rule visually between the
   label and its own content, breaking the grouping). */
.about__section + .about__section {
  margin-top: 80px;
}

.about__section + .about__section .about__label {
  padding-top: 80px;
}

.about__section + .about__section .about__content {
  padding-top: 80px;
  border-top: 1px solid #EAEAEA;
  margin-top: 0;
}

@media (max-width: 768px) {
  .about__section + .about__section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #EAEAEA;
  }

  .about__section + .about__section .about__label,
  .about__section + .about__section .about__content {
    padding-top: 0;
    border-top: none;
  }
}

/* Body paragraphs — default 17px */
.about__content p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: #0A0A0A;
  margin: 0 0 1.4em 0;
}

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

/* Opening lead — the "Hi, I'm Garrett Gatlin." page heading (h1, 32px).
   margin-bottom sets the gap before the body prose begins. */
.about__content .about__opening {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  margin: 0 0 40px 0;
}

@media (max-width: 768px) {
  .about__content .about__opening {
    font-size: 24px;
    margin-bottom: 32px;
  }
}

/* Name link inside opening (LinkedIn) */
.about__name-link {
  color: #0A0A0A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 120ms ease;
}

.about__name-link:hover {
  text-decoration-thickness: 2px;
}

/* Testimonials — pull quote with left border */
.about__testimonials {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__testimonial-block {
  padding-left: 20px;
  border-left: 1px solid #0A0A0A;
}

/* Compound selector (0,0,2,0) beats .about__content p (0,0,1,1)
   so the italic styling and zero margin land. */
.about__content .about__testimonial {
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: #0A0A0A;
  margin: 0;
}

/* Cheeky thank-you footnote under the quote block */
.about__content .about__testimonial-note {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #666666;
  margin: 16px 0 0 0;
}

/* Case studies — numbered list */
.about__case-studies {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.about__case-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid #EAEAEA;
  text-decoration: none;
  color: #0A0A0A;
  transition: background 120ms ease;
}

.about__case-link:hover {
  background: #FAFAFA;
}

.about__case-number {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #666666;
}

.about__case-title {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .about__case-link {
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 16px 0;
  }
}

/* Contact section */
.about__contact {
  margin-top: 16px;
}

.about__contact p {
  font-size: 17px;
  margin: 0 0 1.4em 0;
}

.about__contact .mono {
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.about__contact a {
  color: #0A0A0A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 120ms ease;
}

.about__contact a:hover {
  text-decoration-thickness: 2px;
}

.about__content .about__quote {
  font-size: 15px;
  font-style: italic;
  color: #666666;
  margin-top: 64px;
  margin-bottom: 0;
  padding-top: 32px;
  border-top: 1px solid #EAEAEA;
  line-height: 1.5;
}

/* ============================================================
   Home page — question with rotating completion
   ============================================================ */

.home__question {
  font-size: 96px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: #0A0A0A;
  margin: 0 auto 48px;
  max-width: 1200px;
}

.home__prefix {
  display: inline;
  background-color: #2A2A2A;
  color: #FFFFFF;
  padding: 4px 14px 8px;
  margin-right: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: inherit;
  letter-spacing: inherit;
}

.home__completion {
  display: block;
  transition: opacity 400ms ease;
  opacity: 1;
}

.home__completion.is-fading {
  opacity: 0;
}

.home__byline {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: #0A0A0A;
  margin: 0 auto;
  max-width: 720px;
}

.home__tagline {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: #0A0A0A;
  margin: 12px auto 0;
  max-width: 720px;
}

@media (max-width: 1280px) {
  .home__question {
    font-size: 80px;
  }
}

@media (max-width: 1024px) {
  .home__question {
    font-size: 64px;
    margin-bottom: 36px;
  }

  .home__byline,
  .home__tagline {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .home__question {
    font-size: 40px;
    letter-spacing: -0.035em;
    margin-bottom: 28px;
  }

  .home__prefix {
    padding: 2px 8px 4px;
    margin-right: 2px;
  }

  .home__byline,
  .home__tagline {
    font-size: 17px;
  }
}

@media (max-width: 400px) {
  .home__question {
    font-size: 32px;
  }
}

/* ============================================================
   Case study pages — same typographic system as About,
   adapted for narrative reading
   ============================================================ */

.case {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 48px 160px;
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .case {
    max-width: 100%;
    padding: 56px 24px 80px;
  }
}

/* Top "Back" link — full-width, sits above the header */
.case__back {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  text-decoration: none;
  margin-bottom: 80px;
  transition: color 120ms ease;
}

.case__back:hover {
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .case__back {
    margin-bottom: 40px;
  }
}

/* Header — number / title / subtitle stack */
.case__header {
  margin-bottom: 80px;
}

@media (max-width: 768px) {
  .case__header {
    margin-bottom: 48px;
  }
}

.case__number {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #666666;
  margin: 0 0 24px 0;
  text-transform: uppercase;
}

.case__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0A0A0A;
  margin: 0 0 16px 0;
}

@media (max-width: 768px) {
  .case__title {
    font-size: 28px;
  }
}

.case__subtitle {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #666666;
  margin: 0;
}

@media (max-width: 768px) {
  .case__subtitle {
    font-size: 18px;
  }
}

/* Each section is its own 2-column grid so sticky labels scope per-section.
   (Same call as About — `display: contents` on sections would let labels
   stick across the entire .case container instead of within their section.) */
.case__section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 64px;
}

@media (max-width: 768px) {
  .case__section {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Section spacing — desktop: 64px above hairline + 64px below.
   Margin-top on the section creates breathing room ABOVE the hairline
   (same pattern as about page; see comment in About section above).
   Mobile: hairline on the section so it reads as a section separator. */
.case__section + .case__section {
  margin-top: 64px;
}

.case__section + .case__section .case__label {
  padding-top: 64px;
}

.case__section + .case__section .case__content {
  padding-top: 64px;
  border-top: 1px solid #EAEAEA;
  margin-top: 0;
}

@media (max-width: 768px) {
  .case__section + .case__section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #EAEAEA;
  }

  .case__section + .case__section .case__label,
  .case__section + .case__section .case__content {
    padding-top: 0;
    border-top: none;
  }
}

.case__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  padding-top: 8px;
  position: sticky;
  top: 32px;
  align-self: start;
}

@media (max-width: 768px) {
  .case__label {
    position: static;
    margin-bottom: 12px;
    padding-top: 0;
  }
}

.case__content {
  min-width: 0;
}

.case__content p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: #0A0A0A;
  margin: 0 0 1.4em 0;
}

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

.case__content em {
  font-style: italic;
}

/* "More" section — numbered links to the other cases */
.case__more-links {
  display: flex;
  flex-direction: column;
}

.case__more-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid #EAEAEA;
  text-decoration: none;
  color: #0A0A0A;
  transition: background 120ms ease;
}

.case__more-link:hover {
  background: #FAFAFA;
}

.case__more-number {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #666666;
}

.case__more-title {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .case__more-link {
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 16px 0;
  }
}

/* Bottom return link — mirrors the top "Back" treatment */
.case__return {
  display: block;
  margin-top: 96px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666666;
  text-decoration: none;
  transition: color 120ms ease;
}

.case__return:hover {
  color: #0A0A0A;
}

@media (max-width: 768px) {
  .case__return {
    margin-top: 48px;
  }
}
