/* =========================================================
   Rowleys:London - v8 (redesign round 2: burnt orange accent, open client wall, 94% black footer)
   Layout concept: a production studio's job sheet - paper ground,
   crop marks on the lead image, dieline-magenta cut lines on section
   heads, and a mono "spec" line on every project.
   Brand rule kept: Rockwell Regular only, no bold.
   ========================================================= */

@font-face { font-family: 'Rockwell'; src: url('../fonts/Rockwell-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Rockwell'; src: url('../fonts/Rockwell-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Intel One Mono'; src: url('../fonts/IntelOneMono-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Intel One Mono'; src: url('../fonts/IntelOneMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }

:root {
  /* colour */
  --paper: #f6f6f3;      /* uncoated board white */
  --ink: #161616;
  --ink-2: #5f5f5b;      /* secondary text, warm grey */
  --rule: #d9d8d2;
  --cut: #c4581d;        /* burnt orange - cut lines + spec dots only */
  --panel: #0f0f0f;      /* contact block - 94% black */
  --panel-ink: #f6f6f3;
  /* type */
  --display: 'Rockwell', 'Rockwell Nova', 'Roboto Slab', Georgia, serif;
  --body: 'Rockwell', 'Rockwell Nova', 'Roboto Slab', Georgia, serif;
  --mono: 'Intel One Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  /* layout */
  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
b, strong, h1, h2, h3, h4 { font-weight: 400; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cut); outline-offset: 3px; }

.v7-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Header ---------- */
.v7-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.v7-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.v7-brand img { height: 28px; width: auto; }
.v7-nav { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.v7-nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.v7-nav a:hover { border-color: var(--ink); }

/* ---------- Section head with dieline ---------- */
.v7-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.v7-head .mono { color: var(--ink-2); white-space: nowrap; }
.v7-head::after { content: ""; flex: 1; border-top: 1px dashed var(--cut); }

/* ---------- Hero ---------- */
.v7-hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.v7-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.v7-hero__eyebrow { color: var(--ink-2); margin: 0 0 28px; }
.v7-hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.v7-hero h1 .colon { color: var(--cut); }
.v7-hero__lead { max-width: 30ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin: 0 0 32px; }
.v7-hero__cta { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.v7-hero__cta span { transition: transform .25s; }
.v7-hero__cta:hover span { transform: translateX(4px); }

/* lead image with printer's crop marks */
.v7-plate { margin: 18px; }
.v7-plate__art { position: relative; }
.v7-plate__frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--rule); }
.v7-plate__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.v7-plate__frame img.is-on { opacity: 1; }
.v7-crop { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.v7-crop::before, .v7-crop::after { content: ""; position: absolute; background: var(--ink); }
.v7-crop::before { width: 14px; height: 1px; }
.v7-crop::after { width: 1px; height: 14px; }
.v7-crop--tl { top: -18px; left: -18px; }   .v7-crop--tl::before { top: 17px; left: 0; } .v7-crop--tl::after { left: 17px; top: 0; }
.v7-crop--tr { top: -18px; right: -18px; }  .v7-crop--tr::before { top: 17px; right: 0; } .v7-crop--tr::after { right: 17px; top: 0; }
.v7-crop--bl { bottom: -18px; left: -18px; }  .v7-crop--bl::before { bottom: 17px; left: 0; } .v7-crop--bl::after { left: 17px; bottom: 0; }
.v7-crop--br { bottom: -18px; right: -18px; } .v7-crop--br::before { bottom: 17px; right: 0; } .v7-crop--br::after { right: 17px; bottom: 0; }
.v7-plate__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; color: var(--ink-2); }
.v7-plate__caption b { color: var(--ink); font-weight: 400; }

/* ---------- Work ---------- */
.v7-work { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.v7-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.v7-job { display: flex; flex-direction: column; gap: 14px; }
.v7-job__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rule); }
.v7-job__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.v7-job:hover .v7-job__img img { transform: scale(1.035); }
.v7-job__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: baseline; }   /* number sits on the client name baseline */
.v7-job__no { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.v7-job__client { font-size: 21px; line-height: 1.2; }
.v7-job__title { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.v7-job__spec { grid-column: 2; display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: .02em; color: var(--ink); }
.v7-job__spec::before { content: ""; width: 6px; height: 6px; margin-top: 6px; border-radius: 0; background: var(--cut); flex: none; }   /* pinned to the first line */

/* ---------- Film ---------- */
.v7-film { padding-block: 0 clamp(56px, 7vw, 104px); }
.v7-film video { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--ink); }
.v7-film__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--ink-2); }

/* ---------- Services ---------- */
.v7-services { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.v7-services__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.v7-services__intro { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; margin: 0; text-wrap: balance; }
.v7-services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 40px); }
.v7-services__list li { font-size: clamp(20px, 2vw, 28px); line-height: 1.2; padding: 18px 0; border-bottom: 1px solid var(--rule); }

/* ---------- About ---------- */
.v7-about { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.v7-about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.v7-about .v7-about__years { color: var(--ink); font-size: clamp(88px, 12vw, 180px); line-height: .85; letter-spacing: -.04em; margin: 0; }
.v7-about__years small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: 18px; }
.v7-about h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 24px; max-width: 18ch; text-wrap: balance; }
.v7-about p { max-width: 58ch; margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }

/* ---------- Clients ---------- */
.v7-clients { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.v7-clients__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 20px) clamp(16px, 3vw, 40px); }
.v7-clients__grid div { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 14%; }
.v7-clients__grid img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; transition: opacity .2s; }
.v7-clients__grid div:hover img { opacity: 1; }

/* ---------- Contact ---------- */
.v7-contact { background: var(--panel); color: var(--panel-ink); padding-block: clamp(56px, 8vw, 120px) 40px; }
.v7-contact .v7-head .mono { color: var(--panel-ink); opacity: .6; }
.v7-contact__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.v7-contact h2 { font-size: clamp(40px, 5.4vw, 84px); line-height: .98; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.v7-contact h2 .colon { color: var(--cut); }
.v7-contact__lines { display: grid; gap: 14px; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }
.v7-contact__lines a { border-bottom: 1px solid rgba(246,246,243,.3); padding-bottom: 12px; transition: border-color .2s; overflow-wrap: anywhere; }
.v7-contact__lines a:hover { border-color: var(--panel-ink); }
.v7-contact__lines address { font-style: normal; opacity: .7; line-height: 1.6; }
.v7-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(56px, 8vw, 104px); padding-top: 24px; border-top: 1px solid rgba(246,246,243,.18); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.v7-foot img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.v7-foot nav { display: flex; gap: 20px; }
.v7-foot nav a { opacity: .7; }
.v7-foot nav a:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .v7-hero__grid, .v7-services__grid, .v7-about__grid, .v7-contact__grid { grid-template-columns: minmax(0, 1fr); }
  .v7-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v7-clients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v7-hero__lead { max-width: 44ch; }
}
@media (max-width: 600px) {
  .v7-header__inner { height: 58px; }
  .v7-brand img { height: 22px; }
  .v7-nav { gap: 14px; }
  .v7-nav a:nth-child(3) { display: none; }   /* keep Work / Services / Contact on phones */
  .v7-work__grid { grid-template-columns: minmax(0, 1fr); }
  .v7-services__list { grid-template-columns: minmax(0, 1fr); }
  .v7-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .v7-plate { margin: 12px; }
  .v7-plate__caption, .v7-film__caption { flex-direction: column; gap: 4px; }
  .v7-film video { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .v7-plate__frame img, .v7-job__img img { transition: none; }
}

/* =========================================================
   Case study page (v8)
   ========================================================= */
.cs8-top { padding-block: clamp(24px, 3vw, 40px) 0; }
.cs8-top__bar { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.cs8-top__bar a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.cs8-top__bar a:hover { border-color: var(--ink); }

.cs8-title { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 3.5vw, 48px); }
.cs8-title__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cs8-title h1 { font-size: clamp(44px, 6.6vw, 104px); line-height: .98; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.cs8-title h1 .colon { color: var(--cut); }
.cs8-title__project { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; color: var(--ink-2); margin: 0; }

/* job sheet */
.cs8-sheet { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); border-top: 1px solid var(--ink); }
.cs8-sheet dt, .cs8-sheet dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.cs8-sheet dt { color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding-right: 24px; }
.cs8-sheet dd { color: var(--ink); }
.cs8-sheet dd.is-key { display: flex; align-items: flex-start; gap: 8px; }
.cs8-sheet dd.is-key::before { content: ""; width: 6px; height: 6px; margin-top: 7px; border-radius: 0; background: var(--cut); flex: none; }

/* full-width set of crop-marked plates: one lead image, up to two smaller */
.cs8-lead { padding-block: 0 clamp(48px, 6vw, 88px); }
.cs8-figs { margin: 0; padding: 18px 18px 0; }
.cs8-plates { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; }
.cs8-plates--0 { grid-template-columns: minmax(0, 1fr); }
.cs8-plates__side { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 44px; }
.cs8-plate { position: relative; }
.cs8-plate__frame { position: relative; overflow: hidden; background: var(--rule); }
.cs8-plate.is-lead .cs8-plate__frame { aspect-ratio: 16 / 9; }
.cs8-plate.is-small, .cs8-plate.is-small .cs8-plate__frame { height: 100%; }
.cs8-plate__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a single image runs full width as a shallow banner */
.cs8-plates--0 .cs8-plate.is-lead .cs8-plate__frame { aspect-ratio: 5 / 2; }

/* brief */
.cs8-brief { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.cs8-brief__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); }
.cs8-brief__lead { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.22; letter-spacing: -.01em; margin: 0 0 24px; max-width: 30ch; text-wrap: balance; }
.cs8-brief p:not(.cs8-brief__lead) { max-width: 58ch; margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }

/* previous / next */
.cs8-pager { border-top: 1px solid var(--rule); }
.cs8-pager__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs8-pager a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding-block: 28px; }
.cs8-pager a + a { border-left: 1px solid var(--rule); padding-left: clamp(16px, 3vw, 40px); }
.cs8-pager a.is-next { grid-template-columns: minmax(0, 1fr) 96px; text-align: right; }
.cs8-pager a.is-next img { order: 2; }
.cs8-pager img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; }
.cs8-pager .mono { display: block; color: var(--ink-2); margin-bottom: 6px; }
.cs8-pager__name { font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; }
.cs8-pager a:hover .cs8-pager__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* more work */
.cs8-more { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }

@media (max-width: 1000px) {
  .cs8-title__grid, .cs8-brief__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cs8-figs { padding: 12px 12px 0; }
  .cs8-plates { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cs8-plate.is-lead .cs8-plate__frame, .cs8-plates--0 .cs8-plate.is-lead .cs8-plate__frame { aspect-ratio: 3 / 2; }
  .cs8-plates__side { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 36px; }
  .cs8-plate.is-small .cs8-plate__frame { height: auto; aspect-ratio: 3 / 2; }
  .cs8-pager__grid { grid-template-columns: minmax(0, 1fr); }
  .cs8-pager a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .cs8-pager a, .cs8-pager a.is-next { grid-template-columns: 72px minmax(0, 1fr); text-align: left; }
  .cs8-pager a.is-next img { order: 0; }
  .cs8-pager img { width: 72px; }
  .cs8-top__bar { flex-direction: column; gap: 4px; }
}
