/* Sections, scoped under .ext
   (Selected work, Master visuals, Social media, Contact + the design viewer) */
.ext, .lb {
  /* color */
  --orange: #ff5a00;
  --orange-deep: #d94400;
  --teal-deep: #0b2e33;          /* the night sea from the hero — quiet backgrounds only */
  --teal: #5fa8a8;               /* light teal — hover states */
  --ink: #000000;
  --cream: #f6f0e4;
  --text: #f2ece2;               /* warm off-white for all text */
  --text-muted: rgba(242, 236, 226, 0.72);
  --on-orange: #000000;          /* text on orange surfaces (white fails contrast at small sizes) */

  /* type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;   /* used at width 62% + weight 900 */
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 12vw, 160px);
  --radius: 2px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;

  /* layers */
  --z-header: 50;
  --z-skip: 100;
}
/* ---------- reset + base (from the original site, kept inside these sections) ---------- */
.ext, .lb {
  position: relative;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ext *, .ext *::before, .ext *::after, .lb *, .lb *::before, .lb *::after { box-sizing: border-box; }
/* :where() keeps these at zero weight, like the original site's plain element reset,
   so every section's own class rules (margins, borders, colours) still win */
:where(.ext, .lb) img { display: block; max-width: 100%; height: auto; }
:where(.ext, .lb) :where(h1, h2, h3, p, ul, figure) { margin: 0; }
:where(.ext) ul { padding: 0; list-style: none; }
:where(.ext, .lb) a { color: inherit; text-decoration: none; }
:where(.ext, .lb) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(.ext) ::selection { background: var(--teal); color: var(--ink); }
:where(.ext) :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
:where(.ext .contact) :focus-visible { outline-color: var(--ink); }
.ext .container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
/* the ported sections wait until the hero has opened */
.ext { visibility: hidden; }
html.scroll .ext { visibility: visible; }

/* masked line reveal helper */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: block; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; will-change: transform; }
/* ---------- WORK ---------- */
.work { padding-block: var(--section-y); }
.work__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  text-align: center;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: clamp(48px, 8vw, 104px);
}

.project + .project { margin-top: clamp(80px, 12vw, 160px); }
.project__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
  border-radius: var(--radius);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) {
  .project__media-link:hover .project__media img { transform: scale(1.03); }
}

.project__media-link { display: block; }
.project__link { color: inherit; }

/* one quiet row under the image: name + description on the left, disciplines on the right */
.project__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 22px;
}
.project__text { max-width: 60ch; }
.project__name {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  transition: color var(--dur-fast) ease;
}
.project__type {
  font-weight: 500;
  text-transform: none;
  color: var(--teal);
}
.project__type::before { content: "— "; }
.project__desc { color: var(--text-muted); font-size: 15px; }

/* each discipline opens its own case study: quiet outline pills that fill teal on hover */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  padding-top: 2px;
}
.tags li { display: flex; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);          /* solid orange, like the other buttons */
  font-size: 13px;
  font-weight: 700;
  color: var(--on-orange);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 260ms var(--ease-out),
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}
.tag:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.tag:active { transform: scale(0.96); transition-duration: 90ms; }

@media (hover: hover) {
  .tag:hover {
    transform: scale(1.1);              /* grows a little under the mouse */
    background: var(--teal);
    border-color: var(--teal);
    color: var(--ink);
  }
  .project__link:hover,
  .project:has(.project__media-link:hover) .project__link { color: var(--teal); }
}
.project__name { transition: color var(--dur-fast) ease; }
.project__link { transition: color var(--dur-fast) ease; }

/* ---------- MASTER VISUALS (cinematic slider) ---------- */
.mv {
  padding-block: var(--section-y);
  overflow: hidden;              /* the neighbours peek in from the sides, never cause page scroll */
}

.mv__head {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.mv__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  color: var(--orange);
  text-transform: uppercase;
}

/* the strip: all slides in one row, moved with transform so the active one sits centred */
.mv__viewport {
  position: relative;
  touch-action: pan-y;           /* vertical page scroll still works; horizontal swipes go to the slider */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.mv__viewport.is-dragging { cursor: grabbing; }
.mv {
  /* centre card width: big, but the whole 16:9 frame always fits on screen with the controls */
  --mv-w: min(60vw, 1080px, calc((100svh - 300px) * 16 / 9));
}
/* every card is stacked at the exact centre; main.js slides the side ones left/right */
.mv__track {
  position: relative;
  width: 100%;
  height: calc(var(--mv-w) * 9 / 16);
}
.mv__item {
  position: absolute;
  top: 0;
  left: calc(50% - var(--mv-w) / 2);
  width: var(--mv-w);
  transform-origin: center;
  will-change: transform, opacity;
}

.mv__link { display: block; -webkit-user-drag: none; }
.mv__link:focus-visible { outline: none; }
.mv__link:focus-visible .mv__frame { outline: 3px solid var(--orange); outline-offset: 4px; }
.mv__item:not(.is-active) .mv__link { cursor: pointer; }
/* side cards light up and lean in a little on hover, so it's clear they can be clicked */
.mv__item .mv__frame { transition: filter 400ms ease, transform 500ms var(--ease-out); }
@media (hover: hover) {
  .mv__item.is-side:hover .mv__frame { filter: brightness(1.7); transform: scale(1.04); }
}

.mv__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0b0b;
  border-radius: var(--radius);
}
/* shown until the real image is dropped into the folder */
.mv__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 30% 20%, rgba(11, 46, 51, 0.9), transparent 70%),
    radial-gradient(60% 80% at 80% 90%, rgba(255, 90, 0, 0.18), transparent 70%),
    #070707;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(28px, 5vw, 72px);
  color: rgba(246, 240, 228, 0.18);
  text-transform: uppercase;
}
.mv__frame img {
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;                   /* extra width so the image can drift as slides move */
  max-width: none;               /* the global img reset caps images at 100%, which left a gap on the right */
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  scale: 1;
  transition: scale 900ms var(--ease-out);
}
@media (hover: hover) {
  .mv__item.is-active .mv__link:hover .mv__frame img { scale: 1.03; }
}

/* per-slide captions are read by screen readers; the shared caption below shows the active one */
.mv__caption {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ← name → */
.mv__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: clamp(20px, 3vw, 36px);
}
.mv__info {
  text-align: center;
  min-height: 3.2em;             /* no jump when names change length */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mv__info-name {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
}
.mv__info-type { color: var(--teal); font-size: 14px; }

.mv__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.mv__arrow svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .mv__arrow:not(:disabled):hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
}
.mv__arrow:not(:disabled):active { transform: scale(0.94); }
.mv__arrow:disabled { opacity: 0.25; cursor: default; }

@media (max-width: 600px) {
  .mv { --mv-w: 72vw; }
  .mv__arrow { width: 46px; height: 46px; }
}

/* ---------- SOCIAL MEDIA (brand grids inside phones) ---------- */
.sm {
  --phone-w: clamp(220px, 20vw, 290px);
  padding-block: var(--section-y);
  overflow: hidden;                 /* phones drift on scroll; never cause sideways page scroll */
}
.sm__head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sm__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  color: var(--orange);
  text-transform: uppercase;
}
.sm__lede {
  margin-top: 12px;
  color: var(--text-muted);
}

.sm__stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 64px);
}

/* ---- the phone ---- */
.phone { width: var(--phone-w); flex: 0 0 auto; }
.phone--left,
.phone--right { margin-top: clamp(40px, 6vw, 90px); }   /* side phones sit lower */

.phone__body {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(160deg, #262626, #0d0d0d 40%, #1a1a1a);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -30px rgba(255, 90, 0, 0.35);
}
.phone__island {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.13);
  background: #0a0a0a;
  padding-top: 44px;               /* status-bar space under the island */
}
.phone__feed { will-change: transform; }

/* ---- brand profile inside the phone ---- */
.profile { padding-bottom: 12px; }
.profile__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 12px;
}
.profile__avatar {
  flex: 0 0 auto;
  width: calc(var(--phone-w) * 0.15);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3.5px rgba(255, 255, 255, 0.25);
}
.profile__text { display: flex; flex-direction: column; min-width: 0; }
.profile__name { font-size: 13px; font-weight: 800; }
.profile__mood { font-size: 11px; color: var(--teal); }

/* the 12-post grid, 3 across, like a profile page */
.profile__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  cursor: zoom-in;
  touch-action: manipulation;
}
.tile:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; z-index: 1; }
/* shown until the real post is dropped into the folder */
.tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 70% at 20% 15%, rgba(11, 46, 51, 0.95), transparent 70%),
    radial-gradient(80% 70% at 85% 90%, rgba(255, 90, 0, 0.22), transparent 70%),
    #070707;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: calc(var(--phone-w) * 0.07);
  color: rgba(246, 240, 228, 0.22);
}
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  transition: scale 500ms var(--ease-out), filter 300ms ease;
}
@media (hover: hover) {
  .tile:hover img { scale: 1.08; }
  .profile__grid:hover .tile:not(:hover) img { filter: brightness(0.55); }
}

/* name + mood colours under each phone */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}
.brand__name {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}
.brand__palette { display: flex; gap: 6px; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* phones: one brand at a time in a row you swipe sideways; the neighbours peek in at the edges */
@media (max-width: 1100px) {
  .sm { --phone-w: min(72vw, 340px); }
  .sm__stage {
    position: relative;               /* phones measure their position from the row itself */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;                           /* the side phones are scaled down, so they already leave a gap */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-inline: calc(50vw - var(--phone-w) / 2 + 2vw);   /* lets the first and last phone sit centred (+2vw undoes their negative margin) */
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .sm__stage::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: center; margin-inline: -2vw; }
  .phone--left,
  .phone--right { margin-top: 0; }
  /* the phone in the middle of the row is full size; the ones peeking in at the sides sit smaller and dimmer */
  .phone { transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s; transform-origin: 50% 40%; }
  .phone:not(.is-active) { transform: scale(.8); opacity: .5; }
}

/* ---------- DESIGN VIEWER (full-screen) ---------- */
.lb {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.97);
  color: var(--text);
  overflow: hidden;
}
.lb[open] { display: flex; flex-direction: column; }
.lb::backdrop { background: rgba(0, 0, 0, 0.6); }
/* page lock while the viewer is open is done in js (body fixed at the current scroll) */

.lb__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}
.lb__meta { font-size: 14px; font-weight: 600; }
.lb__brand { text-transform: uppercase; font-weight: 800; }
.lb__count { color: var(--text-muted); margin-left: 8px; font-variant-numeric: tabular-nums; }

.lb__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 2vw, 32px);
  padding: 0 var(--gutter) 24px;
  touch-action: pan-y;
}
.lb__frame {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  min-width: 0;
}
.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
}
.lb__placeholder {
  display: none;
  height: min(100%, 80vw * 1.25);
  aspect-ratio: 4 / 5;
  place-items: center;
  background:
    radial-gradient(90% 70% at 20% 15%, rgba(11, 46, 51, 0.95), transparent 70%),
    radial-gradient(80% 70% at 85% 90%, rgba(255, 90, 0, 0.22), transparent 70%),
    #070707;
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(40px, 8vw, 96px);
  color: rgba(246, 240, 228, 0.22);
}
.lb.is-placeholder .lb__img { display: none; }
.lb.is-placeholder .lb__placeholder { display: grid; }

.lb__close,
.lb__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.lb__close svg,
.lb__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) {
  .lb__close:hover,
  .lb__arrow:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
}
.lb__close:active,
.lb__arrow:active { transform: scale(0.94); }

/* phones: arrows sit under the image so it can use the full width */
@media (max-width: 600px) {
  .lb__stage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    row-gap: 16px;
  }
  .lb__frame { grid-column: 1 / -1; grid-row: 1; }
  .lb__prev { grid-row: 2; justify-self: end; }
  .lb__next { grid-row: 2; justify-self: start; }
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--orange);
  color: var(--on-orange);
  padding-block: clamp(80px, 11vw, 150px) 28px;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}
.contact__lede {
  margin-top: 16px;
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 500;
  opacity: 0.75;
}

/* the main action: the email, big and underlined, with a copy button */
.contact__mail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: clamp(28px, 4vw, 44px);
}
.contact__email {
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size 400ms var(--ease-out);
}
@media (hover: hover) {
  .contact__email:hover { background-size: 0% 2px; background-position: 100% 100%; }
}
.contact__copy-btn {
  min-height: 36px;
  min-width: 72px;
  padding: 0 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
@media (hover: hover) {
  .contact__copy-btn:hover { background: var(--teal); border-color: var(--teal); }
}

/* phone · location · socials, separated by hairlines */
.contact__details {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  margin-top: clamp(48px, 7vw, 88px);
}
.contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(20px, 4vw, 48px);
  font-size: 15px;
  font-weight: 500;
}
.contact__item + .contact__item { border-left: 1px solid rgba(0, 0, 0, 0.25); }
.contact__label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.6;
}
.contact__item a:not(.socials a) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms var(--ease-out);
}
.contact__item a:not(.socials a):hover { background-size: 100% 1.5px; }

.socials { display: flex; gap: 8px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
@media (hover: hover) {
  .socials a:hover { transform: translateY(-2px); background: var(--teal); border-color: var(--teal); }
}
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials svg[fill="none"] { fill: none; }

/* © on the left, back-to-top on the right */
.contact__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 500;
}
.contact__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
}
.contact__top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .contact__top:hover svg { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  .contact__details {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
    width: 100%;
  }
  .contact__item { padding: 0 12px; }
  .contact__item--social {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding-top: 24px;
  }
  .contact__bottom { flex-direction: column-reverse; gap: 4px; }
}

/* ---------- responsive (from the original) ---------- */
@media (max-width: 600px) {
  .project__info { flex-direction: column; gap: 14px; }
  .tags { justify-content: flex-start; }
}

/* ---------- motion: initial hidden states (only when JS + motion allowed) ---------- */
html.motion .ext [data-anim],
html.motion .ext [data-split],
html.motion .ext .contact__title .line > span { visibility: hidden; }

/* fix: with overflow:hidden the browser could still scroll the slider sideways when an arrow got focus,
   pushing the whole section off-centre. clip = cut off the edges but never scroll. */
.mv, .sm { overflow: clip; }

/* ---------- flying crows (js/crows.js) ---------- */
.sky { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
html:not(.scroll) .sky { display: none; }            /* not during the opening */
.sky__crow { position: absolute; left: 0; top: 0; visibility: hidden; will-change: transform; }
.sky__crow.is-on { visibility: visible; }
.sky__axis, .sky__flap { width: 100%; }
.sky__crow svg { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; }
/* wing beat: squeeze across the wings, a quick downstroke then a slower lift */
.sky__flap { animation: sky-flap .45s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes sky-flap {
  0%   { transform: scaleX(1); }
  35%  { transform: scaleX(.62) scaleY(1.03); }
  100% { transform: scaleX(1); }
}

/* Selected work follows the Showreel closely (the hero page already ends with its own space) */
.ext .work { padding-top: clamp(40px, 5vw, 80px); }

/* ---------- sound icon (Showreel + work covers) ---------- */
.snd {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}
.snd svg { width: 22px; height: 22px; fill: currentColor; }
.snd .snd__on { display: none; }
.snd.is-on .snd__on { display: block; }
.snd.is-on .snd__off { display: none; }
.snd:hover { background: #FF5400; color: #000; transform: scale(1.08); }

/* ---------- work covers: the film plays over the cover while you stop on it ---------- */
.project__cover { position: relative; }
.project__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 500ms ease;
  pointer-events: none;
}
.project.is-playing .project__video { opacity: 1; }
.project__cover .snd { position: absolute; right: 16px; bottom: 16px; z-index: 3; opacity: 0; pointer-events: none; }
.project.is-playing .project__cover .snd { opacity: 1; pointer-events: auto; }

/* ---------- CONTACT (Cuervos): brief button, links row, social icons ---------- */
.contact__cta { margin-top: clamp(28px, 4vw, 44px); }
.contact__brief {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 44px;
  background: var(--ink); color: var(--orange);
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; letter-spacing: .01em;
  border-radius: var(--radius);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, transform 220ms var(--ease-out);
}
.contact__brief:hover { background: #FFC600; color: var(--ink); transform: translateY(-3px); }
.contact__brief:active { transform: scale(.97); }

/* Email · WhatsApp · Instagram · Egypt · KSA · UAE */
.contact__links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  margin-top: clamp(36px, 5vw, 60px);
  font-size: clamp(15px, 1.2vw, 17px); font-weight: 600;
}
.contact__links li { display: flex; align-items: center; }
.contact__links li + li::before { content: "·"; margin: 0 14px; opacity: .55; }
.contact__links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size 300ms var(--ease-out);
}
.contact__links a:hover { background-size: 100% 1.5px; }
.contact__links span { opacity: .7; }

.contact__socials { justify-content: center; margin-top: 26px; }
/* the second half of the line reads as part of the headline, not a footnote */
.contact .contact__lede { margin-top: 14px; font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; opacity: .85; }

/* social icons: black on hover (instead of teal), icon turns orange */
@media (hover: hover) {
  .ext .socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--orange); }
}

/* Morai Lounge profile picture: the MR mark from their grid */
.profile__avatar--morai { background: #0a1a52 url("../assets/images/social%20media/brand-1/08.webp") 50% 22% / 260% auto no-repeat; }

/* phone frames in Cuervos orange */
.ext .phone__body {
  background: linear-gradient(160deg, #ff7a33, #FF5400 45%, #d94400);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
    inset 0 -2px 0 rgba(0, 0, 0, 0.18),
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 60px -30px rgba(255, 84, 0, 0.55);
}

/* Attics posts are 3:4 — keep that shape so the split panoramas line up */
.phone--center .tile { aspect-ratio: 3 / 4; }
/* Attics profile picture: their wordmark on the warm beige */
.profile__avatar--attics { background: #e8d9bf url("../assets/images/social%20media/brand-2/10.webp") 50% 3.2% / 520% auto no-repeat; }

/* Testify Tech profile picture: their logo from a dark post */
.profile__avatar--testify { background: #0c2b31 url("../assets/images/social%20media/brand-3/04.webp") 15% 9% / 480% auto no-repeat; }

/* ---------- CONTACT: two crows flying across on loops ---------- */
.ext .contact { position: relative; overflow: hidden; }
.cfly { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: difference; }
.cfly__crow { position: absolute; width: clamp(70px, 7vw, 130px); filter: none; }
/* the crow shape is used as a mask over exact Cuervos orange, so difference gives
   pure black on the orange and pure orange on black */
.cfly__shape { display: block; width: 100%; background: #FF5400;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
/* turn the body to point up, beat the wings across, turn back (same trick as the scroll crows) */
.cfly__axis { transform: rotate(var(--a)); }
.cfly__flap { animation: sky-flap .46s ease-in-out infinite; }
.cfly__shape { transform: rotate(calc(-1 * var(--a))); }
/* A: rises from bottom-left to top-right; B: dives from top-right to bottom-left — never together */
.cfly__crow--a { left: 6%; bottom: -30%; animation: cfly-a 11s linear infinite; }
.cfly__crow--b { right: 10%; top: -30%; width: clamp(56px, 5.5vw, 100px); animation: cfly-b 13s linear infinite 4s; }
.cfly__crow--b .cfly__flap { animation-duration: .52s; }
@keyframes cfly-a {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(42vh, -115vh); }
  100% { transform: translate(42vh, -115vh); }
}
@keyframes cfly-b {
  0%   { transform: translate(0, 0); }
  45%  { transform: translate(-46vh, 116vh); }
  100% { transform: translate(-46vh, 116vh); }
}
@media (prefers-reduced-motion: reduce) { .cfly { display: none; } }
@media (max-width: 600px) { .cfly__crow--b { display: none; } }   /* phones: just the one crow over Contact */

/* crows always contrast with what's behind them: orange + difference = black on orange, orange on black */
.sky { mix-blend-mode: difference; }
.sky__crow { color: #FF5400 !important; }

/* ---------- BRANDING (under Social media) ---------- */
.br { padding-block: var(--section-y); }
.br__head { text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.br__title { font-family: var(--font-display); font-weight: 900; font-stretch: 62%; font-size: clamp(40px, 5.5vw, 76px); line-height: 1; color: var(--orange); text-transform: uppercase; }
.br__lede { margin-top: 12px; color: var(--text-muted); }
/* a 3-column bento: wide · narrow / narrow · wide */
.br__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.bc { grid-column: span 1; }
.bc--wide { grid-column: span 2; }
.bc__link { display: block; }
.bc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: #0b0b0b; }
.bc--wide .bc__media { aspect-ratio: auto; height: 100%; min-height: 100%; }
.bc { display: flex; flex-direction: column; }
.bc__link { display: flex; flex-direction: column; height: 100%; }
.bc__link .bc__media { flex: 1; min-height: clamp(220px, 24vw, 380px); }
.bc__ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(70% 90% at 25% 20%, rgba(255, 84, 0, .22), transparent 70%), radial-gradient(60% 80% at 85% 90%, rgba(255, 198, 0, .12), transparent 70%), #080808;
  font-family: var(--font-display); font-weight: 900; font-stretch: 62%; font-size: clamp(28px, 4vw, 60px); color: rgba(246, 240, 228, .16); text-transform: uppercase; }
.bc__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: opacity .6s ease, scale .9s var(--ease-out); }
.bc__detail { opacity: 0; }
@media (hover: hover) {
  .bc__link:hover .bc__cover { scale: 1.04; }
  .bc__link:hover .bc__detail { opacity: 1; }
  .bc__link:hover .bc__name { color: var(--orange); }
}
.bc__info { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; margin-top: 14px; }
.bc__name { font-size: clamp(16px, 1.4vw, 19px); font-weight: 800; text-transform: uppercase; transition: color var(--dur-fast) ease; }
.bc__type { grid-column: 1; color: var(--text-muted); font-size: 14px; }
.bc__palette { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 6px; }
.bc__palette i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
@media (max-width: 760px) {
  .br__grid { grid-template-columns: minmax(0, 1fr); }
  .bc, .bc--wide { grid-column: auto; }
  .bc__link .bc__media, .bc--wide .bc__media { min-height: 0; height: auto; aspect-ratio: 4 / 3; flex: none; }
}
