/* Irene Martin — site styles, in the "irene." brand (Direction B, Editorial Punch).
   Colors, fonts, and spacing are tokens at the top. Change a token and it changes everywhere.
   Brand rules live in the brand guide in Google Drive: 01 Brand / 00 Brand guide. */

@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("/fonts/space-mono.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Space Mono"; font-weight: 700; src: url("/fonts/space-mono-bold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; src: url("/fonts/inter-tight.woff2") format("woff2"); font-display: swap; }

:root {
  --cobalt: #2335FF;
  --acid: #D7FF3C;
  --rose: #FF8FB1;
  --ink: #0D0D0D;
  --paper: #F1EEE6;
  --ink-soft: #3A3833;

  --serif: "DM Serif Display", Georgia, serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 84rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --rule: 2px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -0.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(3.2rem, 9.5vw, 9.5rem); }
h2 { font-size: clamp(2.6rem, 6.5vw, 6rem); }
h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
/* Stress: the highlighter block. One stressed word or phrase per headline. Never italics. */
h1 em, h2 em, h3 em, .availability em {
  font-style: normal; display: inline-block; background: var(--acid); color: var(--ink);
  padding: 0 .14em .06em; line-height: 1; transform: rotate(-2.5deg);
}
.process h2 em { background: var(--ink); color: var(--acid); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.dot { color: var(--cobalt); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--acid); color: var(--ink); padding: .6rem 1rem; z-index: 20; font-family: var(--mono); }
.skip:focus { top: 1rem; }
/* Copy that still needs Irene's real words. Remove the class when filled in. */
.todo { background: var(--rose); color: var(--ink); padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Wordmark (inline SVG) ---------- */
.wm { display: block; height: auto; }
.wm .wm-l { fill: currentColor; }
.wm .wm-d { fill: var(--wm-dot, var(--cobalt)); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: var(--rule); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.logo { color: var(--ink); width: 96px; display: block; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-family: var(--mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; text-decoration: none; padding: .35rem 0; }
.nav a:hover { text-decoration: underline; }
.nav .pill { background: var(--acid); border: var(--rule); padding: .5rem .9rem; border-radius: 999px; }
.nav .pill:hover { background: var(--ink); color: var(--acid); text-decoration: none; }
@media (max-width: 760px) { .nav a:not(.pill) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--mono); text-transform: uppercase;
  font-size: .85rem; letter-spacing: .05em; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--acid); color: var(--ink); border: var(--rule); border-radius: 999px; padding: .95rem 1.4rem;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); transform: none; }

/* ---------- Hero ---------- */
.hero { background: var(--cobalt); color: var(--paper); position: relative; overflow: hidden; border-bottom: var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; min-height: min(88vh, 900px); }
.hero-copy { padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; max-width: 60rem; margin-left: auto; width: 100%; }
.hero-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--paper); }
.hero h1 { color: var(--paper); margin: 0; }
.hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 34rem; color: #E6E8FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-photo { position: relative; min-height: 22rem; }
.hero-photo .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.stamp { position: absolute; width: clamp(130px, 14vw, 210px); left: -70px; bottom: 12%; transform: rotate(-12deg); animation: spin 28s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.award-line { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--acid); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 24rem; order: 2; }
  .stamp { left: auto; right: 1rem; top: -60px; bottom: auto; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--acid); border-bottom: var(--rule); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 2.5rem; padding: .9rem 0; animation: tick 38s linear infinite; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.ticker-track span::after { content: "●"; margin-left: 2.5rem; color: var(--cobalt); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); border-bottom: var(--rule); padding-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 26rem; }
.label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; display: block; margin-bottom: 1rem; }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Work ---------- */
.work { background-color: var(--paper); background-image: linear-gradient(to right, rgba(13,13,13,.07) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.card { grid-column: span 6; text-decoration: none; color: var(--ink); display: block; }
.card.wide { grid-column: span 12; }
.card.wide .card-img { aspect-ratio: 16 / 9; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule); background: var(--cobalt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.card h3 { margin: .5rem 0 .3rem; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; }
.card p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.tag { display: inline-block; padding: .2rem .55rem; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.tag-client { background: var(--acid); }
.tag-agency { background: var(--paper); }
.tag-award { background: var(--rose); }
@media (max-width: 760px) { .card, .card.wide { grid-column: span 12; } .card.wide .card-img { aspect-ratio: 4 / 3; } }

/* ---------- Offers ---------- */
.offers-sec { background: var(--ink); color: var(--paper); }
.offers-sec .section-head { border-color: var(--paper); }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--paper); }
.offer { padding: 2rem 1.75rem 2.25rem 0; border-right: 2px solid #3a3a3a; }
.offer + .offer { padding-left: 1.75rem; }
.offer:last-child { border-right: 0; }
.offer .num { font-family: var(--mono); color: var(--acid); }
.offer h3 { margin-top: 1.2rem; }
.offer p { color: #CFCBC2; }
.offer ul { list-style: none; padding: 0; margin: 1.25rem 0 0; font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.offer li { padding: .55rem 0; border-top: 1px solid #3a3a3a; }
.offer li::before { content: "↗ "; color: var(--acid); }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } .offer, .offer + .offer { padding: 2rem 0; border-right: 0; border-bottom: 1px solid #3a3a3a; } }

/* ---------- Process ---------- */
.process { background: var(--acid); border-top: var(--rule); border-bottom: var(--rule); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: var(--rule); }
.steps li { counter-increment: s; padding: 1.5rem 1.25rem 1.5rem 0; border-right: var(--rule); }
.steps li + li { padding-left: 1.25rem; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 4rem; line-height: 1; display: block; margin-bottom: 1rem; color: var(--cobalt); }
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 0; font-size: .98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .steps li, .steps li + li { padding: 1.5rem 1rem 1.5rem 0; border-right: 0; border-bottom: var(--rule); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-photo { position: relative; border: var(--rule); aspect-ratio: 4 / 5; overflow: hidden; background: var(--cobalt); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .note { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; background: var(--paper); border: var(--rule); padding: .6rem .8rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
.about .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; border-top: var(--rule); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(13,13,13,.25); }
.facts .k { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; padding-top: .2rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: .2rem; } }

/* ---------- Contact ---------- */
.contact { background: var(--cobalt); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.availability { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; border-top: 2px solid var(--paper); border-bottom: 2px solid var(--paper); padding: 1.25rem 0; margin: 2rem 0; }
.form-card { background: var(--paper); color: var(--ink); border: var(--rule); box-shadow: 10px 10px 0 var(--ink); padding: clamp(1.25rem, 3vw, 2.25rem); }
form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
label, legend { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; font-weight: 700; }
.hint { font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: var(--rule); border-radius: 0; padding: .8rem .9rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--cobalt); outline-offset: 0; }
textarea { min-height: 8.5rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
fieldset legend { width: 100%; margin-bottom: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; border: var(--rule); border-radius: 999px; padding: .5rem .9rem; font-family: var(--sans); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: .92rem; background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--acid); }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.two { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.hidden { position: absolute; left: -9999px; }
.fine { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.fine a { color: var(--cobalt); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 4rem 0 2rem; }
.site-footer .big-wm { color: var(--acid); --wm-dot: var(--paper); width: min(100%, 52rem); margin-bottom: 2.5rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 2px solid #333; padding-top: 1.25rem; }
.site-footer a { color: var(--paper); }

/* ---------- Case study pages ---------- */
.case-hero { background: var(--cobalt); color: var(--paper); padding: clamp(3rem, 7vw, 6rem) 0 0; border-bottom: var(--rule); }
.case-hero .back { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; text-decoration: none; }
.case-hero .back:hover { text-decoration: underline; }
.case-hero h1 { margin-top: 1.5rem; }
.case-hero h1 .dot { color: var(--acid); }
.case-hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 40rem; color: #E6E8FF; }
.meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--paper); margin-top: 2.5rem; }
.meta div { padding: 1rem 1rem 1.25rem 0; }
.meta dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--acid); }
.meta dd { margin: .3rem 0 0; }
@media (max-width: 760px) { .meta { grid-template-columns: 1fr 1fr; } }
.case-cover { margin-top: 2.5rem; border-top: var(--rule); }
.case-cover img { width: 100%; max-height: 80vh; object-fit: cover; }
.case-body .wrap { display: grid; grid-template-columns: 16rem 1fr; gap: 2rem 4rem; }
.case-body h2 { font-size: clamp(2rem, 3.5vw, 3rem); grid-column: 1; margin: 0; }
.case-body .copy { grid-column: 2; max-width: 42rem; font-size: 1.15rem; }
.case-body .gallery { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1rem 0 2rem; }
.case-body .gallery img { width: 100%; border: var(--rule); }
.case-body .gallery .full { grid-column: 1 / -1; }
@media (max-width: 800px) { .case-body .wrap { grid-template-columns: 1fr; } .case-body h2, .case-body .copy { grid-column: 1; } .case-body .gallery { grid-template-columns: 1fr; } }
.award-box { grid-column: 1 / -1; background: var(--rose); border: var(--rule); padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: center; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; }
.next { background: var(--acid); border-top: var(--rule); padding: 3rem 0; }
.next .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.next a.nx { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); text-decoration: none; line-height: 1; }
.next a.nx:hover { text-decoration: underline; }

/* Simple pages: privacy, thanks, 404 */
.simple { min-height: 60vh; }
.simple .wrap > * { max-width: 46rem; }

/* People who ask for less motion get none. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stamp { transform: rotate(-12deg); }
}
