/* ─────────────────────────────────────────────────
   simon hamblin — ai consultant
   style.css
───────────────────────────────────────────────── */

/* ─── Tokens ──────────────────────────────────── */

:root {
  --bg:        #F8F7F4;
  --ink:       #181714;
  --ink-mid:   #6B6760;
  --ink-light: #B0AEA9;
  --block:     #181714;
  --max:       960px;
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ───────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ─── Base ────────────────────────────────────── */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Intro overlay ───────────────────────────── */

#intro {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 1s var(--ease-out);
}

#intro.exit {
  transform: translateY(-100%);
}

.intro-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(248, 247, 244, 0.55);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#intro.text-in .intro-text {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Nav ─────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-name {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}

.nav-cta:hover {
  border-color: transparent;
}

/* ─── Layout ──────────────────────────────────── */

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

section {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.section-body {
  padding: 140px 0;
}

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  margin-bottom: 3.5rem;
}

/* ─── Hero ────────────────────────────────────── */

#hero {
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  border-top: none;
  overflow: hidden;
}

@media (max-width: 768px) {
  #hero {
    overflow: visible;
  }
}

#hero .inner {
  padding-bottom: 7rem;
  width: 100%;
}

.hero-label {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--ink-light);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.cycling-word {
  display: inline-block;
  font-style: italic;
  white-space: nowrap;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-mid);
  white-space: nowrap;
}

/* ─── Approach ────────────────────────────────── */

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.approach-cell {
  padding: 3rem 3rem 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.approach-cell:nth-child(2n) {
  padding-left: 3rem;
  padding-right: 0;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.approach-cell:nth-child(n+3) {
  border-bottom: none;
}

.approach-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* ─── Redaction blocks ────────────────────────── */

.redacted {
  position: relative;
  overflow: hidden;
  cursor: default;
}

.redacted p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.redaction-block {
  position: absolute;
  inset: 0;
  background: var(--block);
  border-radius: 2px;
  transform: translateX(0);
  transition: transform 400ms ease-in-out;
  cursor: default;
}

/* Desktop only — hover: hover prevents iOS tap triggering this */
@media (hover: hover) {
  .redacted:hover .redaction-block {
    transform: translateX(101%);
  }
}

/* Mobile tap toggle */
.redacted.revealed .redaction-block {
  transform: translateX(101%);
}

/* ─── Skills ──────────────────────────────────── */

.skills-list {
  list-style: none;
  columns: 2;
  column-gap: 4rem;
}

.skills-list li {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1.4;
  padding: 0.6rem 0;
  padding-left: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: padding-left 0.25s ease;
  cursor: default;
  break-inside: avoid;
}

.skills-list li:hover {
  padding-left: 8px;
}

/* ─── About ───────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
}

.about-headline.italic {
  font-style: italic;
}

.about-right .redacted {
  margin-bottom: 1.5rem;
}

.credential {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

.credential + .credential {
  margin-top: 0.35rem;
}

/* ─── Contact ─────────────────────────────────── */

#contact {
  background: var(--ink);
  border-top: none;
}

#contact .section-body {
  text-align: center;
}

#contact .section-label {
  color: rgba(248,247,244,0.25);
}

.cta-headline {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1.05;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.cta-headline:hover {
  border-bottom-color: rgba(248,247,244,0.4);
}

.contact-email {
  margin-top: 1.5rem;
  font-size: 13px;
  font-weight: 300;
  color: rgba(248,247,244,0.3);
  letter-spacing: 0.04em;
}

/* ─── Footer ──────────────────────────────────── */

footer {
  background: var(--ink);
  border-top: 1px solid rgba(248,247,244,0.07);
}

footer .inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(248,247,244,0.25);
}

footer .footer-made {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 13px;
}

/* ─── Scroll reveal ───────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Mobile line break helper ───────────────── */

.mob { display: none; }


/* ─── Mobile ──────────────────────────────────── */

@media (max-width: 768px) {
  nav {
    padding: 1.25rem 1.75rem;
  }

  .inner {
    padding: 0 1.75rem;
  }

  .section-body {
    padding: 80px 0;
  }

  #hero .inner {
    padding-bottom: 4rem;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-cell,
  .approach-cell:nth-child(2n) {
    padding: 2rem 0;
    border-left: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }

  .approach-cell:last-child {
    border-bottom: none;
  }

  .skills-list {
    columns: 1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-sub {
    white-space: normal;
  }

  .mob {
    display: block;
  }
}
