/* Hallmark · shape: Briefing Ledger · genre: editorial · theme: brand · redesign: full
 * paper: oklch(100% 0 0) · accent: oklch(90% 0.16 98) · display: Gabarito · body: Instrument Sans · hero: Stage (/), Banner (/how-it-works.html, /bio.html) · nav: edge-aligned · footer: mast · signature: the Day One film, playable from the first screen · surface: absolute
 * axes: white/grotesk/highlighter · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R5 V4 · weakest: S, no real work to show yet; led with the film because it is the one piece of real work the site has */
/* Hallmark · waive 7b · paper token is #ffffff · the Day One brand is black and slate copy on white with a yellow highlighter, white is the brand's own paper */
/* Hallmark · waive 39b · button.film-open wraps the whole film poster · the film card is one large tap target that opens the Day One film dialog */
/* Hallmark · waive 77 · the close holds the heading, the ask and the address set large · the Day One close is the contact itself, short by design so the email address is the last thing a visitor sees */
/* Hallmark · waive 78 · the four step titles in .steps h2 are item titles · How it works has no section heads, each Day One step is titled at the item size so four fit across */
/* Hallmark · waive 44c · .page-head on How it works and About is a Banner hero · the Day One inner pages are reference pages, so the first section shows above the fold */
/* Hallmark · waive 28b · .tile-film video has no poster · the Day One work tile image underneath is the poster, the clip stays hidden until it plays */
/* Hallmark · waive 26b · no form controls or disabled states exist · the Day One homepage has links and one film button, nothing that can be disabled */
/* Hallmark · reworded "Hands-on help for comms teams in a pinch. I get across your landscape quickly and start producing output on day one." to "Hands-on help for comms teams in a pinch, from day one." · 58 limits the hero to one sentence */
/* Hallmark · reworded "When you haven’t got a business case for a contractor, but you need experienced hands for a short stretch." to "When you haven’t got a big agency budget but need experienced hands for a short stretch." · owner request: Day One is short-term contracting */
/* Hallmark · reworded "No retainer, no onboarding, just high-quality work for a fair price." to "Quick to get going, with high-quality work for a fair price." · owner request: engagements do involve some onboarding */
/* Hallmark · reworded "Best for short-term projects, campaign support, or the final stretch before a big event." to three moments in Where I help most · 58 limits the hero to one sentence */
@import url("./tokens.css");
@import url("./base.css");

:root { --display-weight: 800; --tracking-display: -0.015em; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }

/* Highlighter, the brand's one accent */
mark { background: linear-gradient(var(--color-accent), var(--color-accent)) no-repeat 0 0 / 100% 100%; color: var(--color-accent-ink); padding: 0 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Nav: edge-aligned, wordmark left, links and the contact right */
.site-nav { border-bottom: var(--rule-hair) solid var(--color-rule); }
.site-nav .container { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); text-decoration: none; margin-right: auto; white-space: nowrap; }
.site-nav a:not(.wordmark):not(.button) { text-decoration: none; padding: var(--space-2xs) var(--space-3xs); white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav a:not(.wordmark):not(.button):hover { background: var(--color-accent); color: var(--color-accent-ink); }

/* The one primary button */
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.button:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.button:active { background: var(--color-ink-2); color: var(--color-paper); }
.button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.site-nav .button { min-height: 44px; }

/* Hero: Stage, text on five columns, the film on seven */
.hero { min-height: calc(100dvh - 73px); display: flex; align-items: center; padding-block: var(--space-xl); }
.hero .grid { align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); }
.hero h1 { font-size: var(--text-display); max-width: 11ch; }
.hero .lead { margin-top: var(--space-lg); max-width: 26ch; }
.hero .actions { margin-top: var(--space-xl); display: flex; gap: var(--space-lg); align-items: center; flex-wrap: wrap; }

/* The film */
.film-card { margin: 0; }
.film-open { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; border: var(--rule-hair) solid var(--color-rule); border-radius: 8px; overflow: hidden; background: var(--color-paper); }
.film-open img, .film-open video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.film-bar { white-space: nowrap; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.film-play { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: var(--color-accent); display: flex; align-items: center; justify-content: center; padding-left: var(--space-2xs); box-sizing: border-box; transition: transform var(--dur-short) var(--ease-out); }
.film-play svg { fill: var(--color-accent-ink); }
.film-open:hover .film-play { transform: scale(1.07); }
.film-open:active .film-play { transform: scale(0.97); }
.film-open:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.film-label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); white-space: nowrap; }
.film-len { font-family: var(--font-body); font-weight: 500; color: var(--color-muted); margin-left: 0.4em; }
.film-dialog { border: 0; padding: 0; background: transparent; width: min(92vw, 1280px); max-width: none; overflow: visible; }
.film-dialog::backdrop { background: var(--color-backdrop); }
.film-dialog video { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--color-video); }
.film-close { all: unset; cursor: pointer; position: absolute; top: -2.6rem; right: 0; color: var(--color-on-backdrop); font-weight: 600; padding: var(--space-2xs) var(--space-xs); }
.film-close:focus-visible { outline: 2px solid var(--color-accent); }

/* Sections */
section { padding-block: var(--section-gap-s); }
.section-head { grid-column: 1 / span 4; }
.section-body { grid-column: 5 / span 8; }

/* What you get: rows parted by hairlines */
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.rows li { display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { font-size: var(--text-title); }
.rows p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.4; }

/* Openly AI-powered: split head, the claim set large */
.ai { border-top: var(--rule-hair) solid var(--color-rule); }
.ai .section-head { grid-column: 1 / -1; }
.ai .claim { grid-column: 1 / span 10; margin-top: var(--space-2xl); }
.ai .claim p:first-child { max-width: none; font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-s); line-height: 1.08; letter-spacing: -0.015em; }
.ai .claim p + p { margin-top: var(--space-xl); margin-left: calc((100% + var(--gap-columns)) * 0.4); font-size: var(--text-lead); color: var(--color-ink-2); max-width: 46ch; }

/* Where I help most: a band on paper-2 */
.band { background: var(--color-paper-2); color: var(--color-ink); }
.band .lead { margin-top: var(--space-md); }
.moments { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.moments li { border-top: 3px solid var(--color-ink); padding-top: var(--space-md); font-family: var(--font-display); font-weight: 700; font-size: var(--text-title); line-height: 1.2; }
.band .detail { margin-top: var(--space-2xl); max-width: 62ch; font-size: var(--text-lead); color: var(--color-ink-2); }

/* Close: the ask, then the address */
.close .grid { align-items: end; }
.close .close-head { grid-column: 1 / span 5; }
.close .address-wrap { grid-column: 6 / span 7; justify-self: end; }
.close .ask { margin-top: var(--space-lg); font-size: var(--text-lead); color: var(--color-ink-2); }
.close .address { display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 5.4vw, var(--text-display-s)); line-height: 1.1; letter-spacing: -0.015em; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; transition: background-color var(--dur-short) var(--ease-out); }
.close .address:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.close .address:active { background: var(--color-paper-3); }

/* Footer: mast */
.site-foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-3xl) var(--space-2xl); }
.site-foot .container { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); flex-wrap: wrap; }
.site-foot img { width: 160px; height: auto; }
.site-foot nav { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.site-foot nav a { text-decoration: none; padding: var(--space-2xs) var(--space-3xs); }
.site-foot nav a:hover { background: var(--color-accent); color: var(--color-accent-ink); }

/* Under 60rem everything stacks in reading order */
@media (max-width: 60rem) {
  .hero { min-height: 0; }
  .hero .grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .section-head, .section-body, .ai .claim, .ai .section-head, .close .close-head, .close .address-wrap { grid-column: 1 / -1; justify-self: start; }
  .close .address-wrap { margin-top: var(--space-xl); }
  .ai .claim p + p { margin-left: 0; }
  .section-body, .ai .claim { margin-top: var(--space-xl); }
  .rows li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .moments { grid-template-columns: minmax(0, 1fr); }
  .site-nav .container { flex-wrap: wrap; row-gap: var(--space-xs); padding-block: var(--space-sm); }
}
@media (max-width: 40rem) {
  .film-bar, .film-label { white-space: normal; }
  .film-len { display: block; margin-left: 0; }
}

/* Inner pages: Banner hero, the first section starts above the fold */
.page-head { padding-block: var(--space-3xl); }
.page-head + section:not(.band) { padding-top: var(--space-2xl); }
.page-head + section.process:not(.band) { padding-top: 0; }
.close h2 mark { white-space: nowrap; }
.page-head h1 { font-size: var(--text-display); }
.page-head .lead { margin-top: var(--space-lg); max-width: 40ch; }
.page-head .intro { margin-top: var(--space-lg); max-width: 38ch; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.3; letter-spacing: -0.01em; }

/* How it works: four steps across */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); counter-reset: step; }
.steps > li { border-top: 3px solid var(--color-ink); padding-top: var(--space-lg); }
.steps .art { background: var(--color-paper-2); border-radius: var(--radius-card); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.steps .art svg { width: 100%; height: auto; max-height: 180px; }
.steps h2 { font-size: var(--text-title); line-height: 1.2; }
.steps h2 .h2-light { display: block; }
.steps ul { margin: var(--space-md) 0 0; padding-left: 1.1em; }
.steps ul li { margin-block: var(--space-2xs); }
.steps ul li::marker { color: var(--color-muted); }

/* Wireframe illustrations, the brand's own drawing style */
.wf .card { fill: var(--color-paper); stroke: var(--color-ink); stroke-width: 2.5; }
.wf .card-faint { fill: var(--color-paper); stroke: var(--color-rule); stroke-width: 2.5; }
.wf .bar { fill: var(--color-rule); }
.wf .bar-ink { fill: var(--color-ink); }
.wf .hl { fill: var(--color-accent); }
.wf .swatch-muted { fill: var(--color-muted); }
.wf .tick { fill: none; stroke: var(--color-accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* About: a two by two of strengths */
.strengths { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.strengths li { border-top: 3px solid var(--color-ink); padding-top: var(--space-md); font-size: var(--text-lead); line-height: 1.4; }
.rows.facts li { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 60rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
  .strengths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* Motion: the highlighter sweeps on, sections ease in, all of it off under reduced motion */
.js mark.sweep { background-size: 0% 100%; transition: background-size 900ms var(--ease-out); }
.js mark.sweep.is-in { background-size: 100% 100%; }
.js .reveal { opacity: 0; transform: translateY(var(--space-md)); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Selected work: text-led tiles */
.work-grid { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.tile { position: relative; border-top: 3px solid var(--color-ink); padding-top: var(--space-md); transition: border-color var(--dur-short) var(--ease-out); }
.tile::before { content: ""; position: absolute; inset: -3px 0 auto 0; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.tile:hover::before { transform: scaleX(1); }
.tile-media { aspect-ratio: 16 / 9; margin-bottom: var(--space-md); border-radius: var(--radius-card); overflow: hidden; background: var(--color-paper-2); }
.tile-art { position: relative; width: 100%; height: 100%; transition: transform var(--dur-long) var(--ease-out); }
.tile-media img, .tile-media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tile-art { transform: scale(1.03); }
/* Live film loops laid over the film frames drawn into the tile art */
.tile-film { position: absolute; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.tile-film.is-playing { opacity: 1; }
.tile-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-rail { position: absolute; border-radius: 999px; overflow: hidden; background: var(--color-rule); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.tile-film.is-playing + .tile-rail { opacity: 1; }
.tile-rail i { position: absolute; inset: 0; background: var(--color-accent); transform: scaleX(0); transform-origin: left; }
.tile-client { font-weight: 600; color: var(--color-muted); }
.tile h3 { margin-top: var(--space-xs); font-size: var(--text-title); line-height: 1.2; }
.tile-line { margin-top: var(--space-sm); color: var(--color-ink-2); }
.tile-tags { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .js mark.sweep { transition: none; background-size: 100% 100%; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile::before { transition: none; }
  .tile-art, .tile-film, .tile-rail { transition: none; }
}
