/* =============================================================
   Amie Elliott — Producer | Creative Project Manager
   Layout concept: bold colour-blocked portfolio. Butter-yellow and
   cream bands alternate, headings are heavy red type, and photos sit
   in clean square-cornered frames. One red band closes the page.

   EDITING TIP: change colours and fonts here in :root only.
   ============================================================= */

:root {
  /* Colour */
  --butter: #FCE08E;      /* pale yellow bands */
  --cream: #FCF6EF;       /* main page ground */
  --red: #DB2A1E;         /* headings, buttons, contact band */
  --red-deep: #B81F15;    /* hover */
  --ink: #3A1D12;         /* body text: warm dark brown */
  --ink-2: #6A4A3C;       /* secondary text */
  --rule: #E9D7C3;        /* hairlines on cream */
  --rule-butter: #E8C766; /* hairlines on yellow */

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --step-name: clamp(3.6rem, 9.5vw, 8.4rem);
  --step-h2: clamp(2.6rem, 6vw, 4.8rem);
  --step-h3: clamp(1.5rem, 2.4vw, 2rem);
  --step-lead: clamp(1.15rem, 1.6vw, 1.35rem);
  --step-body: 1.0625rem;
  --step-small: 0.9rem;
  --step-label: 0.75rem;

  /* Space */
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(4.5rem, 9vw, 8rem);
  --max: 1280px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: var(--cream); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

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

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.label {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- Draft / placeholder system ----------
   Visible only while data-draft="true" is set on <div class="page">. */
.draft-banner, .draft-note { display: none; }
[data-draft="true"] .draft-banner { display: block; }
[data-draft="true"] .draft-note { display: inline-block; }
.draft-banner { background: var(--ink); color: var(--cream); padding-block: .55rem; }
.draft-banner p { font-size: var(--step-small); }
[data-draft="true"] .ph {
  text-decoration: underline dotted;
  text-decoration-color: currentColor;
  text-underline-offset: .2em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--butter);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule-butter); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .9rem;
}
.wordmark {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.35rem; line-height: 1; letter-spacing: -.03em;
  color: var(--red); text-decoration: none;
}
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; }
.nav a:hover { color: var(--red); }
.nav .nav__cta { color: var(--red); font-weight: 700; }
@media (max-width: 640px) { .nav a:not(.nav__cta) { display: none; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: var(--cream);
  font-family: var(--font-body); font-size: var(--step-label); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 2.5rem;
  border: 0;
  transition: background-color .2s var(--ease);
}
.button:hover { background: var(--red-deep); }

/* ---------- Hero: split colour block ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--butter);
}
.hero__text {
  display: grid; align-content: center; gap: 1.25rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  min-width: 0;
}
.hero__name {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-name); line-height: .88; letter-spacing: -.045em;
  color: var(--red);
}
.hero__role {
  font-size: var(--step-small); font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.hero__headline {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.02em;
  margin-top: 1rem;
}
.hero__intro { max-width: 42ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }
.hero__base { font-size: var(--step-small); color: var(--ink-2); }
.hero__photo { margin: 0; min-height: 100%; background: #CFC6B8; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__text { padding-left: var(--gutter); }
  .hero__photo { aspect-ratio: 4 / 5; max-height: 80vh; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-h2); line-height: .95; letter-spacing: -.04em;
  color: var(--red);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Image frames */
.frame {
  position: relative; margin: 0;
  aspect-ratio: var(--ratio, 3 / 2);
  max-width: 100%;
  overflow: hidden;
  background: var(--rule);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr);
  align-items: start;
}
.about__photo { grid-column: 1; }
.about__body { grid-column: 3; display: grid; gap: 1.1rem; min-width: 0; }
.about__lead { font-size: var(--step-lead); line-height: 1.45; font-weight: 500; }
.about__body p:not(.about__lead) { color: var(--ink-2); max-width: 56ch; }
@media (max-width: 820px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .about__photo, .about__body { grid-column: 1; }
}
.qualities {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 2px solid var(--red);
}
.qualities li { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); font-size: var(--step-small); min-width: 0; }
.qualities strong { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: .15rem; }
.qualities span { color: var(--ink-2); }
@media (max-width: 820px) { .qualities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .qualities { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photo banner with red label ---------- */
.banner { padding-bottom: var(--section); }
.banner__photo {
  position: relative; margin: 0;
  aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  display: grid; place-items: center;
}
.banner__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__label {
  position: relative;
  background: var(--red); color: var(--butter);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 5.5rem); line-height: 1; letter-spacing: -.04em;
  padding: .3em .55em .35em;
  text-decoration: none;
  transition: transform .4s var(--ease);
}
.banner__label:hover { transform: scale(1.03); }
@media (max-width: 640px) { .banner__photo { aspect-ratio: 4 / 3; } }

/* ---------- Projects ---------- */
.work { background: var(--butter); }
.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 5rem) var(--gutter);
}
.project { position: relative; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.project:nth-child(4n+1) { grid-column: 1 / span 7; }
.project:nth-child(4n+2) { grid-column: 9 / -1; margin-top: clamp(0rem, 10vw, 8rem); }
.project:nth-child(4n+3) { grid-column: 1 / span 5; }
.project:nth-child(4n+4) { grid-column: 7 / -1; margin-top: clamp(0rem, 6vw, 5rem); }
.project:nth-child(5) { grid-column: 4 / span 5; margin-top: 0; }
@media (max-width: 820px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}
.project__index { color: var(--red); }
.project__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--step-h3); line-height: 1.1; letter-spacing: -.02em;
}
.project__link { all: unset; cursor: pointer; }
.project__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project:has(.project__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 8px; }
.project:hover .frame img { transform: scale(1.03); }
.project:hover .project__title { color: var(--red); }

.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin: 0; }
.meta > div { display: grid; gap: .1rem; min-width: 0; }
.meta dt { color: var(--ink-2); }
.meta dd { margin: 0; font-size: var(--step-small); font-weight: 500; }
.project__desc { color: var(--ink-2); max-width: 52ch; }
.project__more { color: var(--red); display: inline-flex; gap: .5rem; }
.project__more::after { content: "→"; transition: transform .25s var(--ease); }
.project:hover .project__more::after { transform: translateX(4px); }

/* ---------- Case study dialog ---------- */
.case {
  width: min(1040px, 100% - 2 * var(--gutter));
  max-height: calc(100dvh - 2rem);
  padding: 0; border: 0;
  background: var(--cream); color: var(--ink);
  overflow: auto;
}
.case::backdrop { background: rgba(58, 29, 18, .7); }
.case[open] { animation: case-in .4s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.case__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--butter); padding: .9rem clamp(1.25rem, 4vw, 2.5rem);
}
.case__index { font-size: var(--step-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.case__close {
  font: inherit; font-size: var(--step-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: var(--cream); border: 0; padding: .6rem 1.2rem; cursor: pointer;
}
.case__close:hover { background: var(--red-deep); }
.case__body { padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.75rem; }
.case__body .project__title { font-size: var(--step-h2); color: var(--red); font-weight: 900; letter-spacing: -.04em; }
.case__body .meta { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border-block: 1px solid var(--rule); padding-block: 1.1rem; }
.case-content { display: grid; gap: 1.75rem; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.case-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 1rem var(--gutter); border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.case-block h4 { font-size: var(--step-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); padding-top: .3rem; }
.case-block p, .case-block ul { color: var(--ink-2); max-width: 62ch; }
.case-block li { padding-left: 1.1rem; position: relative; }
.case-block li + li { margin-top: .4rem; }
.case-block li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 2px; background: var(--red); }
@media (max-width: 640px) { .case-gallery, .case-block { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services: list beside heading ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem var(--gutter); align-items: start;
}
.split .section__title { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .split .section__title { margin-bottom: 1.5rem; } }
.services { display: grid; gap: 1.6rem; }
.service h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.2; letter-spacing: -.01em;
  transition: color .2s;
}
.service p { color: var(--ink-2); font-size: var(--step-small); max-width: 46ch; margin-top: .2rem; }
.service:hover h3 { color: var(--red); }

/* ---------- Approach ---------- */
.approach { background: var(--butter); }
.approach__intro { font-size: var(--step-lead); line-height: 1.45; font-weight: 500; max-width: 46ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.principles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle { border-top: 2px solid var(--red); padding-top: 1rem; display: grid; gap: .5rem; align-content: start; }
.principle h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; color: var(--red); }
.principle p { color: var(--ink-2); font-size: var(--step-small); }

/* ---------- Contact ---------- */
.contact__photo { margin: 0; aspect-ratio: 21 / 8; overflow: hidden; background: var(--butter); }
.contact__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 640px) { .contact__photo { aspect-ratio: 4 / 3; } }
.contact { background: var(--red); color: var(--cream); padding-block: clamp(3.5rem, 7vw, 5.5rem) 0; }
.contact__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--step-h2); line-height: .95; letter-spacing: -.04em;
  color: var(--butter);
}
.contact__intro { max-width: 52ch; margin-top: 1.25rem; }
.contact__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.contact__list dt { font-weight: 700; font-size: var(--step-small); }
.contact__list dd { margin: .2rem 0 0; font-size: var(--step-small); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(252, 246, 239, .5); }
.contact__list a:hover { border-color: var(--butter); color: var(--butter); }
.copy {
  font: inherit; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: none; color: var(--cream); border: 1px solid rgba(252, 246, 239, .55);
  padding: .2rem .6rem; cursor: pointer;
}
.copy:hover { background: var(--cream); color: var(--red); }
@media (max-width: 760px) { .contact__list { grid-template-columns: minmax(0, 1fr); } }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(252, 246, 239, .35);
  font-size: var(--step-small);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--butter); }

/* ---------- Scroll reveal (only below the first screen) ---------- */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
