/* =========================================================
   About — an illustrated page, laid out like a journal spread
   ========================================================= */

.page-about {
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.65;
}

.wrap {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Type -------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

h1.display { font-size: clamp(1.9rem, 4.1vw, 2.9rem); }
h2.display { font-size: clamp(1.6rem, 3.1vw, 2.3rem); }

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.lede { max-width: 34rem; font-size: 1.03rem; }

/* The little green marks that open each heading ---------- */

.spark {
  width: 1.45rem;
  color: var(--spark);
  flex: none;
}
h2.display {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}
h2.display .spark { margin-top: 0.15em; }

/* Handwriting ------------------------------------------- */

.scribble {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* =========================================================
   Header & footer
   ========================================================= */

.site-head,
.site-foot {
  width: min(var(--measure), 100%);
  margin-inline: auto;
  padding: clamp(1.2rem, 2.6vw, 1.9rem) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-foot {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding-top: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.site-head__mark {
  font-family: var(--font-hand);
  font-weight: 600;                          /* matches .wordmark on the hero */
  font-size: clamp(1.35rem, 2.1vw, 1.75rem); /* likewise */
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.site-nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); }

.site-nav a {
  position: relative;
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.4rem;
  transition: color 240ms var(--ease-soft);
}
.site-nav a:hover { color: var(--ink); }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 340ms var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* =========================================================
   Intro
   ========================================================= */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 7vw, 4.5rem);
}

.intro__copy > .spark { display: block; margin-bottom: 0.9rem; }
.intro__copy .lede { margin: 1.15rem 0 0; }

.intro__art { position: relative; margin: 0; }
.intro__art img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* "A little about me", written onto the picture's edge */
.scribble--intro {
  position: absolute;
  left: -2.5rem;
  top: -1.2rem;
  z-index: 2;
  width: 8.5rem;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  transform: rotate(-6deg);
  text-shadow: 0 0 12px rgba(246, 239, 225, 0.95), 0 0 4px rgba(246, 239, 225, 0.9);
}
.scribble__arrow {
  display: block;
  width: 4.2rem;
  margin: 0.15rem 0 0 2.2rem;
  color: var(--ink);
  opacity: 0.75;
}

/* =========================================================
   Section rhythm
   ========================================================= */

.band { padding-block: clamp(2rem, 5.5vw, 3.5rem); }
.band__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.band__sub {
  margin: 0.7rem 0 0 2rem;
  max-width: 38rem;
  font-size: 0.97rem;
}

/* =========================================================
   What I do
   ========================================================= */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.6vw, 1.3rem);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: clamp(1.4rem, 2.6vw, 1.9rem) clamp(0.9rem, 1.8vw, 1.4rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(28, 43, 58, 0.1);
}

.card__icon { width: clamp(3.6rem, 6vw, 4.6rem); height: auto; margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.88rem; color: var(--ink-faint); line-height: 1.55; }

/* =========================================================
   How I work
   ========================================================= */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.4rem, 1.2vw, 1rem);
}

/* The arrow between one note and the next */
.step { position: relative; flex: 1 1 0; display: flex; justify-content: center; }
.step + .step::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 50%;
  width: 1.1rem;
  height: 0.7rem;
  translate: 0 -50%;
  background: currentColor;
  color: var(--ink-soft);
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M1 7h18M14 2l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* A torn-off note, pinned at a slight angle */
.note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 8.6rem;
  padding: 1rem 0.7rem 0.85rem;
  background: var(--panel-note);
  border: 1px solid rgba(28, 43, 58, 0.14);
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(28, 43, 58, 0.1);
}
.step:nth-child(odd) .note  { rotate: -1.6deg; }
.step:nth-child(even) .note { rotate: 1.4deg; }

.note__icon { width: 2.5rem; height: auto; color: var(--ink); }
.note__label {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink);
  line-height: 1;
}

/* =========================================================
   Beyond work
   ========================================================= */

.beyond {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.beyond__art { margin: 0; }
.beyond__art img { width: 100%; height: auto; border-radius: 6px; }

.beyond__copy p { margin: 0; max-width: 32rem; }

.scribble--beyond {
  margin-top: 1.6rem !important;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  transform: rotate(-2deg);
  transform-origin: left center;
}
.scribble--beyond::after {
  content: "";
  display: block;
  width: 3.75rem;   /* exactly one tile — two would show the seam */
  height: 5px;
  margin-top: 0.3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='5' viewBox='0 0 60 5'%3E%3Cpath d='M1 3.5c9-3 17 1 25 0s16-2.5 24-.6' fill='none' stroke='%231c2b3a' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 60px 5px repeat-x;
  opacity: 0.75;
}

/* =========================================================
   Beliefs
   ========================================================= */

.beliefs {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem);
  justify-items: center;
}

.belief {
  position: relative;
  width: 100%;
  max-width: 13rem;
  padding: 1.8rem 1.4rem 1.6rem;
  background: var(--panel-note);
  border: 1px solid rgba(28, 43, 58, 0.12);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(28, 43, 58, 0.09);

  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
}
.beliefs > :nth-child(1) { rotate: -1.4deg; }
.beliefs > :nth-child(2) { rotate: 1deg; }
.beliefs > :nth-child(3) { rotate: -0.7deg; }

.belief::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 5px;
  margin: 0.45rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='5' viewBox='0 0 60 5'%3E%3Cpath d='M1 3.5c9-3 17 1 25 0s16-2.5 24-.6' fill='none' stroke='%231c2b3a' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 60px 5px repeat-x;
  opacity: 0.7;
}

/* A strip of tape holding it to the page */
.belief__tape {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  width: 3.1rem;
  height: 1.3rem;
  translate: -50% 0;
  rotate: -3deg;
  border-radius: 1px;
  opacity: 0.72;
}
.belief__tape--green  { background: #a9c48c; }
.belief__tape--violet { background: #a99bc9; }
.beliefs > :nth-child(2) .belief__tape { rotate: 4deg; }

/* =========================================================
   Closing band
   ========================================================= */

.closer {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 1.5rem;
  min-height: clamp(11rem, 20vw, 14rem);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: var(--panel-green);
  border-radius: 12px;
}

.closer__copy > .spark { display: block; margin-bottom: 0.7rem; }
.closer__copy .display { margin-bottom: 1.35rem; }

.closer__art {
  position: absolute;
  inset: 0 0 0 auto;
  width: clamp(12rem, 34%, 22rem);
}
.closer__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Let the picture dissolve into the band rather than butt against it */
.closer__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--panel-green) 0%, rgba(228, 236, 217, 0) 42%);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}
.button span { transition: transform 380ms var(--ease-out); }
.button:hover, .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(28, 43, 58, 0.24);
}
.button:hover span { transform: translateX(4px); }

/* =========================================================
   Reveal on scroll
   ========================================================= */

.reveal {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 760ms var(--ease-out), translate 760ms var(--ease-out);
}
.reveal.is-in { opacity: 1; translate: 0 0; }

/* Nothing may stay invisible if the observer never runs */
.no-js .reveal { opacity: 1; translate: 0 0; }

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

@media (max-width: 900px) {
  .intro,
  .beyond { grid-template-columns: minmax(0, 1fr); }

  .intro { padding-top: 0; }
  .intro__art { order: -1; margin-top: 2.6rem; }

  /* Stacked, there is no margin beside the picture — so the note sits
     above it and the arrow turns to point down into it. */
  .scribble--intro {
    left: 0;
    right: auto;
    top: -2.4rem;
    width: auto;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    transform: rotate(-2deg);
  }
  .scribble__arrow { width: 3.1rem; margin: 0 0 -0.35rem 0; rotate: 28deg; }

  .beyond__art { order: -1; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* The process turns into a column, so the arrows turn with it */
  .steps { flex-direction: column; gap: 1.6rem; }
  .step { width: 100%; }
  .note { max-width: 11rem; }
  .step + .step::before {
    left: 50%;
    top: -1.15rem;
    translate: -50% 0;
    rotate: 90deg;
  }

  .closer { grid-template-columns: minmax(0, 1fr); }
  .closer__art { width: 45%; opacity: 0.55; }
}

@media (max-width: 560px) {
  .beliefs { grid-template-columns: minmax(0, 1fr); }
  .belief { max-width: 15rem; }
  .site-head, .site-foot { gap: 0.9rem; }
  .site-nav { gap: 1.1rem; }
  .band__sub { margin-left: 0; }
}

/* =========================================================
   Reduced motion
   ========================================================= */

.is-reduced .reveal,
.is-reduced .reveal.is-in {
  opacity: 1;
  translate: 0 0;
  transition: none;
}
.is-reduced .card,
.is-reduced .button { transition: none; }
.is-reduced .card:hover,
.is-reduced .button:hover { transform: none; }
