/* =========================================================
   Rowleys:London - shared styles
   Font: Rockwell (slab serif) as the global type.
   ========================================================= */

@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: 'Rockwell';
  src: url('../fonts/Rockwell-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Rockwell';
  src: url('../fonts/Rockwell-BoldItalic.ttf') format('truetype');
  font-weight: 700; font-style: italic; font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --placeholder: #d9d9d9;
  --dark: #3b3b3b;
  --dark-2: #2c2c2c;
  --accent: #1a1a1a;
  --maxw: 1120px;
  --gutter: 24px;
  --radius: 10px;
  --font: 'Rockwell', 'Rockwell Nova', 'Roboto Slab', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;            /* maps to Rockwell Regular */
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* Regular typeface only - no bold anywhere on the site */
b, strong { font-weight: 400; }

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

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Constant frosted glass: 50% white with blur always on */
  background: rgba(255,255,255,0.5);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { height: 31px; width: auto; transition: filter .3s ease; }
.main-nav { display: flex; gap: 28px; font-size: 14px; }
.main-nav a { transition: opacity .2s, color .3s ease; }
.main-nav a:hover { opacity: .55; }

/* Hamburger toggle (hidden until the mobile breakpoint) */
.nav-toggle {
  display: none;
  position: relative;
  width: 30px; height: 20px;
  padding: 0; margin: 0;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ---------- Hero carousel (full-width / full-bleed) ---------- */
.hero-carousel.carousel {
  padding: 0;          /* override generic .carousel padding - no gap above banner */
  margin: 0;
  position: relative;
}
/* On the homepage, pull the hero up under the frosted header so the blur
   always has the banner image behind it */
.has-hero .hero-carousel.carousel { margin-top: -64px; }
.hero-carousel .carousel__viewport { border-radius: 0; background: #ececec; }
.hero-carousel .carousel__slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 1100 / 391;   /* 15% shorter than before */
  max-height: 68vh;
  display: block;
}
.hero-carousel .carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Centered caption text over each banner image */
.hero-carousel__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 92vw;
  margin: 0;
  text-align: center;
  white-space: nowrap;   /* only break at the explicit <br> — never 3 lines */
  color: #fff;
  font-weight: 400;
  font-size: clamp(15px, 2.85vw, 40px);
  line-height: 1.3;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  z-index: 5;
  pointer-events: none;
}
.hero-carousel__label {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 26px 22px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.hero-carousel__label b { font-weight: 400; font-size: 17px; }
.hero-carousel .carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  width: auto;
  margin: 0;
  justify-content: center;
}
.hero-carousel .carousel__dot { background: rgba(255,255,255,0.5); }
.hero-carousel .carousel__dot.is-active { background: #fff; }

/* ---------- About (centered) ---------- */
.about { padding: 88px 0 72px; text-align: center; scroll-margin-top: 80px; }
.about__inner { max-width: 780px; margin: 0 auto; }
.about__mark { display: flex; justify-content: center; margin-bottom: 44px; color: var(--ink); }
.about__mark svg { width: 18px; height: auto; }
.about__title {
  margin: 0 auto 26px;
  max-width: none;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 400;
  color: #585858;
}
.about__lead + .about__lead { margin-top: 18px; }
.about__lead {
  margin: 0 auto;
  max-width: calc(52ch + 100px);
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Carousel ---------- */
.carousel { padding: 36px 0 12px; }
.carousel__viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ececec;
}
.carousel__track {
  display: flex;
  transition: transform .7s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.carousel__slide {
  min-width: 100%;
  aspect-ratio: 1100 / 460;
  position: relative;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__slide a { display:block; width:100%; height:100%; }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.82);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transition: background .2s, transform .2s;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }

.carousel__caption { padding: 22px 2px 0; text-align: center; }
.carousel__caption h3 { margin: 0 0 6px; font-size: 16px; font-weight: 400; }
.carousel__caption p { margin: 0 auto; color: var(--muted); max-width: 80ch; font-size: 13.5px; line-height: 1.7; }
/* Reserve enough height for the tallest (3-line) caption so the dots/layout
   never shift when a slide has 2 lines instead of 3 */
.carousel--featured .carousel__caption { min-height: 130px; }

.carousel__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
}
.carousel__dot {
  height: 6px;
  width: 26px;
  border-radius: 99px;
  background: #d3d3d3;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.carousel__dot.is-active { background: #8a8a8a; width: 44px; }

/* ---------- Work grid ---------- */
.work { padding: 64px 0; scroll-margin-top: 80px; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.card { display: block; }
.card__media {
  border-radius: 6px;
  overflow: hidden;
  background: var(--placeholder);
  aspect-ratio: 4 / 3;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { padding-top: 12px; }
.card__client { font-weight: 400; font-size: 14px; }
.card__title { color: var(--muted); font-size: 13px; }

/* ---------- Client logos ---------- */
.clients { padding: 56px 0; border-top: 1px solid var(--line); }
.clients__grid {
  /* Single shared base - every logo size derives from these, so all
     ratios are locked to one another and scale together as one set. */
  --logo-h: 30px;
  --logo-w: 98px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 28px;
  align-items: center;
  justify-items: center;
}
/* Each logo sits in a slot sized as (base × per-logo scale) and is contained
   within it. Change a base value and the whole set scales, ratios intact. */
.clients__grid img {
  --s: 1;                /* per-logo scale factor */
  width: 100%;
  max-width: calc(var(--logo-w) * var(--s));
  height: calc(var(--logo-h) * var(--s));
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .25s, filter .25s;
}
.clients__grid img.logo--up20        { --s: 1.2; }    /* CH, 5 Seconds of Summer */
.clients__grid img.logo--codemasters { --s: 1.3; }    /* Codemasters */
.clients__grid img.logo--keep        { --s: 1.533; }  /* Fred Perry, Radiohead, Yo!, Pink Floyd, Virgin */
.clients__grid img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Get in touch CTA ---------- */
.cta {
  background: linear-gradient(100deg, #434343 0%, #2c2c2c 52%, #181818 100%);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 24px;
  margin: 24px 0 64px;
}
.cta h2 { margin: 0 0 10px; font-size: 24px; font-weight: 400; }
.cta p { margin: 0 0 22px; color: #cfcfcf; font-size: 14px; }
.btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 99px;
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 400;
  transition: background .2s, color .2s;
}
.btn:hover { background: #fff; color: var(--ink); }
.btn--dark { border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer__brand { text-align: center; }
.footer__brand b { font-weight: 400; font-size: 18px; }
.footer__logo { height: 46px; width: auto; display: block; margin: 0 auto; }
.footer__tag { color: var(--muted); font-size: 13px; margin-top: 10px; }
.footer__social { display: flex; gap: 14px; margin-top: 18px; justify-content: center; }
.footer__social a { width: 22px; height: 22px; opacity: .7; transition: opacity .2s; }
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 100%; height: 100%; }
.footer__col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 400; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 7px; font-size: 13px; color: var(--muted); }
.footer__col a:hover { color: var(--ink); }
.footer__contact-name { display: block; width: 127.5px; height: auto; margin: 0 0 12px; }
.footer__address { font-style: normal; display: flex; flex-direction: column; gap: 7px; }
.footer__address span,
.footer__address a { font-size: 13px; color: var(--muted); }
.footer__address a:hover { color: var(--ink); }

/* =========================================================
   Case study page
   ========================================================= */
.cs-hero { padding-top: 28px; }
.cs-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #ececec;
  aspect-ratio: 1100 / 520;
}
.cs-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.cs-head { padding: 44px 0 8px; }
.cs-head__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.cs-client small { letter-spacing: .08em; color: var(--muted); font-size: 11px; }
.cs-client h1 { margin: 6px 0 0; font-size: 28px; font-weight: 400; line-height: 1.2; }
.cs-client__name--logo { line-height: 0; margin: 10px 0 0; }
.cs-client__logo { width: auto; height: auto; max-height: 56px; max-width: 100%; object-fit: contain; display: block; }
.cs-client .cs-project { color: var(--muted); margin-top: 14px; font-size: 15px; }
.cs-meta { margin-top: 22px; font-size: 13px; }
.cs-meta dt { color: var(--muted); margin-top: 12px; }
.cs-meta dd { margin: 2px 0 0; }
.cs-brief h2 { margin: 0 0 14px; font-size: 14px; font-weight: 400; letter-spacing: .06em; }
.cs-brief p { margin: 0 0 16px; max-width: 60ch; }

/* gallery carousel reuse */
.cs-gallery { padding: 40px 0; }

.cs-related { padding: 48px 0 16px; border-top: 1px solid var(--line); }
.cs-related h2 { font-size: 14px; font-weight: 400; letter-spacing: .06em; margin: 0 0 22px; }
.cs-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about { padding: 60px 0 52px; }
  .about__title { font-size: 22px; }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer__col { text-align: center; }
  .footer__contact-name { margin-left: auto; margin-right: auto; }
  .footer__address { align-items: center; }
  .cs-head__grid { grid-template-columns: 1fr; gap: 24px; }
  .cs-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Collapse the homepage nav into a hamburger */
@media (max-width: 1000px) {
  .has-hero .nav-toggle { display: block; }
  .has-hero .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 14px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .has-hero .main-nav.is-open { display: flex; }
  .has-hero .main-nav a { padding: 13px 2px; font-size: 16px; border-top: 1px solid var(--line); }
  .has-hero .main-nav a:first-child { border-top: 0; }
}

/* Give the hero and featured carousel more depth on smaller screens */
@media (max-width: 800px) {
  .hero-carousel .carousel__slide { aspect-ratio: 4 / 3; max-height: 82vh; }
  .carousel--featured .carousel__slide { aspect-ratio: 4 / 3; max-height: 82vh; }
}
@media (max-width: 560px) {
  body { font-size: 14px; }
  .main-nav { gap: 16px; }
  .hero-carousel .carousel__slide { aspect-ratio: 4 / 5; max-height: 84vh; }
  .carousel--featured .carousel__slide { aspect-ratio: 4 / 5; max-height: 84vh; }
  .work__grid { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .carousel__btn { width: 36px; height: 36px; }
  .cta h2 { font-size: 20px; }
  .cs-client h1 { font-size: 22px; }
  .cs-related__grid { grid-template-columns: 1fr; }
}
