/* MDM FUTURE WORKS — About
   Shares the ascent's design language: black ground, bone type,
   Oswald display / Cormorant Garamond body, Maasai rule, film grain.
   Gold appears exactly ONCE on this page: .about-role. Nowhere else. */

:root {
  --black: #000000;
  --bone: #ece5d8;
  --bone-dim: rgba(236, 229, 216, 0.55);
  --bone-faint: rgba(236, 229, 216, 0.28);
  --gold: #c9962e;
  --maasai-red: #8e2f1c;
  --display: "Oswald", sans-serif;
  --serif: "Cormorant Garamond", serif;
}

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

html { background: var(--black); scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--serif);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(201, 150, 46, 0.35); }

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

:focus-visible {
  outline: 1px solid var(--bone);
  outline-offset: 4px;
}

/* ---------- Film grain (matches the ascent) ---------- */

#grain {
  position: fixed; inset: -60px; z-index: 3;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-18px, 12px); }
  50% { transform: translate(14px, -20px); }
  75% { transform: translate(-10px, -14px); }
}

/* ---------- Masthead ---------- */

.masthead {
  position: relative; z-index: 5;
  padding: clamp(1.6rem, 4vw, 2.8rem) clamp(1.2rem, 5vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(0.62rem, 1.2vw, 0.78rem);
  letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  transition: color 0.35s ease;
}
.wordmark:hover { color: var(--bone-dim); }
.back-link {
  font-family: var(--display); font-weight: 500;
  font-size: 0.58rem; letter-spacing: 0.32em; text-indent: 0.32em;
  text-transform: uppercase;
  color: var(--bone-faint);
  white-space: nowrap;
  transition: color 0.35s ease;
}
.back-link:hover { color: var(--bone); }

/* ---------- Layout ---------- */

.about {
  position: relative; z-index: 5;
  flex: 1;
  width: min(1100px, 88vw);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(2.4rem, 6vw, 5.5rem);
  align-items: start;
}

/* ---------- Portrait ---------- */

.portrait {
  position: relative;
  border: 1px solid rgba(236, 229, 216, 0.16);
  background: rgba(0, 0, 0, 0.55);
  padding: 10px;
}
.portrait img {
  display: block;
  width: 100%; height: auto;
  filter: brightness(0.97) contrast(1.02) saturate(0.96);
}
.portrait-caption {
  margin-top: 1.1rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-faint);
  text-align: center;
}

/* ---------- Copy ---------- */

.about-kicker {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(0.62rem, 1.2vw, 0.78rem);
  letter-spacing: 0.5em; text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 1.6rem;
}
.about-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
}
.about-role {
  margin-top: 1.1rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(0.62rem, 1.3vw, 0.8rem);
  letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);            /* the page's single gold use */
}

.maasai-rule {
  height: 6px;
  width: min(340px, 60%);
  margin: 2.2rem 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='6'%3E%3Crect width='48' height='6' fill='%23000'/%3E%3Cpath d='M0 6 L6 0 L12 6 Z' fill='%238e2f1c'/%3E%3Cpath d='M12 6 L18 0 L24 6 Z' fill='%23ece5d8'/%3E%3Cpath d='M24 6 L30 0 L36 6 Z' fill='%238e2f1c'/%3E%3Cpath d='M36 6 L42 0 L48 6 Z' fill='%23413a30'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 48px 6px;
}

.bio p {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.62;
  color: var(--bone);
  margin-bottom: 1.4rem;
  max-width: 62ch;
}
.bio p:last-child { margin-bottom: 0; }
.bio strong { font-weight: 500; }

.about-cta {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  padding-top: clamp(1.8rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(236, 229, 216, 0.14);
}
.about-cta-line {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--bone);
}
.about-cta-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-family: var(--display); font-weight: 500;
  font-size: 0.64rem; letter-spacing: 0.36em; text-indent: 0.36em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-bottom: 1px solid rgba(236, 229, 216, 0.3);
  padding-bottom: 0.4rem;
  transition: color 0.35s ease, border-color 0.35s ease;
}
.about-cta-link:hover { color: var(--bone); border-color: var(--bone); }

/* ---------- Footer ---------- */

.about-foot {
  position: relative; z-index: 5;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.2rem, 5vw, 4rem) clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--display); font-weight: 500;
  font-size: 0.54rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-faint);
  text-align: center;
}

/* ---------- Entrance ---------- */

[data-fade] {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 1s cubic-bezier(0.22, 0.6, 0.2, 1) forwards;
}
[data-fade="1"] { animation-delay: 0.10s; }
[data-fade="2"] { animation-delay: 0.24s; }
[data-fade="3"] { animation-delay: 0.38s; }
[data-fade="4"] { animation-delay: 0.52s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    width: 88vw;
  }
  .portrait { max-width: 340px; }
  .bio p { max-width: none; }
  .maasai-rule { width: min(280px, 70%); }
}

@media (max-width: 480px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .portrait { max-width: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
  html { scroll-behavior: auto; }
  [data-fade] { opacity: 1; transform: none; animation: none; }
  * { transition-duration: 0.01ms !important; }
}
