/* ==========================================================
   Mandie Wood — portfolio
   Mobile-first. Accents used sparingly: lime = action/markers,
   coral = personality moments, lilac = wild card only.
   ========================================================== */

:root {
  --ink: #171719;
  --ink-2: #222225;
  --ink-3: #2d2d31;
  --paper: #F5F1E8;
  --paper-2: #ebe5d8;
  --on-dark: #F7F5EF;
  --on-dark-muted: #b9b6ad;
  --on-light: #1C1C1E;
  --on-light-muted: #55534d;
  --lime: #C8FF36;
  --coral: #FF5A4F;
  --coral-deep: #c9322a; /* coral variant with AA contrast on paper */
  --lilac: #A98BFF;

  --f-head: "Space Grotesk", "Inter Tight", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(2.5rem, 8vw, 7rem);
  --r: 14px;
  --r-lg: 22px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* subtle film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: .95; letter-spacing: -.03em; margin: 0; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible { outline-color: var(--on-light); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--lime); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- surfaces ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.light { background: var(--paper); color: var(--on-light); }

/* content width is set via inline padding, so every child aligns to the same column */
section { padding: var(--gap) max(var(--pad), calc((100% - var(--max)) / 2)); position: relative; }

/* ---------- type helpers ---------- */
.h-xl { font-size: clamp(2.6rem, 10vw, 6.5rem); }
.h-lg { font-size: clamp(2rem, 7vw, 3.75rem); }

.label, .marker {
  font: 600 .75rem/1.2 var(--f-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.marker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; color: var(--lime); }
.marker::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.light .marker { color: var(--on-light); }
.light .marker::before { background: var(--on-light); height: 6px; width: 6px; border-radius: 50%; box-shadow: 0 0 0 3px var(--lime); }
.marker--coral { color: var(--coral); }
.marker--lilac { color: var(--lilac); }

.section-head { margin-bottom: clamp(2rem, 6vw, 4rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .9rem 1.5rem;
  font: 600 .875rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--on-dark); }
.btn--sm { min-height: 40px; padding: .6rem 1rem; font-size: .75rem; }
.btn--lg { min-height: 60px; padding: 1.1rem 2rem; font-size: 1rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(var(--pad), calc((100% - var(--max)) / 2));
  background: rgba(23,23,25,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247,245,239,.08);
}
.nav__logo { font: 700 1.35rem/1 var(--f-head); text-decoration: none; letter-spacing: -.04em; }
.nav__logo span { color: var(--lime); }
.nav__links { display: none; gap: 2rem; }
.nav__links a { text-decoration: none; font-size: .875rem; font-weight: 500; color: var(--on-dark-muted); transition: color .2s; }
.nav__links a:hover { color: var(--lime); }
@media (min-width: 720px) { .nav__links { display: flex; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.75rem, 5vw, 3.75rem); }
.hero .label { display: flex; align-items: center; gap: .6rem; color: var(--on-dark-muted); margin-bottom: 1.25rem; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,255,54,.18); }
.hero__title { font-size: clamp(2.75rem, 10vw, 8.25rem); line-height: .88; letter-spacing: -.055em; }
.hero__sub {
  font: 700 clamp(.95rem, 3.6vw, 1.25rem)/1.25 var(--f-head); letter-spacing: .02em; text-transform: uppercase;
  margin: .9rem 0 1.25rem; color: var(--lime);
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--lime); color: var(--ink); padding: .65rem 0; }
.ticker__track {
  display: flex; gap: 1.5rem; width: max-content;
  font: 700 1rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  animation: ticker 32s linear infinite;
}
.ticker .star { color: var(--ink); opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- work ---------- */
.work { padding-block: clamp(1.75rem, 5vw, 4rem); }
.work__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.75rem, 6vw, 5rem); }
.work .section-head, .work__grid { max-width: 380px; margin-inline: auto; }
.work .section-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.work .section-head h2 { font-size: clamp(2.25rem, 6.5vw, 5rem); }
.work .marker { margin-bottom: .75rem; }
.project { min-width: 0; }
.project .player { max-width: none; }
.project__info { padding-top: 1rem; }
.project__title { font-size: clamp(1.55rem, 4.2vw, 2.3rem); line-height: 1; }
.project__meta { margin: .4rem 0 .75rem; color: var(--on-dark-muted); font-size: .95rem; }
.project__desc { font-size: 1rem; line-height: 1.55; margin-bottom: .75rem; }
.project .tags { margin-bottom: .75rem; }
.project__credits summary { color: var(--lime); cursor: pointer; font-weight: 600; font-size: .875rem; }
.project__credits .credits { margin-top: .6rem; padding-top: .75rem; }
@media (min-width: 720px) {
  .work .section-head, .work__grid { max-width: 840px; }
  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature { display: grid; gap: 2rem; align-items: center; }
.player {
  position: relative; width: 100%; max-width: 420px; margin-inline: auto;
  aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(247,245,239,.1), 0 30px 60px -20px rgba(0,0,0,.6);
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.player__thumbnail { position: absolute; inset: 0; color: var(--on-dark); }
.player__thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.player__play { position: absolute; inset: 0; margin: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.55)); }
.player__thumbnail:hover .player__play { color: var(--lime); }
.player__thumbnail:focus-visible { outline: 3px solid var(--lime); outline-offset: -4px; }
.player__watch { position: absolute; inset-inline: .75rem; bottom: 1rem; width: fit-content; margin-inline: auto; text-align: center; }
.player__fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem;
  padding: 2rem 1.75rem;
  background:
    radial-gradient(60% 40% at 50% 35%, rgba(200,255,54,.22), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.player__fallback-title { font: 700 3rem/1 var(--f-head); text-transform: uppercase; letter-spacing: -.04em; }

.feature__title { font-size: clamp(3.25rem, 14vw, 6rem); }
.feature__meta { font: 500 1.0625rem/1.4 var(--f-body); color: var(--on-dark-muted); margin: .75rem 0 1.25rem; }
.feature__desc { font-size: clamp(1.1rem, 3.8vw, 1.3rem); line-height: 1.5; max-width: 38ch; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tags li {
  font: 600 .6875rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem .75rem; border-radius: 999px; border: 1px solid rgba(247,245,239,.25);
}
.tags li:first-child { border-color: var(--lime); color: var(--lime); }

.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,245,239,.12); }
.credits dt { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.credits dd { font-weight: 600; }
.credits div:last-child dd { color: var(--coral); }

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(320px, 420px) 1fr; gap: 5rem; }
  .player { margin: 0; }
}

.feedback { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3rem); }
.feedback__grid { display: grid; gap: 1rem; margin-top: clamp(1.25rem, 3vw, 2rem); }
.testimonial {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  margin: 0; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper-2); border: 1px solid rgba(28,28,30,.1); border-radius: var(--r);
}
.testimonial blockquote { margin: 0; font: 500 clamp(1.25rem, 2.3vw, 1.65rem)/1.35 var(--f-head); letter-spacing: -.015em; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { display: grid; gap: .15rem; font-size: .875rem; line-height: 1.4; color: var(--on-light-muted); }
.testimonial figcaption strong { color: var(--on-light); }

.collaborations { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.collaborations h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1; }
.collaborations__list { display: grid; margin-top: .9rem; }
.collaborations__list div { border-top: 1px solid rgba(28,28,30,.16); padding-top: .75rem; padding-bottom: .75rem; }
.collaborations__list dt { font: 700 1.125rem/1.2 var(--f-head); }
.collaborations__list dd { margin-top: .2rem; color: var(--on-light-muted); font-size: .875rem; }
@media (min-width: 720px) {
  .feedback__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
  .collaborations__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
}

/* ---------- approach ---------- */
.approach { display: grid; gap: 1.25rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); background: var(--paper-2); }
.approach__copy p:not(.marker) { max-width: 48ch; margin: .75rem 0 0; }
.skills { display: flex; flex-wrap: wrap; gap: .5rem; }
.skills li { font: 700 .875rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; padding: .7rem 1rem; border-radius: 999px; background: var(--ink); color: var(--on-dark); }
.skills li:nth-child(odd) { background: transparent; color: var(--on-light); box-shadow: inset 0 0 0 1.5px var(--on-light); }
@media (min-width: 900px) {
  .approach { grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
}

/* ---------- about ---------- */
.about { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); padding-block: clamp(2.5rem, 7vw, 5rem); }
.about__lead { font: 500 clamp(1.125rem, 4vw, 1.4rem)/1.4 var(--f-head); max-width: 52ch; margin: .75rem 0 0; }
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 2.5vw, 1.75rem); align-items: start; }
.portrait { position: relative; margin: 0; }
.portrait--primary { grid-column: 1 / -1; }
.portrait img { width: 100%; height: auto; border-radius: var(--r-lg); }
.portrait__caption { margin-top: .5rem; font: 500 .875rem/1.35 var(--f-body); color: var(--on-light-muted); }
.annotation--about {
  position: absolute; right: .6rem; top: 1rem;
  font: 500 .8125rem/1.3 var(--f-body); padding: .5rem .8rem; border-radius: 10px;
  background: var(--ink); color: var(--on-dark); transform: rotate(3deg);
}
@media (min-width: 720px) {
  .portraits { grid-template-columns: 1.2fr 1fr 1fr; }
  .portrait--primary { grid-column: auto; }
}

/* ---------- wild card ---------- */
.wild { border-top: 1px solid rgba(169,139,255,.25); }
.wild__sub { color: var(--lilac); font-size: 1.15rem; margin-top: 1rem; }
.wild__grid { display: grid; gap: 2.5rem; }
.wild .player { box-shadow: 0 0 0 1px rgba(169,139,255,.4), 0 30px 60px -20px rgba(0,0,0,.6); }
.wild .tags li:first-child { border-color: var(--lilac); color: var(--lilac); }
@media (min-width: 900px) { .wild__grid .feature { grid-template-columns: minmax(320px, 420px) 1fr; } }

/* ---------- social ---------- */
.wild-social { padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid rgba(28,28,30,.08); }
.social { display: grid; gap: 2rem; }
.social__copy h2 { margin-bottom: 1.25rem; }
.social__copy p:not(.marker) { max-width: 46ch; font-size: 1.1rem; }
.social__links { display: grid; gap: .75rem; }
.social__links a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  text-decoration: none; border-radius: var(--r);
  background: #fff; border: 1px solid rgba(28,28,30,.1);
  transition: transform .2s ease, background-color .2s ease;
}
.social__links a:hover { transform: translateY(-2px); background: var(--lime); }
.social__links svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social__links svg .fill { fill: currentColor; stroke: none; }
.social__links span { display: flex; flex-direction: column; font-size: .95rem; color: var(--on-light-muted); }
.social__links strong { color: var(--on-light); font: 700 1.1rem/1.2 var(--f-head); text-transform: uppercase; }
@media (min-width: 900px) { .social { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 5rem; } }

/* ---------- contact ---------- */
.contact { padding-block: clamp(2.75rem, 8vw, 6rem); overflow: hidden; }
.contact__title { font-size: clamp(2.25rem, 7vw, 5.25rem); line-height: .9; max-width: 17ch; margin: 0 0 1.25rem; }
.contact__title em { font-style: normal; color: var(--coral); }
.contact__lede { font-size: clamp(1.1rem, 4vw, 1.35rem); color: var(--on-dark-muted); margin-bottom: 2.25rem; max-width: 40ch; }
.contact .btn--lg { width: 100%; }
@media (min-width: 600px) { .contact .btn--lg { width: auto; } }
.contact__details { display: grid; gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,245,239,.12); }
.contact__details dt { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .2rem; }
.contact__details dd { font: 500 1.1rem/1.3 var(--f-head); word-break: break-word; }
.contact__details a { text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease, color .2s; }
.contact__details a:hover { color: var(--lime); background-size: 100% 2px; }
@media (min-width: 720px) { .contact__details { grid-template-columns: 2fr 1.4fr 1fr; } }

/* ---------- footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.75rem max(var(--pad), calc((100% - var(--max)) / 2)) 2.25rem; font-size: .8125rem; color: var(--on-dark-muted);
  border-top: 1px solid rgba(247,245,239,.08);
}
.footer p { margin: 0; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
