/* Graphic design: one long reel. Each brand takes over the screen, and the header, as you scroll into it. */
:root {
  --bg: #060508;
  --ink: #F1ECE3;
  --accent: #F1ECE3;
  --on-accent: #060508;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --grid: 960px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Bebas Neue", "IBM Plex Sans", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] { --bg: #F3EFE8; --ink: #16141B; --accent: #16141B; --on-accent: #F3EFE8; color-scheme: light; }

/* Brand colours: set on each section, and on <body> while that brand is on screen */
[data-brand="salt-gull"] { --bg: #1B3557; --ink: #F4EFE3; --accent: #FFD03C; --on-accent: #1B3557; }
[data-brand="drizzle"]   { --bg: #12464F; --ink: #F6F0F2; --accent: #E0457B; --on-accent: #FFFFFF; }
[data-brand="naseeg"]    { --bg: #9E2A2B; --ink: #F3EAD8; --accent: #E3A72F; --on-accent: #1A1A1A; }
[data-brand="ghasaq"]    { --bg: #0E1424; --ink: #ECE6D6; --accent: #C9A24A; --on-accent: #0E1424; }
[data-brand="wathba"]    { --bg: #141414; --ink: #E7DAC2; --accent: #C8F031; --on-accent: #141414; }
[data-brand="rand"]      { --bg: #23403A; --ink: #E8DBC3; --accent: #D2A774; --on-accent: #23403A; }
[data-brand="plug-brew"] { --bg: #1E2327; --ink: #EFE7DA; --accent: #00B3A5; --on-accent: #1E2327; }
[data-brand="muddlezoo"] { --bg: #FFC93C; --ink: #1B1B1B; --accent: #1B1B1B; --on-accent: #FFC93C; }
[data-brand="fahm"]      { --bg: #141110; --ink: #F4EEE6; --accent: #FF6A1A; --on-accent: #141110; }
[data-brand="greggs"]    { --bg: #003C6C; --ink: #FFFFFF; --accent: #FAB622; --on-accent: #003C6C; }
[data-brand="monzo"]     { --bg: #0F1A2B; --ink: #FFFFFF; --accent: #F0533A; --on-accent: #0F1A2B; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-padding-top: 72px; scrollbar-color: color-mix(in srgb, var(--ink) 35%, transparent) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.skip:focus { left: 8px; }

/* Brand lettering, straight from each identity */
.f-alfa { font-family: "Alfa Slab One", serif; font-weight: 400; }
.f-lilita { font-family: "Lilita One", sans-serif; font-weight: 400; }
.f-cairo { font-family: "Cairo", sans-serif; font-weight: 900; }
.f-ruqaa { font-family: "Aref Ruqaa", serif; font-weight: 700; }
.f-amiri { font-family: "Amiri", serif; font-weight: 700; }
.f-bebas { font-family: var(--display); font-weight: 400; letter-spacing: .04em; }
.f-wide { letter-spacing: .12em; }
.f-slant { display: inline-block; transform: skewX(-10deg); }
.f-mont { font-family: "Montserrat", sans-serif; font-weight: 900; letter-spacing: -0.02em; }
.f-ubuntu { font-family: "Ubuntu", sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.f-quick { font-family: "Quicksand", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.f-fredoka { font-family: "Fredoka", sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.f-patrick { font-family: "Patrick Hand", cursive; font-weight: 400; }

/* ---------- Header: logo, a jump bar of every brand, actions ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 64px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); color: var(--ink);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: background-color .7s var(--ease), color .7s var(--ease);
}
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; transition: background-color .7s var(--ease), color .7s var(--ease); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.jump { min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.jump ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 24px; justify-content: safe center; }
.jump ul::-webkit-scrollbar { display: none; }
.jump { transition: opacity .4s var(--ease); }
body.at-top .jump { opacity: 0; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px; white-space: nowrap; border-radius: 999px; text-decoration: none; font-size: 15px; line-height: 1; opacity: .62; transition: opacity .3s, background-color .3s, color .3s; }
.chip .f-bebas { font-size: 18px; }
.chip-ar { font-size: .95em; }
.chip:hover { opacity: 1; }
.chip[aria-current="true"] { opacity: 1; background: var(--accent); color: var(--on-accent); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .4s var(--ease), background-color .7s var(--ease), color .7s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); background: transparent; cursor: pointer; font-size: 18px; transition: border-color .25s; }
.icon-btn:hover { border-color: var(--ink); }

/* ---------- Hero: just the line, then straight into the work ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(112px, 14vh, 160px) var(--gutter) clamp(56px, 8vh, 96px); }
.hero-copy { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero h1 { margin: 0; font: 400 clamp(3.5rem, 8vw, 6rem)/.9 var(--display); letter-spacing: .005em; text-wrap: balance; }
/* The mosaic: every post, drifting in two rows */
.mq { width: 100vw; margin: clamp(32px, 5vw, 56px) calc(50% - 50vw) 0; display: grid; gap: 12px; overflow: hidden; }
.mq-row { display: flex; gap: 12px; width: max-content; }
.mq-row li { flex: none; width: clamp(120px, 11vw, 176px); }
.mq-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .mq-a { animation: drift 160s linear infinite; }
  .mq-b { animation: drift 180s linear infinite reverse; transform: translateX(-50%); }
  .mq:hover .mq-row { animation-play-state: paused; }
}
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-go { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
/* Language switch */
.lang { display: inline-flex; padding: 4px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.lang button { min-height: 38px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 15px; font-weight: 500; opacity: .7; transition: background-color .25s, color .25s, opacity .25s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--ink); color: var(--bg); }

/* The index: every brand as a small cover, grouped by kind of business */
.index { --ix-gap: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--ix-gap); margin-top: clamp(36px, 5vw, 56px); }
.ix-group { min-width: 0; }
.ix-food { grid-column: 1 / -1; }
.ix-h { margin: 0 0 12px; font: 400 18px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 70%, var(--bg)); }
.ix-group ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ix-gap); }
.ix-food ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ix { display: block; text-decoration: none; }
.ix img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 28px -20px rgb(0 0 0 / .6); transition: transform .5s var(--ease); }
.ix:hover img { transform: translateY(-4px); }
.ix-name { display: block; margin-top: 8px; font-size: 15px; font-weight: 600; }
.index li { transition: opacity .35s var(--ease); }
.index li.is-dim { opacity: .22; }
.brand[hidden], .jump li[hidden] { display: none; }
.hero-go i { transition: transform .4s var(--ease); }
.hero-go:hover i { transform: translateY(4px); }

/* ---------- A brand ---------- */
.brand { background: var(--bg); color: var(--ink); padding-bottom: clamp(72px, 10vw, 144px); }
.brand { padding-top: clamp(16px, 3vw, 40px); }
.b-cover { width: 100%; margin: 0 0 clamp(12px, 1.6vw, 22px); overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -36px rgb(0 0 0 / .6); }
.b-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.b-inner { max-width: var(--grid); margin: 0 auto; padding: 0 var(--gutter); }

.b-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 40px); }
.b-name { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .35em; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.05; font-weight: 400; }
.b-name .f-bebas { font-size: 1.12em; }
.b-ar { color: var(--accent); font-size: .82em; }
.b-meta { margin: 0; font: 400 clamp(18px, 1.5vw, 22px)/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.b-num { color: var(--accent); margin-right: .5em; }
.b-note { flex-basis: 100%; margin: 0; font-size: 15px; color: color-mix(in srgb, var(--ink) 82%, var(--bg)); }

/* Posts: the first one large, the rest around it */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.grid .lead { grid-column: span 2; grid-row: span 2; }
.post { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 12px; box-shadow: 0 18px 40px -24px rgb(0 0 0 / .55); }
.post img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover img { transform: scale(1.035); }
.line-tile { aspect-ratio: 4 / 5; }
.tile-btn { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 10% 9%; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); text-align: left; cursor: pointer; transition: transform .5s var(--ease); }
.tile-btn:hover { transform: translateY(-3px); }
.tile-line { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.12; text-wrap: balance; }
.tile-line.f-bebas { font-size: clamp(34px, 3.4vw, 56px); }
.tile-more { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--sans); }

/* More: identity, mockups, stories, making-of in one strip */
.extras { display: flex; gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(12px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: thin; }
.extras li { flex: none; scroll-snap-align: start; }
.extras .post { height: clamp(170px, 20vw, 250px); width: auto; border-radius: 10px; }
.extras .post img { width: auto; height: 100%; }
.x-wide .post img { aspect-ratio: 16 / 9; }
.x-story .post img { aspect-ratio: 9 / 16; }
.x-cap { display: block; margin-top: 8px; font: 400 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 78%, var(--bg)); }

/* The brief, for anyone who wants it */
.about { margin-top: clamp(20px, 2.4vw, 32px); }
.about summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; transition: border-color .25s; }
.about summary::-webkit-details-marker { display: none; }
.about summary:hover { border-color: var(--ink); }
.about summary i { transition: transform .4s var(--ease); }
.about[open] summary i { transform: rotate(45deg); }
.about-body { max-width: 68ch; padding-top: 20px; }
.about-body p { margin: 0 0 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 10px; font-size: 15px; }
.swatches li { display: flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }
.hex { opacity: .7; font-variant-numeric: tabular-nums; }
.type { font-size: 15px; opacity: .85; }

/* The moment: each brand's colour washes up the screen as you reach it, and its cover rises into place */
.brand { position: relative; isolation: isolate; }
.brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .brand { background: transparent; }
    .brand::before { animation: wash linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .b-cover { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  }
}
@keyframes wash { from { clip-path: ellipse(60% 0% at 50% 0%); } to { clip-path: ellipse(160% 140% at 50% 0%); } }
@keyframes rise { from { opacity: .35; transform: translateY(48px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Outro ---------- */
.outro { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.outro h2 { margin: 0; font: 400 clamp(3.5rem, 8vw, 6rem)/.9 var(--display); }
.outro-row { display: flex; align-items: center; gap: 24px; }
.foot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.foot { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; font-size: 14px; color: color-mix(in srgb, var(--ink) 75%, var(--bg)); }
.foot p { margin: 0; max-width: 90ch; }

/* ---------- Viewer ---------- */
.viewer { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 56px 72px 64px; border: 0; background: rgb(8 7 10 / .94); color: #F1ECE3; --ink: #F1ECE3; --accent: #F1ECE3; }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: transparent; }
.viewer-img { max-width: 100%; max-height: calc(100svh - 130px); width: auto; height: auto; border-radius: 10px; transform-origin: 0 0; touch-action: pan-y; }
.viewer[open] { animation: fade .3s var(--ease); }
@keyframes fade { from { background-color: rgb(8 7 10 / 0); } }
.viewer-cap { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; font-size: 15px; opacity: .85; }
.viewer-close { position: absolute; top: 14px; right: 14px; }
.viewer-step { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(8 7 10 / .6); }
.viewer-step[data-step="-1"] { left: 14px; }
.viewer-step[data-step="1"] { right: 14px; }

/* ---------- Desktop: each brand is one spread, cover beside a compact grid ---------- */
@media (min-width: 981px) {
  .brand { padding: clamp(40px, 5vw, 72px) 0; }
  .b-inner { max-width: var(--max); display: grid; grid-template-columns: minmax(0, 1.49fr) minmax(0, 1fr); grid-template-areas: "head head" "cover grid" "extras extras" "about about"; column-gap: 12px; align-items: start; }
  .b-head { grid-area: head; padding: 0 0 20px; }
  .b-name { font-size: clamp(40px, 4vw, 60px); }
  .b-cover { grid-area: cover; margin: 0; }
  .grid { grid-area: grid; gap: 12px; align-self: stretch; contain: size; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .grid .lead { grid-column: auto; grid-row: auto; }
  .grid li { min-height: 0; }
  .grid .post img { aspect-ratio: auto; }
  .line-tile { aspect-ratio: auto; }
  .post { border-radius: 8px; }
  .tile-btn { border-radius: 8px; }
  .tile-line { font-size: clamp(16px, 1.4vw, 22px); }
  .tile-line.f-bebas { font-size: clamp(22px, 1.8vw, 30px); }
  .tile-more { font-size: 12px; }
  .extras { grid-area: extras; margin-top: 12px; gap: 12px; overflow: visible; padding: 0; }
  .extras li { flex: var(--a) 1 0; min-width: 0; }
  .extras .post { width: 100%; height: auto; border-radius: 8px; }
  .extras .post img { width: 100%; height: auto; }
  .x-cap { font-size: 14px; }
  .about { grid-area: about; margin-top: 14px; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .brand { padding-top: clamp(56px, 8vw, 112px); }
  .b-inner { display: flex; flex-direction: column; }
  .b-cover { order: -1; margin: 0; }
  .top { height: auto; grid-template-columns: 1fr auto; row-gap: 0; padding-top: 10px; }
  .jump { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--gutter) * -1); }
  .jump ul { justify-content: flex-start; padding: 6px var(--gutter) 8px; }
  html { scroll-padding-top: 116px; }
}
@media (max-width: 700px) {
  .brand-text { display: none; }
  .hero { padding-top: 150px; }
  .index { grid-template-columns: 1fr; gap: 24px; }
  .ix-group ul, .ix-food ul { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scroll-padding-inline: var(--gutter); scroll-snap-type: x proximity; }
  .ix-group li { flex: none; width: 168px; scroll-snap-align: start; }
  .ix-name { font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .lead { grid-column: auto; grid-row: auto; }
  .post { border-radius: 8px; }
  .line-tile { border-radius: 8px; }
  .line-tile p { font-size: 20px; }
  .line-tile p.f-bebas { font-size: 26px; }
  .viewer { padding: 56px 8px 72px; }
  .viewer-step { top: auto; bottom: 12px; transform: none; }
  .viewer-cap { bottom: 72px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
