/* Demo: Kate Wilson, brand designer.

   The commercial counterpart to the illustrator demo. Chris sells taste and
   images; Kate sells decisions that survive a print budget and a permit
   review, so her page is organised around the constraint and the result, and
   the craft is shown as artefacts: a wordmark, a palette, a type scale.

   No photographs anywhere. Everything here is drawn in CSS, which keeps the
   demo honest and, for a designer, is itself the sample of work. Black, white
   and process yellow, set in Archivo: a studio voice, and nothing like the
   warm cream of the marketing site around it. */

:root {
  --paper:   #FFFFFF;
  --sunk:    #F4F4F2;
  --ink:     #0E0E0E;
  --ink-2:   #454545;
  --ink-3:   #6E6E6A;
  --line:    #E2E2DE;
  --line-2:  #C4C4BE;
  --accent:  #F2B705;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

.shell { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.label {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- top --- */
.top {
  background: var(--accent);
  color: var(--ink);
  padding-block: 62px 54px;
  border-bottom: 3px solid var(--ink);
  background-image: radial-gradient(60% 80% at 88% 4%, rgba(255, 255, 255, 0.42), transparent 62%);
}

.kicker {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top h1 {
  margin-top: 20px;
  font-size: clamp(2.2rem, 6.4vw, 4.1rem);
  font-weight: 800;
  line-height: 0.98;
}

.top .sub { margin-top: 22px; max-width: 54ch; color: rgba(14, 14, 14, 0.76); }

.top__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* One column since the portrait slot came out: a designer's hero carries the
   wordmark and the claim, and the work below it does the showing. */
.top__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 46px; align-items: center; max-width: 62ch; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn:hover { background: var(--accent); color: var(--ink); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--quiet:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ---------------------------------------------------------------- work --- */
.job {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 40px;
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}

.job__meta { position: sticky; top: 32px; align-self: start; }
.num {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  -webkit-text-stroke: 1px var(--ink);
}
.client { margin-top: 12px; font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.what { margin-top: 6px; font-size: 0.84rem; color: var(--ink-2); }
.year { margin-top: 6px; font-size: 0.78rem; color: var(--ink-3); }

.job h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 600; line-height: 1.15; max-width: 22ch; }
.job__body p { margin-top: 16px; color: var(--ink-2); max-width: 64ch; }

/* Wordmarks drawn as type rather than shown as pictures: for a designer that
   is the more honest sample anyway. */
.marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.mark {
  border: 1px solid var(--line);
  padding: 26px 22px;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 170px;
  position: relative;
}
.mark__tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mark--before { background: #6B5140; color: #E8DCCB; border-color: #6B5140; }
.mark--before .mark__tag { color: #D6CCC1; }
.mark__script { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 2rem; }
.mark__sub { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; margin-top: 6px; }

.mark--after { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mark--after .mark__tag { color: rgba(255, 255, 255, 0.6); }
.mark__word { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: 0.06em; }
.mark__rule { display: block; width: 46px; height: 3px; background: var(--accent); margin: 12px auto; }
.mark__roast { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: 0.02em; line-height: 1; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 28px; }
.swatch {
  border: 1px solid var(--line);
  padding: 12px;
  display: grid;
  gap: 4px;
  font-size: 0.74rem;
}
.swatch::before { content: ""; display: block; height: 58px; background: var(--c); }
.swatch span { font-weight: 700; }
.swatch code { font-family: var(--body); color: var(--ink-3); }

.scale { margin-top: 28px; border: 1px solid var(--line); padding: 22px; }
.scale__label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.scale__row {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin-top: 10px !important;
  color: var(--ink) !important;
}

.results { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.results li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-2);
}
.results b { font-family: var(--display); font-weight: 800; color: var(--ink); margin-right: 8px; }

/* ----------------------------------------------------------------- how --- */
.how { padding-block: 56px 0; }
.how__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 24px; }
.how h3 { font-size: 1.05rem; font-weight: 600; padding-top: 14px; border-top: 3px solid var(--accent); }
.how p { margin-top: 10px; color: var(--ink-2); font-size: 0.94rem; }

/* ------------------------------------------------------------- history --- */
.history { padding-block: 56px 0; }
.roles { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.roles li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--ink-2);
}
.roles span { font-size: 0.82rem; color: var(--ink-3); }
.roles b { font-family: var(--display); font-weight: 600; color: var(--ink); display: block; }

/* ------------------------------------------------------------- contact --- */
.contact { margin-top: 64px; padding: 44px 0 80px; border-top: 3px solid var(--ink); }
.contact h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.contact p { margin-top: 16px; color: var(--ink-2); max-width: 56ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.updated { margin-top: 30px; font-size: 0.74rem; color: var(--ink-3); }

/* ------------------------------------------------------------ narrower --- */
@media (max-width: 820px) {
  .job { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .job__meta { position: static; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; }
  .num { grid-row: span 3; font-size: 2.6rem; }
}

@media (max-width: 560px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .roles li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}


/* ------------------------------------------------------------ media slot ---
   Where the client's own headshot, work photograph or video goes. Marked
   rather than faked: a framed panel in the page palette with a glyph and a
   label, so the slot looks deliberate while it is empty and the layout does
   not move when the real image lands in it. */
.shot { margin: 0; }
.shot__fill {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(158deg, #2E2C27 0%, #17160F 54%, #4E3C05 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.shot__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 76% 16%, rgba(242, 183, 5, 0.42), transparent 62%);
}
.shot__glyph {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  color: rgba(255, 255, 255, 0.62);
}
.shot--wide .shot__fill,
.shot--video .shot__fill { aspect-ratio: 16 / 9; }
.shot--square .shot__fill { aspect-ratio: 1 / 1; }
.shot--tall .shot__fill { aspect-ratio: 3 / 4; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.shot--on-dark figcaption { color: rgba(255, 255, 255, 0.55); }
.shot__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #F2B705;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.shot__play svg { width: 25px; height: 25px; margin-left: 4px; color: #0E0E0E; }

/* A row of slots, for the pages where the work is the photographs. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Packaging and signage are judged in the world, not on a screen, so the
   photographs get their own slots rather than sharing one with the mockups. */
.reel { margin-top: 56px; background: var(--ink); color: #F4F4F2; padding: 40px 32px; }
.reel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.reel h2 { font-family: var(--display); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; max-width: 17ch; }
.reel p { margin-top: 14px; color: rgba(244, 244, 242, 0.72); max-width: 44ch; }
.reel .label { color: var(--accent); }

@media (max-width: 900px) {
  .top__in { gap: 28px; }
  .reel__grid { grid-template-columns: minmax(0, 1fr); }
}

.top .kicker { color: rgba(14, 14, 14, 0.62); }
.top .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.top .btn:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.top .btn--quiet { background: transparent; color: var(--ink); border-color: rgba(14, 14, 14, 0.45); }
.top .btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
